DarrenOfficial/dpaste

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.

It appears that the VM has ran out of storage...
inf

Everything should have been sorted out by now, I've increased the storage size from 40 -> 80 I'll investigate what's causing this sudden increase in storage size shortly... because this is really weird.

df

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;

pgsql

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!