Bazarr stop working after update

Hello,
Unraid user here.
After an update performed today the Bazarr docker is not starting anymore.
Everything was working just perfectly before the update of the container.
The log shows:

Bazarr starting…
Bazarr exited.
Traceback (most recent call last):
File “/app/bazarr/bin/bazarr/main.py”, line 22, in
from init import * # noqa E402
File “/app/bazarr/bin/bazarr/init.py”, line 236, in
migrate_db()
File “/app/bazarr/bin/bazarr/app/database.py”, line 484, in migrate_db
item.timestamp = datetime.fromtimestamp(int(item.timestamp))
TypeError: int() argument must be a string, a bytes-like object or a real number, not ‘datetime.datetime’

What can I do to make my Bazarr working again?
Thanks in advance

As with any good issue report, post your compose/run command.

Sorry for the incomplete post.
Really do not know from where to get the compose/run command.
I am starting the container from the web interface of Unraid as usually.

OK.
Downgraded to docker pull linuxserver/bazarr:v1.1.4-ls184 and all is fine again.
So I believe it is some kind of a “problem” with the latest update.

I doubt it’s a problem with the upgrade otherwise you wouldn’t be the only one with a problem. Unfortunately, you didn’t provide logs, so we can’t make a guess as to your issue. Please review the support info section of the readme and provide the full containers logs, which begin with our ascii logo.

Thank you.
Please kindly find attached the full log with the latest Bazarr:

Blockquote
───────────────────────────────────────

  ██╗     ███████╗██╗ ██████╗ 
  ██║     ██╔════╝██║██╔═══██╗
  ██║     ███████╗██║██║   ██║
  ██║     ╚════██║██║██║   ██║      
  ███████╗███████║██║╚██████╔╝
  ╚══════╝╚══════╝╚═╝ ╚═════╝ 

Brought to you by linuxserver.io
───────────────────────────────────────

To support the app dev(s) visit:
Bazarr: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XHHRWXT9YB7WE&source=url

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID: 99
User GID: 100
───────────────────────────────────────

[custom-init] No custom files found, skipping…
Bazarr starting…
Bazarr exited.
Bazarr starting…
Bazarr exited.
Bazarr starting…
Bazarr exited.
Bazarr starting…
Bazarr exited.
Traceback (most recent call last):
File “/app/bazarr/bin/bazarr/main.py”, line 22, in
from init import * # noqa E402
File “/app/bazarr/bin/bazarr/init.py”, line 236, in
migrate_db()
File “/app/bazarr/bin/bazarr/app/database.py”, line 484, in migrate_db
item.timestamp = datetime.fromtimestamp(int(item.timestamp))
TypeError: int() argument must be a string, a bytes-like object or a real number, not ‘datetime.datetime’
Bazarr starting…
Bazarr exited.
Traceback (most recent call last):
File “/app/bazarr/bin/bazarr/main.py”, line 22, in
from init import * # noqa E402
File “/app/bazarr/bin/bazarr/init.py”, line 236, in
migrate_db()
File “/app/bazarr/bin/bazarr/app/database.py”, line 484, in migrate_db
item.timestamp = datetime.fromtimestamp(int(item.timestamp))
TypeError: int() argument must be a string, a bytes-like object or a real number, not ‘datetime.datetime’
Bazarr starting…
Bazarr exited.
Traceback (most recent call last):
File “/app/bazarr/bin/bazarr/main.py”, line 22, in
from init import * # noqa E402
File “/app/bazarr/bin/bazarr/init.py”, line 236, in
migrate_db()
File “/app/bazarr/bin/bazarr/app/database.py”, line 484, in migrate_db
item.timestamp = datetime.fromtimestamp(int(item.timestamp))
TypeError: int() argument must be a string, a bytes-like object or a real number, not ‘datetime.datetime’
Bazarr starting…
Bazarr exited.
Traceback (most recent call last):
File “/app/bazarr/bin/bazarr/main.py”, line 22, in
from init import * # noqa E402
File “/app/bazarr/bin/bazarr/init.py”, line 236, in
migrate_db()
File “/app/bazarr/bin/bazarr/app/database.py”, line 484, in migrate_db
item.timestamp = datetime.fromtimestamp(int(item.timestamp))
TypeError: int() argument must be a string, a bytes-like object or a real number, not ‘datetime.datetime’
Bazarr starting…
Bazarr exited.
Traceback (most recent call last):
File “/app/bazarr/bin/bazarr/main.py”, line 22, in
from init import * # noqa E402
File “/app/bazarr/bin/bazarr/init.py”, line 236, in
migrate_db()
File “/app/bazarr/bin/bazarr/app/database.py”, line 484, in migrate_db
item.timestamp = datetime.fromtimestamp(int(item.timestamp))
TypeError: int() argument must be a string, a bytes-like object or a real number, not ‘datetime.datetime’
Bazarr starting…
Bazarr exited.
Traceback (most recent call last):
File “/app/bazarr/bin/bazarr/main.py”, line 22, in
from init import * # noqa E402
File “/app/bazarr/bin/bazarr/init.py”, line 236, in
migrate_db()
File “/app/bazarr/bin/bazarr/app/database.py”, line 484, in migrate_db
item.timestamp = datetime.fromtimestamp(int(item.timestamp))
TypeError: int() argument must be a string, a bytes-like object or a real number, not ‘datetime.datetime’
Bazarr starting…
Bazarr exited.
Traceback (most recent call last):
File “/app/bazarr/bin/bazarr/main.py”, line 22, in
from init import * # noqa E402
File “/app/bazarr/bin/bazarr/init.py”, line 236, in
migrate_db()
File “/app/bazarr/bin/bazarr/app/database.py”, line 484, in migrate_db
item.timestamp = datetime.fromtimestamp(int(item.timestamp))
TypeError: int() argument must be a string, a bytes-like object or a real number, not ‘datetime.datetime’
Bazarr starting…
Bazarr exited.
Traceback (most recent call last):
File “/app/bazarr/bin/bazarr/main.py”, line 22, in
from init import * # noqa E402
File “/app/bazarr/bin/bazarr/init.py”, line 236, in
migrate_db()
File “/app/bazarr/bin/bazarr/app/database.py”, line 484, in migrate_db
item.timestamp = datetime.fromtimestamp(int(item.timestamp))
TypeError: int() argument must be a string, a bytes-like object or a real number, not ‘datetime.datetime’
Bazarr starting…
Bazarr exited.

Blockquote

Hope that helps

can you provide the output of
docker inspect -f '{{ index .Config.Labels "build_version" }}' bazarr
and
docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/bazarr:latest

Here is the output of both commands:

root@UNRAID:~# docker inspect -f ‘{{ index .Config.Labels “build_version” }}’ bazarr
Linuxserver.io version:- v1.2.0-ls186 Build-date:- 2023-03-03T03:34:00-06:00

root@UNRAID:~# docker inspect -f ‘{{ index .Config.Labels “build_version” }}’ lscr.io/linuxserver/bazarr:latest
Error: No such object: lscr.io/linuxserver/bazarr:latest

Changed the repository from linuxserver/bazarr:latest to lscr.io/linuxserver/bazarr:latest and executed the second command. The output is:

root@UNRAID:~# docker inspect -f ‘{{ index .Config.Labels “build_version” }}’ lscr.io/linuxserver/bazarr:latest
Linuxserver.io version:- v1.2.0-ls186 Build-date:- 2023-03-03T03:34:00-06:00
root@UNRAID:~#

I too have problems to get the container to work after the update. It starts but I can’t reach the web GUI.

Running Debian 11.

docker inspect -f ‘{{ index .Config.Labels “build_version” }}’ bazarr

Linuxserver. io version:- v1.2.0-ls186 Build-date:- 2023-03-03T03:34:00-06:00

docker inspect -f ‘{{ index .Config.Labels “build_version” }}’ lscr.io/linuxserver/bazarr:latest

Linuxserver.io version:- v1.2.0-ls186 Build-date:- 2023-03-03T03:34:00-06:00

I would encourage you both to come on discord for support. Unfortunately, I do not use bazarr, so you’ll likely get better support there.

OK. Discord support solved the problem. It was due to a database migration problem. Somehow my database got corrupted. The support tried to rectify the the problematic lines but with no result. Deleted the old database and backups and start as a new. So the problem was not due to the docker itself but with a database corruption due to the migration.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.