PMS won't start after installing 1.22.1.4228

Server Version#:plexinc/pms-docker:1.22.1.4228 on UnRAID
Player Version#:N/A

After installing the above PMS starts but connections are refused to the server and the docker is marked as unhealthy. Rolling back to previous version has same results.

Docker logs as follows;
[s6-init] making user provided files available at /var/run/s6/etc…exited 0.
[s6-init] ensuring user provided files have correct perms…exited 0.
[fix-attrs.d] applying ownership & permissions fixes…
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts…
[cont-init.d] 40-plex-first-run: executing…
Plex Media Server first run setup complete
[cont-init.d] 40-plex-first-run: exited 0.
[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: executing…
[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: exited 0.
[cont-init.d] 50-plex-update: executing…
[cont-init.d] 50-plex-update: exited 0.
[cont-init.d] done.
[services.d] starting services
Starting Plex Media Server.
[services.d] done.

When PMS starts, there will be a delay before you can do anything.
There is a database migration occurring which can take several minutes – all dependent on the number of items indexed.

Recommend you watch the CPU utilization. When it returns to fully idle, it will be ready.

1 Like

Thanks!

I can indeed see that it is using some CPU and RAM so it is doing something.

For an appdata folder of 1.3TB how long do you think it would take? It’s been going for 30 mins so far since the most recent restart.

1.3 TB of metadata ? That’s not very objective given image files probably make up most of that?

Do you have an idea how many files are indexed?

fair enough. ~125k video files and ~190k audio files for a total of 315k.

will my restarts, roll backs and roll forwards have screwed anything up do you think?

I just did 27503 music & video , on an i7-7700, in 3 minutes.

Did you interrupt this migration?

If so, I have no idea what impact that may have.

This is new to me too.

1 Like

Yes. When it didn’t come back up after 5 mins I rolled it back to the prior version, then I updated back to latest after that didn’t work.

I’ll give it a good hour or so and hope for the best before doing anything else. I can see that it’s doing something, so that’s good, and there are no errors to be found in either the PMS or UnRAID logs so hopefully its just chugging along.

If you’re seeing CPU – good indication.

From a software point of view ,

This adds a new module to PMS and new columns to the database.

I would expect the data being migrated to be “moved” and not “copied”.

That said, there won’t be any backward compatibility without databse restore .

I will experiment with that and learn what i can.

happy to report it’s up and working now. thanks!!

It would be REAL nice if that was clearly stated in the release notes. Seems like in the forum many users seem to rollback PMS versions at will.

Soooooooooo what’s this new module? I noticed all the clients have been updated recently…

As soon as I see database migration in the release notes I automatically think database backup beforehand.

1 Like

What Engineering did was to improve all the internationalization.

I’m sure you’ve all seen reports or even experienced incorrect characters in subtitles or metadata ?

They’ve addressed that by replacing the original mechanism (ages old) and replaced it with a standard “ICU” (International Components for Unicode) library.

Because PMS has no way of knowing what’s in the database, it has to slug through it that one time and clean up anything which might not have been correctly stored.

That’s what caused the delay… One big long database read & update only as necessary.

@ChuckPa thanks for the explanation. Would have been awesome to do this as a scheduled job and keep the old mechanism while people are migrating their DBs.

This is very error prone and I think my database just bit the dust, cause the server won’t start at all anymore.

Fixed it by uninstalling PMS and reinstalling, recreating my library from scratch. yay!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.