Plex unable to start post upgrade: error retrieving entropy

Hi - running DietPi on an Odroid N2, I’ve had Plex running successfully for a couple of months. I upgraded via apt, and it Plex won’t start since.

I’ve removed the apt install and reinstalled via dietpi-software (after searching the filesystem for any remnants), but the problem persists. It’s a weird error I’m not finding anywhere related to Plex - mostly just to OpenSSL.

Any thoughts? Anyone else seen this? I’m assuming I blew up some underlying library my version of DietPi depends on when using apt to upgrade. Any thoughts on what it might be, or if that’s a red herring?

Thanks.


 # service plexmediaserver status ●plexmediaserver.service - Plex Media Server    Loaded: loaded (/lib/systemd/system/plexmediaserver.service; disabled; vendor preset: enabled)   Drop-In: /etc/systemd/system/plexmediaserver.service.d    └─dietpi-group.conf
Active: failed(Result: exit-code) since Fri 2020-04-24 10:46:08 ED
T; 12h ago
Process: 2847 ExecStart=/bin/sh -c  export PLEX_MEDIA_SERVER_INFO_VENDOR="$(grep ^NAME= /etc/os-release | awk -F= "{print \$2}" | tr -d \" )";  export PLEX_MEDIA_SERVER_INFO_DEVICE="PC";  export PLEX_MEDIA_SERVER_INFO_MODEL="$(uname -m)";  export PLEX_MEDIA_SERVER_INFO_PLATFORM_VERSION="$(grep ^VERSION= /etc/os-release |awk -F= "{print \$2}" | tr -d \" )";  export LD_LIBRARY_PATH=/usr/lib/plexmediaserver/lib;  exec "/usr/lib/plexmediaserver/Plex Media Server" (code=exite
d, status=255)
Process: 2843 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" (code=exited, status=0/SUCCESS)
Main PID: 2847 (code=exited, status=255)

Apr 24 10:46:03 odroid systemd[1]: plexmediaserver.service: Main process 
exited, code=exited, status=255/n/a
Apr 24 10:46:03 odroid systemd[1]: plexmediaserver.service: Unit entered 
failed state.
Apr 24 10:46:03 odroid systemd[1]: plexmediaserver.service: Failed with r
esult 'exit-code'.
Apr 24 10:46:08 odroid systemd[1]: plexmediaserver.service: Service hold-off timeover, scheduling restart.
Apr 24 10:46:08 odroid systemd[1]: Stopped Plex Media Server.
Apr 24 10:46:08 odroid systemd[1]: plexmediaserver.service: Start request
 repeated too quickly.
Apr 24 10:46:08 odroid systemd[1]: Failed to start Plex Media Server.
Apr 24 10:46:08 odroid systemd[1]: plexmediaserver.service: Unit entered 
failed state.
Apr 24 10:46:08 odroid systemd[1]: plexmediaserver.service: Failed with r
esult 'exit-code'.

Digging deeper and running it by hand:

 root@odroid(3)
  10:50:48PM -#  /bin/sh -c  export PLEX_MEDIA_SERVER_INFO_VENDOR="$(grep ^NAME= /etc/os-release | awk -F= "{print \$2}" | tr -d \" )";  export PLEX_MEDIA_SERVER_INFO_DEVICE="PC";  export PLEX_MEDIA_SERVER_INFO_MODEL="$(uname -m)";  export PLEX_MEDIA_SERVER_INFO_PLATFORM_VERSION="$(grep ^VERSION= /etc/os-release | awk -F= "{print \$2}" | tr -d \" )";  export LD_LIBRARY_PATH=/usr/lib/plexmediaserver/lib;  exec "/usr/lib/plexmediaserver/Plex Media Server"
export HOME='/root'
export LC_ALL='en_US.UTF-8'
export LOGNAME='root'
export export PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
export SHELL='/bin/bash'
export SHLVL='1'
export _='/bin/sh'
Error: Unable to set up server: context: error retrieving entropy (N5boost10wrapexceptINS_6system12system_errorEEE)

Hi,

maybe you can have a look to the following 2 log files. To get fresh log files, do a reboot first:

cat '/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/Plex Media Server.log'
cat '/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/Plex Tuner Service.log'

Interesting. Looks like there’s a sqlite migration just before the crash. 2ms later the entropy error pops up, unclear whether they’re connected.

Unless anything else comes to mind, I guess I’ll bite the bullet and re-flash the root partition.

cat '/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/Plex Media Server.log'Apr 24, 2020 10:46:03.201 [0x7f7ebcd1e0] INFO - Plex Media Server v1.19.1.2701-6327e27bf - Debian GNU/Linux PC aarch64 - build: linux-aarch64 debian - GMT -04:00
Apr 24, 2020 10:46:03.201 [0x7f7ebcd1e0] INFO - Linux version: 9 (stretch), language: C
Apr 24, 2020 10:46:03.201 [0x7f7ebcd1e0] INFO - Processor Unknown architecture
Apr 24, 2020 10:46:03.201 [0x7f7ebcd1e0] INFO - /usr/lib/plexmediaserver/Plex Media Server
Apr 24, 2020 10:46:03.202 [0x7f7ebd0000] DEBUG - BPQ: [Idle] -> [Starting]
Apr 24, 2020 10:46:03.203 [0x7f7ebd0000] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.26.0, threadsafe=1
Apr 24, 2020 10:46:03.204 [0x7f7ebd0000] INFO - SQLITE3:0xb1f, 283, recovered 347 frames from WAL file /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db-wal
Apr 24, 2020 10:46:03.266 [0x7f7ebd0000] DEBUG - Running migrations. (EPG 0)
Apr 24, 2020 10:46:03.267 [0x7f7ebd0000] DEBUG - ChangestampAllocator: initialized to 0
Apr 24, 2020 10:46:03.267 [0x7f7ebd0000] DEBUG - Opening 2 database sessions to library (com.plexapp.plugins.library.blobs), SQLite 3.26.0, threadsafe=1
Apr 24, 2020 10:46:03.268 [0x7f7ebd0000] INFO - SQLITE3:0xb1f, 283, recovered 347 frames from WAL file /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.blobs.db-wal
Apr 24, 2020 10:46:03.274 [0x7f7ebd0000] DEBUG - Running migrations. (EPG 0)
Apr 24, 2020 10:46:03.276 [0x7f7ebd0000] ERROR - Error: Unable to set up server: context: error retrieving entropy (N5boost10wrapexceptINS_6system12system_errorEEE)

Hi,

looks more your database crashed and tried to recover which doesn’t seems to succeed

Apr 24, 2020 10:46:03.204 [0x7f7ebd0000] INFO - SQLITE3:0xb1f, 283, recovered 347 frames from WAL file

Sure does. What doesn’t make sense is that this happens from fresh installs. I completely remove all traces of Plex, reinstall, and this happens on initial run. I must have erased and re-installed various versions of both Plex and sqlite 10 times.

hmm maybe there is something left over even if database will be removed. But personally I wouldn’t know what it could be. Do you have a spare SD card that can be used for setting up a fresh install?