Opened 12 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: | 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 , 12 years ago
Keywords: | faq added |
---|---|
Milestone: | → not applicable |
Type: | defect → task |
comment:3 by , 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'
follow-up: 5 comment:4 by , 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.
comment:5 by , 6 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.
InstallationIssue. See TracEnvironment for hints.
Not closing, as there should really be a FAQ entry for this one.