Internal Server Errors on paste?
beyarkay opened this issue · 5 comments
Description
Hi! I'm getting 500s when I try to paste something:
$ echo "some text to paste" | curl -X POST -F "expires=31536000" -F 'format=url' -F 'content=<-' https://dpaste.org/api/ > pastebin.txt
$ cat pastebin.txt
...html of the 500 error page...
I get the same error trying to paste on https://dpaste.org/ by just clicking the "paste snippet" button.
Let me know if I can help out! I'm using this for my project eskom-calendar so am happy to assist.
Same problem here.
I've found the root cause, it was because of a misconfiguration for pgsql log statement. The default config on this server was to log all;
https://postgresqlco.nf/doc/en/param/log_statement/
Recommendations
For exhaustive performance analysis on test systems, set to 'all'. Most production setups will just want to use 'ddl' to make sure to record database-altering actions, but very secure setups may want to use 'mod' or even 'all'. Can produce a lot of log volume.
I've purged the logs and re-configure pgsql, everything should be fine now 🙂
Thanks!