Two Servarr (Radar and Sonar) stopped working for unknown reasons
Recently, Radarr and Sonarr stopped working, and I don’t know why or where to look.
Host: Kubuntu 22.04
Kernel: 3.2.0-39-generic (64 bits)
Docker: 24.0.5, build 24.0.5-0ubuntu1~22.04.1
Image: linuxserver/sonarr 3.0.10.1567 and linuxserver/radarr 5.2.6.
Every other app, including other servarr app (readarr, lidarr, etc.) is working
Apps is giving me the following message:
<span style="color:#323232;">[Info] Bootstrap: Starting Sonarr - /app/sonarr/bin/Sonarr.exe - Version 3.0.10.1567
</span><span style="color:#323232;">[Info] AppFolderInfo: Data directory is being overridden to [/config]
</span><span style="color:#323232;">[Info] Router: Application mode: Interactive
</span><span style="color:#323232;">[Info] MigrationLogger: *** Checking database for required migrations data source=/config/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
</span><span style="color:#323232;">[Info] MigrationLogger: *** Checking database for required migrations data source=/config/logs.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
</span><span style="color:#323232;">[Info] OwinHostController: Listening on the following URLs:
</span><span style="color:#323232;">[Info] OwinHostController: http://192.168.1.100:8989/
</span><span style="color:#323232;">[Info] OwinHostController: http://localhost:8989/
</span><span style="color:#323232;">[Info] SonarrBootstrapper: Starting Web Server
</span><span style="color:#323232;">[Fatal] ConsoleApp: The requested address is not valid in this context. This can happen if another instance of Sonarr is already running another application is using the same port (default: 8989) or the user has insufficient permissions
</span><span style="color:#323232;">Press enter to exit...
</span>
I checked, and nothing seems to use the same port:
<span style="color:#323232;">~$ sudo netstat -nlp | grep 8989
</span><span style="color:#323232;">tcp 0 0 0.0.0.0:8989 0.0.0.0:* LISTEN 48005/docker-proxy
</span><span style="color:#323232;">tcp6 0 0 :::8989 :::* LISTEN 48011/docker-proxy
</span>
And I don’t think permission is at fault since other docker apps works fine.
Where should I look to fix that?
Edit: the compose file
<span style="color:#323232;">version: '3.8'
</span><span style="color:#323232;">services:
</span><span style="color:#323232;"> Sonarr:
</span><span style="color:#323232;"> container_name: sonarr
</span><span style="color:#323232;"> image: linuxserver/sonarr
</span><span style="color:#323232;"> ports:
</span><span style="color:#323232;"> - '8989:8989' # sonarr
</span><span style="color:#323232;"> environment:
</span><span style="color:#323232;"> - PUID=1000
</span><span style="color:#323232;"> - PGID=1000
</span><span style="color:#323232;"> - TZ=Canada/Eastern
</span><span style="color:#323232;"> volumes:
</span><span style="color:#323232;"> - '/etc/timezone:/etc/timezone:ro'
</span><span style="color:#323232;"> - '/etc/localtime:/etc/localtime:ro'
</span><span style="color:#323232;"> - '/bibliotheque1/configs/sonarr:/config'
</span><span style="color:#323232;"> - '/bibliotheque1:/data'
</span><span style="color:#323232;"> - '/bibliotheque2:/data2'
</span><span style="color:#323232;"> restart: unless-stopped
</span><span style="color:#323232;"> radarr:
</span><span style="color:#323232;"> container_name: radarr
</span><span style="color:#323232;"> image: linuxserver/radarr
</span><span style="color:#323232;"> environment:
</span><span style="color:#323232;"> - PUID=1000
</span><span style="color:#323232;"> - PGID=1000
</span><span style="color:#323232;"> - TZ=Canada/Eastern
</span><span style="color:#323232;"> ports:
</span><span style="color:#323232;"> - '7878:7878'
</span><span style="color:#323232;"> volumes:
</span><span style="color:#323232;"> - '/etc/timezone:/etc/timezone:ro'
</span><span style="color:#323232;"> - '/etc/localtime:/etc/localtime:ro'
</span><span style="color:#323232;"> - '/bibliotheque1/configs/radarr:/config'
</span><span style="color:#323232;"> - '/bibliotheque1:/data'
</span><span style="color:#323232;"> - '/bibliotheque2:/data2'
</span><span style="color:#323232;"> restart: unless-stopped
</span>
edit2: added all the details of the logs
edit 3:
I don’t think the issue is actually the port since I’ve got the same issue when I’m switching to a different port, and if I stop the container, its ports no longer appears in the netstats commands.
Might be permission issue (but no idea what that would mean in its context) or something else.
Edit 4 and kinda solution
It IS a permission issue, although I’m not getting why it’s happening
If the config file is in another volume, the container starts no problem. But if I try to starts with the old directory, it gave the error message.
<span style="color:#323232;"> volumes:
</span><span style="color:#323232;"> - '/bibliotheque1/configs/radarr_test:/config'
</span>
But there is no difference in the owner of this repository
Why can’t the container access it?
<span style="color:#323232;">drwxr-xr-x 7 $USER $USER 4096 mar 19 2023 heimdall
</span><span style="color:#323232;">drwxr-xr-x 6 $USER $USER 4096 déc 26 11:39 radarr
</span><span style="color:#323232;">drwxr-xr-x 6 $USER $USER 4096 déc 26 11:43 radarr_test
</span><span style="color:#323232;">drwxr-xr-x 6 $USER $USER 4096 déc 26 11:43 sonarr
</span><span style="color:#323232;">drwxr-xr-x 6 $USER $USER 4096 déc 26 11:43 sonarr_test
</span><span style="color:#323232;">drwxr-xr-x 4 $USER $USER 4096 aoû 28 23:07 plex
</span>
I’ll use my backups and use a different directory, but I want to know what went wrong…
Add comment