Description of problem: When starting /usr/sbin/tracd with --daemonize and --pidfile it dies, leaving a log message: Error writing to pid file: IOError: [Errno 2] No such file or directory: '{path-to-pidfile}' Version-Release number of selected component (if applicable): trac-0.12.3-1.fc16.noarch How reproducible: always Steps to Reproduce: 1. Install trac and set up an environment as per instructions. Example assumes trac runs as user 'trac' and environment is /var/lib/trac/projects/myproject/. Be sure directory 'run' exists in environment and is owned by user trac. 2.As root, give command runuser -l trac -c '/usr/sbin/tracd --daemonize --pidfile=/var/lib/trac/projects/myproject/run/tracd.pid --port=8181 3. Actual results: Observe that tracd is not running Expected results: Should be able to connect to daemon on localhost port 8181. Additional info: This bug is documented with a fix at http://trac.edgewall.org/ticket/10566 The problem is that tracd daemon tests for writeability of pid file by an open that requires the file to exist. But the file does not exist initially and if it did it is deleted when tracd instance exits. The fix is to edit /usr/lib/python2.7/site-packages/trac/util/daemon.py, changing line 49: < fileobj = open(pidfile, 'r+') --- > fileobj = open(pidfile, 'w+')
Created attachment 581729 [details] patch for /usr/lib/python2.7/site-packages/trac/util/daemon.py
The attachment is empty, it's just that one line?
The attachment is there. (Clicking on the link in the Attachments box at the head of the thread, not the link in Comment 1.) Anyway, yes, the change is in just that one line, change r+ to w+. More details about it are at the edgewall link I gave.
Odd. I see it now. Coming soon.
trac-0.12.3-2.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/trac-0.12.3-2.fc15
trac-0.12.3-2.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/trac-0.12.3-2.fc16
trac-0.12.3-2.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/trac-0.12.3-2.el6
trac-0.12.3-2.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/trac-0.12.3-2.fc17
Package trac-0.12.3-2.el6: * should fix your issue, * was pushed to the Fedora EPEL 6 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing trac-0.12.3-2.el6' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2012-5773/trac-0.12.3-2.el6 then log in and leave karma (feedback).
I can't log in there to leave karma. If I could it would be 5 stars or whatever is tops. I installed trac-0.12.3-2.f16 from the updates site and tested it, it works. Fast work. Thanks.
The login for the above link is your Fedora Account System login, if you have one. If not. . .thanks anyway. :)
trac-0.12.3-3.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/trac-0.12.3-3.el6
trac-0.12.3-2.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
trac-0.12.3-2.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
trac-0.12.3-3.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
trac-0.12.3-2.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.