Qnap [ Bazarr ][ 1.1.4.0 ] companion application to Sonarr and Radarr. It manages and downloads subtitles

Thank you!!
Backup, uninstall, complete reinstall and restore settings (folder /share/CACHEDEV1_DATA/.qpkg/QBazarr/bazarr/data) did the trick.

After confirming new installation from .qpkg worked fine with old settings I stopped the server and manually updated to v0.9.6beta9. Starting it again from command line performed some updates and ended up working.

Below CLI output:

Code:
/share/CACHEDEV1_DATA/.qpkg/QBazarr] # ./QBazarr.sh start
fatal: not a git repository (or any parent up to mount point /share)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Requirement already satisfied: pip in /share/CACHEDEV1_DATA/.qpkg/QBazarr/lib/python3.8/site-packages (21.1.2)
WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv
Collecting gevent>=21
  Downloading gevent-21.1.2-cp38-cp38-manylinux2010_x86_64.whl (6.3 MB)
     |████████████████████████████████| 6.3 MB 114 kB/s
Collecting gevent-websocket>=0.10.1
  Downloading gevent_websocket-0.10.1-py3-none-any.whl (22 kB)
Requirement already satisfied: lxml>=4.3.0 in /share/CACHEDEV1_DATA/.qpkg/QBazarr/lib/python3.8/site-packages (from -r /share/CACHEDEV1_DATA/.qpkg/QBazarr/bazarr/requirements.txt (line 3)) (4.4.2)
Requirement already satisfied: numpy>=1.12.0 in /share/CACHEDEV1_DATA/.qpkg/QBazarr/lib/python3.8/site-packages (from -r  share/CACHEDEV1_DATA/.qpkg/QBazarr/bazarr/requirements.txt (line 4)) (1.20.3)
Requirement already satisfied: webrtcvad-wheels>=2.0.10 in /share/CACHEDEV1_DATA/.qpkg/QBazarr/lib/python3.8/site-packages (from -r /share/CACHEDEV1_DATA/.qpkg/QBazarr/bazarr/requirements.txt (line 5)) (2.0.10.post2)
Collecting greenlet<2.0,>=0.4.17
  Downloading greenlet-1.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (164 kB)
     |████████████████████████████████| 164 kB 7.5 MB/s
Collecting zope.interface
  Downloading zope.interface-5.4.0-cp38-cp38-manylinux2010_x86_64.whl (259 kB)
     |████████████████████████████████| 259 kB 7.6 MB/s
Requirement already satisfied: setuptools in /share/CACHEDEV1_DATA/.qpkg/QBazarr/lib/python3.8/site-packages (from gevent>=21->-r /share/CACHEDEV1_DATA/.qpkg/QBazarr/bazarr/requirements.txt (line 1)) (41.2.0)
Collecting zope.event
  Downloading zope.event-4.5.0-py2.py3-none-any.whl (6.8 kB)
Installing collected packages: zope.interface, zope.event, greenlet, gevent, gevent-websocket
  Attempting uninstall: greenlet
    Found existing installation: greenlet 0.4.15
    Uninstalling greenlet-0.4.15:
      Successfully uninstalled greenlet-0.4.15
  Attempting uninstall: gevent
    Found existing installation: gevent 1.4.0
    Uninstalling gevent-1.4.0:
      Successfully uninstalled gevent-1.4.0
Successfully installed gevent-21.1.2 gevent-websocket-0.10.1 greenlet-1.1.0 zope.event-4.5.0 zope.interface-5.4.0
WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv
[/share/CACHEDEV1_DATA/.qpkg/QBazarr] # Bazarr starting...
[/share/CACHEDEV1_DATA/.qpkg/QBazarr] # 2021-05-25 16:56:36,599 - root                             (7f134dc3b7d0) :  INFO (signalr_client:45) - BAZARR SignalR client for Sonarr is connected and waiting for events.
2021-05-25 16:56:36,664 - root                             (7f134dc3b7d0) :  INFO (server:37) - BAZARR is started and waiting for request on http://0.0.0.0:6767
2021-05-25 16:56:36,695 - root                             (7f133540fd00) :  INFO (signalr_client:108) - BAZARR SignalR client for Radarr is connected and waiting for events.
 
Hi, my Bazarr on Qnap stopped working, and I installed the version 0.9.5.0. But I cannot start it, it keeps refusing the connection. I checked the log, and Bazarr keeps restarting. Anyone knows how can I fix this?

Thanks
 
I have noticed that Bazarr does not restart after an automatic update v0.9.6 beta 18.
I have checked and former versions do exhibit the same issue.
I can manually start it via SSH.

I have found beta version fairly stable.

Created an issue on Github, but developer closed the issue and asked to contact qpkg developer.

Can you please take a look?

Thank you
 
QoolBox a dit:
will take a look... but working on antoher project for today

Thank you!
Have you got the chance to take a look. It looks that systematically Bazarr exits after each version upgrade.
Was on beta 21, updated to beta 22 and it did not restart.

After starting manually, it self updated to beta 23, and it won't start.
It may be something related to the process ID, or anything else. If you could take a look, and identify an issue with Bazarr itself I will reopen the github issue (was closed, as developer pointed me to wqpkg maintainer).

Regards
 
QoolBox a dit:
have logs ? i dont use it

Thank you. I have enabled debug logging, as standard logging does not seem to provide any useful information.
I will need to wait until next update before uploading.

Please let me know if you still want these "non debug" logs.

Regards
 
QoolBox a dit:
think only way to know what the problem

Thank you. please find attached the log. There are two files in the zip file.

bazarr.log.2021-06-11 is a stored log (debug log activated) Bazarr version: 0.9.6-beta.22
bazarr.log: is the last log until Bazarr quitted working.

Last lines are:
Code:
12/06/2021 06:22:12|DEBUG   |urllib3.connectionpool          |https://api.github.com:443 "GET /repos/morpheus65535/Bazarr/releases?per_page=100 HTTP/1.1" 200 30615|
12/06/2021 06:22:13|DEBUG   |root                            |BAZARR saved 100 releases to releases.txt|
12/06/2021 06:22:13|DEBUG   |root                            |BAZARR last release available is v0.9.6-beta.24|
12/06/2021 06:22:14|DEBUG   |root                            |BAZARR newer release available and will be downloaded: v0.9.6-beta.24|
12/06/2021 06:22:14|DEBUG   |root                            |BAZARR downloading release from Github: https://github.com/morpheus65535/bazarr/releases/download/v0.9.6-beta.24/bazarr.zip|
12/06/2021 06:22:14|DEBUG   |urllib3.connectionpool          |Starting new HTTPS connection (1): github.com:443|
12/06/2021 06:22:14|DEBUG   |SignalRCoreClient               |Message received{"type":6}|
12/06/2021 06:22:14|DEBUG   |SignalRCoreClient               |Raw message incomming: |
12/06/2021 06:22:14|DEBUG   |SignalRCoreClient               |{"type":6}|
12/06/2021 06:22:14|DEBUG   |urllib3.connectionpool          |https://github.com:443 "GET /morpheus65535/bazarr/releases/download/v0.9.6-beta.24/bazarr.zip HTTP/1.1" 302 616|
12/06/2021 06:22:14|DEBUG   |urllib3.connectionpool          |Starting new HTTPS connection (1): github-releases.githubusercontent.com:443|
12/06/2021 06:22:15|DEBUG   |urllib3.connectionpool          |https://github-releases.githubusercontent.com:443 "GET /88102501/a9fc5380-cb45-11eb-907c-451860dc03e9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210612%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210612T062217Z&X-Amz-Expires=300&X-Amz-Signature=750b1cebe304e39c23fb85e9ddd593d3ef57e91b4db9ee2a0bfa2852b9d7860a&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=88102501&response-content-disposition=attachment%3B%20filename%3Dbazarr.zip&response-content-type=application%2Foctet-stream HTTP/1.1" 200 32898522|
12/06/2021 06:22:19|DEBUG   |root                            |BAZARR is trying to unzip this release to /share/CACHEDEV1_DATA/.qpkg/QBazarr/bazarr: /share/CACHEDEV1_DATA/.qpkg/QBazarr/bazarr/data/update/bazarr.zip|
12/06/2021 06:22:47|DEBUG   |root                            |BAZARR now deleting release archive|
12/06/2021 06:22:47|DEBUG   |root                            |BAZARR new release have been installed, now we restart|
12/06/2021 06:22:47|INFO    |root                            |Bazarr is being restarted...|
 

Pièces jointes

  • Bazarr_log.zip
    840.3 KB · Affichages: 10
i dont see error.... :|

seems updating fine according logs

may it is just the restarting phase...(as itis not a common linux)

what happen if you stop and restart QPKG ? does it startup ? or stuck ? (may be the restart log i will need)
 
After manually restarting Bazar, bazarr.log is renamed to bazarr.log.2021-06-12, and a new log file is created.

For your reference, am uploading the updated files.

bazarr.log.2021-06-11 is a stored log (debug log activated) Bazarr version: 0.9.6-beta.22
bazarr.log.2021-06-12 stored log after restarting manually Bazarr, it should contain the error that prevented restarting.
bazarr.log: is the last log, Bazarr is still woking s for now


Regards
 

Pièces jointes

  • Bazarr_updated_log.zip
    848.2 KB · Affichages: 12
Gaudi a dit:
After manually restarting Bazar, bazarr.log is renamed to bazarr.log.2021-06-12, and a new log file is created.

For your reference, am uploading the updated files.

bazarr.log.2021-06-11 is a stored log (debug log activated) Bazarr version: 0.9.6-beta.22
bazarr.log.2021-06-12 stored log after restarting manually Bazarr, it should contain the error that prevented restarting.
bazarr.log: is the last log, Bazarr is still woking s for now


Regards

I have restarted twice, and am attaching the new log.
 

Pièces jointes

  • bazarr_after_two_restarts.zip
    23.3 KB · Affichages: 12
in .11

only ERROR found are linked to Radarr broken pipe (Radarr seems off or not answering .. )

in .12 ERROR linked to subliminal (opensubtitle)

I dont see any other problem
 
QoolBox a dit:
in .11

only ERROR found are linked to Radarr broken pipe (Radarr seems off or not answering .. )

in .12 ERROR linked to subliminal (opensubtitle)

I dont see any other problem

Seems that troubleshooting will be difficult. It looks then that Bazarr exits unexpectedly, so no information on the log.
As if the process is killed somehow.
 
@QoolBox ,
Hi, thank you for your continuing support.
I have noticed that a new version v1.0.4 is out. Since some former versions, I am encountering different issues trying to manually update the version.
Latest working version after a clean installation and upgrade is v1.0.1. Onwards it does not work.

Traceback with error observed is below:
Code:
Find below traceback. I have done clean install v0.9.9.0.1: it works.
I stok and check for remaining processes, overwrite with newly released v1.0.4, and upon start I get:
`[/share/CACHEDEV1_DATA/.qpkg/QBazarr] # sh ./QBazarr.sh start
fatal: not a git repository (or any parent up to mount point /share)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Requirement already satisfied: pip in /share/CACHEDEV1_DATA/.qpkg/QBazarr/lib/python3.8/site-packages (22.0.4)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: setuptools in /share/CACHEDEV1_DATA/.qpkg/QBazarr/lib/python3.8/site-packages (from -r /share/CACHEDEV1_DATA/.qpkg/QBazarr/bazarr/requirements.txt (line 1)) (41.2.0)
Requirement already satisfied: lxml>=4.3.0 in /share/CACHEDEV1_DATA/.qpkg/QBazarr/lib/python3.8/site-packages (from -r /share/CACHEDEV1_DATA/.qpkg/QBazarr/bazarr/requirements.txt (line 2)) (4.4.2)
Requirement already satisfied: numpy>=1.12.0 in /share/CACHEDEV1_DATA/.qpkg/QBazarr/lib/python3.8/site-packages (from -r /share/CACHEDEV1_DATA/.qpkg/QBazarr/bazarr/requirements.txt (line 3)) (1.22.3)
Requirement already satisfied: webrtcvad-wheels>=2.0.10 in /share/CACHEDEV1_DATA/.qpkg/QBazarr/lib/python3.8/site-packages (from -r /share/CACHEDEV1_DATA/.qpkg/QBazarr/bazarr/requirements.txt (line 4)) (2.0.10.post2)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[/share/CACHEDEV1_DATA/.qpkg/QBazarr] # Bazarr starting...
Traceback (most recent call last):
  File "bazarr/main.py", line 20, in <module>
    from init import *  # noqa E402
  File "/share/CACHEDEV1_DATA/.qpkg/QBazarr/bazarr/bazarr/init.py", line 211, in <module>
    init_binaries()
  File "/share/CACHEDEV1_DATA/.qpkg/QBazarr/bazarr/bazarr/init.py", line 192, in init_binaries
    from utils import get_binary
  File "/share/CACHEDEV1_DATA/.qpkg/QBazarr/bazarr/bazarr/utils.py", line 22, in <module>
    from list_subtitles import store_subtitles, store_subtitles_movie
  File "/share/CACHEDEV1_DATA/.qpkg/QBazarr/bazarr/bazarr/list_subtitles.py", line 18, in <module>
    from embedded_subs_reader import embedded_subs_reader
  File "/share/CACHEDEV1_DATA/.qpkg/QBazarr/bazarr/bazarr/embedded_subs_reader.py", line 6, in <module>
    from knowit import api
  File "/share/CACHEDEV1_DATA/.qpkg/QBazarr/bazarr/bazarr/../libs/knowit/__init__.py", line 19, in <module>
    from knowit.api import KnowitException, know
  File "/share/CACHEDEV1_DATA/.qpkg/QBazarr/bazarr/bazarr/../libs/knowit/api.py", line 7, in <module>
    from knowit.provider import Provider
  File "/share/CACHEDEV1_DATA/.qpkg/QBazarr/bazarr/bazarr/../libs/knowit/provider.py", line 8, in <module>
    from knowit.properties import Quantity
  File "/share/CACHEDEV1_DATA/.qpkg/QBazarr/bazarr/bazarr/../libs/knowit/properties/__init__.py", line 18, in <module>
    from knowit.properties.video import (
ImportError: cannot import name 'VideoDimensions' from 'knowit.properties.video' (/share/CACHEDEV1_DATA/.qpkg/QBazarr/bazarr/bazarr/../libs/knowit/properties/video/__init__.py)
Bazarr exited.`

Would it be possible to have an updated package with latest version?

Thank you
 
Finally provided a new QPKG version

build around a virtualenvironment, latest Python 3.9
but require Apache81 and ffmpeg (static) QPKG been installed on NAS as dependency to runs
 
Hi @QoolBox, for the latest version of your package I have found an issue.
The built in AutoUpdate feature wipes the root folder on the .qpkg directory while upgrading (main .qpkg folder), wiping effectively the .sh script that starts the app (and other files as well).

I have updated the issue on Github for the observed problem, and the fix will not come from the developer (see https://github.com/morpheus65535/bazarr/issues/1428).

Would it be possible to adjust the .QPKG so it addresses the way Bazarr autoupdates: setting up an exclusive folder with bazarr bin and files, so whenever it updates itself it does not delete any QPKG related files? (bazarr bin program folder and all subfolder tree into a subfolder as it was in previous versions).


Thank you and regards