Sonarr not starting from fresh install

Sonarr version (3.0.8.1507):
Mono version (6.12.0.182):
Ubuntu 20.04:
Debug logs:
I have just done a fresh install and I get get Sonarr to start I have no idea whats up when i run sudo systemctl status sonarr.service I get this but to be honest doesnt really know what it means.

sonarr.service - Sonarr Daemon
Loaded: loaded (/lib/systemd/system/sonarr.service; disabled; vendor preset: enabled)
Active: active (running) since Thu 2022-07-14 12:55:21 BST; 2s ago
Main PID: 86780 (mono)
Tasks: 6 (limit: 9255)
Memory: 42.4M
CGroup: /system.slice/sonarr.service
└─86780 /usr/bin/mono --debug /usr/lib/sonarr/bin/Sonarr.exe -nobrowser -data=/var/lib/sonarr

Jul 14 12:55:21 plexserver systemd[1]: Started Sonarr Daemon.
Jul 14 12:55:22 plexserver mono[86780]: [Info] Bootstrap: Starting Sonarr - /usr/lib/sonarr/bin/Sonarr.exe - Version 3.0.8.1507
Jul 14 12:55:22 plexserver mono[86780]: [Info] AppFolderInfo: Data directory is being overridden to [/var/lib/sonarr]
Jul 14 12:55:23 plexserver mono[86780]: [Info] Router: Application mode: Interactive
Jul 14 12:55:23 plexserver mono[86780]: [Info] MigrationLogger: *** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
Jul 14 12:55:23 plexserver mono[86780]: [Info] MigrationLogger: *** Checking database for required migrations data source=/var/lib/sonarr/logs.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***

Just found the log file

2022-07-14 13:10:33.3|Debug|OwinAppFactory|Attaching SignalRMiddleWare to host
2022-07-14 13:10:33.3|Debug|OwinAppFactory|Attaching NancyMiddleWare to host
2022-07-14 13:10:33.8|Info|SonarrBootstrapper|Starting Web Server
2022-07-14 13:10:34.9|Fatal|ConsoleApp|Address already in use. 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
2022-07-14 13:10:38.3|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
2022-07-14 13:10:38.7|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
2022-07-14 13:10:38.7|Debug|ProcessProvider| - [90021] Sonarr
2022-07-14 13:10:38.7|Info|Router|Application mode: Interactive
2022-07-14 13:10:38.7|Debug|Router|Console selected
2022-07-14 13:10:38.9|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
2022-07-14 13:10:39.2|Debug|MigrationLogger|Took: 00:00:00.2312281
2022-07-14 13:10:39.2|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/logs.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
2022-07-14 13:10:39.2|Debug|MigrationLogger|Took: 00:00:00.0278075
2022-07-14 13:10:39.5|Debug|InstallUpdateService|Post-install update check requested
2022-07-14 13:10:39.5|Debug|InstallUpdateService|Built-in updater disabled, skipping post-install update check
2022-07-14 13:10:39.5|Info|OwinHostController|Listening on the following URLs:
2022-07-14 13:10:39.5|Info|OwinHostController|  http://*:7878/
2022-07-14 13:10:39.5|Debug|OwinAppFactory|Attaching NzbDroneVersionMiddleWare to host
2022-07-14 13:10:39.6|Debug|OwinAppFactory|Attaching SignalRMiddleWare to host
2022-07-14 13:10:39.6|Debug|OwinAppFactory|Attaching NancyMiddleWare to host
2022-07-14 13:10:40.1|Info|SonarrBootstrapper|Starting Web Server
2022-07-14 13:10:41.2|Fatal|ConsoleApp|Address already in use. 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
2022-07-14 13:10:44.3|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
2022-07-14 13:10:44.7|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
2022-07-14 13:10:44.7|Debug|ProcessProvider| - [90039] Sonarr
2022-07-14 13:10:44.7|Info|Router|Application mode: Interactive
2022-07-14 13:10:44.7|Debug|Router|Console selected
2022-07-14 13:10:44.9|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
2022-07-14 13:10:45.2|Debug|MigrationLogger|Took: 00:00:00.2308537
2022-07-14 13:10:45.2|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/logs.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
2022-07-14 13:10:45.2|Debug|MigrationLogger|Took: 00:00:00.0281574
2022-07-14 13:10:45.5|Debug|InstallUpdateService|Post-install update check requested
2022-07-14 13:10:45.5|Debug|InstallUpdateService|Built-in updater disabled, skipping post-install update check
2022-07-14 13:10:45.5|Info|OwinHostController|Listening on the following URLs:
2022-07-14 13:10:45.5|Info|OwinHostController|  http://*:7878/
2022-07-14 13:10:45.6|Debug|OwinAppFactory|Attaching NzbDroneVersionMiddleWare to host
2022-07-14 13:10:45.6|Debug|OwinAppFactory|Attaching SignalRMiddleWare to host
2022-07-14 13:10:45.6|Debug|OwinAppFactory|Attaching NancyMiddleWare to host
2022-07-14 13:10:46.1|Info|SonarrBootstrapper|Starting Web Server
2022-07-14 13:10:47.2|Fatal|ConsoleApp|Address already in use. 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
2022-07-14 13:10:50.3|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
2022-07-14 13:10:50.7|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
2022-07-14 13:10:50.7|Debug|ProcessProvider| - [90057] Sonarr
2022-07-14 13:10:50.7|Info|Router|Application mode: Interactive
2022-07-14 13:10:50.7|Debug|Router|Console selected
2022-07-14 13:10:50.9|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
2022-07-14 13:10:51.2|Debug|MigrationLogger|Took: 00:00:00.2314152
2022-07-14 13:10:51.2|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/logs.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
2022-07-14 13:10:51.2|Debug|MigrationLogger|Took: 00:00:00.0277582
2022-07-14 13:10:51.5|Debug|InstallUpdateService|Post-install update check requested
2022-07-14 13:10:51.5|Debug|InstallUpdateService|Built-in updater disabled, skipping post-install update check
2022-07-14 13:10:51.5|Info|OwinHostController|Listening on the following URLs:
2022-07-14 13:10:51.5|Info|OwinHostController|  http://*:7878/
2022-07-14 13:10:51.5|Debug|OwinAppFactory|Attaching NzbDroneVersionMiddleWare to host
2022-07-14 13:10:51.6|Debug|OwinAppFactory|Attaching SignalRMiddleWare to host
2022-07-14 13:10:51.6|Debug|OwinAppFactory|Attaching NancyMiddleWare to host
2022-07-14 13:10:52.1|Info|SonarrBootstrapper|Starting Web Server
2022-07-14 13:10:53.2|Fatal|ConsoleApp|Address already in use. 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

When I check for ports 8989 is not there

sudo lsof -i -P -n | grep LISTEN
systemd-r   719 systemd-resolve   13u  IPv4  26171      0t0  TCP 127.0.0.53:53 (LISTEN)
python3     867            root   10u  IPv4  42817      0t0  TCP *:8181 (LISTEN)
anydesk     915            root   22u  IPv4  37080      0t0  TCP *:7070 (LISTEN)
sshd        927            root    3u  IPv4  31510      0t0  TCP *:22 (LISTEN)
sshd        927            root    4u  IPv6  31512      0t0  TCP *:22 (LISTEN)
Ombi       1204            ombi  372u  IPv6  43655      0t0  TCP *:5000 (LISTEN)
Plex\x20M  1248            plex   56u  IPv6  39965      0t0  TCP *:32400 (LISTEN)
Plex\x20M  1248            plex   57u  IPv4  39967      0t0  TCP 127.0.0.1:32401 (LISTEN)
Plex\x20S  1459            plex    8u  IPv4  40142      0t0  TCP 127.0.0.1:33973 (LISTEN)
node       1494            root   23u  IPv6  44458      0t0  TCP *:5055 (LISTEN)
sabnzbdpl  1515            paul    4u  IPv4  42006      0t0  TCP *:8080 (LISTEN)
Plex\x20T  1638            plex   10u  IPv4  41329      0t0  TCP 127.0.0.1:32600 (LISTEN)
Radarr     6485            paul  215u  IPv6  66168      0t0  TCP *:7878 (LISTEN)
cupsd     19702            root    6u  IPv6 162995      0t0  TCP [::1]:631 (LISTEN)
cupsd     19702            root    7u  IPv4 162996      0t0  TCP 127.0.0.1:631 (LISTEN)

Hope this helps sort the problem

Thankyou Paul

The error says nothing about 8989, why do you think it does? It clearly says it’s trying to listen on 7878 just before the error.

Why are you trying to run sonarr on radarr’s port of 7878? The port does not magically change on its own.

I’m not trying to run it in 7878 it’s a fresh install and thats what I get, I have messed with no files or anything.

I suppose the question is how would I changed to 8989 ?

I found the config file I had no idea where it was so no idea how it changed but least I got it working again thanks bakerboy for pointing me in right direction

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.