bazarr icon indicating copy to clipboard operation
bazarr copied to clipboard

DataTables warning: table id=logs - Ajax error

Open eltanque opened this issue 6 years ago • 12 comments

Receiving this "browser" error when clicking on the system tab. Bazarr Version: 0.8.4 Operating System: Windows-10-10.0.18362-SP0 Python Version: 3.8.0 Bazarr Directory: c:\bazarr Bazarr Config Directory: C:\ProgramData\Bazarr Chrome Version 79.0.3945.130 (Official Build) (64-bit)

To Reproduce Steps to reproduce the behavior:

  1. log in to bazarr
  2. Click on "System"
  3. See error. Pops up as a message from the browser Full error message: DataTables warning: table id=logs - Ajax error. For more information about this error, please see http://datatables.net/tn/7

when following the suggested steps to debug the error from the link: I find the following information: Developer tools in chrome browser Console: GET http://192.168.1.11:6767/logs?_=1580107506912 500 (Internal Server Error)

which eventually takes me to: Error: 500 Internal Server Error Sorry, the requested URL 'http://192.168.1.11:6767/logs?_=1580107506912' caused an error: (screenshot attached)

Application won't load the log files

Error Error500

eltanque avatar Jan 27 '20 06:01 eltanque

A few more information shutdown bazarr, deleted the (big/debug) log file, restarted PC (quicker than trying to figure out how to restart bazarr from windows) and error is gone. But, enabled debug and did some manual subs search/download and the error is back. I guess it has to do with trying to load the debug log file to the browser.

eltanque avatar Jan 27 '20 07:01 eltanque

Can you provide your debug log file please?

morpheus65535 avatar Jan 27 '20 11:01 morpheus65535

@morpheus65535 any way to send you the file privately?

eltanque avatar Jan 29 '20 05:01 eltanque

Discord PM

morpheus65535 avatar Jan 29 '20 11:01 morpheus65535

I've pushed a fix to dev branch. Could you test it?

morpheus65535 avatar Jan 30 '20 01:01 morpheus65535

On windows installer, I can only update from the master branch. Any instructions on how to get this dev branch, and also how to roll back?

eltanque avatar Jan 30 '20 04:01 eltanque

I was experiencing this too, just hadn't gotten around to looking in to it. 8.4.1 fixes this issue for me.

yenoromm avatar Jan 30 '20 06:01 yenoromm

@eltanque no way other than stopping Bazarr and replace the modified file by the one from this commit in dev branch. Keep the original file to rollback.

morpheus65535 avatar Jan 30 '20 11:01 morpheus65535

ok, but I need a bit more info in order to test.

  1. which file do I need to download/replace and where do I find it
  2. Can I install bazarr on a different PC and point it to the same Sonarr/Radarr in order to test this?
  3. I know I can stop bazarr from the UI, but how do I restart it without having to restart the PC This is on Win10 thx

eltanque avatar Jan 31 '20 06:01 eltanque

  1. Replace C:\Bazarr\bazarr\main.py with this file: https://raw.githubusercontent.com/morpheus65535/bazarr/development/bazarr/main.py
  2. Yes you can.
  3. Using Windows Services console or in a command with administrative privileges net start Bazarr.

morpheus65535 avatar Jan 31 '20 11:01 morpheus65535

ok, I've no idea what happened but: Installed bazarr on a different machine (fresh download), copied all the config across. I'm going to assume it had the "old" main.py. So retraced my steps to reproduce the error, no error presented. So decided to reproduce it again on my original machine. Redid the steps to get the error. Then stopped Bazarr, replaced main.py and then couldn't connect to the UI. The service started (at least that's what cmd and task manager was saying. Rebooted the machine and tried again, no luck. Service was running but couldn't connect to the UI. Stopped bazarr manually, replaced with the old main.py and restarted. Now I can't seem to reproduce the problem.

PD: Just noticed my version is now 8.4.1 so I'm going to assume it has been fixed and maybe I was too late to test and provide this feedback. @morpheus65535 Appreciate the help and support regardless Cheers

eltanque avatar Feb 01 '20 05:02 eltanque

I've merged changes to master last night so it confirm the fix is working. Enjoy!

morpheus65535 avatar Feb 01 '20 14:02 morpheus65535