Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No handler matched request to /code-comments #17

Open
christeredvartsen opened this issue Jun 1, 2012 · 6 comments
Open

No handler matched request to /code-comments #17

christeredvartsen opened this issue Jun 1, 2012 · 6 comments

Comments

@christeredvartsen
Copy link

Hi there,

Sometimes we get the following error when trying to browse the comments added to a Trac env:

No handler matched request to /code-comments

When this happens the "Code Comments" tab in the navigation is also not visible.

Version: 1.1.0 (Trac: 0.12.3)

@nb
Copy link
Contributor

nb commented Jun 2, 2012

Hey, Christer, thanks for the report.

When it disappears, does it come back?

Is there anything in the trac log file? (You may need to increase the logging level)

@christeredvartsen
Copy link
Author

If gave me this error perhaps 70% of the time. If I refresh enough the comments appeared (and the tab in the navigation). After a restart of apache the error has disappeared. I didn't have logging enabled when this occurred. I have enabled logging now and will have a look if the error comes back. Closing for now.

@nb
Copy link
Contributor

nb commented Jun 2, 2012

Awesome, thank you.

@christeredvartsen
Copy link
Author

The issue is back. I turned on logging in the trac.ini:

[logging]
log_file = trac.log
log_level = DEBUG
log_type = file

There is not that much of interest in the log though when I get the 404:

2012-06-04 12:26:07,770 Trac[main] DEBUG: Dispatching <Request "GET '/code-comments'">
2012-06-04 12:26:07,775 Trac[api] INFO: Synchronized '' repository in 0.00 seconds
2012-06-04 12:26:07,775 Trac[main] WARNING: HTTPNotFound: 404 Not Found (No handler matched request to /code-comments)

I'm not sure what that Synchronized '' repository is all about, but it's present when the /code-comments page returns the correct result as well, so I don't think it's relevant. Can I enable some more logging options to get some more relevant info?

@nb
Copy link
Contributor

nb commented Jun 4, 2012

The synchronization item just means Trac looked at the repo for new commits.

Nothing in the logs usually means that there was an error and the plugin wasn't loaded at all.

Is there something in the log file from the time when trac was launched?

How is trac deployed? There must be some other log files, which might give us a clue (either apache, or tracd, or whatever server you use).

@christeredvartsen
Copy link
Author

We run Trac using mod_python (apache), and there is no info about this error in the regular apache error logs. The issue seems to go away when I restart apache, but after some days it returns, but not on every request.

Trac is installed via easy_install, and the code-browser egg is just dropped in the plugins directory of the Trac env.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants