What app is this about, and its version: Homebox, 0.22.3~ynh1
What YunoHost version are you running: 12.1.39
What type of hardware are you using: VPS bought online
Describe your issue
I there,
I just performed a fresh install of Homebox and I am experimenting with item creation and attachment.
I am encountering a weired error. When I try to upload an attachment to an item which is more than 1MB, I get the following error in the web UI:
Failed to upload attachment
Looking at the logs with journalctl -u homebox -f, I don’t see anything during a failed upload, but I see something if an upload is successful, eg.:
Feb 03 15:09:55 samuel-colin.nohost.me homebox[574]: 3:09PM INF github.com/sysadminsmedia/homebox/backend/internal/web/mid/logger.go:41 > request finished method=PUT path=/api/v1/items/dfe6924a-71aa-478b-ba41-32377322c36e rid=samuel-colin.nohost.me/pr5FfVzo0u-000176 status=200
I inferred that the error happens around the 1MB threshold by trial and error with several PDFs and the results were consistent across several files.
What I tried to do, without success:
- Adding an environment variable
HBOX_WEB_MAX_UPLOAD_SIZE=10in/var/www/homebox/.envas described in the documentation: https://homebox.software/en/configure/, followed bysystemctl restart homebox.service(and even a full server restart) - Tried the same with the old env var name
HBOX_WEB_MAX_FILE_UPLOAD=10(see the project issue: https://github.com/sysadminsmedia/homebox/pull/1147) - Flattening the PDF: this changed nothing, but increasing compression worked
Any idea how I could debug this further?
Share relevant logs or error messages
No error in yunohost logs