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

plexyglass plugin not loading (docker-mod) #25

Closed

Description

@danutzzzzz

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

Activity

  1. danutzzzzz commented on Oct 7, 2022

    @danutzzzzz
    Author

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

  2. ReenigneArcher commented on Oct 7, 2022

    @ReenigneArcher
    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

  3. danutzzzzz commented on Oct 7, 2022

    @danutzzzzz
    Author
    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/
  4. ReenigneArcher commented on Oct 7, 2022

    @ReenigneArcher
    Member

    Can you try

    find "./Plex-PMS/config/Library/Application Support/Plex Media Server/Plug-ins/PlexyGlass.bundle" -name "Info.plist"
  5. danutzzzzz commented on Oct 7, 2022

    @danutzzzzz
    Author

    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

  6. ReenigneArcher commented on Oct 7, 2022

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

  7. danutzzzzz commented on Oct 7, 2022

    @danutzzzzz
    Author

    image

  8. danutzzzzz commented on Oct 7, 2022

    @danutzzzzz
    Author

    image

  9. danutzzzzz commented on Oct 7, 2022

    @danutzzzzz
    Author

    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()
    
  10. ReenigneArcher commented on Oct 7, 2022

    @ReenigneArcher
    Member

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

  11. danutzzzzz commented on Oct 7, 2022

    @danutzzzzz
    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

  12. danutzzzzz commented on Oct 7, 2022

    @danutzzzzz
    Author

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

    image

  13. ReenigneArcher commented on Oct 7, 2022

    @ReenigneArcher
    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

  14. ReenigneArcher commented on Oct 7, 2022

    @ReenigneArcher
    Member

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

  15. danutzzzzz commented on Oct 7, 2022

    @danutzzzzz
    Author

    ok thanks

  16. 35 remaining items

  17. danutzzzzz commented on Oct 9, 2022

    @danutzzzzz
    Author

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

    correct

  18. danutzzzzz commented on Oct 9, 2022

    @danutzzzzz
    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 'http://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 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
    2022-10-09 11:06:10,966 (2308) :  ERROR (networking:196) - Error opening URL 'http://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("http://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 'http://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 'http://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

  19. ReenigneArcher commented on Oct 9, 2022

    @ReenigneArcher
    Member

    Got it. It's related to this LizardByte/Themerr#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.

  20. danutzzzzz commented on Oct 9, 2022

    @danutzzzzz
    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

  21. ReenigneArcher commented on Oct 9, 2022

    @ReenigneArcher
    Member

    Can you try nightly tag again?

  22. danutzzzzz commented on Oct 9, 2022

    @danutzzzzz
    Author

    Can you try nightly tag again?

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

  23. ReenigneArcher commented on Oct 9, 2022

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

  24. danutzzzzz commented on Oct 9, 2022

    @danutzzzzz
    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

  25. ReenigneArcher commented on Oct 9, 2022

    @ReenigneArcher
    Member

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

  26. danutzzzzz commented on Oct 9, 2022

    @danutzzzzz
    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?

  27. ReenigneArcher commented on Oct 9, 2022

    @ReenigneArcher
    Member

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

    Great. Yes, working on the update now.

  28. danutzzzzz commented on Oct 9, 2022

    @danutzzzzz
    Author

    👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions