mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Downloading attachments is normal, but uploading attachments prompts "An error occurred. IO" #1311
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 @aaro-n on GitHub (Jul 1, 2022).
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.