Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection to xxx-yyy.rhcloud.com closed by remote host #8

Open
kaosko opened this issue Dec 1, 2014 · 4 comments
Open

Connection to xxx-yyy.rhcloud.com closed by remote host #8

kaosko opened this issue Dec 1, 2014 · 4 comments

Comments

@kaosko
Copy link

kaosko commented Dec 1, 2014

I'm not sure if there's anything you can do about this a the client end, but I'm consistently getting a "Connection to xxx-yyy.rhcloud.com closed by remote host." several minutes after pushing the changes. The last lines of the stdout are:
remote: CC obj/x86_64-unknown-linux-gnu/opt/plain/erl_gc.o
Connection to xxx-yyy.rhcloud.com closed by remote host.
fatal: The remote end hung up unexpectedly
error: error in sideband demultiplexer
To ssh://48b5973ca369e000156@xxx-yyy.rhcloud.com//git/mobilesurveyreports2.git/
26614e1..4b94f27 master -> master
error: failed to push some refs to 'ssh://48b5973ca369e000156@xxx-yyy.rhcloud.com/
/git/mobilesurveyreports2.git/'

@marianoguerra
Copy link
Owner

maybe it's a timeout thing?

can you check it it happens at a specific time after starting the build?

I think you should ask the openshift guys since it's a problem on their side, but maybe it's just some kind of timeout we are reaching.

@kaosko
Copy link
Author

kaosko commented Dec 1, 2014

Perhaps. I also tried mucking with different timeout settings but didn't find anything suitable. After it fails, I found that the only way to fix it is to ssh to the instance and manually run ./app-root/runtime/repo/.openshift/action_hooks/build. However, that still leaves me with some (permission?) errors when I try to do something with the instance:
[Mon, 01 Dec 2014 07:17:23 GMT] [error] [<0.103.0>] httpd 500 error response:
{"error":"{http_request_failed,"HEAD","http://get.acralyzer.com/distrib-acra-storage/\",\n {error,{error,{conn_failed,{error,eacces}}}}}"}

so I wonder if there's something else I need to run or the latest simply doesn't work with the current version of Openshift?

@kaosko
Copy link
Author

kaosko commented Dec 1, 2014

Are you able to successfully replicate any databases? After manually running ./app-root/runtime/repo/.openshift/action_hooks/build, I can start the couchdb instance and it passes installation verification but I'm not able to replicate any remote database. I asked on the couchdb user list (see http://markmail.org/thread/ywabc4ws3gjnm6nw) and they say it's a permission error, pointing to https://github.com/apache/couchdb/blob/1.6.x/INSTALL.Unix#L232-L248 for a fix. That didn't help but it's likely some permission issue with your couchdb cartridge. Perhaps something has changed either in openshift instance configuration or couchdb version that requires a change in the installation script?

@kaosko
Copy link
Author

kaosko commented Dec 2, 2014

Sure enough, even

1> inets:start().
ok
2> httpc:request(get, {"http://www.erlang.org", []}, [], []).
{error,{failed_connect,[{to_address,{"www.erlang.org",80}},
                        {inet,[inet],eacces}]}}

doesn't work. curl/wget is able to access the same url so looks like it's something in the erlang install. Perhaps it requires write permissions to some specific temp directory but I really don't know anything about erlang and haven't found much by googling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants