Version 2.0.0.5228
Mono Version 5.12.0.226
AppData directory /config
OS Docker 18.06.0-ce (via Ubuntu Server 18.04)
Debug Log https://pastebin.com/mS54vJEh
Hi Guys,
I’m having a having a hell of a time getting Sonarr working via docker on my ubuntu machine. I’ve followed the steps in https://www.smarthomebeginner.com/docker-home-media-server-2018-basic/ to the letter. I’ve trawled through many forum posts/existing threads, apologies if I’ve missed an already suggested fix.
Running ubuntu server on a lenovo M93p tiny (i5 4570T, 8GB RAM, 240GB SSD). Files once-downloaded are to go onto a synology NAS (1.6ghz atom, 3GB RAM, crapload storage).
I previously had all my stuff running via docker on the synology, but I was running too much stuff (nzbget/sonarr/couchpotato/plex/tautilli/plex2influx/influxdb/telegraf/chronograf/speedtest/unifi) and it was bringing it to it’s knees.
‘id’ via ssh (putty) shows:
uid=1000(admin) gid=1004(admin) groups=1004(admin),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),108(lxd),999(docker),1000(lpadmin),1001(sambashare),1002(debian-tor),1003(libvirtd)
My docker-compose for sonarr looks like this:
version: 3
services:
sonarr:
container_name: sonarr
restart: always
ports:
- '8989:8989'
volumes:
- '/home/admin/docker/sonarr:/config'
- '/home/admin/mnt/media/tv:/tv'
- '/home/admin/docker/nzbget/complete/tv:/downloads'
- '/etc/localtime:/etc/localtime:ro'
environment:
- 'PUID=${PUID}'
- 'PGID=${PGID}'
- 'TZ=${TZ}'
image: linuxserver/sonarr
/config = where all the config/dbs etc live
/tv = where I’d like my TV shows to end up
/downloads = where sonarr retrieves the downloaded files that need to be moved to /tv
The environment variables {PUID} & {PGID} are set by/in /etc/environment, they are:
PUID=1000
PGID=999
TZ=“Country/City-ish”
USERDIR="/home/admin"
My docker run looks like this -
docker run --name sonarr --restart always -p 8989:8989 -v /home/admin/docker/sonarr:/config -v /home/admin/mnt/media/tv:/tv -v /home/admin/docker/nzbget/complete/tv:/downloads -v /etc/localtime:/etc/localtime:ro -e PUID=${PUID} -e PGID=${PGID} -e TZ=${TZ} linuxserver/sonarr
(if I set the environment variables in the docker run eg -e PUID=1000 -e PGID=999, no change)
This is what I have in /etc/fstab
//192.168.1.100/downloads/ /home/admin/mnt/media / cifs user=docker,password=REDACTED@,uid=1000,gid=999,file_mode=0777,dir_mode=0777 0 0
My synology has a user docker set up with access to the required NAS paths.
I can browse to the paths (via putty/winscp) without issue, I can write files into the folders without issue.
This is what I get via Sonarr error logs show when I try to rename an existing miss-named file:
https://pastebin.com/mS54vJEh
I can browse to the paths when browsing via the series editor, sonarr can see the files via their respective paths without issue.
I set it all up from a backup, I also tried setting it all up from scratch, same permission problem.
If anyone can point me in the right direction I’d really appreciate it.