postal icon indicating copy to clipboard operation
postal copied to clipboard

Status Pending

Open sahilsunesara opened this issue 9 years ago • 23 comments

Hello

I have sent some email's, but it shows pending only. Could you please tell me what will be the reason for this pending status

sahilsunesara avatar Jun 06 '17 06:06 sahilsunesara

I have the same problem. I restarted postal but the worker seems to be crashed somehow:

|| worker || Quantity 1 || Command bundle exec rake postal:worker || Respawning 5 every 3600 seconds || Restart mode start-term || Log path none specified || Address/Port none || => worker.1 Stopping 25/05/2017 pid:5468 respawns:0 port:- tag:- || => worker.2 Running 11:36 pid:22426 respawns:0 port:- tag:-

TrollAH avatar Jun 07 '17 09:06 TrollAH

@TrollAH have you considered restarting the entire server to clear the failed processes?

willpower232 avatar Jun 07 '17 09:06 willpower232

Still, I have been waiting for the reply. Please reply me that why it shows pending status. Also, it's show's soft fail and then shows sent what will be the reason?

sahilsunesara avatar Jun 13 '17 14:06 sahilsunesara

Pending means it has not been picked up by a worker yet. Make sure your worker is running.

A soft-fail can be expanded to view the details, reasons may vary but are usually because the IP you are sending from has never sent an email before causing recieving mail servers to be suspicous, the next try it will probably go through and be sent succesfully.

stayallive avatar Jun 13 '17 14:06 stayallive

Yes, my work is running but it's alway show pending

sahilsunesara avatar Jun 13 '17 14:06 sahilsunesara

can you run postal status and show us everything it says?

willpower232 avatar Jun 13 '17 19:06 willpower232

Procodile Version 1.0.16 Application Root /opt/postal/app Supervisor PID 1773 Started 2017-06-13 15:50:24 +0200

|| 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 15:50 pid:1779 respawns:0 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.5 Running 18:19 pid:4895 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.5 Running 18:19 pid:4908 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.1 Running 18:19 pid:4899 respawns:0 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.5 Running 18:19 pid:4907 respawns:0 po rt:- tag:-

sahilsunesara avatar Jun 14 '17 08:06 sahilsunesara

did you remove the dates from the || =>lines or were they missing from your output? Mine looks like this:

|| 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      08/06/2017   pid:30654    respawns:0      port:-        tag:-

It might be worth giving yourself two workers to see what happens, add this to your postal.yml and then postal restart:

workers:
  quantity: 2

willpower232 avatar Jun 14 '17 09:06 willpower232

how to make quantity: 2?

I didn't remove anything....I just installed with the help of quick install command line

sahilsunesara avatar Jun 14 '17 09:06 sahilsunesara

You need to change /opt/postal/config/postal.yml and add the following lines:

workers:
  quantity: 2

willpower232 avatar Jun 14 '17 09:06 willpower232

I have added into postal.yml and now show's

  • smtp.1 is not running (Unknown)

|| 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 15:50 pid:1779 respawns:0 port:- tag:-

sahilsunesara avatar Jun 14 '17 09:06 sahilsunesara

can you send the whole postal status please

willpower232 avatar Jun 14 '17 10:06 willpower232

Procodile Version 1.0.16 Application Root /opt/postal/app Supervisor PID 1738 Started 2017-06-14 12:33:18 +0200

  • smtp.1 is not running (Unknown)

|| 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:42 pid:2268 respawns:1 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.6 Running 12:42 pid:2249 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.6 Running 12:42 pid:2261 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 Unknown 12:42 pid:2170 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.6 Running 12:42 pid:2260 respawns:0 port:- tag:-

sahilsunesara avatar Jun 14 '17 10:06 sahilsunesara

can you try postal stop and then waiting a few minutes before using postal start?

willpower232 avatar Jun 14 '17 10:06 willpower232

yes I tried to stop and start also tried restart VPS and start postal

I also would like to know from you that how many emails I can send using postal? My VPS configuration is 2 vCores 2.4 GHz 8 GB RAM 40 GB SSD Local RAID 10

sahilsunesara avatar Jun 14 '17 10:06 sahilsunesara

You will have to examine the log files in /opt/postal/log/ to find out why SMTP isn't working properly.

You should be able to send plenty of email, we have sent hundreds using half of that RAM.

willpower232 avatar Jun 14 '17 11:06 willpower232

did you remove the dates from the || =>lines or were they missing from your output? Mine looks like this:

I believe if it was started today, it will show the time rather than thee date.

catphish avatar Jun 15 '17 08:06 catphish

It's very strange that SMTP isn't running. Definitely check the logs, particularly smtp_server.log for clues as to why it's not starting.

catphish avatar Jun 15 '17 08:06 catphish

hello

i have reinstall my vps and again install postal using quick installation command but still i can see this postal status

root@vps422366:~# postal restart Restarted web.1 Restarted worker.1 -> worker.2 Restarted cron.1 -> cron.2 Restarted smtp.1 Restarted requeuer.1 -> requeuer.2 root@vps422366:~# postal status Procodile Version 1.0.16 Application Root /opt/postal/app Supervisor PID 24800 Started 2017-06-15 18:58:19 +0200

|| 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 18:58 pid:24806 respawns:0 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 18:58 pid:24869 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 18:58 pid:24880 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 Running 18:58 pid:24873 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 18:58 pid:24881 respawns:0 port:- tag:-

how to resolve this ?

sahilsunesara avatar Jun 15 '17 17:06 sahilsunesara

how to resolve this ?

I'm afraid I don't understand what the problem is. It appears that all processes are marked as running:

|| => web.1 Running 18:58 pid:24806 respawns:0 port:- tag:-
|| => worker.2 Running 18:58 pid:24869 respawns:0 port:- tag:-
|| => cron.2 Running 18:58 pid:24880 respawns:0 port:- tag:-
|| => smtp.1 Running 18:58 pid:24873 respawns:0 port:- tag:-
|| => requeuer.2 Running 18:58 pid:24881 respawns:0 port:- tag:-

Is something not working correctly?

catphish avatar Jun 15 '17 17:06 catphish