Modify

Opened 7 years ago

Closed 7 years ago

#1499 closed defect (worksforme)

Error in /var/trac/VERSION

Reported by: Thempra Owned by: pacopablo
Priority: normal Component: SqliteToPgScript
Severity: normal Keywords:
Cc: thempra@… Trac Release: 0.10

Description

./sqlite2pg -e /var/trac -p 'postgres://user:pass@127.0.0.1/trac'

Traceback (most recent call last):

File "./sqlite2pg", line 331, in ?

Main(opts)

File "./sqlite2pg", line 243, in Main

sqlenv = getSQLiteEnvironment(opts)

File "./sqlite2pg", line 198, in getSQLiteEnvironment

env = Environment(opts.tracenv)

File "/var/lib/python-support/python2.4/trac/env.py", line 126, in init

self.verify()

File "/var/lib/python-support/python2.4/trac/env.py", line 174, in verify

fd = open(os.path.join(self.path, 'VERSION'), 'r')

IOError: [Errno 2] No such file or directory: '/var/trac/VERSION'

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by pacopablo

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

I don't think that you specified the correct path to your trac environment.

The path to the -e parameter should be the path that was used when you ran trac-admin initenv. This directory should have the following directory structure

README
VERSION
attachments
conf
htdocs
log
plugins
templates

Make sure that you're passing the correct path, and if you still get the error, then reopen the ticket and paste the directory listing for your trac environment, and your trac.ini file.

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from pacopablo. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.