Jump to content

Unraid Docker Emby Beta (rebuilding) - not connecting to Emby Connect?!?


rottonpeech

Recommended Posts

rottonpeech

When I try to connect my users to their Emby Connect accounts, i get the following errors...

 

#1 attached image

 

#2 these log entries

2020-03-29 22:41:59.235 Info HttpServer: HTTP GET http://192.168.255.245:8096/emby/Users/9dccd3eebab74ded9361a57b1e4e884f. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
2020-03-29 22:41:59.238 Info HttpServer: HTTP Response 200 to 192.168.255.200. Time: 4ms. http://192.168.255.245:8096/emby/Users/9dccd3eebab74ded9361a57b1e4e884f
2020-03-29 22:41:59.248 Info HttpServer: HTTP POST http://192.168.255.245:8096/emby/Users/9dccd3eebab74ded9361a57b1e4e884f. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
2020-03-29 22:41:59.251 Info HttpServer: HTTP Response 204 to 192.168.255.200. Time: 4ms. http://192.168.255.245:8096/emby/Users/9dccd3eebab74ded9361a57b1e4e884f
2020-03-29 22:41:59.256 Info HttpServer: HTTP POST http://192.168.255.245:8096/emby/Users/9dccd3eebab74ded9361a57b1e4e884f/Policy. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
2020-03-29 22:41:59.260 Info HttpServer: HTTP Response 204 to 192.168.255.200. Time: 4ms. http://192.168.255.245:8096/emby/Users/9dccd3eebab74ded9361a57b1e4e884f/Policy
2020-03-29 22:41:59.264 Info HttpServer: HTTP GET http://192.168.255.245:8096/emby/System/ActivityLog/Entries?StartIndex=0&Limit=7&MinDate=2020-03-29T05%3A42%3A00.322Z&hasUserId=true. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
2020-03-29 22:41:59.265 Info HttpServer: HTTP POST http://192.168.255.245:8096/emby/Users/9dccd3eebab74ded9361a57b1e4e884f/Connect/Link. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
2020-03-29 22:41:59.266 Info HttpServer: HTTP Response 200 to 192.168.255.200. Time: 2ms. http://192.168.255.245:8096/emby/System/ActivityLog/Entries?StartIndex=0&Limit=7&MinDate=2020-03-29T05%3A42%3A00.322Z&hasUserId=true
2020-03-29 22:41:59.266 Info HttpServer: HTTP GET http://192.168.255.245:8096/emby/System/ActivityLog/Entries?StartIndex=0&Limit=4&MinDate=2020-03-23T05%3A42%3A00.323Z&hasUserId=false. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
2020-03-29 22:41:59.268 Info HttpServer: HTTP Response 200 to 192.168.255.200. Time: 1ms. http://192.168.255.245:8096/emby/System/ActivityLog/Entries?StartIndex=0&Limit=4&MinDate=2020-03-23T05%3A42%3A00.323Z&hasUserId=false
2020-03-29 22:41:59.269 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 4.5.0.2
	Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
	Operating system: Unix 4.19.107.0
	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: 12
	Program data path: /config
	Application directory: /system
	System.NullReferenceException: System.NullReferenceException: Object reference not set to an instance of an object.
	   at Emby.Server.Connect.ConnectManager.get_ConnectServerId()
	   at Emby.Server.Connect.ConnectManager.LinkUser(User user, String connectUsername)
	   at Emby.Server.Connect.Api.ConnectService.Post(CreateConnectLink 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: Emby.Server.Connect
	TargetSite: System.String get_ConnectServerId()
	
2020-03-29 22:41:59.269 Info HttpServer: HTTP Response 500 to 192.168.255.200. Time: 4ms. http://192.168.255.245:8096/emby/Users/9dccd3eebab74ded9361a57b1e4e884f/Connect/Link
2020-03-29 22:41:59.307 Info HttpServer: HTTP GET http://192.168.255.245:8096/emby/System/ActivityLog/Entries?StartIndex=0&Limit=7&MinDate=2020-03-29T05%3A42%3A00.363Z&hasUserId=true. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
2020-03-29 22:41:59.308 Info HttpServer: HTTP GET http://192.168.255.245:8096/emby/System/ActivityLog/Entries?StartIndex=0&Limit=4&MinDate=2020-03-23T05%3A42%3A00.364Z&hasUserId=false. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
2020-03-29 22:41:59.310 Info HttpServer: HTTP Response 200 to 192.168.255.200. Time: 3ms. http://192.168.255.245:8096/emby/System/ActivityLog/Entries?StartIndex=0&Limit=7&MinDate=2020-03-29T05%3A42%3A00.363Z&hasUserId=true

 #3 when i try to access the URL http://192.168.255.245:8096/emby/Users/9dccd3eebab74ded9361a57b1e4e884f/Connect/Link directly i get : 

Unable to find the specified file.

 

 

I checked permissions on users files/folders all are 666 with owner nodoby:users

 

I also checked that i can ping the emby.media server from inside the docker

 

 

i read thru the Connectivity sections of the help, but those are the basics that I have had working before my server took a dive after i tried to move my appdata from cache to users path. 

 

 

Any ideas?? 

post-298641-0-72555600-1585547129_thumb.png

Edited by rottonpeech
Link to comment
Share on other sites

mastrmind11

hasnt even been a day yet.  give people a chance to look at your issue  :rolleyes:

Link to comment
Share on other sites

rottonpeech

attach the whole log. can you access it w/o using connect?

Yes, connection with normal non-emby.connect works fine.

 

This only started happening after the server got screwed up after moving the appdata folder.

 

Oddly enough, my tv guide data is also having similar issues. I thought it was maybe the server couldn't connect to the outside world on it's own, so that's why I tried the ping tests. They passed those tests, and the server has no issues getting other download data/images. I'm just out of ideas. Was thinking I may need to just blow everything out and reinstall 100%, but I'd rather not unless its 100% necessary. The server has finally got about 80% through the first pass on the library scan.

 

Schedules are working now, but EmbyConnect is still not working. 

Edited by rottonpeech
Link to comment
Share on other sites

rottonpeech

I have looked at the rest of the log, and there are no other entries when I click on "save"

 

Here is a snippit with Debugging on

2020-03-30 21:57:49.481 Info HttpServer: HTTP GET http://192.168.255.245:8096/emby/Users/3a65ada3c8e6485c95f1a6bc9eaeebcb. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
2020-03-30 21:57:49.482 Info HttpServer: HTTP Response 200 to 192.168.255.200. Time: 2ms. http://192.168.255.245:8096/emby/Users/3a65ada3c8e6485c95f1a6bc9eaeebcb
2020-03-30 21:57:49.530 Info HttpServer: HTTP POST http://192.168.255.245:8096/emby/Users/3a65ada3c8e6485c95f1a6bc9eaeebcb. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
2020-03-30 21:57:49.533 Debug XmlSerializer: Serializing to file /config/config/users/3a65ada3c8e6485c95f1a6bc9eaeebcb/config.xml
2020-03-30 21:57:49.536 Info HttpServer: HTTP Response 204 to 192.168.255.200. Time: 6ms. http://192.168.255.245:8096/emby/Users/3a65ada3c8e6485c95f1a6bc9eaeebcb
2020-03-30 21:57:49.540 Info HttpServer: HTTP POST http://192.168.255.245:8096/emby/Users/3a65ada3c8e6485c95f1a6bc9eaeebcb/Policy. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
2020-03-30 21:57:49.543 Debug XmlSerializer: Serializing to file /config/config/users/3a65ada3c8e6485c95f1a6bc9eaeebcb/policy.xml
2020-03-30 21:57:49.546 Info HttpServer: HTTP Response 204 to 192.168.255.200. Time: 6ms. http://192.168.255.245:8096/emby/Users/3a65ada3c8e6485c95f1a6bc9eaeebcb/Policy
2020-03-30 21:57:49.550 Info HttpServer: HTTP POST http://192.168.255.245:8096/emby/Users/3a65ada3c8e6485c95f1a6bc9eaeebcb/Connect/Link. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
2020-03-30 21:57:49.555 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 4.5.0.3
	Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
	Operating system: Unix 4.19.107.0
	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: 12
	Program data path: /config
	Application directory: /system
	System.NullReferenceException: System.NullReferenceException: Object reference not set to an instance of an object.
	   at Emby.Server.Connect.ConnectManager.get_ConnectServerId()
	   at Emby.Server.Connect.ConnectManager.LinkUser(User user, String connectUsername)
	   at Emby.Server.Connect.Api.ConnectService.Post(CreateConnectLink 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: Emby.Server.Connect
	TargetSite: System.String get_ConnectServerId()
	
2020-03-30 21:57:49.555 Info HttpServer: HTTP Response 500 to 192.168.255.200. Time: 4ms. http://192.168.255.245:8096/emby/Users/3a65ada3c8e6485c95f1a6bc9eaeebcb/Connect/Link

I feel like its either

   A: the user was already invited to my server before i had to rebuild it, which if thats the case, how do I help them fix that? 

or

   B: the server is failing to access some data that is needed, and it is perhaps a bad / missing file and/or permission...

 

But aside from knowing exactly what is happening in the DLL, I'm not sure how to know this. Only a DEV would know where to check I think. I know from my days as a software dev, the worst error to troubleshoot is "NullReferenceException" They always tend to bubble up in the worst possible locations. 

Link to comment
Share on other sites

rottonpeech

forgot to click attach

 

edit- this may help too

/config/config # ls -al
total 28
drw-rw-rw-    1 99       users           53 Mar 29 22:20 .
drwxrwxrwx    1 99       users         4096 Apr  4 07:10 ..
drwxr-xr-x    1 99       users          100 Mar 30 16:08 ScheduledTasks
-rw-rw-rw-    1 99       users          195 Mar 30 01:03 branding.xml
-rw-rw-rw-    1 99       users            0 Mar 29 22:20 cinemamode.xml
drw-rw-rw-    1 99       users           32 Mar 29 22:20 dlna
-rw-rw-rw-    1 99       users            0 Mar 29 22:20 dlna.xml
-rw-rw-rw-    1 99       users            0 Mar 29 22:20 encoding.xml
-rw-rw-rw-    1 99       users         2286 Mar 31 04:59 livetv.xml
-rw-rw-rw-    1 99       users           34 Mar 30 00:02 mb.lic
-rw-rw-rw-    1 99       users            0 Mar 29 22:20 metadata.xml
-rw-rw-rw-    1 99       users          333 Mar 30 03:11 opensubtitles.xml
-rw-rw-rw-    1 99       users            0 Mar 29 22:20 playback_reporting.xml
-rw-rw-rw-    1 99       users            0 Mar 29 22:20 sync.xml
-rw-rw-rw-    1 99       users         3156 Mar 31 04:52 system.xml
drw-rw-rw-    1 99       users         4096 Mar 30 04:49 users
-rw-rw-rw-    1 99       users            0 Mar 29 22:20 xbmcmetadata.xml
/config/config # cd dlna/system
/config/config/dlna/system # ls -al
total 200
drw-rw-rw-    1 99       users         4096 Mar 29 22:20 .
drw-rw-rw-    1 99       users           18 Mar 29 22:20 ..
-rw-rw-rw-    1 99       users         3704 Mar 29 22:20 Default.xml
-rw-rw-rw-    1 99       users         3929 Mar 29 22:20 Denon AVR.xml
-rw-rw-rw-    1 99       users         3795 Mar 29 22:20 DirecTV HD-DVR.xml
-rw-rw-rw-    1 99       users         5384 Mar 29 22:20 Dish Hopper-Joey.xml
-rw-rw-rw-    1 99       users         5258 Mar 29 22:20 LG Smart TV.xml
-rw-rw-rw-    1 99       users         3244 Mar 29 22:20 Linksys DMA2100.xml
-rw-rw-rw-    1 99       users         3704 Mar 29 22:20 Marantz.xml
-rw-rw-rw-    1 99       users            0 Mar 29 22:20 MediaMonkey.xml
-rw-rw-rw-    1 99       users         5327 Mar 29 22:20 Panasonic Viera.xml
-rw-rw-rw-    1 99       users            0 Mar 29 22:20 Popcorn Hour.xml
-rw-rw-rw-    1 99       users         8050 Mar 29 22:20 Samsung Smart TV.xml
-rw-rw-rw-    1 99       users         3707 Mar 29 22:20 Sharp Smart TV.xml
-rw-rw-rw-    1 99       users        11137 Mar 29 22:20 Sony Blu-ray Player 2013.xml
-rw-rw-rw-    1 99       users        11137 Mar 29 22:20 Sony Blu-ray Player 2014.xml
-rw-rw-rw-    1 99       users        10951 Mar 29 22:20 Sony Blu-ray Player 2015.xml
-rw-rw-rw-    1 99       users        10951 Mar 29 22:20 Sony Blu-ray Player 2016.xml
-rw-rw-rw-    1 99       users        12302 Mar 29 22:20 Sony Blu-ray Player.xml
-rw-rw-rw-    1 99       users         8084 Mar 29 22:20 Sony Bravia (2010).xml
-rw-rw-rw-    1 99       users         8612 Mar 29 22:20 Sony Bravia (2011).xml
-rw-rw-rw-    1 99       users         7159 Mar 29 22:20 Sony Bravia (2012).xml
-rw-rw-rw-    1 99       users         7398 Mar 29 22:20 Sony Bravia (2013).xml
-rw-rw-rw-    1 99       users         7510 Mar 29 22:20 Sony Bravia (2014).xml
-rw-rw-rw-    1 99       users         6090 Mar 29 22:20 Sony PlayStation 3.xml
-rw-rw-rw-    1 99       users         6218 Mar 29 22:20 Sony PlayStation 4.xml
-rw-rw-rw-    1 99       users         5910 Mar 29 22:20 WDTV Live.xml
-rw-rw-rw-    1 99       users         7807 Mar 29 22:20 Xbox One.xml
-rw-rw-rw-    1 99       users            0 Mar 29 22:20 foobar2000.xml
/config/config/dlna/system # cd /config/plugins
/config/plugins # ls -al
total 2620
drw-rw-rw-    1 99       users         4096 Mar 30 01:00 .
drwxrwxrwx    1 99       users         4096 Apr  3 07:10 ..
-rw-rw-rw-    1 99       users        41472 Mar 29 22:21 AudioDb.dll
-rw-rw-rw-    1 99       users        70144 Mar 30 01:01 AutoBoxSets.dll
-rw-rw-rw-    1 99       users       116736 Mar 29 22:21 BlurayMounter.dll
-rw-rw-rw-    1 99       users        31744 Mar 29 22:21 DvdMounter.dll
-rw-rw-rw-    1 99       users      1058816 Mar 29 22:21 Emby.Dlna.dll
-rw-rw-rw-    1 99       users        44544 Mar 29 22:21 Emby.PortMapper.dll
-rw-rw-rw-    1 99       users       336384 Mar 29 22:07 Emby.Server.CinemaMode.dll
-rw-rw-rw-    1 99       users       103424 Mar 29 22:21 Emby.Webhooks.dll
-rw-rw-rw-    1 99       users            0 Mar 29 22:21 EmbyReports.dll
-rw-rw-rw-    1 99       users        66048 Mar 29 22:21 Fanart.dll
-rw-rw-rw-    1 99       users            0 Mar 29 22:21 GenreCleaner.dll
-rw-rw-rw-    1 99       users        73216 Mar 30 01:00 MBBackup.dll
-rw-rw-rw-    1 99       users       157184 Mar 29 22:21 MovieDb.dll
-rw-r--r--    1 99       users       111104 Apr  2 20:10 MusicBrainz.dll
-rw-r--r--    1 99       users       167936 Apr  1 17:10 NfoMetadata.dll
-rw-rw-rw-    1 99       users        49664 Mar 29 22:21 OMDb.dll
-rw-r--r--    1 99       users        59904 Apr  2 11:03 OpenSubtitles.dll
-rw-rw-rw-    1 99       users            0 Mar 29 22:21 RokuMetadata.dll
-rw-rw-rw-    1 99       users            0 Mar 29 22:21 Statistics.dll
-rw-rw-rw-    1 99       users        25600 Mar 29 22:21 StudioImages.dll
-rw-rw-rw-    1 99       users       122368 Mar 29 22:21 Tvdb.dll
drw-rw-rw-    1 99       users          255 Mar 30 03:08 configurations
-rw-rw-rw-    1 99       users            0 Mar 29 22:21 playback_reporting.dll
/config/plugins #

EmbyLogs.zip

Edited by rottonpeech
Link to comment
Share on other sites

rottonpeech

P.S. - i see a LOT of these 0 byte file, if there is a way to fix any of those, I'm open to suggestions

Link to comment
Share on other sites

P.S. - i see a LOT of these 0 byte file, if there is a way to fix any of those, I'm open to suggestions

 

What are the zero byte files?

Link to comment
Share on other sites

rottonpeech

What are the zero byte files?

I posted them along with the others in my last message. Just scroll through the code block. The files that are throwing errors in my logs are all there, but they are zero byte (empty) files. Not sure why Edited by rottonpeech
Link to comment
Share on other sites

rottonpeech

So I spun up a new server, and it links to EmbyConnect just fine, so its gotta be an issue with some config somewhere

Link to comment
Share on other sites

Happy2Play

Don't know anything about this docker but your database is locked and a lot of the xml files are throwing errors.  I know for example my encoding.xml is not 0 bit as shown above.

Busy: database is locked
There is an error in XML document (0, 0)
Link to comment
Share on other sites

Yea i would shut down the server and delete all of the xml files that it's complaining about.

Link to comment
Share on other sites

rottonpeech

Yea i would shut down the server and delete all of the xml files that it's complaining about.

What about the 0 byte dlls in the plugins directory? Would it be advantageous to delete them or try to remove the plugins and readd them?

Link to comment
Share on other sites

rottonpeech

So, I spent some time looking for all of the 0 byte files and painstakingly removing each of them. Not sure which of them ultimately fixed it, but I noticed the connect.txt was also 0 byte, and I'm guessing it may have had something to do with it. After all 0 byte files were removed, the server was restarted a few times to also clear out the old plugins and I'm happy to report that it server is once again allowing me to connect my users with their Emby Connect accounts!

 

Thanks to everyone who helped me on this one!

Edited by rottonpeech
Link to comment
Share on other sites

Thanks for the feedback. If you see one of these 0 byte files created again, please capture the emby server log so that we can try and get to the bottom of it. Thanks.

Link to comment
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...