Actions
Bug #5569
openSshWrapper error
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
30.09.2019
Due date:
% Done:
0%
Estimated time:
Sorting:
Commit Number:
Affected Version:
Description
Hi,
using rhodecode CE 4.17.3.
Just enabled module ssh, configured ssh authorized keys and restared sshd, rhodecode and vcsserver.
All git client-server interactions produce this output:
sauzher@sauzher-VirtualBox /tmp/csi.prova.ssh (master) $ git pull
2019-09-30 15:16:22.291 INFO [rhodecode.model] RhodeCode 4.17.3 initializing db for postgresql://postgres:XXXXX@127.0.0.1:5432/rhodecode-hope
2019-09-30 15:16:22.297 INFO [rhodecode.config.environment] Enabled VCS backends: ['svn', 'git', 'hg']
2019-09-30 15:16:25.096 INFO [rhodecode.config.middleware] Pyramid app `pyramid_app_with_cleanup` created and configured in 2.86s
2019-09-30 15:16:25.282 INFO [rhodecode.apps.ssh_support.lib.backends.base] READ Permissions for User "<User('id:3:alessandro.ceglie')>" detected to repo "repo/csi.prova"!
2019-09-30 15:16:25.282 INFO [rhodecode.apps.ssh_support.lib.backends.base] READ Permissions for User "<User('id:3:alessandro.ceglie')>" detected to repo "repo/csi.prova"!
2019-09-30 15:16:25.455 ERROR [rhodecode.lib.vcs.client_http] Call to http://127.0.0.1:10004/git returned non 200 HTTP code: 503
2019-09-30 15:16:25.461 ERROR [rhodecode.apps.ssh_support.lib.backends] Error occurred during execution of SshWrapper
Traceback (most recent call last):
File "/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/apps/ssh_support/lib/backends/__init__.py", line 209, in wrap
repo_branch_permissions)
File "/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/apps/ssh_support/lib/backends/__init__.py", line 157, in serve
return server.run(tunnel_extras=extras)
File "/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/apps/ssh_support/lib/backends/base.py", line 163, in run
self._invalidate_cache(self.repo_name)
File "/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/apps/ssh_support/lib/backends/base.py", line 58, in _invalidate_cache
ScmModel().mark_for_invalidation(repo_name)
File "/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/model/scm.py", line 280, in mark_for_invalidation
repo.update_commit_cache(config=config, cs_cache=None)
File "/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/model/db.py", line 2313, in update_commit_cache
scm_repo = self.scm_instance(cache=False, config=config)
File "/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/model/db.py", line 2446, in scm_instance
return self._get_instance(cache=bool(cache), config=config)
File "/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/model/db.py", line 2487, in _get_instance
_vcs_alias=self.repo_type)
File "/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/lib/vcs/backends/__init__.py", line 68, in get_vcs_instance
return backend(repo_path=repo_path, *args, **kwargs)
File "/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/lib/vcs/backends/git/repository.py", line 69, in __init__
self._init_repo(create, src_url, do_workspace_checkout, bare)
File "/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/lib/vcs/backends/git/repository.py", line 184, in _init_repo
if not self._remote.assert_correct_path():
File "/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/lib/vcs/client_http.py", line 130, in f
return self._call(name, *args, **kwargs)
File "/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/lib/vcs/client_http.py", line 152, in _call_with_logging
return RemoteRepo._call(self, name, *args, **kwargs)
File "/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/lib/vcs/exceptions.py", line 183, in wrapper
return func(*args, **kwargs)
File "/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/lib/vcs/client_http.py", line 146, in _call
return _remote_call(self.url, payload, EXCEPTIONS_MAP, self._session)
File "/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/lib/vcs/client_http.py", line 220, in _remote_call
raise exceptions.HttpVCSCommunicationError(repr(response.content))
HttpVCSCommunicationError: '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR noshade size="1px">\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://127.0.0.1:10004/git">http://127.0.0.1:10004/git</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nConnection to 127.0.0.1 Failed\n</STRONG>\n</UL>\n\n<P>\nThe system returned:\n<PRE><I> (111) Connection refused</I></PRE>\n\n<P>\nThe remote host or network may be down. Please try the request again.\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n<BR clear="all">\n<HR noshade size="1px">\n<ADDRESS>\nGenerated Mon, 30 Sep 2019 13:16:25 GMT by proxy.ict.uniba.it (squid/2.6.STABLE21)\n</ADDRESS>\n</BODY></HTML>\n'
Already up to date.
In git clone scenario, the repository are corectly cloned.
In git push shenario, the commit is correctly pushed but no email push interaction is fired.
All these comands produce output former output in client console even with ssh.enable_debug_logging = false
in rhodecode.ini
my best,
alessandro.
Updated by Alessandro Ceglie about 5 years ago
[Solved]
Just realized that was about Proxy configuration.
I've added
no_proxy=127.0.0.1
directive to /etc/profile.d/custom.sh on the server and now it works.
Updated by Marcin Kuzminski [CTO] over 4 years ago
- Status changed from New to Resolved
Actions