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

nuvlabox_add_ssh_key job failed after NB restart #235

Open
konstan opened this issue May 5, 2022 · 0 comments
Open

nuvlabox_add_ssh_key job failed after NB restart #235

konstan opened this issue May 5, 2022 · 0 comments
Labels

Comments

@konstan
Copy link
Contributor

konstan commented May 5, 2022

User restarted the NB and how sees this error message on the NB page.

ContainerError-Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/nuvla/job/executor/executor.py", line 70, in _process_jobs
    return_code = action_instance.do_work()
  File "/usr/local/lib/python3.8/site-packages/nuvla/job/actions/nuvlabox_add_ssh_key.py", line 54, in do_work
    return self.add_ssh_key()
  File "/usr/local/lib/python3.8/site-packages/nuvla/job/actions/nuvlabox_add_ssh_key.py", line 38, in add_ssh_key
    r = connector.nuvlabox_manage_ssh_key('add-ssh-key', pubkey)
  File "/usr/local/lib/python3.8/site-packages/nuvla/connector/connector.py", line 15, in wrapper
    raise e
  File "/usr/local/lib/python3.8/site-packages/nuvla/connector/connector.py", line 13, in wrapper
    result = f(self, *f_args, **f_kwargs)
  File "/usr/local/lib/python3.8/site-packages/nuvla/connector/nuvlabox_connector.py", line 225, in nuvlabox_manage_ssh_key
    r = docker.from_env().containers.run(
  File "/usr/local/lib/python3.8/site-packages/docker/models/containers.py", line 848, in run
    raise ContainerError(
docker.errors.ContainerError: Command 'sh -c 'echo -e "${SSH_PUB}" >> /rootfs//home/pi/.ssh/authorized_keys && echo Success'' in image 'alpine' returned non-zero exit status 1: b"sh: can't create /rootfs//home/pi/.ssh/authorized_keys: nonexistent directory\n"

Screenshot 2022-05-05 at 14 21 56

@konstan konstan added the T5 Bug label May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant