# Plex Server won't update

**URL:** <https://forums.plex.tv/t/plex-server-wont-update/830702>\
**Category:** Plex Media Server\
**Tags:** server-mac\
**Created:** [February 14, 2023, 3:00am UTC](https://forums.plex.tv/t/plex-server-wont-update/830702 "2023-02-14T03:00:07Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucashboyle](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@lucashboyle](https://forums.plex.tv/u/lucashboyle)\
**Post date:** [February 14, 2023, 3:00am UTC](https://forums.plex.tv/t/plex-server-wont-update/830702/1 "2023-02-14T03:00:07Z")

</div>

Server Version#: Version 1.30.2.6563-3d4dc0cce  
Player Version#: Version 1.31.0.6654  
  
[Plex Media Server Logs\_2023-02-11\_13-37-24.zip](https://forums.plex.tv/uploads/short-url/9iVdCj9R3yXG1paFXrruwbIM6Si.zip) (3.8 MB)

Hi i’ve updated Plex multiple times over the last 2 months and my library no longer updated. I’ve attached the logs. please help if possible.

---

<div class="post-metadata">

**Author:** ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)\
**Post date:** [February 14, 2023, 3:38am UTC](https://forums.plex.tv/t/plex-server-wont-update/830702/2 "2023-02-14T03:38:56Z")

</div>

fairly obvious via the logs, but you have a corrupt database.

`Feb 11, 2023 13:20:07.734 [0x700007e00000] ERROR - Failed to commit transaction (/data/jenkins/server/1780683711/Library/MetadataItem.cpp:1101) (tries=1): Cannot commit transaction. database disk image is malformed`

I would recommend [GitHub - ChuckPa/PlexDBRepair: Database repair utility for Plex Media Server databases](https://github.com/ChuckPa/PlexDBRepair)

---

<div class="post-metadata">

**Author:** ![lucashboyle](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@lucashboyle](https://forums.plex.tv/u/lucashboyle)\
**Post date:** [February 14, 2023, 3:41am UTC](https://forums.plex.tv/t/plex-server-wont-update/830702/3 "2023-02-14T03:41:06Z")

</div>

Thanks. I’ll give it a go.

---

<div class="post-metadata">

**Author:** ![lucashboyle](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@lucashboyle](https://forums.plex.tv/u/lucashboyle)\
**Post date:** [February 14, 2023, 4:01am UTC](https://forums.plex.tv/t/plex-server-wont-update/830702/4 "2023-02-14T04:01:32Z")

</div>

I’ve copied the PlexDBRepair-0.6.5.tar.gz file to the downloads folder.

Executed the following:

### To launch from the command line on MacOS (on the administrator account)

```auto
        osascript -e 'quit app "Plex Media Server"'
        cd ~/Downloads
        tar xvf PlexDBRepai PlexDBRepair-0.6.1.tar.gz
        cd PlexDBRepai PlexDBRepair-0.6.1

        chmod +x DBRepair.sh
        ./DBRepair.sh

Get to the 3rd line of instructions and get this in terminal:

Last login: Tue Feb 14 13:57:09 on ttys000
lucashboyle@Lucass-iMac ~ % osascript -e 'quit app "Plex Media Server"'
lucashboyle@Lucass-iMac ~ % cd ~/Downloads
lucashboyle@Lucass-iMac Downloads % tar xvf PlexDBRepai PlexDBRepair-0.6.1.tar.gz
tar: Error opening archive: Failed to open 'PlexDBRepai'
lucashboyle@Lucass-iMac Downloads %
```

---

<div class="post-metadata">

**Author:** ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)\
**Post date:** [February 14, 2023, 4:12am UTC](https://forums.plex.tv/t/plex-server-wont-update/830702/5 "2023-02-14T04:12:20Z")

</div>

> [@lucashboyle](#):
>
> PlexDBRepair-0.6.5.tar.gz

Replace 6.1 with 6.5 (Chuck bumped the version number up without updating the instructions)

`tar xvf PlexDBRepai PlexDBRepair-0.6.5.tar.gz`

---

<div class="post-metadata">

**Author:** ![lucashboyle](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@lucashboyle](https://forums.plex.tv/u/lucashboyle)\
**Post date:** [February 14, 2023, 4:25am UTC](https://forums.plex.tv/t/plex-server-wont-update/830702/6 "2023-02-14T04:25:59Z")

</div>

Thanks. So I’ve replaced that line (copied and pasted your line just to be sure.) Getting the following:

Last login: Tue Feb 14 14:21:09 on ttys000  
lucashboyle@Lucass-iMac ~ % osascript -e ‘quit app “Plex Media Server”’  
lucashboyle@Lucass-iMac ~ % cd ~/Downloads  
lucashboyle@Lucass-iMac Downloads % tar xvf PlexDBRepai PlexDBRepair-0.6.5.tar.gz  
tar: Error opening archive: Failed to open ‘PlexDBRepai’  
lucashboyle@Lucass-iMac Downloads %

---

<div class="post-metadata">

**Author:** ![FordGuy61](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@FordGuy61](https://forums.plex.tv/u/FordGuy61)\
**Post date:** [February 14, 2023, 5:28am UTC](https://forums.plex.tv/t/plex-server-wont-update/830702/7 "2023-02-14T05:28:42Z")

</div>

> [@lucashboyle](#):
>
> tar xvf PlexDBRepai PlexDBRepair-0.6.5.tar.gz

`tar xvf PlexDBRepair-0.6.5.tar.gz`

EDIT: You can download the utility directly - no tar/gzip/etc required.

Go to: [https://github.com/ChuckPa/PlexDBRepair/releases/tag/v0.6.5](https://github.com/ChuckPa/PlexDBRepair/releases/tag/v0.6.5)

Click on `DBRepair.sh`.

It should download.

---

<div class="post-metadata">

**Author:** ![lucashboyle](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@lucashboyle](https://forums.plex.tv/u/lucashboyle)\
**Post date:** [February 14, 2023, 5:38am UTC](https://forums.plex.tv/t/plex-server-wont-update/830702/8 "2023-02-14T05:38:35Z")

</div>

Thanks.

Attempted option 4. I guess it’s looking like i need to start again. Also what is the most common causes for the library to get “damaged”.

Enter choice: 4

Exporting current databases using timestamp: 2023-02-14\_15.36.28  
Export: (main)…(blobs)…done.  
Successfully exported the main and blobs databases. Proceeding to import into new databases.  
Import: (main)…Error: near line 863864: UNIQUE constraint failed: fts4\_metadata\_titles\_icu\_segdir.level, fts4\_metadata\_titles\_icu\_segdir.idx  
Error: near line 863865: UNIQUE constraint failed: fts4\_metadata\_titles\_icu\_segdir.level, fts4\_metadata\_titles\_icu\_segdir.idx  
Error: near line 863866: UNIQUE constraint failed: fts4\_metadata\_titles\_icu\_segdir.level, fts4\_metadata\_titles\_icu\_segdir.idx  
Error: near line 863867: UNIQUE constraint failed: fts4\_metadata\_titles\_icu\_segdir.level, fts4\_metadata\_titles\_icu\_segdir.idx  
Error: near line 863868: UNIQUE constraint failed: fts4\_metadata\_titles\_icu\_segdir.level, fts4\_metadata\_titles\_icu\_segdir.idx  
Error: near line 863869: UNIQUE constraint failed: fts4\_metadata\_titles\_icu\_segdir.level, fts4\_metadata\_titles\_icu\_segdir.idx  
Error: near line 863870: UNIQUE constraint failed: fts4\_metadata\_titles\_icu\_segdir.level, fts4\_metadata\_titles\_icu\_segdir.idx  
Error: near line 863871: UNIQUE constraint failed: fts4\_metadata\_titles\_icu\_segdir.level, fts4\_metadata\_titles\_icu\_segdir.idx  
Error: near line 863872: UNIQUE constraint failed: fts4\_metadata\_titles\_icu\_segdir.level, fts4\_metadata\_titles\_icu\_segdir.idx  
Error 1 from Plex SQLite while importing from ‘./dbtmp/library.plexapp.sql-2023-02-14\_15.36.28’  
Cannot continue.

---

<div class="post-metadata">

**Author:** ![FordGuy61](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@FordGuy61](https://forums.plex.tv/u/FordGuy61)\
**Post date:** [February 14, 2023, 5:56am UTC](https://forums.plex.tv/t/plex-server-wont-update/830702/9 "2023-02-14T05:56:17Z")

</div>

Look at Option A under Typical Usage.

You can try restoring from an available database backup (configured in Settings → Scheduled Tasks → Backup database every three days).

If successful, you will not have to re-create your libraries, reshare with friends, etc. You will need to re-scan your libraries to pick up any changes since the backup occurred.

---

<div class="post-metadata">

**Author:** ![lucashboyle](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@lucashboyle](https://forums.plex.tv/u/lucashboyle)\
**Post date:** [February 14, 2023, 6:01am UTC](https://forums.plex.tv/t/plex-server-wont-update/830702/10 "2023-02-14T06:01:04Z")

</div>

Thanks, so “Option A under typical usage.” Is that in the PLexDBRepair or in the Plex server app?

I see in the DBRepair tool there is “replace current database with newest backup copy”?

---

<div class="post-metadata">

**Author:** ![FordGuy61](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@FordGuy61](https://forums.plex.tv/u/FordGuy61)\
**Post date:** [February 14, 2023, 6:06am UTC](https://forums.plex.tv/t/plex-server-wont-update/830702/11 "2023-02-14T06:06:08Z")

</div>

> [@lucashboyle](#):
>
> Thanks, so “Option A under typical usage.” Is that in the PLexDBRepair or in the Plex server app?

In the PlexDBRepair readme: [GitHub - ChuckPa/PlexDBRepair: Database repair utility for Plex Media Server databases](https://github.com/ChuckPa/PlexDBRepair)

> [@lucashboyle](#):
>
> I see in the DBRepair tool there is “replace current database with newest backup copy”?

That’s it.

---

<div class="post-metadata">

**Author:** ![lucashboyle](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@lucashboyle](https://forums.plex.tv/u/lucashboyle)\
**Post date:** [February 14, 2023, 6:12am UTC](https://forums.plex.tv/t/plex-server-wont-update/830702/12 "2023-02-14T06:12:27Z")

</div>

I guess starting again is in order…

Enter choice: 5

Checking the PMS databases  
Check complete. PMS main database is damaged.  
Check complete. PMS blobs database is OK.  
Database is damaged and no backups avaiable.  
Only available option is Repair.

Enter choice: 4

Exporting current databases using timestamp: 2023-02-14\_16.11.32  
Export: (main)…(blobs)…done.  
Successfully exported the main and blobs databases. Proceeding to import into new databases.  
Import: (main)…Error: near line 863864: UNIQUE constraint failed: fts4\_metadata\_titles\_icu\_segdir.level, fts4\_metadata\_titles\_icu\_segdir.idx  
Error: near line 863865: UNIQUE constraint failed: fts4\_metadata\_titles\_icu\_segdir.level, fts4\_metadata\_titles\_icu\_segdir.idx  
Error: near line 863866: UNIQUE constraint failed: fts4\_metadata\_titles\_icu\_segdir.level, fts4\_metadata\_titles\_icu\_segdir.idx  
Error: near line 863867: UNIQUE constraint failed: fts4\_metadata\_titles\_icu\_segdir.level, fts4\_metadata\_titles\_icu\_segdir.idx  
Error: near line 863868: UNIQUE constraint failed: fts4\_metadata\_titles\_icu\_segdir.level, fts4\_metadata\_titles\_icu\_segdir.idx  
Error: near line 863869: UNIQUE constraint failed: fts4\_metadata\_titles\_icu\_segdir.level, fts4\_metadata\_titles\_icu\_segdir.idx  
Error: near line 863870: UNIQUE constraint failed: fts4\_metadata\_titles\_icu\_segdir.level, fts4\_metadata\_titles\_icu\_segdir.idx  
Error: near line 863871: UNIQUE constraint failed: fts4\_metadata\_titles\_icu\_segdir.level, fts4\_metadata\_titles\_icu\_segdir.idx  
Error: near line 863872: UNIQUE constraint failed: fts4\_metadata\_titles\_icu\_segdir.level, fts4\_metadata\_titles\_icu\_segdir.idx  
Error 1 from Plex SQLite while importing from ‘./dbtmp/library.plexapp.sql-2023-02-14\_16.11.32’  
Cannot continue.

---

<div class="post-metadata">

**Author:** ![FordGuy61](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@FordGuy61](https://forums.plex.tv/u/FordGuy61)\
**Post date:** [February 14, 2023, 6:31am UTC](https://forums.plex.tv/t/plex-server-wont-update/830702/13 "2023-02-14T06:31:01Z")

</div>

> [@lucashboyle](#):
>
> I guess starting again is in order…

I’m afraid so. The current and all backups are damaged and cannot be repaired.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [May 15, 2023, 6:31am UTC](https://forums.plex.tv/t/plex-server-wont-update/830702/14 "2023-05-15T06:31:45Z")

</div>

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