I have 2 Proxmox VMs on the same server (for learning purposes) - primary docker server (ubuntu 18.04 server) 192.168.1.108 and samba/storage 192.168.1.109
On the primary server, I have Transmission setup as a docker container. I am able to download when I have the volumes (in the docker-compose.yml) point to a local directory for complete and incomplete:
volumes:
- /etc/localtime:/etc/localtime:ro
- ${USERDIR}/docker/transmission-vpn:/data
- ${USERDIR}/docker/shared:/shared
- ${USERDIR}Downloads/completed:/data/completed
- ${USERDIR}Downloads/incomplete:/data/incomplete
The above works just fine and Transmission can download just fine.
When I change the download location to a mounted samba share directory, it ceases to work and transmission just says "Permission Denied".
volumes:
- /etc/localtime:/etc/localtime:ro
- ${USERDIR}/docker/transmission-vpn:/data
- ${USERDIR}/docker/shared:/shared
- /mnt/smbmount/dls/complete:/data/completed
- /mnt/smbmount/dls/dling:/data/incomplete
For samba, I've followed this guide for setting up just the sadmin and users share on my samba/storage server.
Here is my smb.conf on the samba/storage server:
[users]
path = /samba/users
browseable = yes
writable = yes
guest ok = yes
read only = no
force create mode = 0660
force directory mode = 2770
valid users = @sambashare @sadmin
force user = sadmin
directory mask = 0775
create mask = 664
Here is my fstab on my primary docker server:
UUID=2bd84936-de66-46f1-bdb5-8cc00c57cde0 / ext4 defaults 0 0
/swap.img none swap sw 0 0
//192.168.1.109/users /mnt/smbmount cifs credentials=/home/cbody/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
My .smbcredentials file has the username and password setup when making the samba stuff.
I've unmounted and remounted the share at each major point and troubleshooting step using both (not at the same time):
sudo mount -a
sudo mount -t cifs -o username=sadmin //192.168.1.109/users /mnt/smbmount
I've looked around and have been banging my head for almost 3 days trying to get this to work, but have no had any success.