# Can't access server after moving metadata

**URL:** https://forums.plex.tv/t/cant-access-server-after-moving-metadata/761591
**Category:** Plex Media Server
**Tags:** server-linux
**Created:** [December 1, 2021, 10:28pm UTC](https://forums.plex.tv/t/cant-access-server-after-moving-metadata/761591 "2021-12-01T22:28:45Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![junk\_mail77\_yahoo\_com](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/junk_mail77_yahoo_com/32/202953_2.png) [@junk\_mail77\_yahoo\_com](https://forums.plex.tv/u/junk_mail77_yahoo_com)
#### Post date: [December 1, 2021, 10:28pm UTC](https://forums.plex.tv/t/cant-access-server-after-moving-metadata/761591/1 "2021-12-01T22:28:45Z")

</div>

Server Version#:1.25.0.5282  
Player Version#: N/A

I need some help before I do any more damage.

My Plex server is an HP ProDesk 600 G4 DM Mini. I wanted to move my metadata to a new 1TB NVME drive installed in the HP. I follow [these instructions](https://forums.plex.tv/t/moving-pms-library/197342) to the letter (or so I think). After deleting the original /var/lib/plexmediaserver/Library contents I found that I wasn’t seeing any of my posters so I did a reboot. After the reboot I have major problems.

Initially I wasn’t able to access Plex through any player. In my browser I would just get a spinning wheel when accessing via IP address. Eventually, when accessing it via localhost using a browser on the server it was telling me that my server is unclaimed. Now, when I access it via ip address on a different computer it also wants me to do a server setup.

I’m sure I did something stupid and/or forgot something very basic.

Logs are attached. The main log is full of Network Service stuff, so I’m guessing it’s something there. It’s worth noting that my logs have been full of the `Network Service: Error in browser handle read: 125 (Operation canceled) socket=-1` errors for a while now, but everything has worked fine.

It seems like the logs are also saying that it is still using /var/lib/plexmediaserver for the metadata location, rather than /home/plexdata on the new NVME drive.

Here is the contents of my `plexmediaserver.service.d` file.

```auto
#
# Customize Plex's config
[Service]
Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/home/plexdata/Library/Application Support"
#
# This is needed to change the default umask 
UMask=0002 # this must be 4 digits of octal

```

What should my next step be to try and get my server back up and running while using the new /home/plexdata location?

[pmlogs.zip](https://forums.plex.tv/uploads/short-url/wNrhsBqUt3PLN5xOvLwE6jSSamU.zip) (863.9 KB)

EDIT: I did realize I could just copy the Library folder from /home/plexdata back to /var/lib/plexmedia server and now my server is back to where it was, but it still leaves the question of how to get it to use the /home/plexdata directory. Clearly I’m doing something wrong, but I can’t figure out what.

---

<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: [December 2, 2021, 2:23am UTC](https://forums.plex.tv/t/cant-access-server-after-moving-metadata/761591/2 "2021-12-02T02:23:44Z")

</div>

When you did the move,

```auto
# systemctl stop plexmediaserver
# mkdir /home/plexdata
# chown plex:plex /home/plexdata
# cd /var/lib/plexmediaserver
# tar cf - . | (cd /home/plexdata ; tar xf -)
# 

```

Now, with the override in place,

```auto
# systemctl daemon-reload
# systemctl start plexmediaserver

```

After you confirm it’s working

```auto

# rm -rf /var/lib/plexmediaserver/Library

```

How it works:

1. Make the directory with ownership set to match
2. ‘tar’ makes a perfect copy One does the reading from /ar/lib/plexmediaserver while the other ‘tar’ writes to where it goes. It’s far faster than `cp` because it’s doing independent reads and writes.

---

<div class="post-metadata">

### Author: ![junk\_mail77\_yahoo\_com](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/junk_mail77_yahoo_com/32/202953_2.png) [@junk\_mail77\_yahoo\_com](https://forums.plex.tv/u/junk_mail77_yahoo_com)
#### Post date: [December 2, 2021, 3:43am UTC](https://forums.plex.tv/t/cant-access-server-after-moving-metadata/761591/3 "2021-12-02T03:43:35Z")

</div>

Thanks for the quick response. I really thought I followed all the steps as you had them written, and used cut/paste for everything. I’ll give this another try from scratch tomorrow and try to pay very close attention to what I’m doing. I’ll report back on how it goes.

---

<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: [December 2, 2021, 4:06am UTC](https://forums.plex.tv/t/cant-access-server-after-moving-metadata/761591/4 "2021-12-02T04:06:38Z")

</div>

I wrote the above as “Copy/Paste” assuming you are already at ‘root’ (sudo bash)

change the `chown` to the appropriate username if you changed `User=` or `Group=` in the override. Also don’t forget to `chown -R user:group /home/plexdata` AFTER you finish the `tar` operation (to change ownership to the new username)

PS: **DO NOT DELETE /var/lib/plexmediaserver/Library** until confirmed working

```auto
sudo systemctl status plexmediaserver

```

---

<div class="post-metadata">

### Author: ![junk\_mail77\_yahoo\_com](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/junk_mail77_yahoo_com/32/202953_2.png) [@junk\_mail77\_yahoo\_com](https://forums.plex.tv/u/junk_mail77_yahoo_com)
#### Post date: [December 3, 2021, 12:19am UTC](https://forums.plex.tv/t/cant-access-server-after-moving-metadata/761591/5 "2021-12-03T00:19:13Z")

</div>

This is why I can’t have nice things.

I tried this again, following your steps very closely and only using copy/paste. It didn’t work and my Plex server was unreachable. I don’t know if it could be related to the fact that my /home directory lives on a different drive than the rest of my Ubuntu install and/or that my Plex media lives on a NAS that is mounted to the Plex server. Somehow in attempting this fairly simple change and then reverting it I managed to delete some parts of my home folder. When I rebooted my server it had removed all my desktop settings (favorites, Firefox profile, etc.). I have absolutely no idea how I could have done that. I searched the entire server and can’t find those deleted files anywhere.

The good news is that I got the final parts for my new Unraid server today. I was originally going to keep Plex on the HP, but I think I’ll try integrating it into a docker setup on the Unraid box and see how it goes.

Thanks for trying to help me.

---

<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: [December 3, 2021, 12:58am UTC](https://forums.plex.tv/t/cant-access-server-after-moving-metadata/761591/6 "2021-12-03T00:58:57Z")

</div>

> [@junk\_mail77\_yahoo\_com](#):
>
> copy/paste

Copy/paste is VASTLY different than tar. It breaks all the metadata links.

---

<div class="post-metadata">

### Author: ![andrep182](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@andrep182](https://forums.plex.tv/u/andrep182)
#### Post date: [December 15, 2021, 12:08am UTC](https://forums.plex.tv/t/cant-access-server-after-moving-metadata/761591/7 "2021-12-15T00:08:54Z")

</div>

Hey man, I’m piggybacking this thread as I’m also having trouble while following the same instructions, hope that’s ok. I followed a similar instructions like yours, with the exception that the warning about not using /media folder wasn’t there. I copied the metadata folder to a /media folder on another SSD, and change the path via systemd. However, my server never was able to start

- sudo systemctl start plexmediaserver
- Job for plexmediaserver.service failed because the control process exited with error code.
- See “systemctl status plexmediaserver.service” and “journalctl -xe” for details.

Do you think it’s because I use /media folder? /media seems to be the root of my new SSD. Does this mean I need to figure out how to export my /home folder from my original SSD to the new one first, before attempting metadata transfer again? 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: [December 15, 2021, 1:33am UTC](https://forums.plex.tv/t/cant-access-server-after-moving-metadata/761591/8 "2021-12-15T01:33:37Z")

</div>

Can you show me your `df` output?

Also please show me where you put things?

If you put your metadata on `/media` and didn’t set it up manually in /etc/fstab then YES, it’s the root of the evils.

---

<div class="post-metadata">

### Author: ![andrep182](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@andrep182](https://forums.plex.tv/u/andrep182)
#### Post date: [December 16, 2021, 6:42pm UTC](https://forums.plex.tv/t/cant-access-server-after-moving-metadata/761591/9 "2021-12-16T18:42:58Z")

</div>

Looks like I might have gotten it solved. I managed to start over and created a new folder for plex under /mnt and assigned permission 777 to make my life easier. Looks like it works now, edited systemd, loaded it and my library is intact!

Thanks for responding. I’ll let you know if things were still broken.

---

<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: [March 16, 2022, 6:42pm UTC](https://forums.plex.tv/t/cant-access-server-after-moving-metadata/761591/10 "2022-03-16T18:42:59Z")

</div>

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