mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[GH-ISSUE #2587] Downloading attachments is normal, but uploading attachments prompts "An error occurred. IO" #1314
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#1314
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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 @aaro-n on GitHub (Jul 1, 2022).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/2587
Subject of the issue
Unable to add attachments, it prompts "An error occurred. IO"
Deployment environment
Install method:Docker image
Clients used:web vault, desktop, Android
Reverse proxy and version:
MySQL/MariaDB or PostgreSQL version:
Other relevant details:
It could be uploaded normally before, but it cannot be uploaded in the v1.25.0 version. (I can't remember which version can be uploaded. It has been uploaded successfully before, and now the attachment can be downloaded normally.)
Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
Show Running Config
Environment settings which are overridden:
Steps to reproduce
Find a password item, add an attachment, and click save when prompted "An error occurred. IO"
Expected behaviour
Attachment uploaded successfully
Actual behaviour
An error occurred.IO
Troubleshooting data
a log:
@dani-garcia commented on GitHub (Jul 1, 2022):
If you use a custom
attachments_folder, you also need to settmp_folderto the same filesystem, the files are first downloaded to the temp folder and then moved to the attachments folder, so if using separate filesystems the move will fail.@aaro-n commented on GitHub (Jul 2, 2022):
According to what you said, the problem can be solved, but there are some other problems.
Docker compose is configured in this way to upload attachments. The location of attachments in the container is: /data/attachments/, and the location of the entity host is: /home/www/vaultwarden/service/bw-data/attachments
But if docker compose is configured like this, and uploading the attachment again, there will still be an "upload error. IO"
This configuration can also upload attachments. To sum up, the container needs to map the parent directory. For example, attachments and temporary files are stored in /file/attachments and /file/tmp respectively, and docker needs to map /file
@aaro-n commented on GitHub (Jul 2, 2022):
The problem has been solved, please close this issue.
org.opencontainerslabels to Docker images #2942