DarrenOfficial / dpaste

The Django project driving dpaste.org
https://dpaste.org
MIT License
541 stars 124 forks source link

Internal Server Errors on paste? #246

Closed beyarkay closed 7 months ago

beyarkay commented 7 months ago

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.

some1ataplace commented 7 months ago

Same problem here.

DarrenOfficial commented 7 months ago

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

DarrenOfficial commented 7 months ago

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

DarrenOfficial commented 7 months ago

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 🙂

beyarkay commented 7 months ago

Thanks!