Danbooru

Default Data/Size Upload Limit?

Posted under General

Hello, a few friends and I have recently made a fresh install of the danbooru software running on a Debian server, but we seem to be running into a problem where the message "Error: Internal error. Try uploading again." is given after a few uploads. Even after setting the config.log_level to :debug in environment.rb, none of the logs seem to show any information reflecting the error.

I have tested the situation by restarting the server and reproducing the situation using various images and it seems to be that the software just refuses to accept new images after a certain amount of data, certainly less than three megabytes, is uploaded. I can upload a good handful of 100KB images before producing the error, or only a few 500KB images. Throwing a single 3MB image in the upload produces the error straight-away.

I have torn through all of the configs I could find but while I see limit options for comments, searches, etc. I don't see anything that would cause a limitation based on the number of uploads or on the cumulative size of uploads.

If anyone could help me rectify this, or even just provide some insight into what the problem might be derived from, that would be amazing. It's possible there is some setting/config somewhere that I have missed, but the more time goes on, the more I doubt I've missed anything that obvious.

Updated by albert

The Danbooru code doesn't have any hard limits. The existence of uploads that are tens of megabytes proves that.

My first guess is that you have a limit set in your Apache configs. My second guess is that your system has limited memory and when the resizer tries to resize large images it barfs.

Try uploading a 3MB zip file and see if that works consistently. If so, you need more memory. You can try disabling image samples.

1