-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Facing “IOError” problems #186
Comments
Hi, I'm guessing that you haven't run out of space on the drive? If not, then it's likely going to be a permissions issue. If the underlying volume is mounted via SMB, does the SMB share allow writing by the account you are authenticating to the share with? Does that account have permissions to write to the filesystem underneath? |
Yes, my space is still left.But if I use the container terminal of icloudpd, I can create new folders and operate files through the command line. That is to say, the container of icloudpd has permission to read and write my SMB share. But using the script will prompt ioerror |
The container runs as root, so if you connect to the container command line, you'll be connecting as root, with no restrictions. The download process runs as user:1000 though (or a different user/id if you've configured it like that) If you connect to the container as that user, does it still allow you to write to the download path? I'd connect to the terminal as boredazfcuk like this on my server:
|
If I add these environment variables:
Will appear
If I change these environment variables to
Then use
After entering the terminal, I found that I did not have permission to change the directory. How to solve this problem? |
That's correct. This container shouldn't be run as root, or any other account that pre-exists in the Linux OS. It needs to be run as a standard, restricted user.
This is an issue on the host machine. You need to assign permissions for the user with id 1000 to the directory that has been mounted. You also need to make sure that the user with id 1000 has read/write access granted to the SMB file share. I'm not familiar with TrueNAS, but on my Debian server the file share information can be found in the file: /etc/samba/smb.conf |
The problem has been solved. I use fstab to mount the SMB share. The root user of Debian can access it normally, but other users cannot. After I change the fstab mount configuration, I can access it normally |
Thanks a lot! |
Awesome. Thanks for posting the resolution. |
This problem occurred after I set up the icloudpd environment:
The script is automatically indexed and ready to download. Later, I was prompted that I had no space or permission
Every file has this error prompt.
My operating environment is:Truenas under PVE virtual machine,icloudpd is running in Debian's docker environment.Debian mount the NAS file system with SMB.
Looking forward to your reply, thank you!
The text was updated successfully, but these errors were encountered: