Jump to content

Unable to view Home Videos and Photos /Camera Upload


Recommended Posts

Posted

I'm running emby server on a raspberry pi 4 using diet-pi, and recently updated to version 4.6.4.0. I also enabled Camera Uploads from my Android device. 

Initially I experienced the same "multiple libraries" problem as described in this topic, but I just deleted all the libraries manually and added a new one, and that seemed to resolve the issue. However, none of the images or videos in my new "Home videos and photos" album are viewable. They are all JPGs, so there shouldn't be any format/compatibility issues or anything, but clicking view creates a blank image. Checking the logs I can see it's requesting the path /web/null, which obviously returns a 404.

Checking the metadata of the image, I can see the path it's referring to is correct, and exists on the server. The server also has read permissions to the folder/file. I'm fairly sure the issue is in the UI, I've attached the recent logs, in which I tried to access some of the files (they're a bit noisy as there's a scan going on too), but I guess the problem is the ui not requesting the file correctly, as I see this:

 

2021-10-28 20:37:13.622 Info Server: http/1.1 GET http://192.168.8.21:8096/web/null. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36
2021-10-28 20:37:13.632 Error Server: Error processing request
	*** Error Report ***
	Version: 4.6.4.0
	Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_armhf.deb
	Operating system: Linux version 5.10.63-v7l+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #145
	Framework: .NET Core 3.1.13
	OS/Process: arm/arm
	Runtime: opt/emby-server/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: /var/lib/emby
	Application path: /opt/emby-server/system
	System.IO.FileNotFoundException: System.IO.FileNotFoundException: Could not find file '/opt/emby-server/system/dashboard-ui/null'.
	File name: '/opt/emby-server/system/dashboard-ui/null'
	   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
	   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
	   at System.IO.FileStream.OpenHandle(FileMode mode, FileShare share, FileOptions options)
	   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
	   at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileStream(String path, FileOpenMode mode, FileAccessMode access, FileShareMode share, Int32 bufferSize, FileOpenOptions fileOpenOptions)
	   at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileStream(String path, FileOpenMode mode, FileAccessMode access, FileShareMode share, FileOpenOptions fileOpenOptions)
	   at Emby.Server.Implementations.IO.IOManager.GetResponse(HttpRequestOptions options, MediaProtocol protocol)
	   at Emby.Server.Implementations.IO.IOManager.GetResponse(HttpRequestOptions options)
	   at Emby.Server.Implementations.HttpServer.HttpResultFactory.GetContent(StaticFileResultOptions options, Int64 offset, Int64 length, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.HttpServer.FileWriter.SetContentResponseHeaders(Nullable`1 reportedTotalContentLength, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.HttpServer.HttpResultFactory.GetStaticResult(IRequest requestContext, StaticResultOptions options)
	   at Emby.Web.Api.DashboardService.Get(GetDashboardResource request)
	   at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task)
	   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
	Source: System.Private.CoreLib
	TargetSite: Void ThrowExceptionForIoErrno(ErrorInfo, System.String, Boolean, System.Func`2[Interop+ErrorInfo,Interop+ErrorInfo])

 

 

image.png.5b74f0aff48513df38c2ec10d14ed5c7.png

image.thumb.png.72cc24b3fa2035a4a4acdccdbf06aaf6.png

embyserver.txt

Posted

Hi, this log is full of library scanning. Has the initial scan completed after setting this up?

Posted

Hi Luke you're totally right, I just checked again and it's now working! 🤦‍♂️ I set it up 24 hours ago, so assumed the scan would have worked, but thinking about it, emby server had crashed this morning, so maybe it hadn't finished its first scan. My phone also just uploaded some pics from the camera, so maybe that triggered something to resolve as well?

Either way, all sorted. Thanks again!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...