Server Version#: plexmediaserver_1.17.0.1709-982421575_amd64
Player Version#:
Hey,
After installing plex on a clean ubuntu18 server straight after the install finishes the VM freezes within 30 seconds and needs a reboot to bring back.
This ubuntu18 server only has rclone installed nothing else has been installed or configured other than openssh. After a reboot when I check if plex is running it is not and I get the following error when trying to restart plex.
● plexmediaserver.service - Plex Media Server
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2019-09-27 12:14:46 UTC; 51s ago
Process: 1530 ExecStart=/bin/sh -c PLEX_MEDIA_SERVER_INFO_VENDOR="$(grep ^NAME= /etc/os-release | awk -F= "{print \$2}" | tr -d \" )" PLEX_MEDIA_SERVER_INFO_DEVICE="PC" PLEX_MEDIA_SERVER_INFO_MODEL="$(uname -m)" PLEX_MEDIA_SERVER_IN
Process: 1526 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: 1530 (code=exited, status=255)
Sep 27 12:14:46 vu18 systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Sep 27 12:14:46 vu18 systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 3.
Sep 27 12:14:46 vu18 systemd[1]: Stopped Plex Media Server.
Sep 27 12:14:46 vu18 systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Sep 27 12:14:46 vu18 systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Sep 27 12:14:46 vu18 systemd[1]: Failed to start Plex Media Server.
Steps taken to resolve.
1). I have attempted to restart plex on number occasions and always get the same error.
2). I have also reinstalled by reverting the VM before plex was installed and it freezes everytime after install and gives same error starting
3).Checked output journalctl and could not find anything obvious.
4). Installed by adding repo to package manager and downloading. same issues
5). search this forum for error but could not find anything that resolved the issue
Here are the specs of the machine the VM is running on.
ESXI 6.5: 8vCPU intel Atom CPU, 8GB ram
Ubuntu 18.04.3 LTS(latest version) VM: 6GB RAM 6VCPUs
The only other VM running on this host is PFsense and the Ubuntu server is behind that. Pfsense has 1 VCPu and 1GB RAM allocated. So it is definitely not a resources issue.
Anyone have any idea what the issue could be before i scrap the VM and start over with FreeBSD plex_journalctl.log (3.7 KB)
here is cpu info.
model : 77
model name : Intel® Atom™ CPU C2750 @ 2.40GHz
as you mentioned the first thing i thought when i first encountered this was a HW/config issue but the VM was running for 4 days without any issues and the issue is reproducible every time i install plex.
My mistake on the logs. I should have clarified. Inside /var/lib/plexmediaserver/Application Support/Plex Media Server, you will find a Logs directory.
These are the logs I need.
As for FreeBSD, you’re far better off in Linux.
Unless you have other guests running on the host, why have the overhead of the VM just for the sake of having it?
That C2750 is not the most powerful CPU at 3768 Passmarks. The newer NAS CPUs are faster. The C2750 is a 2013 cpu
Yeah I am aware it is not the best CPU around but it is more than i need and it should be well able for what i need it for, which is Max 2 streams at once and very rarely a transcode stream. This plex server is replacing a BSD one which has been a rock for about 5 years but my home internet is not the best and if someone is streaming from plex the internet is getting affected. Its either move the server to somewhere else or get rid of the misses. It was a tough decision i debated over for a few weeks but moving the server is cheaper.
The reason i am virtualising it is that i may need to spin up other VMs from time to time and it makes backup easy as I can just take copies of the VM and snapshots if I ever want to migrate. BSD jails and Bhyve have too many limitations for me.
Attached are the logs I believe I found the root cause and the logs are below. What do you think?
ERROR - Database corruption: sqlite3_statement_backend::prepare: no such table: schema_migrations for SQL: select version from schema_migrations order by version
ERROR - Error: Unable to set up server: sqlite3_statement_backend::prepare: no such table: schema_migrations for SQL: select version from schema_migrations order by version (N4soci10soci_errorE)
ERROR - SQLITE3:(nil), 1, no such table: schema_migrations in "select version from schema_migrations order by version"
ERROR - Tried to convert contents of pidfile '' to a int, but failed... [plex.tar.gz|attachment](upload://i2Bj7b8vcvC65WjYrqQ55zu0CdP.gz) (31.1 KB)
After trying to install an older plex version the VM refused to start this time on the console I was able to see the issue was due to plex and the network card.
I tested all the network card options and the most stable appears to be E1000e. I was able to install plex and it has not crashed once since.
I will wait and see how it works out. Hopefully this was the case.
Sorry just seen they did not upload in the previous comment. I attached them to this commentplex.tar.gz (31.1 KB)