"message": "NotFound" error after upgrade to develop

I changed from the more recent master version to develop (On Windows). After restarting, when I load http://localhost:8989/ this appears:

{
“message”: “NotFound”
}

Log files:
http://s000.tinyupload.com/?file_id=09831379045247725349

If you have issues in the future, please pastebin the contents of your log file, its much quicker for someone to take a look and we don’t need to see the log.db.

Early in the log the config file is locked, but a couple minutes later Sonarr appears to start normally, but index.html is missing: 15-1-9 20:05:54.5|Warn|IndexHtmlMapper|File d:\ProgramData\NzbDrone\bin\UI\index.html not found

Could be permissions (assuming it was permissions that prevented the config file from being loaded before) or that file doesn’t exist, which you should be able to remedy with a reinstall.

A reinstall of the latest master version did fix the problem. Sonarr then worked as expected.

As soon as I changed the branch to develop and performed an update the same error reoccurred.

Logs:
http://pastebin.com/vpMnWk1A

Re: 15-1-10 08:13:51.9|Warn|IndexHtmlMapper|File d:\ProgramData\NzbDrone\bin\UI\index.html not found
This file exists and I believe permissions are fine. If I open firefox and copy and paste the path d:\ProgramData\NzbDrone\bin\UI\index.html I get:
Sonarr Ver.

Screenshot of file permissions on folder:
http://postimg.org/image/6738gd7m9/

I did a full uninstall and reinstall. I stopped the nzbdrone service, uninstalled from programs and features, rebooted the PC. I deleted the nzbdrone folder. I then reinstalled. NZBdrone started fine.

I shutdown nzbdrone, stopped the service. I copied my backed-up config, restarted the service and nzbdrone launched fine. I then changed to develop. After the update I try to load the main sonarr page and get the same error.

Logs #2:
http://pastebin.com/JSB1tVvH

Could you try installing this develop release directly? https://download.sonarr.tv/v2/develop/latest/NzbDrone.develop.exe

How are you running Sonarr? Windows service or one of the exes directly?

I downloaded the develop release directly.

Installing as a Windows service (how I was running before on master) gave the same result.

I then uninstalled and reinstalled choosing not to install as a Windows service and didn’t get the error. I’ll run it that way for now :slight_smile: Thank you!

As a test, I installed Ver. 2.0.0.2620 from the downloaded .exe file over the top, choosing to install a Windows service. I then got the same error. i.e. I had Ver. 2.0.0.2620 working without the Windows service, installed the same version with the service and the error re-occurred. Reinstalling again choosing not to use the service fixed it again.

Well colour me confused, I’ve been running as a service forever and haven’t seen this issue. Was Sonarr running under the default account or had you changed it?

I assume the default account. I’ve never looked into running as a different account so its not something I know how to do.

My user account is an administrator (bad practice I know). I use the same account for everything and it’d the one I used for installing sonar in all cases as well as to run it.

I’m having exactly the same issue.

I find that I can not access sonarr through the web interface. I was running master version on Windows 7 64 bit when I first experieinced the issue.

I have tried reinstalling (I deleted the contents of the programdata folder) and still had the issue. I have tried running as both service and console and have the issue on both. I have check the file does exist.

I have tried running the service as both system login as well as using the same credentials that allow me to view the file (my normal windows login) and still get the same error.

My log files can be found at Log File

I have downloaded the latest master from Git and run this in VS 2013 community edition and I do not get the file not found error, the index loads but I get a timeout error with no other display. I manually created the UI folder under _output by copying the one from my programdata folder.

The firewall on my machine is disabled.

Everything was working fine until I had a power failure. When I restarted my machine I have not been able to access the UI for sonarr. The original updates folder seems to indicate that I was running 2.0.0.2663.

I have tried the develop version referenced above but that has not helped (service and console). I have tried immediately after installing as well as putting my original db’s and folders back.

sonarr is running and everything else seems to work except for the UI. If I put my original configs back, I can see download instructions sent to sab and the downloads are processed.

What can I try next?

I should mention that I am not having an issue accessing any of the other apps like sab, coachpotato, etc. so I’m pretty sure that the firewall is disabled.

The fact I could access the index file in the test with visual studio would seem to highlight my AV is happy.

I should mention that when I installed windows I set it up to have users and programdata on a drive other than C (C is an ssd)

The one common thing I see between the two installs is that they run from D:\ProgramData\NzbDroneinstead of C:\ProgramData\NzbDrone

How is that being redirected? I can attempt to reproduce it based on that since I have no other idea why its happening at the moment (even though we don’t hardcode the path).

When I installed windows I used a walk through that relies on you creating an XML file that sets the location of various defaults. You stall the install (when you create the username) inject the XML and then continue as normal.

I have tried copying the contents of the D:\ProgramData\nzbdrone -> c:\ProgramData\NZBDrone, the problem still exists.

What I have found that is new though is the service & console applications fail. If I run the service as an application the system works (sort of the series art is missing). It work as an app for about 15 hours (then I got the notfound error), it doesn’t post process correctly. Restarting the nzbdrone.exe app works again.

Hope this helps.

Thanks for the help.

PS My C# is not great but if you want to send some stuff to run in Visual Studio to see the difference on start up please just let me know.

Currently the HTML is found in the version I’m running but I think the connection from the browser back to the app is not quite right my side.

I did check the index HTML mapper stuff and could not see anything that was not using the

_indexPath = Path.Combine(appFolderInfo.StartUpFolder, "UI", "index.html"); 

but you obviously understand your code better than me as I only looked at it yesterday for a couple of hours.

I’ve also read my original post it seems brash which was not my intention. My excuse is I’d just finished a 17 hour day and the family were complaining about nothing to watch. I really appreciate the work you do on sonarr.

I have just tried another test. I created a junction link in c:\programdata pointing as NzbDrone on D:.

The service still fails.

No problem, this is a pretty frustrating issue all around, but I think I have an idea as to how/why its happening.

It has to do with the Path thats being used, which is d:\ProgramData\NzbDrone\bin\UI\index.html when Sonarr is expecting D:\ProgramData\NzbDrone\bin\UI\index.html (note the casing on the drive letter).

This is causing a recent case sensitivity check to fail and throw the file does not exist error because the drive letter should be capitalized.

If you go to Services in Control Panel and open up the properties for the for NzbDrone, what does the Path to executable show?

If it starts with d:\ instead of D:\ I think the easiest fix is to open Command Prompt as administrator, CD to D:\ProgramData\NzbDrone\bin run ServiceUninstall.exe followed by ServiceInstall.exe when the uninstall completes.

Let me know how this goes, but I think that should fix it.

Hi,

Your assessment that the service definition started with a lowercase D was correct. I did as you asked and now it is an uppercase one. This though has not solved the problem. The system still gives the notfound error.

I have learned something new though.

If I run the app and bring up the UI, quickly exit the app and start the service, the UI will work for the service. It will stop working if you leave it alone but it does work for a little while.

It would seem that something is different on session start between the APP and the service. In my previous posts when I talk about starting the console I meant that I was running the .console application. If I run the NZBDrone.exe it seems to work.

I assume that if I run the nzbdrone.exe it has a default of where I run it from (I am using TotalCommander as the launcher). If I run the nzbdrone.console I assume it shell starts the nzbdrone? If so the start process of the service and console may be different from the manual run nzbdrone. (Just throwing out a guess).

Before Change

After Change

I also have another issue but it may be the result of having swopped configs in and out. None of the series have artwork. If I refresh it does not appear afterwards.

Running NzbDrone.Console.exe will open a command prompt with Sonarr running inside it. Running NzbDrone.exe will add a tray icon near the clock, but there will be no window. Besides those differences everything else is the same.

Could you pastebin another log when running as a service? (delete the existing log files and pastebin the entire log, I want to see what paths its using on startup).

Nothing shows in the UI? or somewhere else?

I have tried starting the service and now it finds the index. Strange thing was yesterday it did not.

I can see a list of missing graphics. The log file has the drive letter as a lowercase D.

I have found before that the service stops working after a while as well. I will get back to you after a while so that we can see if the issue has resolved.

I’ve just restarted the machine and everything seems fine.

The case on the drive letter does seem to affect the posters.

If I check these:
15-1-25 13:14:03.4|Warn|MediaCoverMapper|File d:\ProgramData\NzbDrone\MediaCover\336\poster.jpg not found
15-1-25 13:14:03.4|Warn|MediaCoverMapper|File d:\ProgramData\NzbDrone\MediaCover\134\poster.jpg not found
15-1-25 13:14:03.4|Warn|MediaCoverMapper|File d:\ProgramData\NzbDrone\MediaCover\172\poster.jpg not found
15-1-25 13:14:03.4|Warn|MediaCoverMapper|File d:\ProgramData\NzbDrone\MediaCover\354\poster.jpg not found
15-1-25 13:14:03.4|Warn|MediaCoverMapper|File d:\ProgramData\NzbDrone\MediaCover\445\poster.jpg not found
15-1-25 13:14:04.1|Warn|MediaCoverMapper|File d:\ProgramData\NzbDrone\MediaCover\133\poster.jpg not found
15-1-25 13:14:04.2|Warn|MediaCoverMapper|File d:\ProgramData\NzbDrone\MediaCover\314\poster.jpg not found
15-1-25 13:14:04.2|Warn|MediaCoverMapper|File d:\ProgramData\NzbDrone\MediaCover\383\poster.jpg not found

They do exist but they start with a lowercase D. I added a new series yesterday, it has the same issue as the previously added series.

Hi @markus101

The system has worked all day with no issues, I have also restarted my machine a few times and it has continued to work, so the message notfound seems to be resolved by changing the drive letter case.

The only outstanding issue is the one with the series posters.

Thanks for all your help.

One more thing I’d like to check, if you run this commend in PowerShell whats the value for ProgramData

Get-ItemProperty "HKLM:\Software\Microsoft\Windows NT\CurrentVersion\ProfileList\"

You can also check it in regedit.exe

If the Path starts with d:\ you’ll need to update it within regedit to start with D:\ (just follow the path above, HKLM = KEY_LOCAL_MACHINE).