Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Upgrade from 1.40.3 -> 1.40.4 fails #397

Closed
1 task done
ver151set opened this issue Aug 11, 2024 · 7 comments
Closed
1 task done

[BUG] Upgrade from 1.40.3 -> 1.40.4 fails #397

ver151set opened this issue Aug 11, 2024 · 7 comments

Comments

@ver151set
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When upgrading to 1.40.4 console shows

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Over and over again, plex never starts even after running for 6+ hours

If you browse to plex via web it shows database migration in progress

If i change version back to 1.40.3 plex starts as expected

Expected Behavior

No response

Steps To Reproduce

  1. Docker on debian jail via jailmaker within truenas scale

  2. Standard config

  3. Initiate upgrade from 1.40.3 to 1.40.4

Environment

- OS: Debian Bookworm - truenas jailmaker https://github.com/Jip-Hop/jailmaker
- How docker service was installed:packagemanager

CPU architecture

x86-64

Docker creation

rvices:
  plex:
    image: lscr.io/linuxserver/plex:latest
    container_name: plex
    network_mode: host
    environment:
      - PUID=568
      - PGID=816
      - TZ=America/Chicago
      - VERSION=docker
    volumes:
      - /mnt/WDblue1/plexd:/config
      - /mnt/Mirror/Media2:/media
      - /mnt/WDblue1/prerolls:/prerolls
    restart: unless-stopped

Container logs

Connection to localhost (127.0.0.1) 32400 port [tcp/*] succeeded!

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Connection to localhost (127.0.0.1) 32400 port [tcp/*] succeeded!

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Connection to localhost (127.0.0.1) 32400 port [tcp/*] succeeded!

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Connection to localhost (127.0.0.1) 32400 port [tcp/*] succeeded!

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Connection to localhost (127.0.0.1) 32400 port [tcp/*] succeeded!

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Connection to localhost (127.0.0.1) 32400 port [tcp/*] succeeded!

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Connection to localhost (127.0.0.1) 32400 port [tcp/*] succeeded!

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Connection to localhost (127.0.0.1) 32400 port [tcp/*] succeeded!

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Connection to localhost (127.0.0.1) 32400 port [tcp/*] succeeded!

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Connection to localhost (127.0.0.1) 32400 port [tcp/*] succeeded!

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Connection to localhost (127.0.0.1) 32400 port [tcp/*] succeeded!

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)

Error: Unable to set up server: sqlite3_statement_backend::loadRS: malformed JSON (N4soci10soci_errorE)

Starting Plex Media Server. . . (you can ignore the libusb_init error)
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@j0nnymoe
Copy link
Member

That error implies there is an issue with your database. Checking the Plex documentation will help resolve it.

@ver151set
Copy link
Author

One would think - yet the DB works fine on 1.40.3 and older. DBrepair tool also shows no errors or issues, runs weekly.

I have database backups via snapshots going back about 5 years. Tried a few of those and same thing. Works fine on 1.40.3 and older, doesnt startup on 1.40.4

@j0nnymoe
Copy link
Member

Googling the error shows it's a common problem: https://www.reddit.com/r/PleX/comments/qitj8k/database_errors_seemingly_unrepairable/

This is an issue with the app, not the container.

@ver151set
Copy link
Author

The exact repair script mentioned to fix the db issue in that thread auto runs every sunday on my DB. I just manually ran it to see if anything changes and nada, no errors found or repaired. Guess Im stuck on 1.40.3 until I get this sorted

@ver151set
Copy link
Author

If anyone stumbles across this - I found this recent thread with the exact error

https://forums.plex.tv/t/plex-not-starting-after-power-outage/883568/27

@j0nnymoe
Copy link
Member

Closing as it's not an issue with the container and link provided to plex bug.

@j0nnymoe j0nnymoe closed this as not planned Won't fix, can't repro, duplicate, stale Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants