WebTools.bundle: unable to view ANY log files

Environment

  • PMS Platform(s) OS: Ubuntu 16.04
  • PMS Version: Version 1.13.8.5395
  • Name of Browser: Any on Any OS

Error shown

  • Symptom:
Error occurred!
WebTools
Technical Info:
Url: api/v3/logs/show/Plex Media Server.log
Location: Logs
Error: logsService.getLogDetails - Fatal error happened in Logs show: bad argument type for built-in operation

com.plexapp.plugins.WebTools.log output


2018-10-07 13:09:39,362 (7f268b7fe700) :  DEBUG (apiv3:66) - Recieved an apiV3 call for module: LOGS for method: GET
2018-10-07 13:09:39,363 (7f268b7fe700) :  DEBUG (logsV3:49) - Log Root dir is: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs
2018-10-07 13:09:39,363 (7f268b7fe700) :  DEBUG (logsV3:106) - Function to call is: SHOW with params: ['Plex%20Media%20Server.log']
2018-10-07 13:09:39,363 (7f268b7fe700) :  DEBUG (logsV3:49) - Log Root dir is: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs
2018-10-07 13:09:39,363 (7f268b7fe700) :  DEBUG (logsV3:296) - Opening logfile: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/Plex Media Server.log
2018-10-07 13:09:39,364 (7f268b7fe700) :  CRITICAL (logsV3:317) - Fatal error happened in Logs show: bad argument type for built-in operation (most recent call last):
  File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/WebTools.bundle/Contents/Code/logsV3.py", line 307, in SHOW
    with io.open(file, 'r', errors='ignore') as content_file:
TypeError: bad argument type for built-in operation

2018-10-07 13:09:39,441 (7f268b7fe700) :  DEBUG (apiv3:66) - Recieved an apiV3 call for module: LOGS for method: PUT
2018-10-07 13:09:39,441 (7f268b7fe700) :  DEBUG (logsV3:49) - Log Root dir is: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs
2018-10-07 13:09:39,441 (7f268b7fe700) :  DEBUG (logsV3:106) - Function to call is: ENTRY with params: None
2018-10-07 13:09:39,441 (7f268b7fe700) :  DEBUG (logsV3:119) - Starting Logs.entry function
2018-10-07 13:09:39,442 (7f268b7fe700) :  DEBUG (logsV3:128) - FrontEnd: Location: Logs<br />Error: logsService.getLogDetails - Fatal error happened in Logs show: bad argument type for built-in operation

Steps to reproduce

  1. install plugin, then click to view any logs

Expected behaviour

  1. to show logs

Actual behaviour

  1. doesnt show logs

Additional Info

Checklist

  • Listed environment
  • Included PMS log zip and WebTools log (THIS IS MANDATORY!)
  • Included screenshots (where appropriate)
  • Checked that this isn’t already an issue

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (11 by maintainers)

Most upvoted comments

2018-10-07 22:11:04,561 (7f42d821b700) : DEBUG (__init__:102) - "******* Started WebTools V3.1.0 DEV on Linux at 2018-10-07 22:11 with locale set to ('en_US', 'UTF-8') and file system encoding is UTF-8 **********

yipee… fixed it sorry for the hassle, its been a long night, (restarted server and worked straight away)