"Failed to run packege service" - I tried many solutions but did not work

So, Logs in any case, right? :wink:

At this moment download page doesn’t work, maybe there is manteinance…

Later I’m going to try. Thanks again for now!

Maintenance completed.

Ok, all seems fine even after the update!
Thank you very very much to both of you!

Logs (1).zip (2.1 MB)

COnfirmed.

You now have a fresh installation to build on.

Jul 06, 2021 17:43:00.976 [0x43759430] INFO - Plex Media Server v1.22.3.4523-d0ce30438 - Synology DS213j armv7l - build: linux-armv7hf synology - GMT 02:00
Jul 06, 2021 17:43:00.977 [0x43759430] INFO - Linux version: DSM 6.2.4.25556-0, language: en-US
Jul 06, 2021 17:43:00.977 [0x43759430] INFO - Processor Arm
Jul 06, 2021 17:43:00.977 [0x43759430] INFO - /var/packages/Plex Media Server/target/Plex Media Server
Jul 06, 2021 17:43:00.985 [0x400b2000] DEBUG - BPQ: [Idle] -> [Starting]
Jul 06, 2021 17:43:00.989 [0x400b2000] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.26.0, threadsafe=1
Jul 06, 2021 17:43:00.999 [0x400b2000] DEBUG - Installing Library Database from ["/volume2/@appstore/Plex Media Server/Resources/com.plexapp.plugins.library.db"] to ["/volume2/Plex/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db"]
Jul 06, 2021 17:43:01.558 [0x400b2000] DEBUG - Running migrations. (EPG 0)
Jul 06, 2021 17:43:01.572 [0x400b2000] DEBUG - Running forward migration 20190130000000.
Jul 06, 2021 17:43:01.584 [0x400b2000] DEBUG - Captured session 0.
Jul 06, 2021 17:43:01.584 [0x400b2000] DEBUG - Captured session 1.

Hi,
I have the same issue, but with ASUSTOR NAS.

So my steps were:

  1. Uninstall the app
  2. Remove Plex folder
  3. Reboot NAS
  4. log in via SSH and using following commands:
 - sudo -su root "password"
- cd /volume1/
- rm -rf "Plex"
  1. Reboot again
  2. Downloading PMS ArmV7 for ASUSTOR
  3. Installing PMS ArmV7 for ASUSTOR (went okay)
  4. Trying to launch

Get this:

Jul 09, 2021 16:45:24.558 [0xb41fad48] INFO - Plex Media Server v1.23.3.4707-ebb5fe9f3 - ASUSTOR AS1004T armv7l - build: linux-armv7neon asustor - GMT 00:00
Jul 09, 2021 16:45:24.564 [0xb41fad48] INFO - Linux version: ADM 3.5.6.RHA2, language: en-US
Jul 09, 2021 16:45:24.564 [0xb41fad48] INFO - Processor Arm
Jul 09, 2021 16:45:24.564 [0xb41fad48] INFO - Compiler is - Clang 11.0.1 (https://plex.tv e0c29d5827bc4eaaa2ceb882cbeed224b0960173)
Jul 09, 2021 16:45:24.564 [0xb41fad48] INFO - /usr/local/AppCentral/plexmediaserver/Plex Media Server
Jul 09, 2021 16:45:24.558 [0xb6cace30] DEBUG - BPQ: [Idle] -> [Starting]
Jul 09, 2021 16:45:24.560 [0xb6cace30] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.35.5, threadsafe=1
Jul 09, 2021 16:45:24.560 [0xb6cace30] DEBUG - Installing Library Database from ["/volume1/.@plugins/AppCentral/plexmediaserver/Resources/com.plexapp.plugins.library.db"] to ["/volume1/Plex/Library/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db"]
Jul 09, 2021 16:45:24.560 [0xb6cace30] ERROR - Couldn't copy file "/volume1/.@plugins/AppCentral/plexmediaserver/Resources/com.plexapp.plugins.library.db" to "/volume1/Plex/Library/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db": Invalid argument
Jul 09, 2021 16:45:24.783 [0xb6cace30] DEBUG - Running migrations. (EPG 0)
Jul 09, 2021 16:45:24.784 [0xb6cace30] ERROR - SQLITE3:(nil), 1, no such table: schema_migrations in "select version from schema_migrations order by version"
Jul 09, 2021 16:45:24.784 [0xb6cace30] ERROR - Database corruption: sqlite3_statement_backend::prepare: no such table: schema_migrations for SQL: select version from schema_migrations order by version
Jul 09, 2021 16:45:24.785 [0xb6cace30] 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)

@trumpy81 any idea?

Also I have manually copied “/volume1/.@plugins/AppCentral/plexmediaserver/Resources/com.plexapp.plugins.library.db”

to

“/volume1/Plex/Library/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db”

yet it does not help at all.

Excuse me for jumping in here?

Which NAS is this? ASUSTOR ?

/volume1/Plex/Library is for Synology hosts on DSM 6.

Hi @ChuckPa, sorry if I got into wrong category, but it seems like exactly the same error, no matter the device.

Asustor has two Plex paths

App:

/usr/local/AppCentral/plexmediaserver/Plex Media Server

Library:

/volume1/Plex/Library

My mistake… Please accept my apologies. I forgot ASUSTOR is like Synology DSM 6 in structure.

PMS does ship with an empty database.

The error logs look like PMS is having trouble writing to that new location?

@ChuckPa seems like it to me. Got a DM with fixed APK file and now it works.

Also having the same issue with Asustor.

hi, have the same problem:

Aug 04, 2021 11:23:33.970 [0x2e0dcd48] INFO - Plex Media Server v1.23.6.4881-e2e58f321 - Synology DS215j armv7l - build: linux-armv7neon synology-dsm7 - GMT 02:00
Aug 04, 2021 11:23:33.971 [0x2e0dcd48] INFO - Linux version: DSM 7.0.41890-0, language: en-US
Aug 04, 2021 11:23:33.971 [0x2e0dcd48] INFO - Processor Arm
Aug 04, 2021 11:23:33.971 [0x2e0dcd48] INFO - Compiler is - Clang 11.0.1 (https://plex.tv e0c29d5827bc4eaaa2ceb882cbeed224b0960173)
Aug 04, 2021 11:23:33.972 [0x2e0dcd48] INFO - /volume1/@appstore/PlexMediaServer/Plex Media Server
Aug 04, 2021 11:23:33.979 [0x2b6a0e80] DEBUG - BPQ: [Idle] → [Starting]
Aug 04, 2021 11:23:33.984 [0x2b6a0e80] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.35.5, threadsafe=1
Aug 04, 2021 11:23:34.034 [0x2b6a0e80] DEBUG - Running migrations. (EPG 0)
Aug 04, 2021 11:23:34.035 [0x2b6a0e80] ERROR - SQLITE3:(nil), 1, no such table: schema_migrations in “select version from schema_migrations order by version”
Aug 04, 2021 11:23:34.035 [0x2b6a0e80] ERROR - Database corruption: sqlite3_statement_backend::prepare: no such table: schema_migrations for SQL: select version from schema_migrations order by version
Aug 04, 2021 11:23:34.036 [0x2b6a0e80] 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)

but synoshare -get Plex does return this:

sh-4.4# synoshare -get Plex
Lastest SynoErr=[share_db_get.c:31]
SYNOShareGet failed. synoerr=[0x1400]

DSM7 with 1.23.6.4881-e2e58f321 plex installation

Hi trumpy81 i deleted all 3 com… files in the Databases folder. during start of plex server the 3 files get regenerated and after that plex server stops itself and i have that log:

9.327 [0x2dfaed48] INFO - Plex Media Server v1.23.6.4881-e2e58f321 - Synology DS215j armv7l - build: linux-armv7neon synology-dsm7 - GMT 02:00
Aug 05, 2021 19:08:29.329 [0x2dfaed48] INFO - Linux version: DSM 7.0.41890-0, language: en-US
Aug 05, 2021 19:08:29.330 [0x2dfaed48] INFO - Processor Arm
Aug 05, 2021 19:08:29.330 [0x2dfaed48] INFO - Compiler is - Clang 11.0.1 (https://plex.tv e0c29d5827bc4eaaa2ceb882cbeed224b0960173)
Aug 05, 2021 19:08:29.330 [0x2dfaed48] INFO - /volume1/@appstore/PlexMediaServer/Plex Media Server
Aug 05, 2021 19:08:29.330 [0x2b604e80] DEBUG - BPQ: [Idle] → [Starting]
Aug 05, 2021 19:08:29.333 [0x2b604e80] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.35.5, threadsafe=1
Aug 05, 2021 19:08:29.333 [0x2b604e80] DEBUG - Installing Library Database from ["/volume1/@appstore/PlexMediaServer/Resources/com.plexapp.plugins.library.db"] to ["/volume1/@apphome/PlexMediaServer/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db"]
Aug 05, 2021 19:08:29.334 [0x2b604e80] ERROR - Couldn’t copy file “/volume1/@appstore/PlexMediaServer/Resources/com.plexapp.plugins.library.db” to “/volume1/@apphome/PlexMediaServer/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db”: Invalid argument
Aug 05, 2021 19:08:29.619 [0x2b604e80] DEBUG - Running migrations. (EPG 0)
Aug 05, 2021 19:08:29.619 [0x2b604e80] ERROR - SQLITE3:(nil), 1, no such table: schema_migrations in “select version from schema_migrations order by version”
Aug 05, 2021 19:08:29.619 [0x2b604e80] ERROR - Database corruption: sqlite3_statement_backend::prepare: no such table: schema_migrations for SQL: select version from schema_migrations order by version

so a new generated database and still errors? why does plex want to migrate and from where the hell?

thx tom

Hi,

I am having the same issue too on asustor. Running app version 1.24.0.4930. Database will not populate. I have tried the above instructions with no success, the database creation still fails.

same issue. started out of nowhere

Folks,

I cannot explain why this is happening. It’s been submitted to Engineering.
It only impacts select ARMv7 machines.

Best way to work around this is to grab an older 1.22.x if you have it and start with that as a base.

Once the base DB is built, you’re OK.

@ChuckPa, able to advice where we can grab an older version of plex (asustor) that is 1.22.x for ARMv7 machines? I tried search on one online but unable to find it. Thanks!

Hi All,
I am in the same situation with DSM414 (Armv7) running :

  • version DSM 7.0 - 41890
  • latest version of Plex Media Server v1.24.2.4973

Issue came after upgrading to DSM7.0

  • I read carefully this stream (an others) :
  • I tried many times to delete, all Plex files, directories, reboot NAS, old Plex Users, reinstall Plex so many times and still stuck with same logs :

I understand that is a known bugs on DSM armv7 only ?
Is that correct ? Is there any updates or any other option to make Plex working with DSM7.0?

Thanks for your help, I am getting crazy trying make it works

Regards Nicolas

Plex Media Server.1.log (2.0 KB)

Sep 10, 2021 06:35:54.763 [0x2e664d48] INFO - /volume1/@appstore/PlexMediaServer/Plex Media Server
Sep 10, 2021 06:35:54.761 [0x2b657e90] DEBUG - BPQ: [Idle] → [Starting]
Sep 10, 2021 06:35:54.777 [0x2b657e90] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.35.5, threadsafe=1
Sep 10, 2021 06:35:54.777 [0x2b657e90] DEBUG - Installing Library Database from [“/volume1/@appstore/PlexMediaServer/Resources/com.plexapp.plugins.library.db”] to [“/var/packages/PlexMediaServer/shares/PlexMediaServer/AppData/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db”]
Sep 10, 2021 06:35:54.778 [0x2b657e90] ERROR - Couldn’t copy file “/volume1/@appstore/PlexMediaServer/Resources/com.plexapp.plugins.library.db” to “/var/packages/PlexMediaServer/shares/PlexMediaServer/AppData/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db”: Invalid argument
Sep 10, 2021 06:35:55.292 [0x2b657e90] DEBUG - Running migrations. (EPG 0)
Sep 10, 2021 06:35:55.292 [0x2b657e90] ERROR - SQLITE3:(nil), 1, no such table: schema_migrations in “select version from schema_migrations order by version”
Sep 10, 2021 06:35:55.293 [0x2b657e90] ERROR - Database corruption: sqlite3_statement_backend::prepare: no such table: schema_migrations for SQL: select version from schema_migrations order by version
Sep 10, 2021 06:35:55.293 [0x2b657e90] 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)

@Nico75

Do you have an older version of PMS to install?

If not, I will get one for you. This problem began with 1.23.0.

Once PMS has the initial database, it’s fine.

@ChuckPa, can you also provide me an older version too? I am running Asustor ARMv7.