[GH-ISSUE #25] [Installation Help]: Scans but no metadata/images #5

Closed
opened 2026-03-23 20:32:48 +00:00 by mirror · 16 comments
Owner

Originally created by @zudiguy on GitHub (Oct 24, 2023).
Original GitHub issue: https://github.com/tubearchivist/tubearchivist-plex/issues/25

Installation instructions

  • I'm running the latest version of the TubeArchivist Plex Integration Scanner and Agent. I have read the latest release notes and installation instructions.

Operating System

Docker/linux

Your installation or setup question

Having problems with getting metadata and images to show - I've tried everything ta host from https:/tubearchivist.mydomain.com & docker Ip address. This is my 3rd server I tried this on. The server currently is running traefik & authelia not sure if that will cause a conflict

Screenshot 2023-10-24 at 8 28 16 AM

Relevant log output

2023-10-24 12:37:52,495 (7f28c4a57b38) :  DEBUG (model:229) - Serializing to /config/Library/Application Support/Plex Media Server/Metadata/TV Shows/b/be9eaac879d40510a52240c590125f723acdc00.bundle/Contents/com.plexapp.agents.tubearchivist_agent/Info.xml
2023-10-24 12:37:52,496 (7f28c4a57b38) :  DEBUG (runtime:88) - Sending packed state data (119 bytes)
2023-10-24 12:37:52,496 (7f28c4a57b38) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes
2023-10-24 12:37:52,497 (7f28c49e1b38) :  ERROR (__init__:85) - Error reading or accessing url '<urllib2.Request instance at 0x7f28c4e24550>', Exception: 'HTTP Error 401: Unauthorized'
2023-10-24 12:37:52,498 (7f28c49e1b38) :  CRITICAL (agentkit:1095) - Exception in the update function of agent named 'TubeArchivist Agent', called with guid 'com.plexapp.agents.tubearchivist_agent://tubearchivist|UCS_0Yt7tPIgDQXmwhAMNIsw|UCS_0Yt7tPIgDQXmwhAMNIsw?lang=xn' (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-1cf77d501/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 1093, in _update
    agent.update(obj, media, lang, **kwargs)
  File "/config/Library/Application Support/Plex Media Server/Plug-ins/TubeArchivist-Agent.bundle/Contents/Code/__init__.py", line 469, in update
    Update(metadata, media, lang, force)
  File "/config/Library/Application Support/Plex Media Server/Plug-ins/TubeArchivist-Agent.bundle/Contents/Code/__init__.py", line 445, in Update
    Log(u'[_] Thumbs: {}'.format(thumb_vid))
  File "/config/Library/Application Support/Plex Media Server/Plug-ins/TubeArchivist-Agent.bundle/Contents/Code/__init__.py", line 86, in read_url
    raise e
HTTPError: HTTP Error 401: Unauthorized

2023-10-24 12:37:52,498 (7f28c49e1b38) :  DEBUG (model:229) - Serializing to /config/Library/Application Support/Plex Media Server/Metadata/TV Shows/4/9c0d7bac0b28107d2ce54b87bf7b45091584bff.bundle/Contents/com.plexapp.agents.tubearchivist_agent/Info.xml
2023-10-24 12:37:52,500 (7f28c49e1b38) :  DEBUG (runtime:88) - Sending packed state data (119 bytes)
2023-10-24 12:37:52,500 (7f28c49e1b38) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes
Originally created by @zudiguy on GitHub (Oct 24, 2023). Original GitHub issue: https://github.com/tubearchivist/tubearchivist-plex/issues/25 ### Installation instructions - [X] I'm running the latest version of the TubeArchivist Plex Integration Scanner and Agent. I have read the latest release notes and installation instructions. ### Operating System Docker/linux ### Your installation or setup question Having problems with getting metadata and images to show - I've tried everything ta host from https:/tubearchivist.mydomain.com & docker Ip address. This is my 3rd server I tried this on. The server currently is running traefik & authelia not sure if that will cause a conflict <img width="843" alt="Screenshot 2023-10-24 at 8 28 16 AM" src="https://github.com/tubearchivist/tubearchivist-plex/assets/2615692/fef90524-03c3-4589-9a9f-a9ca06372fee"> ### Relevant log output ```Shell 2023-10-24 12:37:52,495 (7f28c4a57b38) : DEBUG (model:229) - Serializing to /config/Library/Application Support/Plex Media Server/Metadata/TV Shows/b/be9eaac879d40510a52240c590125f723acdc00.bundle/Contents/com.plexapp.agents.tubearchivist_agent/Info.xml 2023-10-24 12:37:52,496 (7f28c4a57b38) : DEBUG (runtime:88) - Sending packed state data (119 bytes) 2023-10-24 12:37:52,496 (7f28c4a57b38) : DEBUG (runtime:924) - Response: [200] str, 16 bytes 2023-10-24 12:37:52,497 (7f28c49e1b38) : ERROR (__init__:85) - Error reading or accessing url '<urllib2.Request instance at 0x7f28c4e24550>', Exception: 'HTTP Error 401: Unauthorized' 2023-10-24 12:37:52,498 (7f28c49e1b38) : CRITICAL (agentkit:1095) - Exception in the update function of agent named 'TubeArchivist Agent', called with guid 'com.plexapp.agents.tubearchivist_agent://tubearchivist|UCS_0Yt7tPIgDQXmwhAMNIsw|UCS_0Yt7tPIgDQXmwhAMNIsw?lang=xn' (most recent call last): File "/usr/lib/plexmediaserver/Resources/Plug-ins-1cf77d501/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 1093, in _update agent.update(obj, media, lang, **kwargs) File "/config/Library/Application Support/Plex Media Server/Plug-ins/TubeArchivist-Agent.bundle/Contents/Code/__init__.py", line 469, in update Update(metadata, media, lang, force) File "/config/Library/Application Support/Plex Media Server/Plug-ins/TubeArchivist-Agent.bundle/Contents/Code/__init__.py", line 445, in Update Log(u'[_] Thumbs: {}'.format(thumb_vid)) File "/config/Library/Application Support/Plex Media Server/Plug-ins/TubeArchivist-Agent.bundle/Contents/Code/__init__.py", line 86, in read_url raise e HTTPError: HTTP Error 401: Unauthorized 2023-10-24 12:37:52,498 (7f28c49e1b38) : DEBUG (model:229) - Serializing to /config/Library/Application Support/Plex Media Server/Metadata/TV Shows/4/9c0d7bac0b28107d2ce54b87bf7b45091584bff.bundle/Contents/com.plexapp.agents.tubearchivist_agent/Info.xml 2023-10-24 12:37:52,500 (7f28c49e1b38) : DEBUG (runtime:88) - Sending packed state data (119 bytes) 2023-10-24 12:37:52,500 (7f28c49e1b38) : DEBUG (runtime:924) - Response: [200] str, 16 bytes ```
Author
Owner

@lamusmaser commented on GitHub (Oct 24, 2023):

From the Managed Library > Edit... > Advanced, what do you have configured for TubeArchivist URL?

<!-- gh-comment-id:1777259556 --> @lamusmaser commented on GitHub (Oct 24, 2023): From the `Managed Library` > `Edit...` > `Advanced`, what do you have configured for `TubeArchivist URL`?
Author
Owner

@zudiguy commented on GitHub (Oct 24, 2023):

https://tubearchivist.mydomain.com

<!-- gh-comment-id:1777278092 --> @zudiguy commented on GitHub (Oct 24, 2023): https://tubearchivist.mydomain.com
Author
Owner

@lamusmaser commented on GitHub (Oct 24, 2023):

OK, and if you attempt to go to that address normally, does it pull up as expected? Additionally, if you attempt to connect via the API, does that direct connect or is there an intermediary response that comes through before that point?

<!-- gh-comment-id:1777281593 --> @lamusmaser commented on GitHub (Oct 24, 2023): OK, and if you attempt to go to that address normally, does it pull up as expected? Additionally, if you attempt to connect via the API, does that direct connect or is there an intermediary response that comes through before that point?
Author
Owner

@zudiguy commented on GitHub (Oct 24, 2023):

Yes, when I go to domain it connects. Not sure what you mean connect via api

<!-- gh-comment-id:1777297033 --> @zudiguy commented on GitHub (Oct 24, 2023): Yes, when I go to domain it connects. Not sure what you mean connect via api
Author
Owner

@lamusmaser commented on GitHub (Oct 24, 2023):

We have details via the docs. I would start with a login request, then a ping request. If you need more specific guidance, please let us know.

<!-- gh-comment-id:1777303488 --> @lamusmaser commented on GitHub (Oct 24, 2023): We have details via [the docs](https://docs.tubearchivist.com/api/introduction/). I would start with a [login request](https://docs.tubearchivist.com/api/additional/#login), then a [ping request](https://docs.tubearchivist.com/api/additional/#ping). If you need more specific guidance, please let us know.
Author
Owner

@zudiguy commented on GitHub (Oct 24, 2023):

Screenshot 2023-10-24 at 10 29 17 AM
<!-- gh-comment-id:1777340985 --> @zudiguy commented on GitHub (Oct 24, 2023): <img width="1210" alt="Screenshot 2023-10-24 at 10 29 17 AM" src="https://github.com/tubearchivist/tubearchivist-plex/assets/2615692/958bd977-4c37-4871-ad11-8c9199f4cd1f">
Author
Owner

@lamusmaser commented on GitHub (Oct 24, 2023):

OK, so the connections are coming through and they don't seem to have problems with an intermediary. From the system that is running Plex, can it reach the tubearchivist API?

<!-- gh-comment-id:1777349470 --> @lamusmaser commented on GitHub (Oct 24, 2023): OK, so the connections are coming through and they don't seem to have problems with an intermediary. From the system that is running Plex, can it reach the tubearchivist API?
Author
Owner

@zudiguy commented on GitHub (Oct 24, 2023):

/api/login/ returns

Screenshot 2023-10-24 at 10 31 41 AM
<!-- gh-comment-id:1777349534 --> @zudiguy commented on GitHub (Oct 24, 2023): /api/login/ returns <img width="421" alt="Screenshot 2023-10-24 at 10 31 41 AM" src="https://github.com/tubearchivist/tubearchivist-plex/assets/2615692/8d485258-749b-4930-9d68-f65c703927af">
Author
Owner

@lamusmaser commented on GitHub (Oct 24, 2023):

/api/login/ returns

Screenshot 2023-10-24 at 10 31 41 AM

The login is a POST request.

<!-- gh-comment-id:1777351045 --> @lamusmaser commented on GitHub (Oct 24, 2023): > /api/login/ returns > > <img alt="Screenshot 2023-10-24 at 10 31 41 AM" width="421" src="https://user-images.githubusercontent.com/2615692/277695784-8d485258-749b-4930-9d68-f65c703927af.png"> The login is a POST request.
Author
Owner

@zudiguy commented on GitHub (Oct 24, 2023):

This what happens when ran in a another browser

Screenshot 2023-10-24 at 10 35 53 AM
<!-- gh-comment-id:1777362821 --> @zudiguy commented on GitHub (Oct 24, 2023): This what happens when ran in a another browser <img width="500" alt="Screenshot 2023-10-24 at 10 35 53 AM" src="https://github.com/tubearchivist/tubearchivist-plex/assets/2615692/bbf0594f-e006-43fc-95b4-2b6492edd626">
Author
Owner

@zudiguy commented on GitHub (Oct 24, 2023):

{"detail":"Method "GET" not allowed."}

<!-- gh-comment-id:1777365448 --> @zudiguy commented on GitHub (Oct 24, 2023): {"detail":"Method \"GET\" not allowed."}
Author
Owner

@lamusmaser commented on GitHub (Oct 24, 2023):

Right, so you have to be authenticated and pass the authentication token with the ping request's header. If you can run a curl or programmatic approach to the API request from the Plex server's system to the TA endpoint, that should help us understand what is happening with the request. Based on what I am seeing, I would assume that the API key is probably not correct, since I am seeing a Response 200 with 401 in between.

<!-- gh-comment-id:1777377402 --> @lamusmaser commented on GitHub (Oct 24, 2023): Right, so you have to be authenticated and pass the authentication token with the ping request's header. If you can run a `curl` or programmatic approach to the API request from the Plex server's system to the TA endpoint, that should help us understand what is happening with the request. Based on what I am seeing, I would assume that the API key is probably not correct, since I am seeing a Response 200 with 401 in between.
Author
Owner

@zudiguy commented on GitHub (Oct 24, 2023):

I think Authelia is causing problems.

<!-- gh-comment-id:1777441200 --> @zudiguy commented on GitHub (Oct 24, 2023): I think Authelia is causing problems.
Author
Owner

@lamusmaser commented on GitHub (Oct 24, 2023):

It is possible. I don't have Authelia setup, so I can't test its integration limitations.

Ultimately, what is being looked for is:
The TubeArchivist endpoint at the designated URL.
The API key from TubeArchivist that allows access.
That should return a response that verifies that the connection can be made.

If that doesn't work as expected, then it can cause issues. If Authelia is standing in between any of those steps and not passing it properly to the endpoint, then we might have a problem.

<!-- gh-comment-id:1777448201 --> @lamusmaser commented on GitHub (Oct 24, 2023): It is possible. I don't have Authelia setup, so I can't test its integration limitations. Ultimately, what is being looked for is: The TubeArchivist endpoint at the designated URL. The API key from TubeArchivist that allows access. That should return a response that verifies that the connection can be made. If that doesn't work as expected, then it can cause issues. If Authelia is standing in between any of those steps and not passing it properly to the endpoint, then we might have a problem.
Author
Owner

@zudiguy commented on GitHub (Oct 24, 2023):

That was it I had had to setup a bypass for tubearchivist

<!-- gh-comment-id:1777458902 --> @zudiguy commented on GitHub (Oct 24, 2023): That was it I had had to setup a bypass for tubearchivist
Author
Owner

@zudiguy commented on GitHub (Oct 24, 2023):

Thanks for your help

<!-- gh-comment-id:1777468765 --> @zudiguy commented on GitHub (Oct 24, 2023): Thanks for your help
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tubearchivist/archived-tubearchivist-plex#5
No description provided.