Edgewall Software
Modify

Opened 19 years ago

Closed 18 years ago

#2058 closed defect (worksforme)

Internal error permission problem when installing with SELinux enabled

Reported by: anonymous Owned by: daniel
Priority: normal Milestone:
Component: admin/console Version: 0.8.4
Severity: normal Keywords: documentation
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

RHEL ES4 all packages installed via apt-get

Oops…

Trac detected an internal error:

[Errno 13] Permission denied: '/home/trac/tracwiki/VERSION' Traceback (most recent call last):

File "/usr/lib/python2.3/site-packages/trac/core.py", line 531, in cgi_start

real_cgi_start()

File "/usr/lib/python2.3/site-packages/trac/core.py", line 513, in real_cgi_start

env = open_environment()

File "/usr/lib/python2.3/site-packages/trac/core.py", line 189, in open_environment

env = Environment.Environment(env_path)

File "/usr/lib/python2.3/site-packages/trac/Environment.py", line 57, in init

self.verify()

File "/usr/lib/python2.3/site-packages/trac/Environment.py", line 70, in verify

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

IOError: [Errno 13] Permission denied: '/home/trac/tracwiki/VERSION'

Attachments (0)

Change History (6)

comment:1 by Christopher Lenz, 19 years ago

Resolution: invalid
Status: newclosed

Well, you will need to give the web server user permissions to read and write to the Trac environment directory.

comment:2 by anonymous, 19 years ago

Resolution: invalid
Status: closedreopened

Well,

I have this same problem but my webuser (apache) have RWX and the group have RWX permissions. on the folder and the DB. I am running Fedora Core 3 with Apache 2. I have chown apache:apache for the entire project folder also…

comment:3 by parksnj@…, 19 years ago

I have the same question,

I am on fedora core 3 and I have also chown apache:apache and have even made the folder for the project /opt/tracsvn/db and the file inside chmod 777! I still get the apache user needs read write error. My apache user is 'apache' but httpd runs at root. However, I add root to the apache group. Of course that should not matter if a folder and file is chmod 777. Could this be susexec related issue?

comment:4 by anonymous, 19 years ago

I had the same problem. In my case, the cause was SELinux(Security-Enhanced Linux). The following commands were executed although it was not so detailed about the SELinux.

% chcon -R system_u:object_r:httpd_sys_script_rw_t /var/trac

comment:5 by anonymous, 19 years ago

I was getting the same error running Trac on RedHat Enterprise Linux 4. Apparently its the SELinux issue mentioned above. Running that chcon command on my trac_project_env dir finally got Trac running, but my the Timeline and Browse Source functionality was still broken. I got those fixed by running the same chcon command on my Subversion repository directories.

comment:6 by sid, 18 years ago

Keywords: documentation added
Resolution: worksforme
Status: reopenedclosed
Summary: HELP installation questionInternal error permission problem when installing with SELinux enabled

Documentation pages now exist about both problems mentioned here. See TracWithSeLinux and ApacheSuexec

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.