Edgewall Software
Modify

Opened 11 years ago

Last modified 5 years ago

#11146 new task

No Trac environment found at /var/www [Errno 2] No such file or directory: '/var/www/VERSION'

Reported by: tsrjtsrj@… Owned by:
Priority: normal Milestone: not applicable
Component: web frontend Version:
Severity: normal Keywords: faq
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I configured an environment /var/trac. I configured trac to work with apache2. When I log in to my trac page, the first thing I see is

No Trac environment found at /var/www [Errno 2] No such file or directory: '/var/www/VERSION'

The server was looking in a wrong directory for trac environment. If I ignore the error, I can proceed to the real page. But the error is so annoying. Any information you can provide to resolve the issue?

Attachments (0)

Change History (5)

comment:1 by Christian Boos, 11 years ago

Keywords: faq added
Milestone: not applicable
Type: defecttask

InstallationIssue. See TracEnvironment for hints.

Not closing, as there should really be a FAQ entry for this one.

comment:2 by anonymous, 11 years ago

any updates on that issue?

comment:3 by anonymous, 10 years ago

What worked for me is copy the VERSION file in all directories under my trac environment e.g

cp VERSION htdocs/
cp VERSION templates/
cp VERSION conf/
cp VERSION db/
cp VERSION plugins/

etc…

It was just my wild guess since I can't find solution to this problem. I tried the www-data:www-data owner group permission, and even set directories to 755 permission, but this still doesn't solve the problem… hence last resort, was my solution to copy VERSION file since error is stating 'No such file or directory'

comment:4 by jawadaq82@…, 9 years ago

I have setup trac on Windows server 2012 on IIS and found same issue, I copied version file to all sub-folders and this fixed it for me.

in reply to:  4 comment:5 by anonymous, 5 years ago

Replying to jawadaq82@…:

I have setup trac on Windows server 2012 on IIS and found same issue, I copied version file to all sub-folders and this fixed it for me.

I know it has been 4 years since you posted this, but I find myself running Trac on Windows Server as well. I am using IIS for URL rewrite to protect with SSL and am curious if you implemented it differently.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


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