mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Unable to upload attachment using web client #1339
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tmeckel on GitHub (Jul 31, 2022).
Subject of the issue
I'm unable to upload attachments using the web client (web vault). Error message in WebBrowser
In the log file the following is printed:
Deployment environment
Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
Show Running Config
Environment settings which are overridden: DOMAIN, ADMIN_TOKEN, DISABLE_ADMIN_TOKEN
Steps to reproduce
EditAttachmentsAttachmentSaveExpected behaviour
Attachment added to vault item
Actual behaviour
Error shown as described above
Troubleshooting data
see above
@BlackDex commented on GitHub (Jul 31, 2022):
Works for me.
It would suggest to check the reverse proxy. Since according to Vaultwarden logs it didn't received any data at all.
That is why it failed.
@tmeckel commented on GitHub (Jul 31, 2022):
@BlackDex Thanks for the quick answer. I was wondering was the error message of Rocket really means. I'll have a look on my reverse proxy configuration.Are there any special requirements? I saw other issues here, that are discussing the reverse proxy configuration.
@BlackDex commented on GitHub (Jul 31, 2022):
Well, the issue means that Rocket didn't detect any data a.k.a. attachment. Like if a request was sent without the actual attachment. So, it was either filtered out somewhere in between. Either the from the client side (Firewall, Anti-Virus), something in between, like the reverse proxy.
You could try to enable
DEBUG_LOG=tracingwhich should give a bit more info.@tmeckel commented on GitHub (Jul 31, 2022):
Problem solved: Vaultwarden wasn't able to save the incoming data to a tmp file
@zutewas commented on GitHub (Sep 27, 2022):
Can you explain how do you have solved the problem?
I'm using the pre-built binaries with ubuntu 22.04 and systemd. Which permission do you have set on the directories?
This are my permissions.
An my error
I'm using vaultwarden behind traefik with simple config. The gui works find. Only "sends" makes problems.
Is there a documentaion which permission I must set on file system if I use the binary non docker way?
Thanks
@zutewas commented on GitHub (Sep 27, 2022):
My problem is solved. In my case the WorkingDirectory and ReadWriteDirectories in my vaultwarden.service was wrong.
But perhaps there is an answer to my question with the filesystem permission I should set.