Server Version#: 1.22.0.4163-d8c4875dd.x86_64
Player Version#: Versión 4.51.3
Hello community.
I want your help. I installed PLex in Fedora 30, and i didn’t see my server in the list. I reinstalled the server and remove all paths. /var/lib/plexmediaserver and /usr/lib/plexmediaserver and i didn’t see the setup initial page after the installation.
When i come to the website (http://LocalIP:32400/web) the first setup not run.
i didn’t see my server, i don’t know if this “characteristic” is only available with the premium feature (i didn’t renewed mine)
My sever runing fine:
[root@surf4c3mau lib]# systemctl status plexmediaserver
● plexmediaserver.service - Plex Media Server
Loaded: loaded (/usr/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/plexmediaserver.service.d
└─override.conf
Active: active (running) since Wed 2021-03-17 11:26:48 CST; 5s ago
Process: 3095 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT>
Main PID: 3097 (Plex Media Serv)
Tasks: 47 (limit: 2238)
Memory: 61.2M
CGroup: /system.slice/plexmediaserver.service
├─3097 /usr/lib/plexmediaserver/Plex Media Server
├─3118 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-d8c4875dd/Framework.bundle/Contents/Resources/Versions/2/Python/b>
└─3166 /usr/lib/plexmediaserver/Plex Tuner Service /usr/lib/plexmediaserver/Resources/Tuner/Private /usr/lib/plexmediaserver/Resources/Tuner/Shared 1.>
I using the override.conf file to use the user that i want:
● plexmediaserver.service - Plex Media Server
Loaded: loaded (/usr/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/plexmediaserver.service.d
└─override.conf
[root@surf4c3mau Descargas]# cat /etc/systemd/system/plexmediaserver.service.d/override.conf
[Service]
User=plex
Group=MusicGroup
Environment="TMPDIR=/var/lib/plexmediaserver/temp"
the user and group have the correct grants in the folders.
[root@surf4c3mau Descargas]# ls -altr /var/lib/plexmediaserver /usr/lib/plexmediaserver/
/usr/lib/plexmediaserver/:
total 44072
-rwxr-xr-x. 1 plex MusicGroup 271440 mar 9 06:32 'Plex Transcoder'
-rwxr-xr-x. 1 plex MusicGroup 12576 mar 9 06:32 'Plex Script Host'
-rwxr-xr-x. 1 plex MusicGroup 746768 mar 9 06:32 'Plex Relay'
-rwxr-xr-x. 1 plex MusicGroup 408520 mar 9 06:32 'Plex Commercial Skipper'
-rwxr-xr-x. 1 plex MusicGroup 4679632 mar 9 06:32 'Plex Tuner Service'
-rwxr-xr-x. 1 plex MusicGroup 138072 mar 9 06:32 'Plex Media Fingerprinter'
-rwxr-xr-x. 1 plex MusicGroup 4504776 mar 9 07:00 'Plex DLNA Server'
-rwxr-xr-x. 1 plex MusicGroup 1599896 mar 9 07:06 CrashUploader
-rwxr-xr-x. 1 plex MusicGroup 7666784 mar 9 07:06 'Plex Media Scanner'
-rwxr-xr-x. 1 plex MusicGroup 25030560 mar 9 07:07 'Plex Media Server'
-rw-rw-r--. 1 plex MusicGroup 1095 mar 9 07:15 plexrsync.pp
dr-xr-xr-x. 61 root root 32768 mar 17 10:44 ..
drwxr-xr-x. 10 plex MusicGroup 4096 mar 17 10:45 Resources
drwxr-xr-x. 3 plex MusicGroup 4096 mar 17 10:45 lib
drwxr-xr-x. 4 plex MusicGroup 4096 mar 17 10:45 .
/var/lib/plexmediaserver:
total 4
drwxr-xr-x. 67 root root 4096 ene 23 13:00 ..
drwxr-xr-x. 1 plex MusicGroup 38 mar 17 10:46 Library
drwxr-xr-x. 1 plex MusicGroup 22 mar 17 11:18 .
drwxr-xr-x. 1 plex MusicGroup 80 mar 17 11:26 temp
And the correct ports are opened in the server:
[root@surf4c3mau Descargas]# firewall-cmd --zone=public --permanent --list-ports
32400/tcp 32401/tcp 8000/tcp 1900/tcp 5353/tcp 8324/tcp 23410/udp 23412/udp 23413/udp 23414/udp 32469/tcp
I didn’t see what other things i need to check.
I hope that you help me.
thanks a lot!
Are you local to / keyboard&display on the same machine?
(Local to == on the same subnet and that subnet is RFC-1918 Private Network compliant )?
Are you attempting to perform setup using a FQDN or by IP – Use IP address only:
e.g. http://192.168.0.10:32400/web -or- http://127.0.0.1:32400/web
no, this is a media server, this not have display. But i’m in the same network, the local IP respond, but when i try to access automatically redirect me to plex.tv and not to the local URL. (acording with the guide, this is incorrect, the server must be redirectme to the setup configuration site Basic Setup Wizard | Plex Support), no to the plex.tv autentication site.
If you’re getting the automated redirect, then it apparently has locked out or there is something else going on. A certificate on the host?
I will also presume this is a bare machine (native OS) install. VMs and containers are different initial invocation.
On a NAS system (also headless), we do the normal http://ip.addr.of.host:32400/web and it both loads the Plex/web app and then starts the setup wizard.
Given you’re redirected,
- PMS is running.
- It served the Plex/web app (into the browser which then redirected)
Can you stop Plex,
Grab a tar.gz / zip of the Logs directory under /var/lib/plexmediaserver and attach it?
I’ll look and see what it’s not liking.
PlexLogs.tar.gz (78.3 KB)
Yes, is a baremetal installation. I don’t have a certificate in the hosts (only local cert).
When the site redirect me, i didn’t see some process named PMS
[root@surf4c3mau tmp]# ps -fea | grep PMS
root 5480 29918 0 12:45 pts/2 00:00:00 grep --color=auto PMS
[root@surf4c3mau tmp]# ps -fea | grep -i pms
root 5484 29918 0 12:45 pts/2 00:00:00 grep --color=auto -i pms
[root@surf4c3mau tmp]# ps -fea | grep -i plex
plex 3097 1 0 11:26 ? 00:00:23 /usr/lib/plexmediaserver/Plex Media Server
plex 3118 3097 0 11:26 ? 00:00:21 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-d8c4875dd/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.22.0.4163-d8c4875dd /usr/lib/plexmediaserver/Resources/Plug-ins-d8c4875dd/System.bundle
plex 3166 3097 0 11:26 ? 00:00:13 /usr/lib/plexmediaserver/Plex Tuner Service /usr/lib/plexmediaserver/Resources/Tuner/Private /usr/lib/plexmediaserver/Resources/Tuner/Shared 1.22.0.4163-d8c4875dd 32600
root 5486 29918 0 12:45 pts/2 00:00:00 grep --color=auto -i plex
Yes, the server is “served” in the browser, i try with chrome and firefox, and the incongnito mode.
thanks in advance!
Thank, i understand your point. the PMS (Plex Media Scanner) crashed.
[root@surf4c3mau plexmediaserver]# ./Plex\ Media\ Scanner -l
terminate called after throwing an instance of 'soci::soci_error'
what(): sqlite3_statement_backend::prepare: no such column: library_sections.content_changed_at for SQL: select library_sections.id as 'library_sections_id', library_sections.library_id as 'library_sections_library_id', library_sections.name as 'library_sections_name', library_sections.name_sort as 'library_sections_name_sort', library_sections.section_type as 'library_sections_section_type', library_sections.language as 'library_sections_language', library_sections.agent as 'library_sections_agent', library_sections.scanner as 'library_sections_scanner', library_sections.user_thumb_url as 'library_sections_user_thumb_url', library_sections.user_art_url as 'library_sections_user_art_url', library_sections.user_theme_music_url as 'library_sections_user_theme_music_url', library_sections.created_at as 'library_sections_created_at', library_sections.updated_at as 'library_sections_updated_at', library_sections.scanned_at as 'library_sections_scanned_at', library_sections.user_fields as 'library_sections_user_fields', library_sections.query_xml as 'library_sections_query_xml', library_sections.query_type as 'library_sections_query_type', library_sections.uuid as 'library_sections_uuid', library_sections.changed_at as 'library_sections_changed_at', library_sections.content_changed_at as 'library_sections_content_changed_at' from library_sections
****** PLEX MEDIA SCANNER CRASHED, CRASH REPORT WRITTEN: /root/Library/Application Support/Plex Media Server/Crash Reports/1.22.0.4163-d8c4875dd/PLEX MEDIA SCANNER/4296a9b6-f195-4bfd-6737c0e8-589a93d3.dmp
the system generate a dmp file, but i don’t know if this dump is a normal core dump.
Is possible analyze this file?
BR
I have the tools to analyze it (if not already uploaded to the dump server).
Your logs should have something from the rest of that output?
If it hangs there , the process is running
Yes, the file is in the tar that i uploaded. in the Crash Reports path.
[root@surf4c3mau PLEX MEDIA SCANNER]# coredumpctl list
TIME PID UID GID SIG COREFILE EXE
Wed 2021-03-17 14:09:52 CST 7534 0 0 6 present /usr/lib/plexmediaserver/Plex Media Scanner
[root@surf4c3mau PLEX MEDIA SCANNER]#
I’m sorry. I missed that. Let me see what I can find out.
Did you get anything in your logs or was it a hard fail before it even started?
Scanner core dump should be in your PMS logs. I’m confused.
I will go look at it
Yes, due you comment me about the PMS, i search more about this process. and i found this:
(Plex Media Scanner via Command Line | Plex Support)
terminate called after throwing an instance of 'soci::soci_error'
what(): sqlite3_statement_backend::prepare:....
In the PMS output.
ok.
with coredumpctl i found this:
[root@surf4c3mau PLEX MEDIA SCANNER]# coredumpctl dump --output /tmp/dump.tmp
PID: 7534 (Plex Media Scan)
UID: 0 (root)
GID: 0 (root)
Signal: 6 (ABRT)
Timestamp: Wed 2021-03-17 14:09:51 CST (44min ago)
Command Line: ./Plex Media Scanner -l
Executable: /usr/lib/plexmediaserver/Plex Media Scanner
Control Group: /user.slice/user-1000.slice/session-16.scope
Unit: session-16.scope
Slice: user-1000.slice
Session: 16
Owner UID: 1000 (USER)
Boot ID: 68e1be0ab3b14eb5bf456cf3e888eccb
Machine ID: e8577c8db5c1443daf510094c010e62d
Hostname: HOSTNAME
Storage: /var/lib/systemd/coredump/core.Plex\x20Media\x20Scan.0.68e1be0ab3b14eb5bf456cf3e888eccb.7534.1616011791000000.lz4
Message: Process 7534 (Plex Media Scan) of user 0 dumped core.
Stack trace of thread 7534:
#0 0x00007f692b56ae35 raise (libc.so.6)
#1 0x00007f692b555895 abort (libc.so.6)
#2 0x00007f692b78dfd4 _ZN9__gnu_cxx27__verbose_terminate_handlerEv (libstdc++.so.6)
#3 0x00007f692b78c80b n/a (libstdc++.so.6)
#4 0x00007f692b78c844 _ZSt9terminatev (libstdc++.so.6)
#5 0x00007f692b78ca06 __cxa_throw (libstdc++.so.6)
#6 0x00007f692f0fb7cf _ZN4soci25sqlite3_statement_backend7prepareERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_7details14statement_typeE (libsoci_sqlite3.so)
#7 0x00007f692f339abe _ZN4soci7details14statement_implC2ERKNS0_17prepare_temp_typeE (libsoci_core.so)
#8 0x000000000058e3cc n/a (Plex Media Scanner)
#9 0x000000000066bb17 n/a (Plex Media Scanner)
#10 0x00007f692b556f43 __libc_start_main (libc.so.6)
#11 0x0000000000469029 _start (Plex Media Scanner)
Due the error, i think that this is a issue in the statement of SQLLite
what(): sqlite3_statement_backend::prepare: **no such column**: library_sections.content_changed_at for SQL: select library_sections.id as 'library_sections_id', library_sections.library_id as 'library_sections_library_id', library_sections.name as 'library_sections_name', library_sections.name_sort as 'library_sections_name_sort', library_sections.section_type as 'library_sections_section_type', library_sections.language as 'library_sections_language', library_sections.agent as 'library_sections_agent', library_sections.scanner as 'library_sections_scanner', library_sections.user_thumb_url as 'library_sections_user_thumb_url', library_sections.user_art_url as 'library_sections_user_art_url', library_sections.user_theme_music_url as 'library_sections_user_theme_music_url', library_sections.created_at as 'library_sections_created_at', library_sections.updated_at as 'library_sections_updated_at', library_sections.scanned_at as 'library_sections_scanned_at', library_sections.user_fields as 'library_sections_user_fields', library_sections.query_xml as 'library_sections_query_xml', library_sections.query_type as 'library_sections_query_type', library_sections.uuid as 'library_sections_uuid', library_sections.changed_at as 'library_sections_changed_at', library_sections.content_changed_at as 'library_sections_content_changed_at' from library_sections
I will try with some old version.
Looks like the database migrations did not run.
mmmm, is not migration, is a new installation.
I think is not neccesary a migration proccess, or yes?
The server is shipped with a minimal database which is universal for all version.
when starting, PMS applies all database schema changes to bring that template current.
What happens when you run PMS itself manually from the command line?
I’m hoping to discern whether or not the database schema is up to date for this version or not.
If it’s not then scanner crash is inevitable
Show me? I need that. Engineering is watching this thread with us.
This is the output
[root@surf4c3mau plexmediaserver]# ./Plex\ Media\ Scanner -l
terminate called after throwing an instance of 'soci::soci_error'
what(): sqlite3_statement_backend::prepare: no such column: library_sections.content_changed_at for SQL: select library_sections.id as 'library_sections_id', library_sections.library_id as 'library_sections_library_id', library_sections.name as 'library_sections_name', library_sections.name_sort as 'library_sections_name_sort', library_sections.section_type as 'library_sections_section_type', library_sections.language as 'library_sections_language', library_sections.agent as 'library_sections_agent', library_sections.scanner as 'library_sections_scanner', library_sections.user_thumb_url as 'library_sections_user_thumb_url', library_sections.user_art_url as 'library_sections_user_art_url', library_sections.user_theme_music_url as 'library_sections_user_theme_music_url', library_sections.created_at as 'library_sections_created_at', library_sections.updated_at as 'library_sections_updated_at', library_sections.scanned_at as 'library_sections_scanned_at', library_sections.user_fields as 'library_sections_user_fields', library_sections.query_xml as 'library_sections_query_xml', library_sections.query_type as 'library_sections_query_type', library_sections.uuid as 'library_sections_uuid', library_sections.changed_at as 'library_sections_changed_at', library_sections.content_changed_at as 'library_sections_content_changed_at' from library_sections
****** PLEX MEDIA SCANNER CRASHED, CRASH REPORT WRITTEN: /root/Library/Application Support/Plex Media Server/Crash Reports/1.22.0.4163-d8c4875dd/PLEX MEDIA SCANNER/35dc7375-ad53-4263-2aa7b579-7e947c6d.dmp
Error in command line:the argument for option '--serverUuid' should follow immediately after the equal sign
Crash Uploader options (all are required):
--directory arg Directory to scan for crash reports
--serverUuid arg UUID of the server that crashed
--userId arg User that owns this product
--platform arg Platform string
--platformVersion arg Platform version string
--vendor arg Vendor string
--device arg Device string
--model arg Device model string
--sentryUrl arg Sentry URL to upload to
--sentryKey arg Sentry Key for the project
--version arg Version of the product
--allowRetries arg Whether we will allow retries
Aborted (`core' generado)
SERVER please ?
Not Scanner
Server updates the schema. The scanner won’t work unless schema updated.