threefoldtecharchive / OpenPublish

0 stars 1 forks source link

openpublish server crashes when pulling repositories (auto-deployment fails) #22

Closed PeterNashaat closed 5 years ago

PeterNashaat commented 5 years ago

issue in the auto-deployment autod3 autod2 autod1

abom commented 5 years ago

Also

Sun 16 10:55:44 GitFactory.py    - 346 - j.clients.git:gitfactory           : git pull ssh://git@github.com/threefoldfoundation/info_tokens.git -> /sandbox/code/github/threefoldfoundation/info_tokens

ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

could not push/pull ssh://git@github.com/threefoldfoundation/info_tokens.git

Do not know where is the problem and if it's github, doing ssh -T git@ssh.github.com didn't timeout.

abom commented 5 years ago

Pulling from github should be handled so that the process continues, also it should be run in a different gevent greenlet.

abom commented 5 years ago

Even when pulling a repository directly:

➜  digitalmeX git:(development) git pull
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

It happens randomly, re-doing git pull worked later!

abom commented 5 years ago

Fixed after removing exit(1) (maybe trying to pull in case of time-out is now working). Just need to make sure gevent monkey patching to subprocess is done with jumpscaleX, but still cannot decide that on my own now (so doing git pull won't block gedis).