planetfederal / geogig-py

A Python library to use GeoGit
BSD 3-Clause "New" or "Revised" License
24 stars 14 forks source link

Gateway is often unreliable #15

Open ghost opened 10 years ago

ghost commented 10 years ago

Im seeing this all too often when trying to run geogit-py scripts. Mainly on my testing VM (centos). The script is starting the gateway itself. It seems to not happen nearly as often if the gateway is started manually.

[vagrant@vagrant-centos64 geogit-testing]$ python createrepo.py england_1921_admcounties /home/vagrant/data/geogit-testing/england_shps/england_1921_admcounties.shp Adding_england_1921_admcounties england_1931_admcounties /home/vagrant/data/geogit-testing/england_shps/england_1931_admcounties.shp Adding_england_1931_admcounties Current last commit Adding_england_1921_admcounties (02/20/14 15:55) ERROR:py4j.java_gateway:Error while sending or receiving. Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/py4j/java_gateway.py", line 478, in send_command raise Py4JError("Answer from Java side is empty") Py4JError: Answer from Java side is empty ERROR:py4j.java_gateway:An error occurred while trying to connect to the Java server Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/py4j/java_gateway.py", line 424, in start self.socket.connect((self.address, self.port)) File "", line 1, in connect error: [Errno 111] Connection refused [vagrant@vagrant-centos64 geogit-testing]$