Edgewall Software
Modify

Ticket #2027 (closed enhancement: duplicate)

Opened 6 years ago

Last modified 6 years ago

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:
Release Notes:
API Changes:

Description (last modified by mgood) (diff)

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

Change History

comment:1 Changed 6 years ago by mgood

  • Description modified (diff)
  • Summary changed from trac-admin initenv doesn't work if user has "helpfully" created directory already to trac-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 Changed 6 years ago by mgood

  • Resolution set to duplicate
  • Status changed from new to closed

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

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from daniel. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.