Sonarr hung (stuck) after starting from Ubuntu terminal after install

I was using Sonarr on Windows 7, and made a backup.
I then completely wiped my harddrive and installed Ubuntu 15.04.

I used this wiki to install Sonarr.
On the last step, titled Start Sonarr, my terminal runs and gets hung up after displaying

...
[Info] ProfileService: Setting up default quality profiles 
[Info] SceneMappingService: Updating Scene mappings 
[Info] HousekeepingService: Running housecleaning tasks 
[Info] Database: Vacuuming Log database 
[Info] Database: Log database compressed 
[Info] Database: Vacuuming Main database 
[Info] Database: Main database compressed 

I left it alone for about 12 hours to see if it would “finish”, but when I came back, the terminal had not changed.

A full output from the terminal can be found here

I then wiped the hard drive and installed Ubuntu 15.10 beta 2, and the same issue is present.

Does anyone have any suggestions for me? I am new and trying the learn as much as I can. Thanks.

EDIT: I just ran it for a fifth time, and for the first time received a different output on the terminal, but it was still hung up. See pastebin, as well as the last few lines below

...
[Info] Database: Vacuuming Main database 
[Info] Database: Main database compressed 
[Info] SceneMappingService: Updating Scene mappings 
[Info] SceneMappingService: Updating Scene mappings 
[Info] RssSyncService: Starting RSS Sync 
[Warn] FetchAndParseRssService: No available indexers. check your configuration. 
[Info] DownloadDecisionMaker: No results found 
[Info] RssSyncService: RSS Sync Completed. Reports found: 0, Reports grabbed: 0 
[Info] RssSyncService: RSS Sync hasn't run since: 10/17/2015 8:21:23 PM. Searching for any missing episodes since then. 
[Info] EpisodeSearchService: Searching for 0 missing episodes since last RSS Sync 
[Info] EpisodeSearchService: Completed search for 0 episodes. 0 reports downloaded. 

Did you restore the backup from Sonarr running on Windows onto the the Ubuntu box after the installation? If so, that won’t work as the paths are different and will cause issues, you will either need to fix the paths by hand in the database or start fresh.

Nothing in the logs indicates an error though.

No, I never restored the file.

Whenever I run

mono --debug /opt/NzbDrone/NzbDrone.exe

the terminal window just hangs (stays open).
I can then access the GUI from the Web browser using Port 8989.

If I chose to close the terminal window, it warns me about killing the process, and I will no longer be able to access the GUI from my Web browser.

UPDATE:

If I use my web browser to access the GUI, I can click the “restart button”.

If I do this, the terminal outputs the following:

 [Error] RestSharpExtensions: Error communicating with server 

System.Net.WebException: Error: ConnectFailure (Connection refused) ---> System.Net.Sockets.SocketException: Connection refused
  at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP) [0x00000] in <filename unknown>:0 
  at System.Net.WebConnection.Connect (System.Net.HttpWebRequest request) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0 
  at RestSharp.Http.GetRawResponse (System.Net.HttpWebRequest request) [0x00000] in <filename unknown>:0 

[Error] DownloadClientCheck: Unable to communicate with download client: 
[Info] Database: Main database compressed 
[Error] RestSharpExtensions: Error communicating with server 

System.Net.WebException: Error: ConnectFailure (Connection refused) ---> System.Net.Sockets.SocketException: Connection refused
  at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP) [0x00000] in <filename unknown>:0 
  at System.Net.WebConnection.Connect (System.Net.HttpWebRequest request) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0 
  at RestSharp.Http.GetRawResponse (System.Net.HttpWebRequest request) [0x00000] in <filename unknown>:0 

[Error] TaskExtensions: Task Error 

System.Net.WebException: Error: ConnectFailure (Connection refused) ---> System.Net.Sockets.SocketException: Connection refused
  at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP) [0x00000] in <filename unknown>:0 
  at System.Net.WebConnection.Connect (System.Net.HttpWebRequest request) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0 
  at RestSharp.Http.GetRawResponse (System.Net.HttpWebRequest request) [0x00000] in <filename unknown>:0 

It just hangs here, as before.

However, I can now exit the terminal (without a “killing the process” warning) and the GUI is still accessible through port 8989.

Thanks for taking a look at this thread markus101. Any other suggestions?

This is expected, you’re running Sonarr in a terminal session, when that session is close Sonarr would stop. The reason it works after you restart through the UI is because a new session is opened and closing the first one doesn’t terminate the second.

Take a look at the auto start guides on our wiki for a solution to run Sonarr on boot in the background.

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