cancel
Showing results for 
Search instead for 
Did you mean: 
Bert-Schuurman
Mission Specialist
Mission Specialist
  • 1,062 Views

RH124 - ch10s07 | lab finish ssh-review fails

Jump to solution

Dear ROL Support,

I see this while running the command "lab finish ssh-review"

edbsNQDMI1_1733748509.png

Error:
====
[student@workstation
Finishing lab.
N] $ lab finish ssh—review
Checking lab systems
Restoring password authentication in 50-cloud-init.conf on serverb .
— Command did not exit with the expected code
- Expected: O, Received: 255
• Restoring original /etc/ssh/sshd_config on serverb .
Deleting productionl user on servera .
Deleting production2 user on servera .
• Deleting productionl user on serverb .
Deleting production2 user on serverb .
• Removing *kup file ..... ..... ..... ....
• Disabling s±hpass ..... ..... ..... ..... ...............
SUCCESS
FAIL
SUCCESS
SUCCESS
SUCCESS
SUCCESS
SUCCESS
SUCCESS
SUCCESS
====

Has anyone else seen this also?

 

 

1 Solution

Accepted Solutions
Chetan_Tiwary_
Community Manager
Community Manager
  • 1,044 Views

@Bert-Schuurman I too am able to reproduce this issue. I will report this issue to the respective course development team for rectification which will take some time to get it fixed in production.

For the time being as a workaround you can delete your lab env and recreate again to continue with lab exercises. Thank you for your understanding and patience!

Chetan_Tiwary__0-1733772193903.png

 

View solution in original post

0 Kudos
3 Replies
Chetan_Tiwary_
Community Manager
Community Manager
  • 1,045 Views

@Bert-Schuurman I too am able to reproduce this issue. I will report this issue to the respective course development team for rectification which will take some time to get it fixed in production.

For the time being as a workaround you can delete your lab env and recreate again to continue with lab exercises. Thank you for your understanding and patience!

Chetan_Tiwary__0-1733772193903.png

 

0 Kudos
  • 205 Views

I can't find the solution, as the errors I get are as follows:


Running: lab finish ssh-review
FAIL Restoring password authentication on serverb
- An unexpected error ocurred: encountered RSA key, expected OPENSSH key.
- Check /tmp/log/labs/ssh-review or use the 'lab logs' command for details.
Traceback (most recent call last):
File "/home/student/.cache/uv/archive-v0/fCy_k8tUlltMxnxc8HrXH/bin/lab", line 12, in <module>
sys.exit(main())
~~~~^^
File "/home/student/.cache/uv/archive-v0/fCy_k8tUlltMxnxc8HrXH/lib/python3.13/site-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/home/student/.cache/uv/archive-v0/fCy_k8tUlltMxnxc8HrXH/lib/python3.13/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/home/student/.cache/uv/archive-v0/fCy_k8tUlltMxnxc8HrXH/lib/python3.13/site-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/home/student/.cache/uv/archive-v0/fCy_k8tUlltMxnxc8HrXH/lib/python3.13/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/student/.cache/uv/archive-v0/fCy_k8tUlltMxnxc8HrXH/lib/python3.13/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/home/student/.cache/uv/archive-v0/fCy_k8tUlltMxnxc8HrXH/lib/python3.13/site-packages/labs/lab.py", line 378, in finish
grading.prefinish()
~~~~~~~~~~~~~~~~~^^
File "/home/student/.cache/uv/archive-v0/fCy_k8tUlltMxnxc8HrXH/lib/python3.13/site-packages/labs/grading.py", line 44, in prefinish
self.finish()
~~~~~~~~~~~^^
File "/home/student/.cache/uv/archive-v0/fCy_k8tUlltMxnxc8HrXH/lib/python3.13/site-packages/rh0027l/ssh-review.py", line 140, in finish
run_command(
~~~~~~~~~~~^
message="Restoring password authentication on " + _serverb + "",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<6 lines>...
on...'; fi",
^^^^^^^^^^^^
),
^
File "/home/student/.cache/uv/archive-v0/fCy_k8tUlltMxnxc8HrXH/lib/python3.13/site-packages/labs/common/commands/__init__.py", line 52, in ssh_run_command_step
return process, step
^^^^^^^
UnboundLocalError: cannot access local variable 'process' where it is not associated with a value
student@workstation:~$

 

Please help me, as I am unable to continue the course.

Chetan_Tiwary_
Community Manager
Community Manager
  • 163 Views

@luismartin It seems you were able to succesfully grade the lab as ALL PASS but the lab finish script failed due to some reasons ? 

In this case - rebuild your lab and continue with the next assignment. 

0 Kudos
Join the discussion
You must log in to join this conversation.