Kitsu Setup - Unable to upload pictures

Hi every one,

I’m installing a local kitsu on my server. I followed all the steps from here

My kitsu is working well except for file handling. I cannot upload pictures for my project.
From the web interface, nothing happens. I get the following error in gunicorn_error.log:

ERROR in resources: File was not found for: 114c12b2-ba88-4c1a-9280-4c674eab0d65

I’m not sure on what is creating this error. The configuration section of the documentation is not clear to me, I tried manually setting :

In the file /etc/systemd/system/zou.service, but the behaviour is the same.

Do you have any clue on this ?



Do you have more information from the log files?
Can you show the result of ls /opt/zou/previews?

Here is an output for the previews folder:

/opt/zou/previews$ ls -l
total 12
drwxr-xr-x 3 zou www-data 4096 Dec 7 16:15 ./
drwxr-xr-x 6 zou www-data 4096 Dec 6 15:33 …/
drwxr-xr-x 3 zou www-data 4096 Dec 7 16:15 pictures/

A user was able to upload a picture as avatar.
this is only one path to a thumbnail:

/opt/zou/previews/pictures/thumbnails/1cb/652$ ll
total 128
drwxr-xr-x 2 zou www-data 4096 Dec 7 16:15 ./
drwxr-xr-x 3 zou www-data 4096 Dec 7 16:15 …/
-rw-r–r-- 1 zou www-data 121763 Dec 7 16:15 1cb6522a-e508-43dd-89fab9f33ceae4c5

Is there a limitation on the weight or size of the input image ?

It may be due to your Nginx configuration. Are you sure that you set the client_max_body_size 500M; limit in your Nginx configuration file?

That was it !
Adding this line fixes the problem !

The installation instruction was missing this line (
I saw you added it in the first part about nginx, but it is still missing in the second part :
When changing nginx configuration after zou installation.

Thank you very much for your help !

1 Like

You’re welcome!

Can you share with us the use case you which to manage with Kitsu and Zou? It might interest other people from the community