Error occurs a few times a second: "Cannot retrieve rhodecode's revision. Original error was: No scm found at given path"

Issue #443 resolved
siener created an issue

I'm running Rhodecode under apache with mod_wsgi.

Looking at the error log we get the constantly get the following message:

{{{Cannot retrieve rhodecode's revision. Original error was: No scm found at given path <path to the rhodecode egg>}}}

While this doesn't cause any real problems it is annoying, especially since the error occurs up to 4 times per second. This makes it very hard to find anything else in the log.

I've tracked the error down to the {{{get_current_revision}}} function in {{{lib/init.py}}}

It seems like the program expects the folder in which rhodecode resides to be under version control and it tries to retrieve the current revision number. I don't know the code and I didn't look any deeper into it, so I have no idea what the purpose of this is, but as a workaround I just changed the default of the quiet parameter to True.

Comments (6)

  1. siener reporter
    • changed status to new

    OK, I looked at the code a bit more and now I get it.

    If you were to run rhodecode directly from a folder that you cloned from a source control system (e.g. right here from bitbucket) the current revision will be appended to rhodecode's version number. However, if you installed it using pip, easy_install, or setup.py (which I would think is a lot more common) it will not be able to retrieve the revision and this error message will be written to your log in a regular basis.

  2. Log in to comment