Issue with latest update and URLbase

After the latest update I get the following error when trying to access the site. After removing the urlbase, it is available again.

{
“message”: “Unable to find file: C:\ProgramData\NzbDrone\bin\UI\nzbdrone\Content\bootstrap.css”,
“description”: “System.IO.FileNotFoundException: Unable to find file: C:\ProgramData\NzbDrone\bin\UI\nzbdrone\Content\bootstrap.css\r\nFile name: ‘C:\ProgramData\NzbDrone\bin\UI\nzbdrone\Content\bootstrap.css’\r\n at NzbDrone.Common.Disk.DiskProviderBase.StreamFile(String path) in m:\BuildAgent2\work\328d72309b633a8\src\NzbDrone.Common\Disk\DiskProviderBase.cs:line 451\r\n at NzbDrone.Common.Crypto.HashProvider.ComputeMd5(String path) in m:\BuildAgent2\work\328d72309b633a8\src\NzbDrone.Common\Crypto\HashProvider.cs:line 24\r\n at NzbDrone.Api.Frontend.Mappers.CacheBreakerProvider.AddCacheBreakerToPath(String resourceUrl) in m:\BuildAgent2\work\328d72309b633a8\src\NzbDrone.Api\Frontend\Mappers\CacheBreakerProvider.cs:line 33\r\n at NzbDrone.Api.Frontend.Mappers.IndexHtmlMapper.<>c__DisplayClass1.b__0(Match match) in m:\BuildAgent2\work\328d72309b633a8\src\NzbDrone.Api\Frontend\Mappers\IndexHtmlMapper.cs:line 81\r\n at System.Text.RegularExpressions.RegexReplacement.Replace(MatchEvaluator evaluator, Regex regex, String input, Int32 count, Int32 startat)\r\n at System.Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator, Int32 count, Int32 startat)\r\n at System.Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator)\r\n at NzbDrone.Api.Frontend.Mappers.IndexHtmlMapper.GetIndexText() in m:\BuildAgent2\work\328d72309b633a8\src\NzbDrone.Api\Frontend\Mappers\IndexHtmlMapper.cs:line 81\r\n at NzbDrone.Api.Frontend.Mappers.IndexHtmlMapper.GetContentStream(String filePath) in m:\BuildAgent2\work\328d72309b633a8\src\NzbDrone.Api\Frontend\Mappers\IndexHtmlMapper.cs:line 60\r\n at NzbDrone.Api.Frontend.Mappers.StaticResourceMapperBase.<>c__DisplayClass2.b__0() in m:\BuildAgent2\work\328d72309b633a8\src\NzbDrone.Api\Frontend\Mappers\StaticResourceMapperBase.cs:line 40\r\n at Nancy.Responses.StreamResponse.<>c__DisplayClass1.b__0(Stream stream)\r\n at NzbDrone.Api.Extensions.Pipelines.GzipCompressionPipeline.CompressResponse(Request request, Response response) in m:\BuildAgent2\work\328d72309b633a8\src\NzbDrone.Api\Extensions\Pipelines\GZipPipeline.cs:line 64\r\n at NzbDrone.Api.Extensions.Pipelines.GzipCompressionPipeline.b__0(NancyContext c) in m:\BuildAgent2\work\328d72309b633a8\src\NzbDrone.Api\Extensions\Pipelines\GZipPipeline.cs:line 22\r\n at Nancy.AfterPipeline.<>c__DisplayClass4.b__3(NancyContext ctx, CancellationToken ct)”
}

Forgot to include the version 2.0.0.1908

Thanks for reporting the issue,
I just pushed the fix it should be fixed in 2.0.0.1909

Not really seeing any change in behavior with 1909

I get the same above error listed, Then several errors listed in the webgui… Can’t get past that…

1909 is working fine for me. I removed the urlbase, updated and made sure it worked than added it back. Not sure if it had to be started without it in place first.

I’m not using the url base setting, and I just updated via apt-get about 10 mins ago and I’m getting similar issues.

:confused:

Develop version, ubuntu 14.04.

Screenshot of what I get if I hit refresh:

I just went back to check my config and there is nothing listed between the urlbase tags.

Flushed browser cache etc… no luck… off to try another browser just in case.

update, was using firefox… chrome produced same result…

I pushed another update. try 2.0.0.1913 it might still have some issues but the error log should be more useful.

UPdated, and I get this. It appears to be a permissions issue for Ubuntu. Any idea what permissions would have changed?

{
“message”: “Access to the path “/opt/NzbDrone/UI/Content/bootstrap.css” is denied.”,
“description”: "System.UnauthorizedAccessException: Access to the path “/opt/NzbDrone/UI/Content/bootstrap.css” is denied.\n at System.IO.FileStream…ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in :0 \n at System.IO.FileStream…ctor (System.String path, FileMode mode) [0x00000] in :0 \n at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode)\n at NzbDrone.Common.Disk.DiskProviderBase.StreamFile (System.String path) [0x00000] in :0 \n at NzbDrone.Common.Crypto.HashProvider.ComputeMd5 (System.String path) [0x00000] in :0 \n at NzbDrone.Api.Frontend.Mappers.CacheBreakerProvider.AddCacheBreakerToPath (System.String resourceUrl) [0x00000] in :0 \n at NzbDrone.Api.Frontend.Mappers.IndexHtmlMapper+<>c__DisplayClass1.b__0 (System.Text.RegularExpressions.Match match) [0x00000] in :0 \n at System.Text.RegularExpressions.Regex+Adapter.Evaluate (System.Text.RegularExpressions.Match m, System.Text.StringBuilder sb) [0x00000] in :0 \n at System.Text.RegularExpressions.BaseMachine.LTRReplace (System.Text.RegularExpressions.Regex regex, System.String input, System.Text.RegularExpressions.MatchAppendEvaluator evaluator, Int32 count, Int32 startat, Boolean needs_groups_or_captures) [0x00000] in :0 \n at System.Text.RegularExpressions.BaseMachine.LTRReplace (System.Text.RegularExpressions.Regex regex, System.String input, System.Text.RegularExpressions.MatchAppendEvaluator evaluator, Int32 count, Int32 startat) [0x00000] in :0 \n at System.Text.RegularExpressions.Regex.Replace (System.String input, System.Text.RegularExpressions.MatchEvaluator evaluator, Int32 count, Int32 startat) [0x00000] in :0 \n at System.Text.RegularExpressions.Regex.Replace (System.String input, System.Text.RegularExpressions.MatchEvaluator evaluator) [0x00000] in :0 \n at NzbDrone.Api.Frontend.Mappers.IndexHtmlMapper.GetIndexText () [0x00000] in :0 \n at NzbDrone.Api.Frontend.Mappers.IndexHtmlMapper.GetContentStream (System.String filePath) [0x00000] in :0 \n at NzbDrone.Api.Frontend.Mappers.StaticResourceMapperBase+<>c__DisplayClass2.b__0 () [0x00000] in :0 \n at Nancy.Responses.StreamResponse+<>c__DisplayClass1.b__0 (System.IO.Stream stream) [0x00000] in :0 \n at NzbDrone.Api.Extensions.Pipelines.GzipCompressionPipeline.CompressResponse (Nancy.Request request, Nancy.Response response) [0x00000] in :0 "
}

Same errror,

2.0.0.1919 on ubuntu

finally just opened up /opt/nzbdrone to 777 was able to get in, which I guess is kind of a shotgun approch as its been working for months as is.

Updated again this morning to 1919 and same issue w/ permissions.

I took a different path from davlaw - instead of going 777 I changed the owner of /opt/NznDrone from root:root to [me]:[mygroup]

That’s working.

Hope this info helps. :slight_smile:

EDIT: the greater/less than symbols don’t show.

root:root changed to? Not sure I understand “to:”

Sorry - it took bracketed info and disappered it. I wasn’t looking at the preveiw pane.

changed to [me]:[my-group]

had to back up and try this route… after last update error was still present. hope this one sticks

unless there is something up with drone’s installer?

Well, after using apt-get to update my install I’m back to getting the error again.

/opt/nzbdrone kept ownership as I set it, but the new files installed as root:root

so I’ll change permssions again, but I think we need to toss this back to the developers for more questions about why its happening.

Just looked at the log @tymanthius posted a day ago and instantly knew what it was. I’ll fix it when I get home, it’s ridiculously simple. However it’s a different issue than the OP, fyi.

@tymanthius @davlaw, should be fixed now on .1927, lemme know if it resolves the problem.

Works fine now.

Thanks. :slight_smile:

yea, just did apt-get to 1927, seems ok now

Thanks…