开发者

How to repair a Trac installation

开发者 https://www.devze.com 2023-02-03 17:08 出处:网络
On our Trac system, two things suddenly stopped working. The first thing is the update of the \"Browse Source\". The second thing is the auto-fixing feature. The only solution for the first issue is t

On our Trac system, two things suddenly stopped working. The first thing is the update of the "Browse Source". The second thing is the auto-fixing feature. The only solution for the first issue is to manually run the post-commit hook of the SVN repository. But than we still have the problem, that Trac doesn't close 开发者_StackOverflow中文版ticket anymore depending on the SVN commit message. That was working before without any issues. Ah and a third thing is that PNG images are no longer shown in the HTML preview. The user has to download the file to see it.

Is there any known bug or issue for our described problem. Or how can I update the Trac system without loosing all the information within the Trac projects (I have set up a multi project Trac system).


If all else fails, reboot the server :)

Can you give us some more info about your server and Trac setup? For example, OS and version, Trac version, plugins used, etc.

It's odd for things to suddenly quit working. If you are running a Linux system, it's possible that your server installed some updates that your system isn't fully compatible with (for example, upgrading Trac can cause some plugins to quit working properly). Check your server's logs to see if anything was updated or reconfigured around the time Trac quit working.

Also, try setting Trac's log priority to 'DEBUG' and see if the Trac logfile contains any useful error details.


The solution was the following: file permissions!

To solve the issue we used the sudo in the post-commit hooks of SVN like the following:

sudo /usr/local/bin/trac-admin /var/trac/reponame/ changeset added "reponame" $REV

And we had to allow the SVN user to run the trac-admin command using visudo:

www-data,svn        ALL=(ALL) NOPASSWD: /usr/local/bin/trac-admin
0

精彩评论

暂无评论...
验证码 换一张
取 消