archlinux / contrib

Arch contrib scripts
GNU General Public License v2.0
64 stars 19 forks source link

checkservices: Error:: Unable to read maps file of dropbear.service for pid XXXXXXX. #48

Closed ProBackup-nl closed 2 years ago

ProBackup-nl commented 2 years ago

For dropbear the checkservices script seems unable to pickup the correct pid for the service.

# checkservices
:: Run pacdiff
:: Reload systemd
:: Services with broken maps files
Error:: Unable to read maps file of dropbear.service for pid 1259966.
...
# systemctl status dropbear
* dropbear.service - Dropbear SSH Server
     Loaded: loaded (/usr/lib/systemd/system/dropbear.service; enabled; vendor preset: disabled)
     Active: active (running) since Wed 2022-02-23 09:39:48 CET; 52min ago
   Main PID: 1259409 (dropbear)
...
# checkservices
:: Run pacdiff
:: Reload systemd
:: Services with broken maps files
Error:: Unable to read maps file of dropbear.service for pid 1260860.
Found: 0
# pacman -Q archlinux-contrib
archlinux-contrib 20210710-1
lahwaacz commented 2 years ago

It's because when you ssh into your server with dropbear, the client session will run in the same cgroup as dropbear.service. So in this case checkservices does not only check broken maps files of the dropbear daemon, but everything running in its cgroup, including all user commands. I don't know why it gave the error, probably some user process exited before checkservices managed to check the PID in the loop. Note that if you restart dropbear.service, all sessions will be terminated so this is probably not what you want anyway.

Foxboron commented 2 years ago

I don't see anything actionable. Closing.