This looks like a problem with connection to vcsserver.
- make sure it’s actually running
- make also sure that no proxy/firewall is blocking it.
i see a squid proxy errors in there, so might be some port conflict ?
This looks like a problem with connection to vcsserver.
I checked it using the command rccontrol status and got the following result.
- NAME: community-1 - STATUS: RUNNING logs:/home/aspire/.rccontrol/community-1/community.log - VERSION: 4.12.2 Community - VCS: vcsserver-1 - URL: http://127.0.0.1:10020 - CONFIG: /home/aspire/.rccontrol/community-1/rhodecode.ini - NAME: vcsserver-1 - STATUS: RUNNING logs:/home/aspire/.rccontrol/vcsserver-1/vcsserver.log - VERSION: 4.12.2 VCSServer - URL: http://127.0.0.1:10010 - CONFIG: /home/aspire/.rccontrol/vcsserver-1/vcsserver.ini
the status says the vcsserver is running. I have choosen the default ports that are suggested by rhodecode while installing it. I have no idea on ports , what to use and what not to use. I welcome your comments!
Can you try doing on local machine where rhodecode is running:
What does it return ?
Here it is,
<body id=ERR_CONNECT_FAIL> <div id="titles"> <h1>ERROR</h1> <h2>The requested URL could not be retrieved</h2> </div> <hr> <div id="content"> <p>The following error was encountered while trying to retrieve the URL: <a href="http://127.0.0.1:10010/status">http://127.0.0.1:10010/status</a></p> <blockquote id="error"> <p><b>Connection to 127.0.0.1 failed.</b></p> </blockquote> <p id="sysmsg">The system returned: <i>(111) Connection refused</i></p> <p>The remote host or network may be down. Please try the request again.</p>
I think you are correct, what I did is, for both vcsserver and rhodecode community installations, I used the same ip 127.0.0.1 but the port numbers I used are 10010 and 10020.
For me it looks like the ports are OK, however on http://127.0.0.1:10010 something is intercepting connections, may it be a proxy ? (squid) ?
This prevents rhodecode to connect to vcsserver
when I run http://127.0.0.1:10010/ on browser, I am seeing a screen with three tabs, JSON, Raw Data, Headers and the staus under JSON tab is “OK”.
SO it must be something else than vcsserver. It returns 404 by default if you enter it with a browser…
You can maybe change the port inside vcsserver.ini to 10080 ? and check again ? You also need to change it in rhodecode.ini under
I have changed those parameters in both the ini files. When I tried
I still find the same errors. Okay, let me ask my question otherwise. In order to run both the vcsserver and rhodecode on the same machine how should we choose the ip and ports?
Basically RhodeCode tires to detect any two free ports starting from 10010 and above. I think in your case there’s a proxy that intercepts those connections i’d check this. Maybe it some sort of security precaution on your side.
@marcin, Yeah, we have a proxy and may be that is blocking. In that case what should i change or do, so that the rhodecode can work?
as part of curl http://127.0.0.1:10030 I get the following encoded message
<p>Your cache administrator is <a href="mailto:webmaster?subject=CacheErrorInfo%20-%20ERR_CONNECT_FAIL&body=CacheHost%3A%20proxy1%0D%0AErrPage%3A%20ERR_CONNECT_FAIL%0D%0AErr%3A%20(111)%20Connection%20refused%0D%0ATimeStamp%3A%20Thu,%2031%20May%202018%2011%3A36%3A03%20GMT%0D%0A%0D%0AClientIP%3A%20172.24.188.116%0D%0AServerIP%3A%20127.0.0.1%0D%0A%0D%0AHTTP%20Request%3A%0D%0AGET%20%2F%20HTTP%2F1.1%0AHost%3A%20127.0.0.1%3A10030%0D%0AUser-Agent%3A%20curl%2F7.35.0%0D%0AAccept%3A%20*%2F*%0D%0AProxy-Connection%3A%20Keep-Alive%0D%0A%0D%0A%0D%0A">webmaster</a>.</p>
I’m sorry but this i don’t know. You’d need to check your proxy squid configuration. It’s something we really cannot fix on rhodecode side.
Again, I did rccontrol self-destroy, installed from scratch changed the repo path. But I am still getting the same error. But when I read the lines logged in the file community.log line by line I found that rhodecode is trying to create a git repo but what I was trying to create is a svn repo basically.
2018-06-04 11:38:14.370  INFO [rhodecode.lib.auth] user <AuthUser('id:2[admin] ip:127.0.0.1 auth:True')> authenticating with:RHODECODE_AUTH IS authenticated on func AdminReposView:repository_create 2018-06-04 11:38:14.506  ERROR [rhodecode.lib.vcs.client_http] Call to **http://127.0.0.1:10010/git returned non 200 HTTP code: 503** 2018-06-04 11:38:14.506  WARNI [rhodecode.task.create_repo] Exception occurred when creating repository, doing cleanup... Traceback (most recent call last): File "/opt/rhodecode/store/bbjmr1bwgmqsdkajzkmm5hk16al1b3ag-python2.7-rhodecode-enterprise-ce-4.12.2/lib/python2.7/site-packages/rhodecode/lib/celerylib/tasks.py", line 143, in create_repo clone_uri=clone_uri, File "/opt/rhodecode/store/bbjmr1bwgmqsdkajzkmm5hk16al1b3ag-python2.7-rhodecode-enterprise-ce-4.12.2/lib/python2.7/site-packages/rhodecode/model/repo.py", line 832, in _create_filesystem_repo if is_valid_repo_group(repo_path, self.repos_path): File "/opt/rhodecode/store/bbjmr1bwgmqsdkajzkmm5hk16al1b3ag-python2.7-rhodecode-enterprise-ce-4.12.2/lib/python2.7/site-packages/rhodecode/lib/utils.py", line 303, in is_valid_repo_group scm_ = get_scm(os.path.dirname(full_path)) File "/opt/rhodecode/store/bbjmr1bwgmqsdkajzkmm5hk16al1b3ag-python2.7-rhodecode-enterprise-ce-4.12.2/lib/python2.7/site-packages/rhodecode/lib/vcs/utils/helpers.py", line 51, in get_scm found_scms = [(scm, path) for scm in get_scms_for_path(path)] File "/opt/rhodecode/store/bbjmr1bwgmqsdkajzkmm5hk16al1b3ag-python2.7-rhodecode-enterprise-ce-4.12.2/lib/python2.7/site-packages/rhodecode/lib/vcs/utils/helpers.py", line 91, in get_scms_for_path if backend.is_valid_repository(path): File "/opt/rhodecode/store/bbjmr1bwgmqsdkajzkmm5hk16al1b3ag-python2.7-rhodecode-enterprise-ce-4.12.2/lib/python2.7/site-packages/rhodecode/lib/vcs/backends/git/repository.py", line 139, in is_valid_repository **GitRepository(path)** File "/opt/rhodecode/store/bbjmr1bwgmqsdkajzkmm5hk16al1b3ag-python2.7-rhodecode-enterprise-ce-4.12.2/lib/python2.7/site-packages/rhodecode/lib/vcs/backends/git/repository.py", line 69, in __init__ self._init_repo(create, src_url, update_after_clone, bare) File "/opt/rhodecode/store/bbjmr1bwgmqsdkajzkmm5hk16al1b3ag-python2.7-rhodecode-enterprise-ce-4.12.2/lib/python2.7/site-packages/rhodecode/lib/vcs/backends/git/repository.py", line 164, in _init_repo if not self._remote.assert_correct_path(): File "/opt/rhodecode/store/bbjmr1bwgmqsdkajzkmm5hk16al1b3ag-python2.7-rhodecode-enterprise-ce-4.12.2/lib/python2.7/site-packages/rhodecode/lib/vcs/client_http.py", line 125, in f return self._call(name, *args, **kwargs) File "/opt/rhodecode/store/bbjmr1bwgmqsdkajzkmm5hk16al1b3ag-python2.7-rhodecode-enterprise-ce-4.12.2/lib/python2.7/site-packages/rhodecode/lib/vcs/client_http.py", line 144, in _call_with_logging return RemoteRepo._call(self, name, *args, **kwargs) File "/opt/rhodecode/store/bbjmr1bwgmqsdkajzkmm5hk16al1b3ag-python2.7-rhodecode-enterprise-ce-4.12.2/lib/python2.7/site-packages/rhodecode/lib/vcs/exceptions.py", line 181, in wrapper return func(*args, **kwargs) File "/opt/rhodecode/store/bbjmr1bwgmqsdkajzkmm5hk16al1b3ag-python2.7-rhodecode-enterprise-ce-4.12.2/lib/python2.7/site-packages/rhodecode/lib/vcs/client_http.py", line 139, in _call return _remote_call(self.url, payload, EXCEPTIONS_MAP, self._session) File "/opt/rhodecode/store/bbjmr1bwgmqsdkajzkmm5hk16al1b3ag-python2.7-rhodecode-enterprise-ce-4.12.2/lib/python2.7/site-packages/rhodecode/lib/vcs/client_http.py", line 211, in _remote_call raise exceptions.HttpVCSCommunicationError(repr(response.content))
After clicking “Add Repository” I chose the type as “svn” but rhodecode is trying to create a git repo I guess and that ends up in an error. Why may it be though?
The fact that it calls /git url is part of discovery logic, rhodecode first checks if the path you’re trying to create isn’t a git/hg/svn repo. This is why the call to /git is taking place.
The problem seems to be at higher level that something in your env is intercepting connections. Maybe you have some global ENV variable like HTTP_PROXY or similar set ? RhodeCode makes use of those…
Of course you are, we use a proxy here in office and I am getting this error. When I installed rhodecode on my laptop (at home) it worked well no problems. In my office case, how can I solve the problem? my aim is to make it working but I have no idea of what to configure and where exactly I should!!!
could you try this:
vim ~/.rccontrol/supervisor/supervisord.ini # edit lines that starts with environment = PYTHONPATH="" environment = HTTP_PROXY="", PYTHONPATH=""
Please check if that helps, you have to run
rccontrol self-stop --force && rccontrol self-init && rccontrol start "*" after that
I did that, now no error message is logged into the community.log file. But the repository is not created I am still getting the error message in Red banner in repo creation page. When I did curl on the vcsserver link it still returns “The system returned: (111) Connection refused” Error.
can you check also this:
rccontrol ishell community-1
Inside the shell do this:
import os print os.environ
I got a huge JSON file. That includes proxy urls as well. How can this help me?
IT basically means that we somehow need to hide them.
Can you join our slack channel at https://rhodecode.com/join for faster support channel ?
Well I did it! I joined slack! how shall I know you there? I am velu there on slack.