Edgewall Software
Modify

Opened 19 years ago

Closed 18 years ago

#2027 closed enhancement (duplicate)

trac-admin initenv should continue if existing directory is empty

Reported by: mdorey@… Owned by: daniel
Priority: lowest Milestone:
Component: admin/console Version: 0.8.4
Severity: trivial Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Matthew Good)

If the directory for the Trac environment exists before trying to initialize it Trac fails with the error:

Creating and Initializing Project
Failed to create environment. [Errno 17] File exists: '/home/software/trac-root/salma-hayek'
Failed to initialize database. 1

If the existing directory is empty Trac should proceed to create the environment. This is consistent with svnadmin create which will proceed unless the directory exists and is not empty.

Also with the interactive initialization it would be good to make this check once before the questions so that it can fail sooner.

Attachments (0)

Change History (2)

comment:1 by Matthew Good, 19 years ago

Description: modified (diff)
Summary: trac-admin initenv doesn't work if user has "helpfully" created directory alreadytrac-admin initenv should continue if existing directory is empty

Cleaned up the decription.

Please try to keep tickets a bit more concise. Two full installation logs aren't really necessary to descript the topic here.

comment:2 by Matthew Good, 18 years ago

Resolution: duplicate
Status: newclosed

This is the same as #3055 which has already been implemented.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain daniel.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from daniel to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.