nunofgs / docker-octoprint

Dockerfile to set up Octoprint with x86, armv6, armv7 and arm64 support!
https://hub.docker.com/r/nunofgs/octoprint/
GNU Affero General Public License v3.0
58 stars 32 forks source link

can't register to Polar Cloud #17

Closed gdachs closed 5 years ago

gdachs commented 5 years ago

I get this error message if I try to register to PolarCloud: 2019-05-11 20:10:53,852 - octoprint.plugins.polarcloud - ERROR - Failed to run system command: ssh-keygen -e -m PEM -f /data/data/polarcloud/p3d_key > /data/data/polarcloud/p3d_key.pub Traceback (most recent call last): File "/data/plugins/lib/python2.7/site-packages/octoprint_polarcloud/__init__.py", line 291, in _system p = sarge.run(command_line, stderr=sarge.Capture()) File "/usr/local/lib/python2.7/site-packages/octoprint/util/fixes.py", line 24, in decorated_function return f(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/sarge/__init__.py", line 1462, in run p.run(input=input, async_=async_) File "/usr/local/lib/python2.7/site-packages/sarge/__init__.py", line 156, in __exit__ self.close() File "/usr/local/lib/python2.7/site-packages/sarge/__init__.py", line 1150, in close stream.close() IOError: [Errno 9] Bad file descriptor The Readme is referring to an older version of pyOpenSSL on Windows, not very helpful.

What would be the right way to investigate and fix this?

gdachs commented 5 years ago

Is it just as easy as adding openssh-client to the dependencies in the Dockerfile?

gdachs commented 5 years ago

I used the console of the container and installed openssh-client and I can register to Polar Cloud. As this is a one time job, there is no problem that your next image will overwrite it.

nunofgs commented 5 years ago

@gdachs FWIW I don't see a problem with adding openssh-client. Adds a little bit of size to the image but worth it in this case. It should be available on Docker hub momentarily.