https://issues.rhodecode.com/https://issues.rhodecode.com/favicon.ico?16960560042019-02-20T13:58:04ZRhodeCode - issuesRhodeCode CE/EE - Bug #5538: internal server error (UnicodeDecodeError) during rhodecode-index requesthttps://issues.rhodecode.com/issues/5538?journal_id=263852019-02-20T13:58:04Zlee loucks
<ul></ul><p>Seems simliar to <a class="issue tracker-1 status-5 priority-2 priority-default closed" title="Bug: [CE] Internal server error when running indexing (Closed)" href="https://issues.rhodecode.com/issues/4195">#4195</a></p>
RhodeCode CE/EE - Bug #5538: internal server error (UnicodeDecodeError) during rhodecode-index requesthttps://issues.rhodecode.com/issues/5538?journal_id=263862019-02-20T14:12:30Zlee loucks
<ul></ul><p>Same error during a </p>
<pre><code>rhodecode-api --instance-name=community-1 get_repos
</code></pre>
<p>call</p>
RhodeCode CE/EE - Bug #5538: internal server error (UnicodeDecodeError) during rhodecode-index requesthttps://issues.rhodecode.com/issues/5538?journal_id=263872019-02-20T14:25:52Zlee loucks
<ul><li><strong>File</strong> <a href="/attachments/3037">Exception_140666329137872.txt</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3037/Exception_140666329137872.txt">Exception_140666329137872.txt</a> added</li></ul><p>using a shell script iterating through <u>rhodecode-api get_repo repoid:xyz</u> calls I identified a repo that seems to have an issue. Browsing to it via the web interface results in the attached exception being tracked captured in the Exceptions Tracker</p>
RhodeCode CE/EE - Bug #5538: internal server error (UnicodeDecodeError) during rhodecode-index requesthttps://issues.rhodecode.com/issues/5538?journal_id=263882019-02-20T14:33:16ZMarcin Kuzminski [CTO]marcin@rhodecode.com
<ul></ul><p>the attachment has 0 bytes, can you post it again?</p>
<p>Also similarly to <a class="issue tracker-1 status-5 priority-2 priority-default closed" title="Bug: [CE] Internal server error when running indexing (Closed)" href="https://issues.rhodecode.com/issues/4195">#4195</a> can you identify non-ascii characters stored in this repository ?</p>
RhodeCode CE/EE - Bug #5538: internal server error (UnicodeDecodeError) during rhodecode-index requesthttps://issues.rhodecode.com/issues/5538?journal_id=263892019-02-20T14:36:22Zlee loucks
<ul></ul><p>Something was wrong with the data in the RC db. I moved the offending repo out of the repository directory and requested a rescan with destroy old data selected. RC reported that it removed said repo as expected. I moved the formerly offending repo back into the repository directory, rescanned and get_repos and rhodecode-index runs successfully now.</p>
RhodeCode CE/EE - Bug #5538: internal server error (UnicodeDecodeError) during rhodecode-index requesthttps://issues.rhodecode.com/issues/5538?journal_id=263902019-02-20T14:36:59Zlee loucks
<ul><li><strong>File</strong> <a href="/attachments/3038">Exception_140666329137872.txt</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3038/Exception_140666329137872.txt">Exception_140666329137872.txt</a> added</li></ul> RhodeCode CE/EE - Bug #5538: internal server error (UnicodeDecodeError) during rhodecode-index requesthttps://issues.rhodecode.com/issues/5538?journal_id=263912019-02-20T14:41:23ZMarcin Kuzminski [CTO]marcin@rhodecode.com
<ul></ul><p>Based on the exception this error was caused by encryption problem. The clone_url are encrypted using a key stored in rhodecode.ini if that key changes sometimes decrypted data cannot be read properly. This could be caused by migration from old instance for example.</p>
<p>The encryption key used defaults to <code>beaker.session.secret</code> if<br>
<code>rhodecode.encrypted_values.secret =</code> is not set.</p>
RhodeCode CE/EE - Bug #5538: internal server error (UnicodeDecodeError) during rhodecode-index requesthttps://issues.rhodecode.com/issues/5538?journal_id=263922019-02-20T14:43:36Zlee loucks
<ul></ul><p>Thanks Marcin, you can close this ticket.</p>