ukdtom / WebTools.bundle

WebTools is a collection of tools for Plex Media Server. Like the Unsupported AppStore (UAS)
https://forums.plex.tv/discussion/288191
Mozilla Public License 2.0
1.3k stars 170 forks source link

Error: var checkIsNewVersionAvailable - Fatal error happened in getReleaseInfo #526

Closed ssyyhhrr closed 5 years ago

ssyyhhrr commented 5 years ago

Environment

Error shown

image

WebTools

Technical Info: Url: api/v3/git/getReleaseInfo/url/https%3A%2F%2Fgithub.com%2Fukdtom%2FWebTools.bundle/version/latest Location: Core Error: var checkIsNewVersionAvailable - Fatal error happened in getReleaseInfo**:

Steps to reproduce

  1. Load 127.0.1.1:33400

Expected behaviour

  1. Access to the main page of WebTools

Actual behaviour

  1. A popup appears over the top of the WebTools page.

Additional Info

Logs.zip

Checklist

ukdtom commented 5 years ago

First of all, you have the wrong owner/rights for the bundle directory!

2018-12-01 21:41:04,630 (76faa110) : INFO (wtV3:543) - Updating translation file in storage 2018-12-01 21:41:04,662 (76faa110) : CRITICAL (wtV3:600) - Exception in createPluginStringTranslations was: [Errno 13] Permission denied: '/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/WebTools.bundle/Contents/Strings/en.json' (most recent call last): File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/WebTools.bundle/Contents/Code/wtV3.py", line 595, in createPluginStringTranslations with io.open(fileName, 'w', encoding="utf-8") as outfile: IOError: [Errno 13] Permission denied: '/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/WebTools.bundle/Contents/Strings/en.json' Secondly, you are getting http error 403 (Forbidden) when accessing https://api.github.com/repos/ukdtom/WebTools.bundle/releases/latest

Please check from the box that you can do that, and return a json, since it seems like Github is refusing the connection for some reason?

Do you have a proxy in front of it perhaps?

ssyyhhrr commented 5 years ago

I certainly haven't manually installed a proxy myself. So unless one came installed when I installed Raspbian, I don't have one. I will take a look into permissions. I'll let you know the results. Thanks for the quick response by the way!

ssyyhhrr commented 5 years ago

Okay, so I have managed to modify the permissions to give the pi user ownership of the directory. I am now greeted with this error. I've attached an image of the new error, and the logs after making this change. image Logs.zip

ukdtom commented 5 years ago

Still permission errors.....Owner/rights needs to be set to the user running PMS!

IOError: [Errno 13] Permission denied: '/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/WebTools.bundle/Contents/Strings/en.json'

Also still see access denied from GitHub!

ssyyhhrr commented 5 years ago

Fantastic, I managed to get it working thanks to your help =D. I'll leave the commands I used in terminal for anyone who may be reading this in the future. sudo chown $USER /var/lib/plexmediaserver sudo chown $USER /var/lib/plexmediaserver/Library/"Application Support"/"Plex Media Server"/Plug-ins sudo chown $USER /var/lib/plexmediaserver/Library/"Application Support"/"Plex Media Server"/Plug-ins/WebTools.bundle/Contents/Strings nano /var/lib/plexmediaserver/Library/"Application Support"/"Plex Media Server"/Plug-ins/WebTools.bundle/Contents/Strings/en.json <--- Used as a test. If your terminal window is filled with a text editor, then you have done it successfully and WebTools will function as usual.

Thanks again for your help. Appreciate it a lot.