Open bilogic opened 5 months ago
Same problem faced by me too. I am also running inside docker
I don't really have any way to troubleshoot this. And I don't see anything amiss in that log besides strange pyzor exit 1 but then seems to report that it's OK. 🤷🏼
Does it still crash if Pyzor is disabled?
Does someone have a Docker container I can try it in?
Thanks for responding. Right now, I have a way to move forward - where it does not crash -- when I start it from command line, instead of let it starting it via systemd.
When started via systemd, it shows:
Oct 31 19:33:03 <host> systemd[1]: Starting Spam Proxy Daemon...
Oct 31 19:33:03 <host> systemd[1]: Started Spam Proxy Daemon.
Oct 31 19:33:08 <host> spampd[4246]: Process Backgrounded
Oct 31 19:33:08 <host> spampd[4246]: 2024/10/31-19:33:08 SpamPD (type Net::Server::PreForkSimple) starting! pid(4246)
Oct 31 19:33:08 <host> spampd[4246]: Binding to TCP port 10025 on host 127.0.0.1 with IPv4
Oct 31 19:33:08 <host> spampd[4246]: Setting gid to "120 120"
Oct 31 19:33:08 <host> spampd[4246]: Setting uid to "116"
Oct 31 19:33:08 <host> spampd[4246]: 2024/10/31-19:33:08 Server closing!
Oct 31 19:33:09 <host> systemd[1]: spampd.service: Deactivated successfully.
Oct 31 19:33:09 <host> systemd[1]: spampd.service: Consumed 2.042s CPU time.
You can see it is crashing. after 2s
But if you run this from command line like:
# export SPAMPD_ARGS="--pid=/var/run/spampd/spampd.pid --tagall --port=10025 --host=127.0.0.1 --relayport=10026 --relayhost=127.0.0.1 --children=3 --logsock=unix --maxsize=2000 --user=spampd --group=spampd"
# /usr/sbin/spampd --setsid $SPAMPD_ARGS
this starts fine.
Right now, I haven't spent more time. But I will do it this weekend and share more details.
Thanks for the added details.
Which SpamPD version are you running? Seems like older than current release (from the logs)? If so, I recommend trying 2.61 which has bug fixes and lots of logging improvements which may help here. It should be a drop-in replacement for the current script.
Please do update, when you have time, on how it works out or what new you can learn, thanks! -Max
Logs
Command
I'm trying to contain miab in docker and spampd would keep restarting, so I dug into it and found the command. The command exits with
1
when Iecho $?
, but I can't seem to identify the issue from the logs.The closest I can pick out is pyzor seems to exit with 1.
Would be most grateful if someone can point it out to me. Thank you.