Jump to content

Camera Uploads failing on new phone


Go to solution Solved by ddp,

Recommended Posts

Posted

Hi,

I have an Emby Premiere subscription and have had camera uploads working for my old phone, my wife's phone (still working), but it is failing since I upgraded to my new phone.  I noticed last night, and have change the app permissions to include "storage permission" which I thought was the issue (as that was disabled for some reason).  Now however, the Emby app on my phone notifies me that it is uploading images (starting with 1 of 3000 or so), and eventually getting to 1 of 8.   At this point it says 1 of 8, 1 of 7, 1 of 8, 1 of 7, 1 of 6, 1 of 5, 1 of 8, etc.   It keeps going back to 8 (mostly straight after 1 of 7, but sometimes down to 1 of 4 before it jumps back to 1 of 8).   This process never finishes.

After restarting my phone and/or the app on my phone,  the process starts again (e.g. it says it is uploading from 1 of 3000 again).

I' have attached 2 logs (with debug on this morning in embyserver.txt), where I noticed the error below in the logs repeatedly being written.  Please note, the whole process can take hours, so the errors this morning (around the 1of 3000 stage) are at 10:11 am (with debug enabled)...  The second log (embyserver-6*.txt) includes the errors (without debug logging) from last night.  My rough memory was around 8pm-> onwards will include the errors.

FWIW, I am running:  Version 4.4.3.0 (Emby Server is up to date), I have restarted my phone, the emby app - but not my server yet.   I am suspicious it relates to changing my phone over?

 

2020-09-20 10:11:17.283 Error HttpServer: Error processing request
    *** Error Report ***
    Version: 4.4.3.0
    Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
    Operating system: Unix 5.4.0.47
    64-Bit OS: True
    64-Bit Process: True
    User Interactive: True
    Runtime: file:///system/System.Private.CoreLib.dll
    System.Environment.Version: 3.1.2
    Processor count: 8
    Program data path: /config
    Application directory: /system
    System.NullReferenceException: System.NullReferenceException: Object reference not set to an instance of an object.
       at Emby.Server.Implementations.Devices.DeviceManager.GetUploadPath(DeviceInfo device)
       at Emby.Server.Implementations.Devices.DeviceManager.AcceptCameraUpload(String deviceId, Stream stream, LocalFileInfo file)
       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: Emby.Server.Implementations
    TargetSite: System.Tuple`2[System.String,System.String] GetUploadPath(MediaBrowser.Model.Devices.DeviceInfo)
    
2020-09-20 10:11:17.283 Info HttpServer: HTTP Response 500 to 192.168.0.220. Time: 21ms. http://192.168.0.2:8096/emby/Devices/CameraUploads?DeviceId=fb383cb6014ffcea&Name=20190110_195039.jpg&Album=Camera Roll&Id=Y29udGVudDovL21lZGlhL2V4dGVybmFsL2ltYWdlcy9tZWRpYS8zODE=

2020-09-20 10:11:17.288 Info HttpServer: HTTP POST http://192.168.0.2:8096/emby/Devices/CameraUploads?DeviceId=fb383cb6014ffcea&Name=20180607_091320.jpg&Album=Camera Roll&Id=Y29udGVudDovL21lZGlhL2V4dGVybmFsL2ltYWdlcy9tZWRpYS80MDE=
. UserAgent: okhttp/4.0.1
2020-09-20 10:11:17.289 Error HttpServer: Error processing request
    *** Error Report ***
    Version: 4.4.3.0
    Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
    Operating system: Unix 5.4.0.47
    64-Bit OS: True
    64-Bit Process: True
    User Interactive: True
    Runtime: file:///system/System.Private.CoreLib.dll
    System.Environment.Version: 3.1.2
    Processor count: 8
    Program data path: /config
    Application directory: /system
    System.NullReferenceException: System.NullReferenceException: Object reference not set to an instance of an object.
       at Emby.Server.Implementations.Devices.DeviceManager.GetUploadPath(DeviceInfo device)
       at Emby.Server.Implementations.Devices.DeviceManager.AcceptCameraUpload(String deviceId, Stream stream, LocalFileInfo file)
       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: Emby.Server.Implementations
    TargetSite: System.Tuple`2[System.String,System.String] GetUploadPath(MediaBrowser.Model.Devices.DeviceInfo)
    
2020-09-20 10:11:17.289 Info HttpServer: HTTP Response 500 to 192.168.0.220. Time: 1ms. 

 

 

embyserver.txt embyserver-63736156799.txt

Posted (edited)

Hi, have you set a valid path for Camera upload on the server and verified it has proper read/write and create permissions?

Does camera upload work on other devices?  How about for the same user?

 

Edited by cayars
  • Solution
Posted

I do have other cameras working on this server. I did manage to fix this just now by deleting my device from inside Emby dashboard, then it started a new sync of all my images.

 

Not sure how to close this ticket, but it can now be closed, thank you.

Posted

Choose a message as the best answer.  Can be your own message since you solved it.

Good job on that btw!

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...