RhodeCode - issues: Issueshttps://issues.rhodecode.com/https://issues.rhodecode.com/favicon.ico?16960560042023-10-17T16:32:54ZRhodeCode - issues
Redmine RhodeCode CE/EE - Bug #5698 (Resolved): 5.0.0 release - documentation 4.X -> 5.X migration step-b...https://issues.rhodecode.com/issues/56982023-10-17T16:32:54ZMarcin Kuzminski [CTO]marcin@rhodecode.com
<p>In order to smoothen the transition from 4.X release we need to write a guide how to move to 5.X series.</p>
RhodeCode CE/EE - Support #5639 (New): 500 Internal Server Error | The server has either erred .....https://issues.rhodecode.com/issues/56392020-11-22T09:15:32ZClaude Chausse
<p>Hi </p>
<p>I am trying to recover my rhodecode installation after a Server Failure. I installed rhodecode and then imported my Database from my backup <br>
but the server fails when I trying to connect I get the stand error</p>
<p>===============<br>
500 Internal Server Error<br>
The server has either erred or is incapable of performing the requested operation.<br>
Possible Causes<br>
Server is overloaded.<br>
Server database connection is lost.</p>
<a name="Server-expected-unhandled-error"></a>
<h1 > Server expected unhandled error<a href="#Server-expected-unhandled-error" class="wiki-anchor">¶</a></h1>
<p>When I look at the log I see this<br>
020-11-22 03:00:16.055 [45105] ERROR [rhodecode.config.middleware] error occurred handling this request for path: /_static/rhodecode/images/favicon.ico<br>
Traceback (most recent call last):<br>
File "/opt/rhodecode/store/98nqg9sak7d1if134kfldiz507dkfild-python2.7-pyramid-1.10.1/lib/python2.7/site-packages/pyramid/tweens.py", line 41, in excview_tween<br>
response = handler(request)<br>
...<br>
Then this</p>
<p>OperationalError: (_mysql_exceptions.OperationalError) (1054, "Unknown column 'users.last_activity' in 'field list'") [SQL: u'SELECT users.firstname AS users_firstname, users.email AS users_email, users.api_key AS users_api_key, users.user_data AS users_user_data, users.user_id AS users_user_id, users.username AS users_username, users.password AS users_password, users.active AS users_active, users.<code>admin</code> AS users_admin, users.lastname AS users_lastname, users.last_login AS users_last_login, users.last_activity AS users_last_activity, users.extern_type AS users_extern_type, users.extern_name AS users_extern_name, users.inherit_default_permissions AS users_inherit_default_permissions, users.created_on AS users_created_on \nFROM users \nWHERE users.username = %s'] [parameters: ('default',)]</p>
<p>I need help to revive my Rhodecode</p>
RhodeCode Control - Feature #5582 (New): Add the version number of a PR in the HTTP APIhttps://issues.rhodecode.com/issues/55822020-01-15T10:45:22ZOlivier Renaud
<p>The JSON response of <code>get_pull_request</code> does not include the version number of the pull request (the one that gets incremented when a PR is updated with new commits). It would be a useful information to report in my use case (writing a bot that acts as a PR reviewer for TeamCity builds).</p>
<p>Using the Python api, I can find the version number with this code, but there is no workaround when working with the HTTP API.</p>
<pre><code class="python syntaxhl" data-language="python"><span class="n">pr</span> <span class="o">=</span> <span class="n">PullRequest</span><span class="p">.</span><span class="n">get</span><span class="p">(</span><span class="n">pr_id</span><span class="p">)</span>
<span class="n">pr_version</span> <span class="o">=</span> <span class="n">pr</span><span class="p">.</span><span class="n">versions</span><span class="p">.</span><span class="n">count</span><span class="p">()</span> <span class="o">+</span> <span class="mi">1</span>
</code></pre> RhodeCode CE/EE - Bug #5550 (New): 500 Internal Server Error | The server has either erred or is ...https://issues.rhodecode.com/issues/55502019-04-18T14:21:53ZThierry Wynsdau
<p>At the origin, the user was prompted to change his password when logged in. But he is a LDAP user, so he should not be asked to change his password.<br>
so I've deleted the user. But then when I tries to logon again using his credentials, I have this "500 Internal Server Error".<br>
But the server is still running fine.</p>
RhodeCode Control - Bug #5535 (New): improper rollback on upgrade failurehttps://issues.rhodecode.com/issues/55352019-02-09T21:12:54ZCatalin Salgau
<p>Behaviour probably not strictly related to version, but for context. (I accept that those old versions are no longer supported.)<br>
Migrating a 2.1.0 instance to 2.2.8 hit an error relating to a package rename (pkg_resources.DistributionNotFound: rhodecodemomentum) and attempted rollback.<br>
<em>instancename/profile</em> symlink was rolled back, but not the rhodecode.ini file, resulting in the app egg still pointing to egg:rhodecodemomentum and the instance failing to restart.<br>
Manually renaming rhodecode.backup_2.1.0.ini back fixed the issue.</p>
RhodeCode Control - Feature #5534 (New): extract/preload subcommandhttps://issues.rhodecode.com/issues/55342019-02-09T20:22:48ZCatalin Salgau
<p>Per documentation, restoring an instance involves creating a new instance and replacing files.<br>
Assuming one is restoring their entire ~/.rccontrol folder, the issue, as I see it, comes down to not having the required files expanded under the NIX store, as symlinked from <em>instancename/profile</em>.<br>
I'd like to suggest an <em>rccontrol extract</em> command that downloads (if not in cache/offline) and extracts the proper files on restore/upgrade, without the intermediary new instance step.<br>
This would also simplify cleanup of the nix store on live instances.</p>
RhodeCode Control - Feature #5533 (In Progress): Support busybox tarhttps://issues.rhodecode.com/issues/55332019-02-09T19:51:04ZCatalin Salgau
<p>Busybox tar does not handle --usage(as GNU tar does).<br>
Switching rccontrol from </p>
<pre><code> local_command("tar", '--usage')
</code></pre>
<p>to</p>
<pre><code> local_command("tar", '--help')
</code></pre>
<p>yields the same effect while being more inclusive.</p>
RhodeCode Tools - Bug #5531 (New): rhodecode-index: default cli opts overwrite given mapping filehttps://issues.rhodecode.com/issues/55312019-02-08T16:34:36ZPeter Colledge
<p>For example, if I provide a mapping file with</p>
<pre><code>[__DEFAULT__]
repo_limit = 1
</code></pre>
<p>I still get an unlimited limit, which is the default CLI param, until I explicitly use the CLI param <code>rhodecode-index... --repo-limit 1</code></p>
<p>See parse_opts in rhodecode_tools/commands/index.py </p>
<p>Version 756dd5c2d0b6 (v1.1.0) of cloned+venv'ed rhodecode-tools-ce.</p>
RhodeCode CE/EE - Bug #5502 (Resolved): 500 error when using multiple custom branch permissionshttps://issues.rhodecode.com/issues/55022018-10-25T00:57:14ZFrank Ecsedy
<p>We created 4 branch patterns with priorities 10, 20, 30 and 40. I created a new group that has force push permissions on those branches. When I add a user to the new group and try to view their permissions it is either wrong (no extra permissions show) or it throws a 500. Here is the exception log:</p>
<p>Traceback (most recent call last):<br>
File "/opt/rhodecode/store/mxgf7jxv7p2nw91a4y9c89y8jia712g5-python2.7-pyramid-1.9.2/lib/python2.7/site-packages/pyramid/tweens.py", line 39, in excview_tween<br>
response = handler(request)<br>
File "/opt/rhodecode/store/mxgf7jxv7p2nw91a4y9c89y8jia712g5-python2.7-pyramid-1.9.2/lib/python2.7/site-packages/pyramid/router.py", line 156, in handle_request<br>
view_name<br>
File "/opt/rhodecode/store/mxgf7jxv7p2nw91a4y9c89y8jia712g5-python2.7-pyramid-1.9.2/lib/python2.7/site-packages/pyramid/view.py", line 642, in <u>call_view<br>
response = view_callable(context, request)<br>
File "/opt/rhodecode/store/mxgf7jxv7p2nw91a4y9c89y8jia712g5-python2.7-pyramid-1.9.2/lib/python2.7/site-packages/pyramid/viewderivers.py", line 390, in attr_view<br>
return view(context, request)<br>
File "/opt/rhodecode/store/mxgf7jxv7p2nw91a4y9c89y8jia712g5-python2.7-pyramid-1.9.2/lib/python2.7/site-packages/pyramid/viewderivers.py", line 368, in predicate_wrapper<br>
return view(context, request)<br>
File "/opt/rhodecode/store/mxgf7jxv7p2nw91a4y9c89y8jia712g5-python2.7-pyramid-1.9.2/lib/python2.7/site-packages/pyramid/viewderivers.py", line 462, in rendered_view<br>
request, result, view_inst, context)<br>
File "/opt/rhodecode/store/mxgf7jxv7p2nw91a4y9c89y8jia712g5-python2.7-pyramid-1.9.2/lib/python2.7/site-packages/pyramid/renderers.py", line 435, in render_view<br>
return self.render_to_response(response, system, request=request)<br>
File "/opt/rhodecode/store/mxgf7jxv7p2nw91a4y9c89y8jia712g5-python2.7-pyramid-1.9.2/lib/python2.7/site-packages/pyramid/renderers.py", line 458, in render_to_response<br>
result = self.render(value, system_values, request=request)<br>
File "/opt/rhodecode/store/mxgf7jxv7p2nw91a4y9c89y8jia712g5-python2.7-pyramid-1.9.2/lib/python2.7/site-packages/pyramid/renderers.py", line 454, in render<br>
result = renderer(value, system_values)<br>
File "/opt/rhodecode/store/86qd4x71plpan4xz807ng3g09hcc2l3p-python2.7-pyramid-mako-1.0.2/lib/python2.7/site-packages/pyramid_mako/</u><u>init</u><u>.py", line 156, in __call</u>_<br>
reraise(MakoRenderingException(errtext), None, exc_info[2])<br>
File "/opt/rhodecode/store/86qd4x71plpan4xz807ng3g09hcc2l3p-python2.7-pyramid-mako-1.0.2/lib/python2.7/site-packages/pyramid_mako/<strong>init</strong>.py", line 148, in <strong>call</strong><br>
result = template.render_unicode(*<em>system)<br>
File "/opt/rhodecode/store/ida848f1ziml06glki8mawhi38h2k4fv-python2.7-mako-1.0.7/lib/python2.7/site-packages/mako/template.py", line 471, in render_unicode<br>
as_unicode=True)<br>
File "/opt/rhodecode/store/ida848f1ziml06glki8mawhi38h2k4fv-python2.7-mako-1.0.7/lib/python2.7/site-packages/mako/runtime.py", line 838, in _render<br>
*</em><u>kwargs_for_callable(callable</u>, data))<br>
File "/opt/rhodecode/store/ida848f1ziml06glki8mawhi38h2k4fv-python2.7-mako-1.0.7/lib/python2.7/site-packages/mako/runtime.py", line 873, in <u>render_context<br>
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)<br>
File "/opt/rhodecode/store/ida848f1ziml06glki8mawhi38h2k4fv-python2.7-mako-1.0.7/lib/python2.7/site-packages/mako/runtime.py", line 899, in _exec_template<br>
callable</u>(context, *args, **kwargs)<br>
File "<u>base_root_mako", line 99, in render_body<br>
File "_base_base_mako", line 54, in render_body<br>
File "rhodecode_templates_admin_users_user_edit_mako", line 133, in render_main<br>
File "/opt/rhodecode/store/ida848f1ziml06glki8mawhi38h2k4fv-python2.7-mako-1.0.7/lib/python2.7/site-packages/mako/runtime.py", line 761, in _include_file<br>
callable</u>(ctx, **kwargs)<br>
File "<u>admin_users_user_edit_perms_summary_mako", line 35, in render_body<br>
File "/opt/rhodecode/store/rq6n4kdw9z8d44km9njnr5rxxyh01p4h-python2.7-zope.cachedescriptors-4.3.1/lib/python2.7/site-packages/zope/cachedescriptors/property.py", line 106, in __get</u>_<br>
value = func(inst)<br>
File "/opt/rhodecode/store/rn12s997k08lbfzg074fca3x206ng6si-python2.7-rhodecode-enterprise-ce-4.13.3/lib/python2.7/site-packages/rhodecode/lib/auth.py", line 1076, in permissions_full_details<br>
user=self, cache=None, calculate_super_admin=True)<br>
File "/opt/rhodecode/store/rn12s997k08lbfzg074fca3x206ng6si-python2.7-rhodecode-enterprise-ce-4.13.3/lib/python2.7/site-packages/rhodecode/lib/auth.py", line 1211, in get_perms<br>
calculate_super_admin)<br>
File "/opt/rhodecode/store/rn12s997k08lbfzg074fca3x206ng6si-python2.7-rhodecode-enterprise-ce-4.13.3/lib/python2.7/site-packages/rhodecode/lib/rc_cache/utils.py", line 79, in decorate<br>
return self.get_or_create(key, creator, timeout, should_cache_fn)<br>
File "/opt/rhodecode/store/v33y23yxrp8sa4l232vf4i5nmwnclili-python2.7-dogpile.cache-0.6.6/lib/python2.7/site-packages/dogpile/cache/region.py", line 864, in get_or_create<br>
async_creator) as value:<br>
File "/opt/rhodecode/store/v33y23yxrp8sa4l232vf4i5nmwnclili-python2.7-dogpile.cache-0.6.6/lib/python2.7/site-packages/dogpile/lock.py", line 186, in <strong>enter</strong><br>
return self._enter()<br>
File "/opt/rhodecode/store/v33y23yxrp8sa4l232vf4i5nmwnclili-python2.7-dogpile.cache-0.6.6/lib/python2.7/site-packages/dogpile/lock.py", line 93, in _enter<br>
generated = self._enter_create(value, createdtime)<br>
File "/opt/rhodecode/store/v33y23yxrp8sa4l232vf4i5nmwnclili-python2.7-dogpile.cache-0.6.6/lib/python2.7/site-packages/dogpile/lock.py", line 179, in _enter_create<br>
return self.creator()<br>
File "/opt/rhodecode/store/v33y23yxrp8sa4l232vf4i5nmwnclili-python2.7-dogpile.cache-0.6.6/lib/python2.7/site-packages/dogpile/cache/region.py", line 831, in gen_value<br>
created_value = creator()<br>
File "/opt/rhodecode/store/rn12s997k08lbfzg074fca3x206ng6si-python2.7-rhodecode-enterprise-ce-4.13.3/lib/python2.7/site-packages/rhodecode/lib/rc_cache/utils.py", line 71, in creator<br>
return fn(*arg, **kw)<br>
File "/opt/rhodecode/store/rn12s997k08lbfzg074fca3x206ng6si-python2.7-rhodecode-enterprise-ce-4.13.3/lib/python2.7/site-packages/rhodecode/lib/auth.py", line 1205, in compute_perm_tree<br>
explicit, algo, calculate_super_admin)<br>
File "/opt/rhodecode/store/rn12s997k08lbfzg074fca3x206ng6si-python2.7-rhodecode-enterprise-ce-4.13.3/lib/python2.7/site-packages/rhodecode/lib/auth.py", line 320, in _cached_perms_data<br>
return permissions.calculate()<br>
File "/opt/rhodecode/store/rn12s997k08lbfzg074fca3x206ng6si-python2.7-rhodecode-enterprise-ce-4.13.3/lib/python2.7/site-packages/rhodecode/lib/auth.py", line 450, in calculate<br>
self._calculate_repository_branch_permissions()<br>
File "/opt/rhodecode/store/rn12s997k08lbfzg074fca3x206ng6si-python2.7-rhodecode-enterprise-ce-4.13.3/lib/python2.7/site-packages/rhodecode/lib/auth.py", line 789, in _calculate_repository_branch_permissions<br>
p = self._choose_permission(p, cur_perm)<br>
File "/opt/rhodecode/store/rn12s997k08lbfzg074fca3x206ng6si-python2.7-rhodecode-enterprise-ce-4.13.3/lib/python2.7/site-packages/rhodecode/lib/auth.py", line 942, in _choose_permission<br>
cur_perm_val = Permission.PERM_WEIGHTS[cur_perm]<br>
MakoRenderingException: </p>
<p>Traceback (most recent call last):<br>
File "/opt/rhodecode/store/86qd4x71plpan4xz807ng3g09hcc2l3p-python2.7-pyramid-mako-1.0.2/lib/python2.7/site-packages/pyramid_mako/<strong>init</strong>.py", line 148, in <strong>call</strong><br>
result = template.render_unicode(*<em>system)<br>
File "/opt/rhodecode/store/ida848f1ziml06glki8mawhi38h2k4fv-python2.7-mako-1.0.7/lib/python2.7/site-packages/mako/template.py", line 471, in render_unicode<br>
as_unicode=True)<br>
File "/opt/rhodecode/store/ida848f1ziml06glki8mawhi38h2k4fv-python2.7-mako-1.0.7/lib/python2.7/site-packages/mako/runtime.py", line 838, in _render<br>
*</em><u>kwargs_for_callable(callable</u>, data))<br>
File "/opt/rhodecode/store/ida848f1ziml06glki8mawhi38h2k4fv-python2.7-mako-1.0.7/lib/python2.7/site-packages/mako/runtime.py", line 873, in <u>render_context<br>
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)<br>
File "/opt/rhodecode/store/ida848f1ziml06glki8mawhi38h2k4fv-python2.7-mako-1.0.7/lib/python2.7/site-packages/mako/runtime.py", line 899, in _exec_template<br>
callable</u>(context, *args, **kwargs)<br>
File "/opt/rhodecode/store/rn12s997k08lbfzg074fca3x206ng6si-python2.7-rhodecode-enterprise-ce-4.13.3/lib/python2.7/site-packages/rhodecode/templates/base/root.mako", line 156, in render_body<br>
${next.body()}<br>
File "/opt/rhodecode/store/rn12s997k08lbfzg074fca3x206ng6si-python2.7-rhodecode-enterprise-ce-4.13.3/lib/python2.7/site-packages/rhodecode/templates/base/base.mako", line 32, in render_body<br>
${next.main()}<br>
File "/opt/rhodecode/store/rn12s997k08lbfzg074fca3x206ng6si-python2.7-rhodecode-enterprise-ce-4.13.3/lib/python2.7/site-packages/rhodecode/templates/admin/users/user_edit.mako", line 53, in render_main<br>
<%include file="/admin/users/user_edit_${c.active}.mako"/><br>
File "/opt/rhodecode/store/ida848f1ziml06glki8mawhi38h2k4fv-python2.7-mako-1.0.7/lib/python2.7/site-packages/mako/runtime.py", line 761, in <u>include_file<br>
callable</u>(ctx, **kwargs)<br>
File "/opt/rhodecode/store/rn12s997k08lbfzg074fca3x206ng6si-python2.7-rhodecode-enterprise-ce-4.13.3/lib/python2.7/site-packages/rhodecode/templates/admin/users/user_edit_perms_summary.mako", line 3, in render_body<br>
${p.perms_summary(c.perm_user.permissions_full_details, show_all=True, side_link=h.route_path('edit_user_perms_summary_json', user_id=c.user.user_id))}<br>
File "/opt/rhodecode/store/rq6n4kdw9z8d44km9njnr5rxxyh01p4h-python2.7-zope.cachedescriptors-4.3.1/lib/python2.7/site-packages/zope/cachedescriptors/property.py", line 106, in <strong>get</strong><br>
value = func(inst)<br>
File "/opt/rhodecode/store/rn12s997k08lbfzg074fca3x206ng6si-python2.7-rhodecode-enterprise-ce-4.13.3/lib/python2.7/site-packages/rhodecode/lib/auth.py", line 1076, in permissions_full_details<br>
user=self, cache=None, calculate_super_admin=True)<br>
File "/opt/rhodecode/store/rn12s997k08lbfzg074fca3x206ng6si-python2.7-rhodecode-enterprise-ce-4.13.3/lib/python2.7/site-packages/rhodecode/lib/auth.py", line 1211, in get_perms<br>
calculate_super_admin)<br>
File "/opt/rhodecode/store/rn12s997k08lbfzg074fca3x206ng6si-python2.7-rhodecode-enterprise-ce-4.13.3/lib/python2.7/site-packages/rhodecode/lib/rc_cache/utils.py", line 79, in decorate<br>
return self.get_or_create(key, creator, timeout, should_cache_fn)<br>
File "/opt/rhodecode/store/v33y23yxrp8sa4l232vf4i5nmwnclili-python2.7-dogpile.cache-0.6.6/lib/python2.7/site-packages/dogpile/cache/region.py", line 864, in get_or_create<br>
async_creator) as value:<br>
File "/opt/rhodecode/store/v33y23yxrp8sa4l232vf4i5nmwnclili-python2.7-dogpile.cache-0.6.6/lib/python2.7/site-packages/dogpile/lock.py", line 186, in <strong>enter</strong><br>
return self._enter()<br>
File "/opt/rhodecode/store/v33y23yxrp8sa4l232vf4i5nmwnclili-python2.7-dogpile.cache-0.6.6/lib/python2.7/site-packages/dogpile/lock.py", line 93, in _enter<br>
generated = self._enter_create(value, createdtime)<br>
File "/opt/rhodecode/store/v33y23yxrp8sa4l232vf4i5nmwnclili-python2.7-dogpile.cache-0.6.6/lib/python2.7/site-packages/dogpile/lock.py", line 179, in _enter_create<br>
return self.creator()<br>
File "/opt/rhodecode/store/v33y23yxrp8sa4l232vf4i5nmwnclili-python2.7-dogpile.cache-0.6.6/lib/python2.7/site-packages/dogpile/cache/region.py", line 831, in gen_value<br>
created_value = creator()<br>
File "/opt/rhodecode/store/rn12s997k08lbfzg074fca3x206ng6si-python2.7-rhodecode-enterprise-ce-4.13.3/lib/python2.7/site-packages/rhodecode/lib/rc_cache/utils.py", line 71, in creator<br>
return fn(*arg, **kw)<br>
File "/opt/rhodecode/store/rn12s997k08lbfzg074fca3x206ng6si-python2.7-rhodecode-enterprise-ce-4.13.3/lib/python2.7/site-packages/rhodecode/lib/auth.py", line 1205, in compute_perm_tree<br>
explicit, algo, calculate_super_admin)<br>
File "/opt/rhodecode/store/rn12s997k08lbfzg074fca3x206ng6si-python2.7-rhodecode-enterprise-ce-4.13.3/lib/python2.7/site-packages/rhodecode/lib/auth.py", line 320, in _cached_perms_data<br>
return permissions.calculate()<br>
File "/opt/rhodecode/store/rn12s997k08lbfzg074fca3x206ng6si-python2.7-rhodecode-enterprise-ce-4.13.3/lib/python2.7/site-packages/rhodecode/lib/auth.py", line 450, in calculate<br>
self._calculate_repository_branch_permissions()<br>
File "/opt/rhodecode/store/rn12s997k08lbfzg074fca3x206ng6si-python2.7-rhodecode-enterprise-ce-4.13.3/lib/python2.7/site-packages/rhodecode/lib/auth.py", line 789, in _calculate_repository_branch_permissions<br>
p = self._choose_permission(p, cur_perm)<br>
File "/opt/rhodecode/store/rn12s997k08lbfzg074fca3x206ng6si-python2.7-rhodecode-enterprise-ce-4.13.3/lib/python2.7/site-packages/rhodecode/lib/auth.py", line 942, in _choose_permission<br>
cur_perm_val = Permission.PERM_WEIGHTS[cur_perm]<br>
TypeError: unhashable type: 'OrderedDict'</p>
RhodeCode Control - Bug #5501 (New): rccontrol throwing rccontrol.lib.exceptions.SupervisorFailed...https://issues.rhodecode.com/issues/55012018-10-12T14:37:19Zdan m
<p>Attempting to run any command that invokes supervisord gives me the following STE:</p>
<p>$ rccontrol status community-1<br>
RHODECODE CONTROL VERSION: 1.19.2<br>
Starting supervisord.<br>
Traceback (most recent call last):<br>
File "/opt/rhodecode/store/i58g29lpsgfr7jxsirfx2xsjhddllrc5-python2.7-supervisor-3.3.4/bin/.supervisord-wrapped", line 12, in <br>
sys.exit(main())<br>
File "/opt/rhodecode/store/i58g29lpsgfr7jxsirfx2xsjhddllrc5-python2.7-supervisor-3.3.4/lib/python2.7/site-packages/supervisor/supervisord.py", line 357, in main<br>
go(options)<br>
File "/opt/rhodecode/store/i58g29lpsgfr7jxsirfx2xsjhddllrc5-python2.7-supervisor-3.3.4/lib/python2.7/site-packages/supervisor/supervisord.py", line 367, in go<br>
d.main()<br>
File "/opt/rhodecode/store/i58g29lpsgfr7jxsirfx2xsjhddllrc5-python2.7-supervisor-3.3.4/lib/python2.7/site-packages/supervisor/supervisord.py", line 67, in main<br>
self.options.set_rlimits_or_exit()<br>
File "/opt/rhodecode/store/i58g29lpsgfr7jxsirfx2xsjhddllrc5-python2.7-supervisor-3.3.4/lib/python2.7/site-packages/supervisor/options.py", line 1398, in set_rlimits_or_exit<br>
soft, hard = resource.getrlimit(res)<br>
resource.error: (38, 'Function not implemented')<br>
Supervisord did not start properly.<br>
Traceback (most recent call last):<br>
File "/opt/rhodecode/store/hvmz2dqbl1ha75bnw4gh7kgy6wqk62jz-python2.7-rhodecode-control-1.19.2/bin/..rccontrol-wrapped-wrapped", line 12, in <br>
sys.exit(cmd())<br>
File "/opt/rhodecode/store/hvmz2dqbl1ha75bnw4gh7kgy6wqk62jz-python2.7-rhodecode-control-1.19.2/lib/python2.7/site-packages/rccontrol/main.py", line 54, in cmd<br>
File "/opt/rhodecode/store/bbsdjfz28lj6g8s90wbj6i746nwxhh2s-python2.7-click-6.6/lib/python2.7/site-packages/click/core.py", line 716, in <strong>call</strong><br>
return self.main(*args, **kwargs)<br>
File "/opt/rhodecode/store/bbsdjfz28lj6g8s90wbj6i746nwxhh2s-python2.7-click-6.6/lib/python2.7/site-packages/click/core.py", line 696, in main<br>
rv = self.invoke(ctx)<br>
File "/opt/rhodecode/store/bbsdjfz28lj6g8s90wbj6i746nwxhh2s-python2.7-click-6.6/lib/python2.7/site-packages/click/core.py", line 1060, in invoke<br>
return _process_result(sub_ctx.command.invoke(sub_ctx))<br>
File "/opt/rhodecode/store/bbsdjfz28lj6g8s90wbj6i746nwxhh2s-python2.7-click-6.6/lib/python2.7/site-packages/click/core.py", line 889, in invoke<br>
return ctx.invoke(self.callback, **ctx.params)<br>
File "/opt/rhodecode/store/bbsdjfz28lj6g8s90wbj6i746nwxhh2s-python2.7-click-6.6/lib/python2.7/site-packages/click/core.py", line 534, in invoke<br>
return callback(*args, **kwargs)<br>
File "/opt/rhodecode/store/bbsdjfz28lj6g8s90wbj6i746nwxhh2s-python2.7-click-6.6/lib/python2.7/site-packages/click/decorators.py", line 64, in new_func<br>
return ctx.invoke(f, obj, *args[1:], **kwargs)<br>
File "/opt/rhodecode/store/bbsdjfz28lj6g8s90wbj6i746nwxhh2s-python2.7-click-6.6/lib/python2.7/site-packages/click/core.py", line 534, in invoke<br>
return callback(*args, **kwargs)<br>
File "/opt/rhodecode/store/hvmz2dqbl1ha75bnw4gh7kgy6wqk62jz-python2.7-rhodecode-control-1.19.2/lib/python2.7/site-packages/rccontrol/status.py", line 21, in cmd<br>
File "/opt/rhodecode/store/hvmz2dqbl1ha75bnw4gh7kgy6wqk62jz-python2.7-rhodecode-control-1.19.2/lib/python2.7/site-packages/rccontrol/lib/utils.py", line 431, in wrapper<br>
File "/opt/rhodecode/store/hvmz2dqbl1ha75bnw4gh7kgy6wqk62jz-python2.7-rhodecode-control-1.19.2/lib/python2.7/site-packages/rccontrol/status.py", line 34, in main<br>
File "/opt/rhodecode/store/hvmz2dqbl1ha75bnw4gh7kgy6wqk62jz-python2.7-rhodecode-control-1.19.2/lib/python2.7/site-packages/rccontrol/lib/context.py", line 1951, in status<br>
File "/opt/rhodecode/store/hvmz2dqbl1ha75bnw4gh7kgy6wqk62jz-python2.7-rhodecode-control-1.19.2/lib/python2.7/site-packages/rccontrol/lib/context.py", line 1059, in get_process_status<br>
File "/opt/rhodecode/store/hvmz2dqbl1ha75bnw4gh7kgy6wqk62jz-python2.7-rhodecode-control-1.19.2/lib/python2.7/site-packages/rccontrol/lib/context.py", line 1049, in get_process_info<br>
File "/opt/rhodecode/store/hvmz2dqbl1ha75bnw4gh7kgy6wqk62jz-python2.7-rhodecode-control-1.19.2/lib/python2.7/site-packages/rccontrol/lib/context.py", line 1326, in xmlrpc<br>
rccontrol.lib.exceptions.SupervisorFailedToStart</p>
<p>RC version: 1.19.2<br>
What's installed: 1 CE instance, 1 VCSServer instance<br>
OS: CentOs 6.10 (updates current up to the past week or so)</p>
<p>Comments to follow</p>
RhodeCode Tools - Bug #5450 (New): rhodecode-api get_license_info no longer workshttps://issues.rhodecode.com/issues/54502018-03-19T18:16:55ZGildas Fargeasgildas.fargeas@nerd.nintendo.com
<p>I just noticed that but it seems the method get_license_info no longer works in the api.<br>
I get the same error using either a curl request or rhodecode-api bin. I also checked get_users and it works fine.<br>
Can you reproduce this error ?</p>
<pre><code>ERROR: Backend server at `http://127.0.0.1:10002/_admin/api` returned non 2XX http code (500). Please make sure it is running and accepting connections. Original response: <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Error - 500 Internal Server Error</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="robots" content="index, nofollow"/>
<link rel="icon" href="/_static/rhodecode/images/favicon.ico" sizes="16x16 32x32" type="image/png" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/_static/rhodecode/css/style.css" media="screen"/>
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="/_static/rhodecode/css/ie.css" media="screen"/>
<![endif]-->
<style>body { background:#eeeeee; }</style>
<script type="text/javascript">
// register templateContext to pass template variables to JS
var templateContext = {timeago: {}};
</script>
<script type="text/javascript" src="/_static/rhodecode/js/scripts.js"></script>
</head>
<body>
<div class="wrapper error_page">
<div class="sidebar">
<a href="/"><img class="error-page-logo" src="/_static/rhodecode/images/RhodeCode_Logo_Black.png" alt="RhodeCode"/></a>
</div>
<div class="main-content">
<h1>
<span class="error-branding">
RhodeCode
</span><br/>
500 Internal Server Error | <span class="error_message">The server has either erred or is incapable of performing the requested operation.</span>
</h1>
<div class="inner-column">
<h4>Possible Causes</h4>
<ul>
<li>Server is overloaded.</li>
<li>Server database connection is lost.</li>
<li>Server expected unhandled error.</li>
</ul>
</div>
<div class="inner-column">
<h4>Support</h4>
<p>For support, go to <a href="https://rhodecode.com/help/" target="_blank">Support</a>.
It may be useful to include your log file; see the log file locations <a href="https://rhodecode.com/r1/enterprise/docs/admin-system-overview/">here</a>.
</p>
</div>
<div class="inner-column">
<h4>Documentation</h4>
<p>For more information, see <a href="https://rhodecode.com/r1/enterprise/docs/">docs.rhodecode.com</a>.</p>
</div>
</div>
</div>
</body>
</html>
None
</code></pre> RhodeCode CE/EE - Bug #5227 (New): 400 during a svn checkout, file with special charshttps://issues.rhodecode.com/issues/52272017-02-23T15:43:57ZCarlo Truijllo
<p>Our repository is behind apache ( configured to listen in 80 for web and 8090 svn ).</p>
<p>We can't control how our customers use their repository so we can't bring any naming convention in their files.</p>
<p>A customer added two files, more or less with this label:</p>
<ul>
<li>Ricerca allo 0,75% del Pil.txt</li>
<li>L’hashtag #newHashtag non ancora.txt</li>
</ul>
<p>Every attempt to checkout this repository lead to a 400 error because RhodeCode + Apache can't handle the improperly used reserved chars.</p>
<p>In apache logs:<br>
Ricerca%20allo%200,75%%20del%20Pil.txt<br>
instead<br>
Ricerca%20allo%200,75%25%20del%20Pil.txt</p>
<p>and </p>
<p>L%E2%80%99hashtag%20#newHashtag%20non%20ancora.txt<br>
instead<br>
L%E2%80%99hashtag%20%23newHashtag%20non%20ancora.txt</p>
<p>I noticed URL come out plain and unescaped from RhodeCode ( to apache ) so I patched roughly the file :</p>
<p>/home/user/.rccontrol/community-1/profile/lib/python2.7/site-packages/rhodecode/lib/middleware/simplesvn.py</p>
<p>in this way:</p>
<pre><code>--- old_simplesvn.py 2017-02-23 15:35:26.325978696 +0100
+++ new_simplesvn.py 2017-02-23 15:30:32.629978696 +0100
@@ -20,6 +20,7 @@
import logging
from urlparse import urljoin
+from urllib import quote
import requests
from webob.exc import HTTPNotAcceptable
@@ -62,8 +63,8 @@
return response.iter_content(chunk_size=1024)
def _get_url(self, path):
- return urljoin(
- self.config.get('subversion_http_server_url', ''), path)
+ return quote(urljoin(
+ self.config.get('subversion_http_server_url', ''), path), safe="/:=~+!$,;'")
def _get_request_headers(self, environ):
headers = {}
</code></pre>
<p>I know there is a wonderful RFC with all reserved chars listed but we are installing RhodeCode in a pre-existing svn environment.</p>
<p>Is there a cleaner way to manage this situation?</p>
RhodeCode CE/EE - Bug #4274 (Resolved): 500 error when push big objectshttps://issues.rhodecode.com/issues/42742016-10-13T04:43:35Zfeng mu
<p>Counting objects: 123894, done.<br>
Delta compression using up to 8 threads.<br>
Compressing objects: 100% (49118/49118), done.<br>
Writing objects: 100% (123894/123894), 168.71 MiB | 3.52 MiB/s, done.<br>
Total 123894 (delta 66189), reused 123776 (delta 66106)<br>
error: RPC failed; result=22, HTTP code = 500<br>
fatal: The remote end hung up unexpectedly<br>
fatal: The remote end hung up unexpectedly<br>
Everything up-to-date</p>
RhodeCode CE/EE - Bug #3549 (Resolved): [4.0.0 regression], file source links use last commit id ...https://issues.rhodecode.com/issues/35492016-04-21T13:20:01ZMarcin Kuzminski [CTO]marcin@rhodecode.com
<p>Case:</p>
<p>You're browsing a file tree at tag v2.2.8 - commit id XXX</p>
<p>When entering particular file (lets say setup.py), the links and headers are based on the last commit (YYY) of file instead of the XXX.</p>
<p>This causes few problems:</p>
<ul>
<li>the commit info suddenly changes when moving from tree view, to file view, since all info is taken from YYY</li>
<li>references suddenly change, so you're puzzled why the tag reference is suddenly missing, again since references are calculated from YYY</li>
<li>links like raw, annotate etc uses the last commit id (YYY), and clicking on them actually can show you totally different things since YYY can be a different branch last edit.</li>
</ul>
<p>We should always use XXX since this is the file tree you're browsing AT, and all things should be poiting to this commit.</p>
<p>I would also add additional link to what's the last commit of file, after XXX that will show YYY, so one can tell if actual XXX commit is one that changed file setup.py</p>
RhodeCode Tools - Task #3333 (New): Create rhodecode-tools backup command for backup of RhodeCode...https://issues.rhodecode.com/issues/33332016-03-17T12:43:52ZMarcin Kuzminski [CTO]marcin@rhodecode.com
<p>We should create a backup command that allows to backup instances.</p>
<ul>
<li>needs to be atomic for repositories so we don't catch a push in progress operation</li>
<li>needs to identify all required files to backup including configs, extra hooks, gists, databases etc</li>
</ul>