Jump to content
Jägs

camera upload issues

Recommended Posts

Jägs

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:

 

post-175572-0-78408700-1574801698_thumb.png

 

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

 

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

 

post-175572-0-68963000-1574801889_thumb.png

 

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

 

post-175572-0-70459000-1574801910_thumb.png

 

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.

 

embyserver.txt

Share this post


Link to post
Share on other sites
Luke

Did you log out of the app?

Share this post


Link to post
Share on other sites
Jägs

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

Share this post


Link to post
Share on other sites
Jägs

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?

Share this post


Link to post
Share on other sites
Jägs

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.

Share this post


Link to post
Share on other sites
Jägs

@Luke, any other suggestions?

Share this post


Link to post
Share on other sites
Luke

We're looking into this. Thanks for reporting.

Share this post


Link to post
Share on other sites
Luke

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

Share this post


Link to post
Share on other sites
Jägs

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.

Share this post


Link to post
Share on other sites
Luke

Have you tried with the latest update to the app?

Share this post


Link to post
Share on other sites
Jägs

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?

Share this post


Link to post
Share on other sites
Luke

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.

Share this post


Link to post
Share on other sites
Jägs

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!

Share this post


Link to post
Share on other sites
Jägs

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.

Share this post


Link to post
Share on other sites
Volfan6415

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

Share this post


Link to post
Share on other sites
Luke

Thanks. We are looking into it.

Share this post


Link to post
Share on other sites
maciejtreder

Any update on this? Exactly same issue on my end.

Share this post


Link to post
Share on other sites
Luke

There will be some fixes with the next update to the app so i would try again with that. Thanks.

Share this post


Link to post
Share on other sites
Jägs

Any update on this?  I've switched from an Ubuntu server to a NAS (Asustor) and though I'm running the latest update as of this post, I'm still not able to get this to work.

Share this post


Link to post
Share on other sites
Luke
8 minutes ago, Jägs said:

Any update on this?  I've switched from an Ubuntu server to a NAS (Asustor) and though I'm running the latest update as of this post, I'm still not able to get this to work.

Hi, can you please attach an emby server log from the latest version? thanks.

Share this post


Link to post
Share on other sites
Jägs

Attached is the latest log.  A quick look—albeit with an untrained eye—didn't yield anything happening on the photo upload side, which is the problem I was having before.

I also double checked that I had uploading enable in the app—and that it had permissions to the photo library on my phone—and everything seems correct.  Let me know if you need any further information and thanks in advance for your assistance!

 

IMG_6470.PNG

embyserver.txt

Share this post


Link to post
Share on other sites
Luke

Ok please try again with the next update to the iOS app. Thanks.

Share this post


Link to post
Share on other sites

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