postal icon indicating copy to clipboard operation
postal copied to clipboard

504 Gateway Timeout

Open sahilsunesara opened this issue 9 years ago • 10 comments

When i start using postal i after some email sent i got 504 Gateway Timeout error and nothing come up... then after i have to hard restart and then start postal...what will be the reason for this?

sahilsunesara avatar Sep 09 '17 11:09 sahilsunesara

You'll have to examine your logs and watch your memory usage to see what is happening

willpower232 avatar Sep 10 '17 19:09 willpower232

@sahilsunesara I encountered this issue running Postal on a rather small DO droplet ($10). The 2 ways I could get it to work were:

  1. Get a bigger server (4GB RAM seems to work fine)
  2. Configure swap space on your server to avoid memory issues.

mohan-nishit avatar Sep 10 '17 19:09 mohan-nishit

More RAM will solve many problems but without studying the log files to understand what caused the issue, it may not be the final answer.

Also please note that enabling swap on SSD based servers can cause issues with reliability and is generally not recommended, please see https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04

willpower232 avatar Sep 10 '17 19:09 willpower232

1...I have 4 GB RAM but still same problem... 2... configure swap space ?

sahilsunesara avatar Sep 12 '17 01:09 sahilsunesara

You'll have to examine your logs

Otherwise it will be difficult to determine the reason.

igerzog avatar Sep 12 '17 05:09 igerzog

which log fine i need to check?

sahilsunesara avatar Sep 12 '17 06:09 sahilsunesara

Good point How to enable logs?

Seem disabled by default

On Sep 12, 2017 2:08 AM, "sahilsunesara" [email protected] wrote:

which log fine i need to check?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/atech/postal/issues/346#issuecomment-328747546, or mute the thread https://github.com/notifications/unsubscribe-auth/AMMA50qF1zRUyvmOaj5fUa4mgwvMktN7ks5shh_ZgaJpZM4PR95p .

shopglobal avatar Sep 12 '17 10:09 shopglobal

All the log files are located here: /opt/postal/logs/

igerzog avatar Sep 12 '17 11:09 igerzog

In default install logs created But disabled

Thank you for all your commits recently. Can you or a community member point me in the right direction as to where to enable/disable logs?

My first instinct is to check postal.yml

On Sep 12, 2017 7:46 AM, "igerzog" [email protected] wrote:

All the log files are located here: /opt/postal/logs/

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/atech/postal/issues/346#issuecomment-328828311, or mute the thread https://github.com/notifications/unsubscribe-auth/AMMA5yuugEel8gHyK3uRy-xzQSNO5RuZks5shm8xgaJpZM4PR95p .

shopglobal avatar Sep 12 '17 11:09 shopglobal

I do not believe the logs need to be enabled.

If there are no logs and you cannot get postal started to create the logs, you should check the system log files.

willpower232 avatar Sep 12 '17 15:09 willpower232