snmptt does not start
-
One of my pfSenses was caught by the recent repo update self-breakage, and spontaneously decided to uninstall (nearly) all its packages. I have reinstalled them, but now the snmptt daemon won't start, or rather, it does not keep going once started.
When I start it by hand (
/usr/local/sbin/snmptt --daemon
), it dies again after a second or so. This message appears in the log:Could not change to UID: 895, GID: 895
I have no idea what is going on. As a workaround, if I start it as
daemon -u snmptt /usr/local/sbin/snmptt --daemon
, it works. (The effect of this command is that setuid is started as its user and does not need to change identities.) However, this is not reliable because if I change any options in snmptt's configuration page and save, the web UI restarts snmptt, and the restarted process dies again as above.How do I fix this?
-
Never mind, it's a bug in snmptt. As part of yesterday's festivities, the 1.4.2 update reached my box, and that has a bug that keeps it from working in daemon mode (no idea about standalone).
If you find yourself in this situation, see https://sourceforge.net/p/snmptt/bugs/47/ for the fix.