Open imrabti opened 8 years ago
Please check that the configuration file contains something like this:
mediaserver_log_location = /path/with spaces/Plex Media Server/Logs/Plex Media Server.log
Some things to consider:
Thanks for the answer but it is a bit late as I have successfully developed and released a new scrobbler that uses Web services instead and based on Java.
Having the same problem. Scrobbling is not working. With the default config (default settings for PMS log location):
2017-10-08 20:15:33,334 [26578] [main <module>] [DEBUG] config : mediaserver_log_location -> /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/Plex Media Server.log
2017-10-08 20:15:33,335 [26578] [main <module>] [DEBUG] config : session -> /home/orangepi/.config/plex_tvst_scrobbler_session_key
2017-10-08 20:15:33,335 [26578] [main <module>] [DEBUG] config : mediaserver_url -> http://localhost:32400
2017-10-08 20:15:33,336 [26578] [main <module>] [DEBUG] config : config file location -> /home/orangepi/.config/plex-tvst-scrobbler/plex_tvst_scrobbler.conf
2017-10-08 20:15:33,336 [26578] [main <module>] [DEBUG] config : log_file -> /tmp/plex_tvst_scrobbler.log
2017-10-08 20:15:33,336 [26578] [main <module>] [DEBUG] config : plex_token -> <removed>
2017-10-08 20:15:33,337 [26578] [main <module>] [DEBUG] using tvshowtime.com session key=/home/orangepi/.config/plex_tvst_scrobbler_session_key , st_mtime=Sun Oct 8 19:58:48 2017
2017-10-08 20:15:33,337 [26578] [main main] [INFO] starting log monitor thread.
2017-10-08 20:15:33,369 [26578] [plex_tvst_scrobbler.plex_monitor monitor_log] [DEBUG] Possible log file rotation, resetting file handle (st_mtime=Sun Oct 8 20:12:25 2017)
With the PMS log path set manually (which is the same path as default settings)
2017-10-08 20:22:01,861 [27050] [main <module>] [DEBUG] config : mediaserver_log_location -> '/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/Plex Media Server.log'
2017-10-08 20:22:01,861 [27050] [main <module>] [DEBUG] config : session -> /home/orangepi/.config/plex_tvst_scrobbler_session_key
2017-10-08 20:22:01,862 [27050] [main <module>] [DEBUG] config : mediaserver_url -> http://localhost:32400
2017-10-08 20:22:01,862 [27050] [main <module>] [DEBUG] config : config file location -> /home/orangepi/.config/plex-tvst-scrobbler/plex_tvst_scrobbler.conf
2017-10-08 20:22:01,862 [27050] [main <module>] [DEBUG] config : log_file -> /tmp/plex_tvst_scrobbler.log
2017-10-08 20:22:01,862 [27050] [main <module>] [DEBUG] config : plex_token -> <removed>
2017-10-08 20:22:01,863 [27050] [main <module>] [DEBUG] using tvshowtime.com session key=/home/orangepi/.config/plex_tvst_scrobbler_session_key , st_mtime=Sun Oct 8 19:58:48 2017
2017-10-08 20:22:01,863 [27050] [main main] [INFO] starting log monitor thread.
2017-10-08 20:22:01,864 [27050] [plex_tvst_scrobbler.plex_monitor monitor_log] [ERROR] Unable to read log-file '/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/Plex Media Server.log$
And here's the log file itself:
-rw-r--r-- 1 plex plex 702621 Oct 8 20:12 /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/Plex Media Server.log
Plex version is 1.9.2.4285
I see an opening single quote here:
to read log-file ---> ' <--- /var/lib/plexmediaserver/
2017-10-08 20:22:01,864 [27050] [plex_tvst_scrobbler.plex_monitor monitor_log] [ERROR] Unable to read log-file '/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/Plex Media Server.log$
Is that a logging bug only? Maybe that's the reason why the log file cannot be found. Let me know!
Sorry, that's just a copy/paste mistake. The log was wider than terminal screen. Here's a complete line:
2017-10-08 20:22:01,864 [27050] [plex_tvst_scrobbler.plex_monitor monitor_log] [ERROR] Unable to read log-file '/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/Plex Media Server.log'. Shutting down.
Ok, found the problem. Looks like after the last update Plex on its own turned off debug logging.
I have successfully configured the plex-scrobbler on my Synology NAS and registered the token correctly, but when I launched I get this error :
[30002] [plex_tvst_scrobbler.plex_monitor monitor_log] [ERROR] Unable to read log-file '/volume1/Plex/Library/Application Support/Plex Media Server/Logs/Plex Media Server.log'. Shutting down.
Did I miss something, is this a compatibility issue with the Plex Media Server.
I checked the Python version and I have : 2.7.11