# Content Unavailable when connecting remotely

**URL:** <https://forums.plex.tv/t/content-unavailable-when-connecting-remotely/747004>\
**Category:** Remote Access\
**Tags:** server-synology, roku\
**Created:** [September 30, 2021, 3:58am UTC](https://forums.plex.tv/t/content-unavailable-when-connecting-remotely/747004 "2021-09-30T03:58:47Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![williamcaput](https://avatars.discourse-cdn.com/v4/letter/w/aca169/32.png) [@williamcaput](https://forums.plex.tv/u/williamcaput)\
**Post date:** [September 30, 2021, 3:58am UTC](https://forums.plex.tv/t/content-unavailable-when-connecting-remotely/747004/1 "2021-09-30T03:58:47Z")

</div>

Server Version#: 1.24.3.5033  
Player Version#: various  
[Plex Media Server.log](https://forums.plex.tv/uploads/short-url/AjTBRGI9dmqLh0NUJ6s6b3gtC9j.log) (776.5 KB)

Movies play locally. But when attempting to play from my remote Roku I get “Content Unavailable” on some, not all my movies. I attempted to play them on my Samsung Galaxy and they have a similar error “Something went wrong”.  
I logged into my local Plex server and the non-playing movies are missing a poster. I can download them directly, but can’t play through plex.  
I’ve verified I have the latest server version and rebooted and optimized database with no luck.  
Can anyone assist? I’ve attached my [server log.](https://support.plex.tv/articles/200250417-plex-media-server-log-files/)  
Thanks.

---

<div class="post-metadata">

**Author:** ![BigWheel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bigwheel/32/78783_2.png) [@BigWheel](https://forums.plex.tv/u/BigWheel)\
**Post date:** [September 30, 2021, 4:07am UTC](https://forums.plex.tv/t/content-unavailable-when-connecting-remotely/747004/2 "2021-09-30T04:07:03Z")

</div>

You have a lot of database corruption errors. I would try to [restore a backup](https://support.plex.tv/articles/202485658-restore-a-database-backed-up-via-scheduled-tasks/) or try to [repair](https://support.plex.tv/articles/repair-a-corrupted-database/).

---

<div class="post-metadata">

**Author:** ![williamcaput](https://avatars.discourse-cdn.com/v4/letter/w/aca169/32.png) [@williamcaput](https://forums.plex.tv/u/williamcaput)\
**Post date:** [September 30, 2021, 5:36am UTC](https://forums.plex.tv/t/content-unavailable-when-connecting-remotely/747004/3 "2021-09-30T05:36:57Z")

</div>

I’m going to attempt a repair.  
The instructions in the repair guide aren’t specific to a Synology NAS and the commands don’t work as illustrated.  
I’m working out of the `"/var/packages/Plex Media Server/target/Plex SQLite"` directory.  
I’m not sure how to translate the corruption check command from the Windows instructions to Linux.

```auto
com.plexapp.plugins.library.db "PRAGMA integrity_check"

```

---

<div class="post-metadata">

**Author:** ![williamcaput](https://avatars.discourse-cdn.com/v4/letter/w/aca169/32.png) [@williamcaput](https://forums.plex.tv/u/williamcaput)\
**Post date:** [September 30, 2021, 9:17pm UTC](https://forums.plex.tv/t/content-unavailable-when-connecting-remotely/747004/4 "2021-09-30T21:17:31Z")

</div>

Hunted around the forums. Found this is the location for the query:

“/volume1/@appstore/Plex Media Server/Plex Media Server” --sqlite “/volume1/Plex/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db” “PRAGMA integrity\_check”

It returns:

\*\*\* in database main \*\*\*  
Page 69244: btreeInitPage() returns error code 11  
Page 69243: btreeInitPage() returns error code 11  
Page 69242: btreeInitPage() returns error code 11  
Page 69241: btreeInitPage() returns error code 11  
Page 69240: btreeInitPage() returns error code 11  
Page 69239: btreeInitPage() returns error code 11  
Page 69238: btreeInitPage() returns error code 11  
Page 69237: btreeInitPage() returns error code 11  
Page 69464: btreeInitPage() returns error code 11  
Page 69463: btreeInitPage() returns error code 11  
Page 69462: btreeInitPage() returns error code 11  
Page 69461: btreeInitPage() returns error code 11  
Page 69484: btreeInitPage() returns error code 11  
Page 69483: btreeInitPage() returns error code 11  
Page 69482: btreeInitPage() returns error code 11  
Page 69481: btreeInitPage() returns error code 11  
Page 69480: btreeInitPage() returns error code 11  
Page 69479: btreeInitPage() returns error code 11  
Page 69478: btreeInitPage() returns error code 11  
Page 69477: btreeInitPage() returns error code 11  
Page 69476: btreeInitPage() returns error code 11  
Page 69475: btreeInitPage() returns error code 11  
Page 69474: btreeInitPage() returns error code 11  
Page 69473: btreeInitPage() returns error code 11  
Page 58192: btreeInitPage() returns error code 11  
Page 58191: btreeInitPage() returns error code 11  
Page 58190: btreeInitPage() returns error code 11  
Page 58189: btreeInitPage() returns error code 11  
Error: database disk image is malformed

Ran the recovery command:  
“/volume1/@appstore/Plex Media Server/Plex Media Server” --sqlite “/volume1/Plex/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db” “.output recover.out” “.recover”

No output on console.  
Ran integrity check. Same error.

Please advise.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [September 30, 2021, 9:28pm UTC](https://forums.plex.tv/t/content-unavailable-when-connecting-remotely/747004/5 "2021-09-30T21:28:05Z")

</div>

If you go into the Plex shared folder using FileStation

`Plex/Library/Application Support/Plex Media Server/Plug-in Support/Databases`

You should find:

`com.plexapp.plugins.library.db` - this is the main database

You should also find several backups of it with a date/time stamp appended to the name.

The easiest repair method is

1. Stop Plex

2. Rename `com.plexapp.plugins.library.db` and add a `-bad` to it. We can delete it as the last step

3. Now make a copy of the most recent database backup file . It will end up with a `(1)` in the name.

4. Rename that copy file to be `com.plexapp.plugins.library.db`

5. Right-click it and verify it’s still owned by user `plex`. Change if not.

6. Start Plex

7. IF everything looks good (all functioning), Scan files & Refresh the metadata for each library section you have to make certain it’ in sync with changes.

IF this ‘copy’ is also damaged, repeat the process with the next older backup until you get to good one.

---

<div class="post-metadata">

**Author:** ![williamcaput](https://avatars.discourse-cdn.com/v4/letter/w/aca169/32.png) [@williamcaput](https://forums.plex.tv/u/williamcaput)\
**Post date:** [September 30, 2021, 9:49pm UTC](https://forums.plex.tv/t/content-unavailable-when-connecting-remotely/747004/6 "2021-09-30T21:49:52Z")

</div>

My backup files are in this format. -2021-09-24  
I renamed the latest one and started Plex.  
Plex said it needed to update my libraries as they were out of date with a legacy agent.  
This is the process I went through yesterday that broke all my media.  
I’ll report back if it works this time. Going to take awhile.  
Thank you.

---

<div class="post-metadata">

**Author:** ![williamcaput](https://avatars.discourse-cdn.com/v4/letter/w/aca169/32.png) [@williamcaput](https://forums.plex.tv/u/williamcaput)\
**Post date:** [September 30, 2021, 9:54pm UTC](https://forums.plex.tv/t/content-unavailable-when-connecting-remotely/747004/7 "2021-09-30T21:54:28Z")

</div>

None of my media is available now.  
“Something went wrong” when I attempt to browse to it on my PC.  
Remote connection gives “no items to display” on one and an empty library on the other. [Plex Media Server.log](https://forums.plex.tv/uploads/short-url/iDb7wlh6fqatkQ1g25OooYlKLVh.log) (3.3 MB)

Logs are attached.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [October 1, 2021, 12:49am UTC](https://forums.plex.tv/t/content-unavailable-when-connecting-remotely/747004/8 "2021-10-01T00:49:04Z")

</div>

Your backup is corrupted as well.

Repeat the process again until you run get one that doesn’t have a problem.

I have seen cases (very rarely) where the data got corrupted (abrupt poweroff, etc) and the database didn’t shutdown cleanly.

The longer that hangs around , the greater the chance of this type problem occurring.

---

<div class="post-metadata">

**Author:** ![williamcaput](https://avatars.discourse-cdn.com/v4/letter/w/aca169/32.png) [@williamcaput](https://forums.plex.tv/u/williamcaput)\
**Post date:** [October 1, 2021, 12:58am UTC](https://forums.plex.tv/t/content-unavailable-when-connecting-remotely/747004/9 "2021-10-01T00:58:40Z")

</div>

All of the backups are corrupted.  
How do I proceed?

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [October 1, 2021, 1:29am UTC](https://forums.plex.tv/t/content-unavailable-when-connecting-remotely/747004/10 "2021-10-01T01:29:36Z")

</div>

You need to start from scratch as there is nothing recoverable.

1. Delete all the files
2. Settings - Authorized Devices - Server (dropdown)
3. REMOVE the server entry so it doesn’t get hung up when starting over.

---

<div class="post-metadata">

**Author:** ![williamcaput](https://avatars.discourse-cdn.com/v4/letter/w/aca169/32.png) [@williamcaput](https://forums.plex.tv/u/williamcaput)\
**Post date:** [October 1, 2021, 5:03am UTC](https://forums.plex.tv/t/content-unavailable-when-connecting-remotely/747004/11 "2021-10-01T05:03:09Z")

</div>

Delete all the files in the `Plex/Library/Application Support/Plex Media Server/Plug-in Support/Databases` folder?

If the server won’t start, how do I go to Settings - Authorized Devices - Server ?

---

<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:** [October 1, 2021, 6:02am UTC](https://forums.plex.tv/t/content-unavailable-when-connecting-remotely/747004/12 "2021-10-01T06:02:38Z")

</div>

> [@williamcaput](#):
>
> If the server won’t start, how do I go to Settings - Authorized Devices - Server ?

Your server does not need to be running to access [Authorized Devices](https://app.plex.tv/desktop/#!/settings/devices/all).

![Screenshot (840)](https://global.discourse-cdn.com/plex/original/3X/0/0/004bc53d7787fcfbdafb7114b0742cf2754ff844.png)

---

<div class="post-metadata">

**Author:** ![williamcaput](https://avatars.discourse-cdn.com/v4/letter/w/aca169/32.png) [@williamcaput](https://forums.plex.tv/u/williamcaput)\
**Post date:** [October 5, 2021, 6:25pm UTC](https://forums.plex.tv/t/content-unavailable-when-connecting-remotely/747004/13 "2021-10-05T18:25:03Z")

</div>

Just to clarify, delete everything in the databases folder and remove the server entry in authorized devices?  
From there I reinstall the server within the NAS?  
Thanks.

---

<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:** [January 3, 2022, 6:59pm UTC](https://forums.plex.tv/t/content-unavailable-when-connecting-remotely/747004/15 "2022-01-03T18:59:26Z")

</div>

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