Jump to content


Photo

camera upload issues

ios camera upload

  • Please log in to reply
15 replies to this topic

#1 Jägs OFFLINE  

Jägs

    Advanced Member

  • Members
  • 58 posts
  • Local time: 05:41 AM

Posted 26 November 2019 - 05:04 PM

Greetings:

 

As I'm running out of space on Google Photos, I decided to try out the Camera Upload feature in Emby.  I enabled it on the server side, and set it up in the iOS app on my iPhone, but nothing is syncing. 

 

Thinking it was a permission issue on the server side, I set up a path and gave Emby R/W access to it--I tested this by starting a shell with the Emby user and creating files and subfolders from the command line.

 

In looking at the server log, it seems that when the process starts, I get the following error:

2019-11-26 14:42:38.518 Info HttpServer: HTTP GET http://127.0.0.1:8096/emby/emby/Devices/CameraUploads?DeviceId=87BE01D4-D128-4F70-8A9F-5510EC1267A2. UserAgent: Emby/1 CFNetwork/1120 Darwin/19.0.0
2019-11-26 14:42:38.519 Error HttpServer: Access token is invalid or expired.
2019-11-26 14:42:38.519 Info HttpServer: HTTP Response 401 to 107.77.210.67. Time: 1ms. http://127.0.0.1:8096/emby/emby/Devices/CameraUploads?DeviceId=87BE01D4-D128-4F70-8A9F-5510EC1267A2

Not sure if that is the issue or if it is unrelated.  A review of the error on the forums indicates its a routine error with cached credentials.

 

Here's how I have it set up on the server side:

 

Attached File  Screen Shot 2019-11-26 at 2.35.27 PM.png   301.4KB   4 downloads

 

Again, I've verified that Emby has R/W to the specified path.

 

On the app side, here's how it is configured:

 

Attached File  IMG_5035.png   225.22KB   4 downloads

 

And I double checked that Emby has permissions to access my photo library:

 

Attached File  IMG_5036.png   201.05KB   5 downloads

 

Any idea why photos are not uploading?

eric@mcp:/media/docs/pictures/upload$ ls -la
total 16
drwxrwxr-x   2 emby eric  4096 Nov 25 22:00 .
drwxr-xr-x 110 eric eric 12288 Nov 25 18:26 ..
eric@mcp:/media/docs/pictures/upload$

NOTE:  I have a lifetime Premiere subscription.

 

Attached Files



#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146173 posts
  • Local time: 06:41 AM

Posted 26 November 2019 - 05:27 PM

Did you log out of the app?



#3 Jägs OFFLINE  

Jägs

    Advanced Member

  • Members
  • 58 posts
  • Local time: 05:41 AM

Posted 26 November 2019 - 07:45 PM

No, but I did restart the app after making the changes.  I'll try logging out and see what happens.



#4 Jägs OFFLINE  

Jägs

    Advanced Member

  • Members
  • 58 posts
  • Local time: 05:41 AM

Posted 26 November 2019 - 08:09 PM

I've logged out of the app, restarted it, logged it back in and still no joy.

 

I also restarted the Emby service, repeated the above, and still no joy.

 

The log is still showing the same error:

2019-11-26 18:07:09.458 Info HttpServer: HTTP GET http://10.0.1.2:8096/emby/Devices/CameraUploads?DeviceId=87BE01D4-D128-4F70-8A9F-5510EC1267A2. UserAgent: Emby/1 CFNetwork/1120 Darwin/19.0.0
2019-11-26 18:07:09.462 Error HttpServer: Access token is invalid or expired.
2019-11-26 18:07:09.462 Info HttpServer: HTTP Response 401 to 10.0.1.22. Time: 5ms. http://10.0.1.2:8096/emby/Devices/CameraUploads?DeviceId=87BE01D4-D128-4F70-8A9F-5510EC1267A2

On the server side, I did have the original path pointing to a symlink, so before restarting, I changed the path to the direct path.  Still no joy.

 

Other suggestions?



#5 Jägs OFFLINE  

Jägs

    Advanced Member

  • Members
  • 58 posts
  • Local time: 05:41 AM

Posted 27 November 2019 - 08:52 PM

NOTE:  I just updated to 4.3.0.30 and am still experiencing the same issue.

2019-11-27 18:49:29.157 Info HttpServer: HTTP GET http://10.0.1.2:8096/emby/Devices/CameraUploads?DeviceId=87BE01D4-D128-4F70-8A9F-5510EC1267A2. UserAgent: Emby/1 CFNetwork/1120 Darwin/19.0.0
2019-11-27 18:49:29.163 Error HttpServer: Access token is invalid or expired.
2019-11-27 18:49:29.164 Info HttpServer: HTTP Response 401 to 10.0.1.22. Time: 6ms. http://10.0.1.2:8096/emby/Devices/CameraUploads?DeviceId=87BE01D4-D128-4F70-8A9F-5510EC1267A2

I did log out of the app and log back in.



#6 Jägs OFFLINE  

Jägs

    Advanced Member

  • Members
  • 58 posts
  • Local time: 05:41 AM

Posted 30 November 2019 - 11:44 PM

Luke, any other suggestions?



#7 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146173 posts
  • Local time: 06:41 AM

Posted 05 December 2019 - 01:35 AM

We're looking into this. Thanks for reporting.



#8 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146173 posts
  • Local time: 06:41 AM

Posted 05 December 2019 - 01:38 AM

Curious, did you log into the app using Emby Connect, or your local server login?



#9 Jägs OFFLINE  

Jägs

    Advanced Member

  • Members
  • 58 posts
  • Local time: 05:41 AM

Posted 10 December 2019 - 01:25 AM

Thanks for getting back to me.  I generally only log in via the local server login.  I don't think I've ever used Emby Connect; certainly not recently.



#10 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146173 posts
  • Local time: 06:41 AM

Posted 23 December 2019 - 01:03 PM

Have you tried with the latest update to the app?

#11 Jägs OFFLINE  

Jägs

    Advanced Member

  • Members
  • 58 posts
  • Local time: 05:41 AM

Posted 11 January 2020 - 06:21 PM

No joy.  I'm running v1.8.9 on the app and my server is v4.1.3.0 and I'm still getting the same access token error:

2020-01-11 16:05:30.157 Info HttpServer: HTTP GET http://10.0.1.2:8096/emby/Devices/CameraUploads?DeviceId=87BE01D4-D128-4F70-8A9F-5510EC1267A2. UserAgent: Emby/7 CFNetwork/1121.2.2 Darwin/19.2.0
2020-01-11 16:05:30.159 Error HttpServer: Access token is invalid or expired.
2020-01-11 16:05:30.159 Info HttpServer: HTTP Response 401 to 10.0.1.96. Time: 2ms. http://10.0.1.2:8096/emby/Devices/CameraUploads?DeviceId=87BE01D4-D128-4F70-8A9F-5510EC1267A2

I use the DVR feature as well, so I double checked to make sure I have the same permissions set for the camera uploads folder as I do for DVR:

eric@mcp:/media/.raid/md43$ ls -ld /media/docs/pictures/upload
drwxrwxr-x 2 emby eric 4096 Dec 18 13:04 /media/docs/pictures/upload

eric@mcp:/media/.raid/md43$ ls -ld /media/.raid/md41/dvr
drwxrwxr-x 13 emby eric 4096 Dec 25 11:38 /media/.raid/md41/dvr

Furthermore, when I sudo the "emby" user, I am able to create files and folders without error:

eric@mcp:~$ sudo -u emby bash
[sudo] password for eric: 
emby@mcp:~$ cd /media/docs/pictures/upload
emby@mcp:/media/docs/pictures/upload$ touch test.txt
emby@mcp:/media/docs/pictures/upload$ mkdir dummy
emby@mcp:/media/docs/pictures/upload$ ls -la
total 20
drwxrwxr-x   3 emby eric  4096 Jan 11 16:11 .
drwxr-xr-x 111 eric eric 12288 Dec  8 10:44 ..
drwxr-xr-x   2 emby emby  4096 Jan 11 16:11 dummy
-rw-r--r--   1 emby emby     0 Jan 11 16:11 test.txt
emby@mcp:/media/docs/pictures/upload$ 

I also tested this on my wife's phone and created a separate account on Emby for her, but it did not work for her, either.

 

So, I'm at a loss.  Usually when I've experienced issues with Emby, it's a permission of some sort, but I've tried everything I can think of permission wise, and it's still not working.

 

Other ideas?



#12 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146173 posts
  • Local time: 06:41 AM

Posted 11 January 2020 - 06:36 PM

Well the error is that the access token issued by your server is no longer valid. That could mean that the app is hanging onto an upload url for too long and not updating it as the access token changes. It also could just mean that the user has been signed out. Still looking into this. Thanks.



#13 Jägs OFFLINE  

Jägs

    Advanced Member

  • Members
  • 58 posts
  • Local time: 05:41 AM

Posted 11 January 2020 - 09:29 PM

Well the error is that the access token issued by your server is no longer valid. That could mean that the app is hanging onto an upload url for too long and not updating it as the access token changes. It also could just mean that the user has been signed out. Still looking into this. Thanks.

 

Great, thanks for your continued assistance!



#14 Jägs OFFLINE  

Jägs

    Advanced Member

  • Members
  • 58 posts
  • Local time: 05:41 AM

Posted 12 January 2020 - 02:00 AM

For what it's worth, I saw v1.9.0 of the Emby app was available tonight so I updated to that.  The good news is that I'm no longer seeing the access token error; however, I'm no longer seeing anything in the log regarding CameraUploads and it still doesn't appear to be uploading anything.



#15 Volfan6415 OFFLINE  

Volfan6415

    Advanced Member

  • Members
  • 114 posts

Posted 14 January 2020 - 03:32 PM

I am running v1.9.0 of the app with the latest beta and I am having the same issue.



#16 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146173 posts
  • Local time: 06:41 AM

Posted 14 January 2020 - 03:41 PM

Thanks. We are looking into it.







Also tagged with one or more of these keywords: ios, camera upload

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users