Hello,
Everything was working fine, but it stopped since yesterday (discovered it today)
Emails are not being send.
root@domain:~# postal status
Procodile Version 1.0.18
Application Root /opt/postal/app
Supervisor PID 2294
Started 2018-04-10 12:59:07 +0000
|| web
|| Quantity 1
|| Command bundle exec puma -C config/puma.rb
|| Respawning 5 every 3600 seconds
|| Restart mode usr1
|| Log path none specified
|| Address/Port none
|| => web.1 Running 12:59 pid:2300 respawns:0 po rt:- tag:-
|| fast
|| Quantity 1
|| Command bundle exec rake postal:fast_server
|| Respawning 5 every 3600 seconds
|| Restart mode term-start
|| Log path none specified
|| Address/Port none
|| => fast.4 Failed 13:17 pid:3172 respawns:5 po rt:- tag:-
|| worker
|| Quantity 1
|| Command bundle exec ruby script/worker.rb
|| Respawning 5 every 3600 seconds
|| Restart mode start-term
|| Log path none specified
|| Address/Port none
|| => worker.4 Running 13:17 pid:3055 respawns:0 po rt:- tag:-
|| cron
|| Quantity 1
|| Command bundle exec rake postal:cron
|| Respawning 5 every 3600 seconds
|| Restart mode term-start
|| Log path none specified
|| Address/Port none
|| => cron.4 Running 13:17 pid:3067 respawns:0 po rt:- tag:-
|| smtp
|| Quantity 1
|| Command bundle exec rake postal:smtp_server
|| Respawning 5 every 3600 seconds
|| Restart mode usr1
|| Log path none specified
|| Address/Port none
|| => smtp.3 Stopped 13:17 pid:3160 respawns:5 po rt:- tag:-
|| => smtp.4 Failed 13:17 pid:3174 respawns:5 po rt:- tag:-
|| requeuer
|| Quantity 1
|| Command bundle exec rake postal:requeuer
|| Respawning 5 every 3600 seconds
|| Restart mode term-start
|| Log path none specified
|| Address/Port none
|| => requeuer.4 Running 13:17 pid:3069 respawns:0 po rt:- tag:-
root@domain:~#
Can you try stopping Postal and then running setcap from here: https://github.com/atech/postal/wiki/Installation#preparing-your-operating-system
I stopped the Postal using postal stop
After that I ran the line:
sudo setcap 'cap_net_bind_service=+ep' /usr/bin/ruby2.3
Don't know if it did anything, after that postal restart
root@domain:~# postal status
Procodile Version 1.0.18
Application Root /opt/postal/app
Supervisor PID 3925
Started 2018-04-10 14:04:26 +0000
- fast.2 is not running (Failed)
- smtp only has 2 instances (should have 1)
- smtp.2 is not running (Failed)
|| web
|| Quantity 1
|| Command bundle exec puma -C config/puma.rb
|| Respawning 5 every 3600 seconds
|| Restart mode usr1
|| Log path none specified
|| Address/Port none
|| => web.1 Running 14:04 pid:3931 respawns:0 port:- tag:-
|| fast
|| Quantity 1
|| Command bundle exec rake postal:fast_server
|| Respawning 5 every 3600 seconds
|| Restart mode term-start
|| Log path none specified
|| Address/Port none
|| => fast.2 Failed 14:09 pid:4253 respawns:5 port:- tag:-
|| worker
|| Quantity 1
|| Command bundle exec ruby script/worker.rb
|| Respawning 5 every 3600 seconds
|| Restart mode start-term
|| Log path none specified
|| Address/Port none
|| => worker.2 Running 14:09 pid:4158 respawns:0 port:- tag:-
|| cron
|| Quantity 1
|| Command bundle exec rake postal:cron
|| Respawning 5 every 3600 seconds
|| Restart mode term-start
|| Log path none specified
|| Address/Port none
|| => cron.2 Running 14:09 pid:4172 respawns:0 port:- tag:-
|| smtp
|| Quantity 1
|| Command bundle exec rake postal:smtp_server
|| Respawning 5 every 3600 seconds
|| Restart mode usr1
|| Log path none specified
|| Address/Port none
|| => smtp.1 Stopped pid:4025 respawns:5 port:- tag:-
|| => smtp.2 Failed 14:09 pid:4255 respawns:5 port:- tag:-
|| requeuer
|| Quantity 1
|| Command bundle exec rake postal:requeuer
|| Respawning 5 every 3600 seconds
|| Restart mode term-start
|| Log path none specified
|| Address/Port none
|| => requeuer.2 Running 14:09 pid:4173 respawns:0 port:- tag:-
root@domain:~#
can you send us the output of netstat -lnp?
Here's the output:
netsat lnp.txt
Github is generating those strikethroughs -_-
Yes, you should include it in backticks or remove the tildes ~
Your netstat suggests you have several other things than Postal running on this server. In order for Postal to function properly, it must be the only purpose of the server so that it can bind to the system ports for SMTP and web.
I am not running any other applications on this server, just Postal.
I didn't touch the server since yesterday, when it stopped working (and I discovered this just today)
So I have no idea :/
I also don't understand:
Sending Test messages from the interface works fine
But when I go to for example the Reset pw page and try to reset my pw to see if emails are being sent, I get this:
We're sorry, but something went wrong.
If you are the application owner check the logs for more information.
Your netstat suggests you are running postfix mail server and PHP which means your server is obviously doing other things.
If you stop, disable, or remove Postfix, that should alleviate some of your problems.
I uninstalled Postfix, it seems to be working now.
Thanks very much.
Even though SMTP is working now, I get this (maybe after uninstalling php this will go better)
root@domain:~# postal status
Procodile Version 1.0.18
Application Root /opt/postal/app
Supervisor PID 2282
Started 2018-04-10 14:42:09 +0000
|| web
|| Quantity 1
|| Command bundle exec puma -C config/puma.rb
|| Respawning 5 every 3600 seconds
|| Restart mode usr1
|| Log path none specified
|| Address/Port none
|| => web.1 Running 14:42 pid:2288 respawns:0 port:- tag:-
|| fast
|| Quantity 1
|| Command bundle exec rake postal:fast_server
|| Respawning 5 every 3600 seconds
|| Restart mode term-start
|| Log path none specified
|| Address/Port none
|| => fast.2 Failed 16:19 pid:4721 respawns:5 port:- tag:-
|| worker
|| Quantity 1
|| Command bundle exec ruby script/worker.rb
|| Respawning 5 every 3600 seconds
|| Restart mode start-term
|| Log path none specified
|| Address/Port none
|| => worker.2 Running 16:19 pid:4641 respawns:0 port:- tag:-
|| cron
|| Quantity 1
|| Command bundle exec rake postal:cron
|| Respawning 5 every 3600 seconds
|| Restart mode term-start
|| Log path none specified
|| Address/Port none
|| => cron.2 Running 16:19 pid:4656 respawns:0 port:- tag:-
|| smtp
|| Quantity 1
|| Command bundle exec rake postal:smtp_server
|| Respawning 5 every 3600 seconds
|| Restart mode usr1
|| Log path none specified
|| Address/Port none
|| => smtp.1 Stopped pid:2378 respawns:0 port:- tag:-
|| => smtp.2 Running 16:19 pid:4647 respawns:0 port:- tag:-
|| requeuer
|| Quantity 1
|| Command bundle exec rake postal:requeuer
|| Respawning 5 every 3600 seconds
|| Restart mode term-start
|| Log path none specified
|| Address/Port none
|| => requeuer.2 Running 16:19 pid:4657 respawns:0 port:- tag:-
root@domain:~#
Okay, here's another update:
I removed php-fpm following the instructions found in this article: https://www.howtoinstall.co/en/ubuntu/xenial/php-fpm?action=remove
This is the result (think everything is working now):
root@domain:~# postal status
Procodile Version 1.0.18
Application Root /opt/postal/app
Supervisor PID 2282
Started 2018-04-10 14:42:09 +0000
|| web
|| Quantity 1
|| Command bundle exec puma -C config/puma.rb
|| Respawning 5 every 3600 seconds
|| Restart mode usr1
|| Log path none specified
|| Address/Port none
|| => web.1 Running 14:42 pid:2288 respawns:0 port:- tag:-
|| fast
|| Quantity 1
|| Command bundle exec rake postal:fast_server
|| Respawning 5 every 3600 seconds
|| Restart mode term-start
|| Log path none specified
|| Address/Port none
|| => fast.3 Failed 18:09 pid:6695 respawns:5 port:- tag:-
|| worker
|| Quantity 1
|| Command bundle exec ruby script/worker.rb
|| Respawning 5 every 3600 seconds
|| Restart mode start-term
|| Log path none specified
|| Address/Port none
|| => worker.3 Running 18:09 pid:6626 respawns:0 port:- tag:-
|| cron
|| Quantity 1
|| Command bundle exec rake postal:cron
|| Respawning 5 every 3600 seconds
|| Restart mode term-start
|| Log path none specified
|| Address/Port none
|| => cron.3 Running 18:09 pid:6640 respawns:0 port:- tag:-
|| smtp
|| Quantity 1
|| Command bundle exec rake postal:smtp_server
|| Respawning 5 every 3600 seconds
|| Restart mode usr1
|| Log path none specified
|| Address/Port none
|| => smtp.2 Running 18:09 pid:6632 respawns:0 port:- tag:-
|| requeuer
|| Quantity 1
|| Command bundle exec rake postal:requeuer
|| Respawning 5 every 3600 seconds
|| Restart mode term-start
|| Log path none specified
|| Address/Port none
|| => requeuer.3 Running 18:09 pid:6641 respawns:0 port:- tag:-
root@domain:~#
The fast server is for click tracking so if you don't have a second IP on your server to use for the click tracking, you should probably disable it in postal.yml to make the error go away.
Thanks a lot for the support man, much appreciated