-
Notifications
You must be signed in to change notification settings - Fork 286
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
Can't start endlessh service "Failed at step NAMESPACE", "status=1/FAILURE", "too many arguments" #95
Comments
I just thought to check I then shortened it to |
Hoping this'll help diagnose the issue...
The output from that includes the line: I then thought maybe if I start the service as root...?
...guess not. |
Found this, which suggested running
I then found issue 39, in which the OP (like me) didn't do the commenting as required for ports <1024. When I first read that, I thought that meant to have endlessh operate on ALL ports under 1024 (i.e. port 1, 2, 3, ... 1022, 1023). Of course, on a second-read, I realise it means "if I want endlessh to work on ANY port under 1024, I have to do it. endlessh.service now contains:
I then tried to run I then ran ...but nope, still getting that status=1/FAILURE error when I check the status of the endlessh service.
...that's about all I can think of to try. Hopefully someone smarter than I knows what I'm doing wrong... |
Ok, I might be getting closer...
I only just saw the StandardOutput and StandardError fields, so I populated them and removed them from the ExecStart line.
...and attempting to connect to port 22 from my other computer results in it getting stuck in the tarpit. However, I note that the output is not going into /home/david/endlessh/endlessh.log; the only lines that are currently in that file are from the last time I tried to manually run Any ideas please on how to get the output into the correct files? Thanks. |
Got it. This explains... All I needed to do was add the file: at the start of the path to each file. |
THANK YOU. This helped me tremendously. |
Hello.
I'm having a similar to issue 66 and 53, but I can't figure out a solution by myself.
Running Debian 12. Installed endlessh using the apt package manager, i.e.
apt install endlessh
Config files and the endless program itself don't seem to be installed in the same directories as per the documentation (presumably because it was installed with the Debian package manager). Finding documentation for Debian specifically is ...challenging.
sudo endlessh -v -p 22
...works perfectly fine. I can attempt to log in from another machine and I can't get access, as expected.
I then tried to create the config file, log file, and error file in a folder in my user directory, i.e.:
I then copied the sample configuration file contents from your documentation into /home/david/endlessh/config, except I changed to port 22 and LogLevel to 1. Otherwise, the config file is identical.
systemctl status endlessh
shows the .service file is located at /lib/systemd/system/endlessh.service.sudo nano /lib/systemd/system/endlessh.service
I then changed the ExecStart line to:ExecStart=/usr/bin/endlessh -f /home/david/endlessh/config -v > /home/david/endlessh/endlessh.log 2> /home/david/endlessh/endlessh.err
The entire contents of /lib/systemd/system/endlessh.service is:
(Note I have tried this both with and without the
InaccessiblePaths=/run /var
line being commented-out, but both times I had the same issue)I then ran
sudo systemctl --now enable endlessh
. The stdout was:I then ran systemctl status endlessh. The first time, the stdout contained "status=226/NAMESPACE". I went Googling and found the above-mentioned issues 53 and 66. They advised to comment-out the
InaccessiblePaths
line. Then I triedsudo systemctl --now enable endlessh
again, with the following stdout:I also tried a system reboot at this point, just in case something wasn't working properly and needed to be restarted, but again, I ended up with the same error message as above.
If I try to run
sudo endlessh -v > /home/david/endlessh/endlessh.log 2> /home/david/endlessh/endlessh.err
manually, it works perfectly, and the file at /home/david/endlessh/endlessh.log is populated with log lines (but obviously this is not running as a service in the background, so isn't ideal).Any idea what I'm doing wrong please?
Thanks.
P.S.: I'm a noob when it comes to services, so I'm assuming PEBKAC...
The text was updated successfully, but these errors were encountered: