-
-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Description
- Server OS (Operating System) - preferably Debian 12: Debian 12
- On which OS you run cmdeploy: nixos
- chatmail/relay version:
6e28cf9ca1622fc603487fd389b68baa2b8e8ac8
Expected behavior
The script was supposed not to crash
Actual behavior
It crashed with this traceback:
--> Disconnecting from hosts...
You can try out the relay by talking to this echo bot:
cat: /var/lib/echobot/invite-link.txt: No such file or directory
Traceback (most recent call last):
File "/home/matteo/Downloads/src/relay/venv/bin/cmdeploy", line 7, in <module>
sys.exit(main())
^^^^^^
File "/home/matteo/Downloads/src/relay/cmdeploy/src/cmdeploy/cmdeploy.py", line 360, in main
res = args.func(args, out, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/matteo/Downloads/src/relay/cmdeploy/src/cmdeploy/cmdeploy.py", line 95, in run_cmd
sshexec(
File "/home/matteo/Downloads/src/relay/cmdeploy/src/cmdeploy/sshexec.py", line 70, in __call__
raise self.FuncError(data)
cmdeploy.sshexec.FuncError: Traceback (most recent call last):
File "/root/from-cmdeploy/remote/_sshexec_bootstrap.py", line 18, in _handle_one_request
res = func(**kwargs)
^^^^^^^^^^^^^^
File "/root/from-cmdeploy/remote/rshell.py", line 10, in shell
return check_output(command, **args).decode().rstrip()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'cat /var/lib/echobot/invite-link.txt' returned non-zero exit status 1.
Steps to reproduce the problem:
scripts/cmdeploy runpointed to a fresh installed VM
Solution
mkdir /var/lib/echobotthat was missing on the server- now
scripts/cmdeploy runworks as expected
Metadata
Metadata
Assignees
Labels
No labels