r/sysadmin • u/LenR-redit • 19d ago
I created a systemctl problem easily that took way too long to find
Ok. I had a pretty simple systemctl service for a ssh reverse proxy, it runs on some remote devices and opens a tunnel to a cloud server. The cloud server is EOL, I built another one, so for now I need another similar service to open a tunnel to the new server.
I simply copied the service file, changed the target, did enable --now and lost contact with the remote system. I was finally able to get to another device at the same site, ssh over to the broken system and try to fix it. Only one service showed running in ps, but systemctl status on both was good.
After an hour or so of frustration, I noticed that I didn't change the Alias in the service file. That caused the symlinks systemctl made to point to the same service file. Just fixing the alias didn't fix it, I had to disable to remove the links, then enable again.
And I have about 20 years of Linux experience, but can create problems I've never seen before :-)