Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

plexyglass plugin not loading (docker-mod) #25

Closed
daNutzzzzz opened this issue Oct 7, 2022 · 35 comments · Fixed by #28
Closed

plexyglass plugin not loading (docker-mod) #25

daNutzzzzz opened this issue Oct 7, 2022 · 35 comments · Fixed by #28
Labels
fixed This issue has been fixed and will be available in the next release.

Comments

@daNutzzzzz
Copy link

daNutzzzzz commented Oct 7, 2022

Describe the Bug

plexyglass plugin doesnt appear in Plex Plugins

Expected Behavior

plexyglass plugin appears in Plex Plugins

Additional Context

Docker version 17.09.1-ce, build 0bbe3ac
PlexPMS Version: 1.29.0.6244

Compose:

version: '3.4'
services:
    plexpms:
        container_name: plexpms
        environment:
            - 'DOCKER_MODS=lizardbyte/plexyglass:latest'
            - 'PUID=1000'
            - 'PGID=1000'
            - 'TZ=Europe/London'
            - 'VERSION=docker'
            - 'UMASK_SET=022'
            - 'PLEX_CLAIM=claim-**************'
        network_mode: host
        ports:
            - '8324:8324' # (controlling Plex for Roku via Plex Companion)
            - '32400:32400' # (access to the Plex Media Server) [required]
            - '32410:32410/udp' # (for current GDM network discovery)
            - '32412:32412/udp' # (for current GDM network discovery)
            - '32413:32413/udp' # (for current GDM network discovery)
            - '32414:32414/udp' # (for current GDM network discovery)
            - '32469:32469' # (access to the Plex DLNA Server)
        volumes:
            - './Plex-PMS/config:/config'
            - './Plex-PMS/transcode:/transcode'
            - './Multimedia:/Multimedia'
        restart: unless-stopped
        image: linuxserver/plex:latest

Plugin Folder:

[./Plex-PMS/config/Library/Application Support/Plex Media Server/Plug-ins] # ls -l
total 12
drwxr-xr-x 7 docker administrators 4096 2022-10-07 12:25 PlexyGlass.bundle/
drwxr-xr-x 3 docker administrators 4096 2020-10-24 21:02 Services.bundle/
drwxr-xr-x 4 docker administrators 4096 2020-11-07 12:22 WebTools.bundle/
[./Plex-PMS/config/Library/Application Support/Plex Media Server/Plug-ins] # cd PlexyGlass.bundle/
[./Plex-PMS/config/Library/Application Support/Plex Media Server/Plug-ins/PlexyGlass.bundle] # ls -l
total 72
-rwxr-xr-x 1 docker administrators   294 2022-10-07 12:25 CHANGELOG.md*
drwxr-xr-x 6 docker administrators  4096 2022-10-07 12:25 Contents/
-rwxr-xr-x 1 docker administrators   995 2022-10-07 12:25 Dockerfile*
-rwxr-xr-x 1 docker administrators  1070 2022-10-07 12:25 DOCKER_README.md*
drwxr-xr-x 3 docker administrators  4096 2022-10-07 12:25 docs/
-rwxr-xr-x 1 docker administrators 34523 2022-10-07 12:25 LICENSE*
-rwxr-xr-x 1 docker administrators  1252 2022-10-07 12:25 README.rst*
-rwxr-xr-x 1 docker administrators   410 2022-10-07 12:25 requirements-dev.txt*
-rwxr-xr-x 1 docker administrators    73 2022-10-07 12:25 requirements.txt*
drwxr-xr-x 2 docker administrators  4096 2022-10-07 12:25 scripts/
[./Plex-PMS/config/Library/Application Support/Plex Media Server/Plug-ins/PlexyGlass.bundle] #

image

@daNutzzzzz
Copy link
Author

I have the same issue trying to use "Themerr-plex"

@ReenigneArcher
Copy link
Member

I don't use Plex inside Docker so I will need your help to troubleshoot. After you cd into the PlexyGlass.bundle directory can you run this?

cat ./Contents/Info.plist

Same for @daNutzzzzz for Themerr-plex

@daNutzzzzz
Copy link
Author

daNutzzzzz commented Oct 7, 2022

cat ./Contents/Info.plist
cat: ./Contents/Info.plist: No such file or directory
[./Plex-PMS/config/Library/Application Support/Plex Media Server/Plug-ins/PlexyGlass.bundle/Contents] # ls -l
total 16
drwxr-xr-x 2 docker administrators 4096 2022-10-07 12:25 Code/
drwxr-xr-x 3 docker administrators 4096 2022-10-07 12:25 Libraries/
drwxr-xr-x 2 docker administrators 4096 2022-10-07 12:25 Resources/
drwxr-xr-x 3 docker administrators 4096 2022-10-07 12:25 Services/

@ReenigneArcher
Copy link
Member

ReenigneArcher commented Oct 7, 2022

Can you try

find "./Plex-PMS/config/Library/Application Support/Plex Media Server/Plug-ins/PlexyGlass.bundle" -name "Info.plist"

@daNutzzzzz
Copy link
Author

daNutzzzzz commented Oct 7, 2022

There is no output when running that command, there is no Info.plist within the Contents Folder that is within the PlexyGlass.bundle Folder

image

@ReenigneArcher
Copy link
Member

Try at the container root... I need to find where the file is (if anywhere). It should be somewhere though.

&& python ./scripts/build_plist.py # build plist \

That line runs this script -> https://github.com/LizardByte/PlexyGlass/blob/master/scripts/build_plist.py

Which creates the file.

@daNutzzzzz
Copy link
Author

image

@daNutzzzzz
Copy link
Author

image

@daNutzzzzz
Copy link
Author

daNutzzzzz commented Oct 7, 2022

Plex Plugins Log

2022-10-07 13:50:51,809 (7f872b4d2b38) :  CRITICAL (storage:60) - Exception reading file /config/Library/Application Support/Plex Media Server/Plug-ins/PlexyGlass.bundle/Contents/Info.plist (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/storage.py", line 55, in load
    f = open(filename, mode)
IOError: [Errno 2] No such file or directory: '/config/Library/Application Support/Plex Media Server/Plug-ins/PlexyGlass.bundle/Contents/Info.plist'

2022-10-07 13:50:51,810 (7f872b4d2b38) :  CRITICAL (bundleservice:141) - Exception adding bundle: PlexyGlass.bundle (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/System.bundle/Contents/Code/bundleservice.py", line 131, in update_bundles
    Log('Found duplicate identifier at %s for bundled plugin (%s), ignoring duplicate plugin.' % (path, bundle.identifier))
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/System.bundle/Contents/Code/bundleservice.py", line 18, in __init__
    self.load_plist()
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/System.bundle/Contents/Code/bundleservice.py", line 22, in load_plist
    plist = Plist.ObjectFromString(Core.storage.load(Core.storage.join_path(self.path, "Contents", "Info.plist")))
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py", line 32, in ObjectFromString
    check_size(string, max_size)
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py", line 22, in check_size
    if len(data) > max_size:
TypeError: object of type 'NoneType' has no len()

2022-10-07 13:50:51,810 (7f872b4d2b38) :  CRITICAL (storage:60) - Exception reading file /config/Library/Application Support/Plex Media Server/Plug-ins/Themerr-plex.bundle/Contents/Info.plist (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/storage.py", line 55, in load
    f = open(filename, mode)
IOError: [Errno 2] No such file or directory: '/config/Library/Application Support/Plex Media Server/Plug-ins/Themerr-plex.bundle/Contents/Info.plist'

2022-10-07 13:50:51,810 (7f872b4d2b38) :  CRITICAL (bundleservice:141) - Exception adding bundle: Themerr-plex.bundle (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/System.bundle/Contents/Code/bundleservice.py", line 131, in update_bundles
    Log('Found duplicate identifier at %s for bundled plugin (%s), ignoring duplicate plugin.' % (path, bundle.identifier))
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/System.bundle/Contents/Code/bundleservice.py", line 18, in __init__
    self.load_plist()
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/System.bundle/Contents/Code/bundleservice.py", line 22, in load_plist
    plist = Plist.ObjectFromString(Core.storage.load(Core.storage.join_path(self.path, "Contents", "Info.plist")))
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py", line 32, in ObjectFromString
    check_size(string, max_size)
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py", line 22, in check_size
    if len(data) > max_size:
TypeError: object of type 'NoneType' has no len()

@ReenigneArcher
Copy link
Member

Can you show the contents of ./Contents/Libraries/Shared/ while we're looking at this?

@daNutzzzzz
Copy link
Author

Try at the container root... I need to find where the file is (if anywhere). It should be somewhere though.

&& python ./scripts/build_plist.py # build plist \

That line runs this script -> https://github.com/LizardByte/PlexyGlass/blob/master/scripts/build_plist.py

Which creates the file.

I see you're using python to build it, i cant see python installed on this container from Linuxserver.io

@daNutzzzzz
Copy link
Author

Can you show the contents of ./Contents/Libraries/Shared/ while we're looking at this?

image

@ReenigneArcher
Copy link
Member

I see you're using python to build it, i cant see python installed on this container from Linuxserver.io

It's not included in Linuxserver's image, it's included in my build stage image. ->

FROM python:2.7.18-alpine3.11 as buildstage

@ReenigneArcher
Copy link
Member

That directory should also contain some additional folders. My guess is I have something off on the path. I'll investigate further.

@daNutzzzzz
Copy link
Author

ok thanks

@ReenigneArcher ReenigneArcher pinned this issue Oct 7, 2022
@ReenigneArcher ReenigneArcher changed the title plexyglass plugin not loading plexyglass plugin not loading (docker-mod) Oct 7, 2022
ReenigneArcher added a commit that referenced this issue Oct 7, 2022
@ReenigneArcher ReenigneArcher mentioned this issue Oct 7, 2022
9 tasks
ReenigneArcher added a commit that referenced this issue Oct 8, 2022
ReenigneArcher added a commit that referenced this issue Oct 8, 2022
ReenigneArcher added a commit that referenced this issue Oct 8, 2022
ReenigneArcher added a commit that referenced this issue Oct 8, 2022
ReenigneArcher added a commit that referenced this issue Oct 8, 2022
ReenigneArcher added a commit that referenced this issue Oct 8, 2022
ReenigneArcher added a commit that referenced this issue Oct 8, 2022
ReenigneArcher added a commit that referenced this issue Oct 8, 2022
ReenigneArcher added a commit that referenced this issue Oct 8, 2022
ReenigneArcher added a commit that referenced this issue Oct 8, 2022
ReenigneArcher added a commit that referenced this issue Oct 8, 2022
ReenigneArcher added a commit that referenced this issue Oct 8, 2022
ReenigneArcher added a commit that referenced this issue Oct 8, 2022
ReenigneArcher added a commit that referenced this issue Oct 8, 2022
ReenigneArcher added a commit that referenced this issue Oct 8, 2022
@ReenigneArcher ReenigneArcher added the fixed This issue has been fixed and will be available in the next release. label Oct 8, 2022
@LizardByte-bot
Copy link
Member

This issue has been fixed and will be available in the next release.

@ReenigneArcher
Copy link
Member

ReenigneArcher commented Oct 9, 2022

Could you try this tag? lizardbyte/plexyglass:nightly

If it resolves the issue, I'll apply the same changes to Themerr-plex and get a new release published for both.

@ReenigneArcher ReenigneArcher mentioned this issue Oct 9, 2022
5 tasks
@daNutzzzzz
Copy link
Author

Could you try this tag? lizardbyte/plexyglass:nightly

If it resolves the issue, I'll apply the same changes to Themerr-plex and get a new release published for both.

Hi,

Info.plist file is now present however plugin still doesn't load:

Plex Container log

Error starting framework core for /config/Library/Application Support/Plex Media Server/Plug-ins/PlexyGlass.bundle.

@daNutzzzzz
Copy link
Author

daNutzzzzz commented Oct 9, 2022

Dont know if this helps from plugins log

2022-10-09 11:46:05,498 (7f3092454b38) :  DEBUG (runtime:717) - Handling request GET /system/messaging/clear_events/dev.lizardbyte.plexyglass
2022-10-09 11:46:05,530 (7f3092454b38) :  DEBUG (runtime:814) - Found route matching /system/messaging/clear_events/dev.lizardbyte.plexyglass
2022-10-09 11:46:05,532 (7f3092454b38) :  DEBUG (runtime:88) - Sending packed state data (99 bytes)
2022-10-09 11:46:05,532 (7f3092454b38) :  DEBUG (runtime:924) - Response: [200] str, 0 bytes
2022-10-09 11:46:05,533 (7f3092454b38) :  DEBUG (runtime:717) - Handling request GET /system/messaging/clear_events/com.plexapp.plugins.WebTools
2022-10-09 11:46:05,535 (7f3092454b38) :  DEBUG (runtime:814) - Found route matching /system/messaging/clear_events/com.plexapp.plugins.WebTools
2022-10-09 11:46:05,536 (7f3092454b38) :  DEBUG (runtime:88) - Sending packed state data (99 bytes)
2022-10-09 11:46:05,536 (7f3092454b38) :  DEBUG (runtime:924) - Response: [200] str, 0 bytes
2022-10-09 11:46:05,587 (7f3092454b38) :  DEBUG (runtime:717) - Handling request GET /system/:/prefs
2022-10-09 11:46:05,609 (7f3092454b38) :  DEBUG (runtime:814) - Found route matching /system/:/prefs
2022-10-09 11:46:05,609 (7f3092454b38) :  DEBUG (preferences:258) - Loaded preferences from DefaultPrefs.json
2022-10-09 11:46:05,611 (7f3092454b38) :  DEBUG (preferences:178) - Loaded the user preferences for com.plexapp.system
2022-10-09 11:46:05,613 (7f3092454b38) :  DEBUG (runtime:88) - Sending packed state data (99 bytes)
2022-10-09 11:46:05,613 (7f3092454b38) :  DEBUG (runtime:924) - Response: [200] MediaContainer, 418 bytes
2022-10-09 11:46:05,681 (7f3092454b38) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.system/resourceHashes
2022-10-09 11:46:05,682 (7f3092454b38) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.system/resourceHashes
2022-10-09 11:46:05,683 (7f3092454b38) :  DEBUG (networking:143) - Requesting 'https://resources-cdn.plexapp.com/hashes.json'
2022-10-09 11:46:05,694 (7f3091e7db38) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.system/resourceHashes
2022-10-09 11:46:05,695 (7f3091e7db38) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.system/resourceHashes
2022-10-09 11:46:05,886 (7f3092454b38) :  ERROR (networking:196) - Error opening URL 'https://resources-cdn.plexapp.com/hashes.json'
2022-10-09 11:46:05,886 (7f3092454b38) :  CRITICAL (runtime:1299) - Exception getting hosted resource hashes (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 1291, in get_resource_hashes
    json = self._core.networking.http_request("https://resources-cdn.plexapp.com/hashes.json", timeout=5).content
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 242, in content
    return self.__str__()
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 220, in __str__
    self.load()
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 158, in load
    f = self._opener.open(req, timeout=self._timeout)
  File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden

2022-10-09 11:46:05,887 (7f3092454b38) :  DEBUG (runtime:88) - Sending packed state data (99 bytes)
2022-10-09 11:46:05,888 (7f3091e7db38) :  DEBUG (runtime:88) - Sending packed state data (99 bytes)

@ReenigneArcher
Copy link
Member

Dont know if this helps from plugins log

2022-10-09 11:46:05,498 (7f3092454b38) :  DEBUG (runtime:717) - Handling request GET /system/messaging/clear_events/dev.lizardbyte.plexyglass
2022-10-09 11:46:05,530 (7f3092454b38) :  DEBUG (runtime:814) - Found route matching /system/messaging/clear_events/dev.lizardbyte.plexyglass
2022-10-09 11:46:05,532 (7f3092454b38) :  DEBUG (runtime:88) - Sending packed state data (99 bytes)
2022-10-09 11:46:05,532 (7f3092454b38) :  DEBUG (runtime:924) - Response: [200] str, 0 bytes
2022-10-09 11:46:05,533 (7f3092454b38) :  DEBUG (runtime:717) - Handling request GET /system/messaging/clear_events/com.plexapp.plugins.WebTools
2022-10-09 11:46:05,535 (7f3092454b38) :  DEBUG (runtime:814) - Found route matching /system/messaging/clear_events/com.plexapp.plugins.WebTools
2022-10-09 11:46:05,536 (7f3092454b38) :  DEBUG (runtime:88) - Sending packed state data (99 bytes)
2022-10-09 11:46:05,536 (7f3092454b38) :  DEBUG (runtime:924) - Response: [200] str, 0 bytes
2022-10-09 11:46:05,587 (7f3092454b38) :  DEBUG (runtime:717) - Handling request GET /system/:/prefs
2022-10-09 11:46:05,609 (7f3092454b38) :  DEBUG (runtime:814) - Found route matching /system/:/prefs
2022-10-09 11:46:05,609 (7f3092454b38) :  DEBUG (preferences:258) - Loaded preferences from DefaultPrefs.json
2022-10-09 11:46:05,611 (7f3092454b38) :  DEBUG (preferences:178) - Loaded the user preferences for com.plexapp.system
2022-10-09 11:46:05,613 (7f3092454b38) :  DEBUG (runtime:88) - Sending packed state data (99 bytes)
2022-10-09 11:46:05,613 (7f3092454b38) :  DEBUG (runtime:924) - Response: [200] MediaContainer, 418 bytes
2022-10-09 11:46:05,681 (7f3092454b38) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.system/resourceHashes
2022-10-09 11:46:05,682 (7f3092454b38) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.system/resourceHashes
2022-10-09 11:46:05,683 (7f3092454b38) :  DEBUG (networking:143) - Requesting 'https://resources-cdn.plexapp.com/hashes.json'
2022-10-09 11:46:05,694 (7f3091e7db38) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.system/resourceHashes
2022-10-09 11:46:05,695 (7f3091e7db38) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.system/resourceHashes
2022-10-09 11:46:05,886 (7f3092454b38) :  ERROR (networking:196) - Error opening URL 'https://resources-cdn.plexapp.com/hashes.json'
2022-10-09 11:46:05,886 (7f3092454b38) :  CRITICAL (runtime:1299) - Exception getting hosted resource hashes (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 1291, in get_resource_hashes
    json = self._core.networking.http_request("https://resources-cdn.plexapp.com/hashes.json", timeout=5).content
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 242, in content
    return self.__str__()
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 220, in __str__
    self.load()
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-819d3678c/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 158, in load
    f = self._opener.open(req, timeout=self._timeout)
  File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden

2022-10-09 11:46:05,887 (7f3092454b38) :  DEBUG (runtime:88) - Sending packed state data (99 bytes)
2022-10-09 11:46:05,888 (7f3091e7db38) :  DEBUG (runtime:88) - Sending packed state data (99 bytes)

I get that same error on every single plugin, but they still load.

@daNutzzzzz
Copy link
Author

Fair enough, cant say ive ever spent much time there so wouldn't know :)

It still leaves the plugin not working with this error: #25 (comment)

@ReenigneArcher
Copy link
Member

Just to verify, even with that error you're saying it doesn't appear in the Plugins menu?

@ReenigneArcher
Copy link
Member

This is my log (from windows though). Can you share the log from "/config/Library/Application Support/Plex Media Server/Logs/PMS Plugin Logs/dev.lizardbyte.plexyglass.log"?

2022-10-09 11:06:10,355 (2308) :  INFO (core:349) - Starting framework core - Version: 2.6.3, Build: 788f824 (Wed Aug 17 12:44:49 UTC 2022)
2022-10-09 11:06:10,355 (2308) :  DEBUG (core:361) - Using the elevated policy
2022-10-09 11:06:10,355 (2308) :  DEBUG (core:450) - Starting runtime component.
2022-10-09 11:06:10,371 (2308) :  DEBUG (core:450) - Starting caching component.
2022-10-09 11:06:10,371 (2308) :  DEBUG (core:450) - Starting data component.
2022-10-09 11:06:10,371 (2308) :  DEBUG (core:450) - Starting networking component.
2022-10-09 11:06:10,371 (2308) :  DEBUG (networking:261) - Loaded HTTP cookies
2022-10-09 11:06:10,371 (2308) :  DEBUG (networking:428) - Setting the default network timeout to 20.0
2022-10-09 11:06:10,371 (2308) :  DEBUG (core:450) - Starting localization component.
2022-10-09 11:06:10,371 (2308) :  INFO (localization:409) - Setting the default locale to en-us
2022-10-09 11:06:10,371 (2308) :  DEBUG (core:450) - Starting messaging component.
2022-10-09 11:06:10,371 (2308) :  DEBUG (core:450) - Starting debugging component.
2022-10-09 11:06:10,371 (2308) :  DEBUG (core:450) - Starting services component.
2022-10-09 11:06:10,371 (2308) :  DEBUG (core:450) - Starting myplex component.
2022-10-09 11:06:10,371 (23d0) :  DEBUG (networking:143) - Requesting 'https://127.0.0.1:32400/system/messaging/clear_events/dev.lizardbyte.plexyglass'
2022-10-09 11:06:10,371 (2308) :  DEBUG (core:450) - Starting notifications component.
2022-10-09 11:06:10,543 (2308) :  DEBUG (accessor:68) - Creating a new model access point for provider dev.lizardbyte.plexyglass in namespace 'metadata'
2022-10-09 11:06:10,559 (2308) :  DEBUG (networking:143) - Requesting 'https://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2022-10-09 11:06:10,966 (2308) :  ERROR (networking:196) - Error opening URL 'https://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2022-10-09 11:06:10,966 (2308) :  CRITICAL (core:574) - Exception getting hosted resource hashes (most recent call last):
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-788f82488\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\runtime.py", line 1293, in get_resource_hashes
    json = self._core.networking.http_request("https://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes", timeout=10).content
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-788f82488\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\networking.py", line 242, in content
    return self.__str__()
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-788f82488\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\networking.py", line 220, in __str__
    self.load()
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-788f82488\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\networking.py", line 158, in load
    f = self._opener.open(req, timeout=self._timeout)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 435, in open
    response = meth(req, response)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found

2022-10-09 11:06:10,980 (2308) :  DEBUG (runtime:1117) - Created a thread named 'load_all_services'
2022-10-09 11:06:10,980 (2048) :  DEBUG (services:265) - Plug-in is not daemonized - loading services from system
2022-10-09 11:06:10,980 (2048) :  DEBUG (networking:143) - Requesting 'https://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_'
2022-10-09 11:06:10,996 (2308) :  DEBUG (runtime:1117) - Created a thread named 'get_server_info'
2022-10-09 11:06:10,996 (2308) :  DEBUG (core:150) - Finished starting framework core
2022-10-09 11:06:10,996 (2308) :  DEBUG (core:560) - Loading plug-in code
2022-10-09 11:06:10,996 (1948) :  DEBUG (networking:143) - Requesting 'https://127.0.0.1:32400'
2022-10-09 11:06:11,012 (2308) :  DEBUG (core:566) - Finished loading plug-in code
2022-10-09 11:06:11,012 (2308) :  DEBUG (runtime:640) - Adding a prefix handler for 'PlexyGlass' ('/video/plexyglass')
2022-10-09 11:06:11,012 (2308) :  INFO (core:611) - Started plug-in
2022-10-09 11:06:11,012 (2308) :  DEBUG (socketinterface:160) - Starting socket server
2022-10-09 11:06:11,028 (1948) :  DEBUG (core:538) - Machine identifier is 3d6a3615408be5172548cf7c09523c3c0f812cd6
2022-10-09 11:06:11,028 (1948) :  DEBUG (core:539) - Server version is 1.28.1.6104-788f82488
2022-10-09 11:06:11,075 (2308) :  DEBUG (runtime:1117) - Created a thread named 'start'
2022-10-09 11:06:11,075 (2308) :  INFO (socketinterface:184) - Socket server started on port 49813
2022-10-09 11:06:11,075 (2308) :  INFO (pipeinterface:25) - Entering run loop
2022-10-09 11:06:11,075 (2308) :  DEBUG (runtime:717) - Handling request GET /:/prefixes
2022-10-09 11:06:11,075 (2308) :  DEBUG (runtime:814) - Found route matching /:/prefixes
2022-10-09 11:06:11,075 (2048) :  DEBUG (services:362) - Loaded services
2022-10-09 11:06:11,075 (520) :  DEBUG (services:438) - No shared code to load
2022-10-09 11:06:11,075 (2308) :  DEBUG (runtime:924) - Response: [200] MediaContainer, 439 bytes

@daNutzzzzz
Copy link
Author

Just to verify, even with that error you're saying it doesn't appear in the Plugins menu?

correct

@daNutzzzzz
Copy link
Author

This is my log (from windows though). Can you share the log from "/config/Library/Application Support/Plex Media Server/Logs/PMS Plugin Logs/dev.lizardbyte.plexyglass.log"?

2022-10-09 11:06:10,355 (2308) :  INFO (core:349) - Starting framework core - Version: 2.6.3, Build: 788f824 (Wed Aug 17 12:44:49 UTC 2022)
2022-10-09 11:06:10,355 (2308) :  DEBUG (core:361) - Using the elevated policy
2022-10-09 11:06:10,355 (2308) :  DEBUG (core:450) - Starting runtime component.
2022-10-09 11:06:10,371 (2308) :  DEBUG (core:450) - Starting caching component.
2022-10-09 11:06:10,371 (2308) :  DEBUG (core:450) - Starting data component.
2022-10-09 11:06:10,371 (2308) :  DEBUG (core:450) - Starting networking component.
2022-10-09 11:06:10,371 (2308) :  DEBUG (networking:261) - Loaded HTTP cookies
2022-10-09 11:06:10,371 (2308) :  DEBUG (networking:428) - Setting the default network timeout to 20.0
2022-10-09 11:06:10,371 (2308) :  DEBUG (core:450) - Starting localization component.
2022-10-09 11:06:10,371 (2308) :  INFO (localization:409) - Setting the default locale to en-us
2022-10-09 11:06:10,371 (2308) :  DEBUG (core:450) - Starting messaging component.
2022-10-09 11:06:10,371 (2308) :  DEBUG (core:450) - Starting debugging component.
2022-10-09 11:06:10,371 (2308) :  DEBUG (core:450) - Starting services component.
2022-10-09 11:06:10,371 (2308) :  DEBUG (core:450) - Starting myplex component.
2022-10-09 11:06:10,371 (23d0) :  DEBUG (networking:143) - Requesting 'https://127.0.0.1:32400/system/messaging/clear_events/dev.lizardbyte.plexyglass'
2022-10-09 11:06:10,371 (2308) :  DEBUG (core:450) - Starting notifications component.
2022-10-09 11:06:10,543 (2308) :  DEBUG (accessor:68) - Creating a new model access point for provider dev.lizardbyte.plexyglass in namespace 'metadata'
2022-10-09 11:06:10,559 (2308) :  DEBUG (networking:143) - Requesting 'https://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2022-10-09 11:06:10,966 (2308) :  ERROR (networking:196) - Error opening URL 'https://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2022-10-09 11:06:10,966 (2308) :  CRITICAL (core:574) - Exception getting hosted resource hashes (most recent call last):
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-788f82488\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\runtime.py", line 1293, in get_resource_hashes
    json = self._core.networking.http_request("https://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes", timeout=10).content
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-788f82488\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\networking.py", line 242, in content
    return self.__str__()
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-788f82488\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\networking.py", line 220, in __str__
    self.load()
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-788f82488\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\networking.py", line 158, in load
    f = self._opener.open(req, timeout=self._timeout)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 435, in open
    response = meth(req, response)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found

2022-10-09 11:06:10,980 (2308) :  DEBUG (runtime:1117) - Created a thread named 'load_all_services'
2022-10-09 11:06:10,980 (2048) :  DEBUG (services:265) - Plug-in is not daemonized - loading services from system
2022-10-09 11:06:10,980 (2048) :  DEBUG (networking:143) - Requesting 'https://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_'
2022-10-09 11:06:10,996 (2308) :  DEBUG (runtime:1117) - Created a thread named 'get_server_info'
2022-10-09 11:06:10,996 (2308) :  DEBUG (core:150) - Finished starting framework core
2022-10-09 11:06:10,996 (2308) :  DEBUG (core:560) - Loading plug-in code
2022-10-09 11:06:10,996 (1948) :  DEBUG (networking:143) - Requesting 'https://127.0.0.1:32400'
2022-10-09 11:06:11,012 (2308) :  DEBUG (core:566) - Finished loading plug-in code
2022-10-09 11:06:11,012 (2308) :  DEBUG (runtime:640) - Adding a prefix handler for 'PlexyGlass' ('/video/plexyglass')
2022-10-09 11:06:11,012 (2308) :  INFO (core:611) - Started plug-in
2022-10-09 11:06:11,012 (2308) :  DEBUG (socketinterface:160) - Starting socket server
2022-10-09 11:06:11,028 (1948) :  DEBUG (core:538) - Machine identifier is 3d6a3615408be5172548cf7c09523c3c0f812cd6
2022-10-09 11:06:11,028 (1948) :  DEBUG (core:539) - Server version is 1.28.1.6104-788f82488
2022-10-09 11:06:11,075 (2308) :  DEBUG (runtime:1117) - Created a thread named 'start'
2022-10-09 11:06:11,075 (2308) :  INFO (socketinterface:184) - Socket server started on port 49813
2022-10-09 11:06:11,075 (2308) :  INFO (pipeinterface:25) - Entering run loop
2022-10-09 11:06:11,075 (2308) :  DEBUG (runtime:717) - Handling request GET /:/prefixes
2022-10-09 11:06:11,075 (2308) :  DEBUG (runtime:814) - Found route matching /:/prefixes
2022-10-09 11:06:11,075 (2048) :  DEBUG (services:362) - Loaded services
2022-10-09 11:06:11,075 (520) :  DEBUG (services:438) - No shared code to load
2022-10-09 11:06:11,075 (2308) :  DEBUG (runtime:924) - Response: [200] MediaContainer, 439 bytes

dev.lizardbyte.plexyglass.log

@ReenigneArcher
Copy link
Member

ReenigneArcher commented Oct 9, 2022

Got it. It's related to this LizardByte/Themerr-plex#10

I will come up with a better solution. In the meantime, are you able to modify the PlexyGlass.bundle/Contents/Code/__init__.py file?

If you could add this to the top, below import sys it would be helpful.

Log.Debug("Python system executable: '%s'" % sys.executable)

Then re-share the plugin log.

@daNutzzzzz
Copy link
Author

Got it. It's related to this LizardByte/Themerr-plex#10

I will come up with a better solution. In the meantime, are you able to modify the PlexyGlass.bundle/Contents/Code/__init__.py file?

If you could add this to the top, below import sys it would be helpful.

Log.Debug("Python system executable: '%s'" % sys.executable)

Then re-share the plugin log.

dev.lizardbyte.plexyglass.log

@ReenigneArcher
Copy link
Member

Can you try nightly tag again?

@daNutzzzzz
Copy link
Author

daNutzzzzz commented Oct 9, 2022

Can you try nightly tag again?

seeing same error in container after re-creating.... i'll grab log again in a min.

@ReenigneArcher
Copy link
Member

Can you try nightly tag again?

seeing same error in container after re-creating.... i'll grab log again in amin.

Don't worry about it... I'll get a better solution pushed. Sorry for the annoyance. These are both projects that I've only tested on Windows Plex servers.

@daNutzzzzz
Copy link
Author

dev.lizardbyte.plexyglass.log

Can you try nightly tag again?

seeing same error in container after re-creating.... i'll grab log again in amin.

Don't worry about it... I'll get a better solution pushed. Sorry for the annoyance. These are both projects that I've only tested on Windows Plex servers.

No problem
dev.lizardbyte.plexyglass.log

@ReenigneArcher
Copy link
Member

Okay, I just pushed a more reliable fix to nightly. I am 99% sure it will load up now.

@daNutzzzzz
Copy link
Author

Okay, I just pushed a more reliable fix to nightly. I am 99% sure it will load up now.

It does, thanks, will this fix also be applied to Themerr?

@ReenigneArcher
Copy link
Member

It does, thanks, will this fix also be applied to Themerr?

Great. Yes, working on the update now.

@daNutzzzzz
Copy link
Author

👌

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fixed This issue has been fixed and will be available in the next release.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants