Move storage location make server going down

Server Version#: 1.22.2.4282
Player Version#: 8.16.0.24423

I have a lot of problem with the option Move storage location.

When I change the storage location, my server goes down and even if I reboot the nvidia shield, the server is still down.

I saw that there is a another subject about it, but it does not work for me.

So, I also tried this but it does not work.

  1. Format the usb stick (with windows computer) on NTFS.
  2. Factory reset the Shield.
  3. Set it up as it used to be (fixed IP’s, mount NAS’, etc…).
  4. Plug the usb stick. It is an “removable” storage.
  5. Update Plex with google play store.
  6. Start Plex, go to settings and move storage location to my usb stick.

What can I do?

Thank you very much

It is expected that PMS will shut down while moving that folder. Once it’s done, it should restart.

1 - May I suggest not formatting the usb drive from your computer, but instead format it while it is connected to the Shield.

5 - Are you updating the client or the server? You need to updating both.

How can I update the both?
I just see this (I took the photo from this thread, but it is just to show you what I am talking about)
image

The Shield comes with 2 different Plex programs. Plex Media Server and the Plex client, just called Plex. Plex Media Server runs in the background. The regular Plex app you see is the client. That is used to control the server too. From the Google Play Store, check that both are these are updated to the latest version. Then try moving the data again.

Oh ok, I just did not understand what you were referencing. Don’t worry, I know that there is 2 different application :slight_smile: Of course, I have the last version of the 2 application.

Here is what I just tried again and it still doesn’t work.

  1. Remove Server in authorized device (in the Plex Account at https://www.plex.tv/).
  2. Eject the USB stick.
  3. Factory reset the Shield.
  4. Update Plex and Plex Media Server (yes, they are already install when you factory reset the nvidia shield).
  5. Start Plex and create the server (I had create the “default plex library”)
  6. Go on the PC to do the setting (I did not change anything). I am talking about this
  7. Reboot the nvidia shield.
  8. I open Plex to see if the server was down, but it is good.
  9. Format the usb key so it become a “internal” storage.
  10. Move data on the usb stick. I am not talking about move storage location on Plex, I am talking about the option that the nvidia shield show when you format a usb key to become a internal storage.
  11. Reboot the nvidia shield.
  12. Start Plex.
  13. Move the storage location to Internal (the second option in the image. If I understand correctly, it is my usb stick).
  14. Reboot the nvidia shield.
  15. Start Plex and it work.

BUT, when I go to my nvidia application setting, I see that Plex Media server is still located in my nvidia shield and not my usb stick !!!

Why does it do that ?

EDIT: Finally, after a couple of hours, the server is down again.

That moves the Plex data folder, not the application. The application is always on the regular internal storage.

AFAIK, the Shield does not allow moving applications to a usb stick.

Ok, I remember that Plex media server was over 9 gb before, so it is why I wanted to have a usb stick.
If we cannot change the location of plex media server then, the usb stick is useless, no?

Also, after couple of hours, my plex server was down again.
I had reboot the nvidia shield, but it is still down. Also, I can not even see the server in the plex setting.

The Plex Media Server program is only about 100MB. This part can’t be moved. The data folder, which can get very large. This is what gets moved. However, what you have is a brand new install so there should be less than 100 MB at this point. When looking at the stats for the size of the program, Android will tell you total space used, it doesn’t separate it out by where. So if your data folder gets to be 9 GB, then 8.9 of it will be on the UDB drive, the remaining 100 MB (for the program) will be on the internal.

The image you have means that PMS didn’t start. This can happen if your drive goes to sleep. PMS can’t find the location of it’s data folder so it shuts down.

Android is slow to mount external drives so even when the drive spins back up, it can take the Shield a few minutes before it sees the drive. Give it a bit of time before loading the Plex app. If the server still doesn’t come back online on it’s own, check your Shield’s settings to make sure it sees the drive, then force stop PMS. Go to the Plex client and try starting PMS from there.

Plex Server: 1.22.2.4282
Plex Client: 8.16.0.24423

I’ve a 2015 Shield Pro with the internal 500GB drive.

I was experiencing the same problem - no Plex Media Server button to select.

Force stopping, then re-opening PMS did not fix the problem.

I had to force stop, clear data, then open PMS in the Nvidia Shield app settings (PMS is listed as a system app).

The button (icon?) reappeared in Plex client settings. I could then start, configure, etc PMS.

Note 1: This is like starting over. All libraries, etc must be re-created.

Note 2: One of the setup screens asks if you would like Plex to create default library locations. I had to check the box for this to happen. If I unchecked the box, PMS would not start.

After PMS was up & running, I was able to move Plex data from “Internal” to “Internal User Accessible,” the user accessible portion of the internal drive (similar to using an external drive).

I then stopped & restarted PMS several times within the Plex client settings.

This is not my main Plex server, so I’m not sure with which PMS release the problem appeared. However, it now appears fixed. Unfortunately, I had to wipe the server config and start over.

Ok, thank you for the information about the data that are moved.

No, PMS was started, but it was after several hours that the server was down.

I can see the drive in the nvidia shield setting.
Even if I reboot the Nvidia Shield and wait 30 minutes, the server is still down.

This time, I try but with an “removable” storage.

  1. Remove Server in authorized device (in the Plex Account at https://www.plex.tv/).
  2. Eject the USB stick.
  3. Factory reset the Shield.
  4. Mount nas and put a static ip.
  5. Update Plex and Plex Media Server (yes, they are already install when you factory reset the nvidia shield).
  6. Start Plex and create the server (I had create the “default plex library”).
  7. Go on the PC to do the setting (I did not change anything).
  8. Reboot the nvidia shield.
  9. I open Plex to see if the server was down, but it is good.
  10. Go on pc and delete the partition on the usb stick because when you “convert” your usb stick into an “internal” storage, two partition are created. I also format the usb into ntsf.
  11. Plug the usb stick in the nvidia shield.
  12. In plex, move the storage location in the usb stick.
  13. I check if the server was up and it was.
  14. Reboot the nvidia shield.
  15. Start Plex and it work.

If the server is again down in the next hours, there is a problem with the option “move the storage location”. I will edit my message if it is the case.
If it work, I think there is a problem with Plex when we move the storage location in a “internal” storage, because I did pretty much the same process.

Right, these come preinstalled on the Shield, but they are older versions, that’s why updating them to the latest is suggested.

Was PMS running at the time you checked? As mentioned earlier, if PMS can’t find it’s data folder, it shuts itself down. i.e. PMS is running, the Shield and your drive go to sleep after several hours, on waking up, PMS can’t find the data folder, since the usb drive hasn’t been mounted yet due to how long Android takes. Wait for the drive to get mounted, then Force stop PMS and restart. Since the drive is now available, PMS should start properly.

That may also be the same issue of the usb drive not being mounted fast enough when PMS tries to start on booting up. Restarting PMS should get it going.

I suggest not doing this from the PC. Format it through the Shield.

tl/dr The drive needs to be mounted and available when PMS starts otherwise it doesn’t start. Just restart PMS after making sure the drive is mounted.

I had try rebooting 3 or 4 time and wait 30 minutes between every reboot and of course, the usb key was correctly mounted by the nvidia shield.

From what I know, I think that when you had format your usb key to become a internal storage, you cannot change that with the shield, so it is why I reformat it with my pc.

In brief, now it work because now my usb stick is a removable storage. It work perfectly.

I think there is a problem when you want to move the server in a internal storage. It should be verify by Plex.
It is probaly why is was not working with this guy when he was trying with an internal storage, but it work with an removable storage.

Edit: Finally, it do not work ^^’

Finally, it still do not work.

I had to reboot the shield, because all my libraries were magically empty (I don’t know why).
After that, my server was down again.

  • I force stop Plex and open it, but it change nothing (I went in the parameter to see if I could see the server, but I could not).
  • I force stop Plex and Plex media server and open Plex, but it change nothing (I went in the parameter to see if I could see the server, but I could not).

Can you see if you can access the server logs manually when in this situation? Accessing SHIELD Storage | Plex Support

Yes, here it is.
Plex Media Server.zip (313.1 KB)

You need to enabled debug logging in your server settings the next time you’re able to. There isn’t much info in the logs without that.

I do see an issue is being reported in your log.

Apr 25, 2021 23:29:52.895 [13638] ERROR - SQLITE3:0x7fffffff, 11, statement aborts at 8: database disk image is malformed

Something has corrupted your database. This is why PMS cannot run. Not being able to open the database is another reason PMS will shut itself down.

Since this is an attached device, are you following proper handling such as making sure to eject it before removing it, not shutting down the Shield while PMS is being used, etc?

Ok, I will do that.

In this case, it will maybe be easier to start all over again.

I had never eject it since I had create a Plex server.

It is always in use because it is an server, no?

Normally yes. Just thought if you were shutting down the Shield somehow. How are you rebooting the Shield? Using the option from the Shield settings, right? If you are powering down then back up, that could mess up the database if it is being used when you do this.

Hahaha, of course I am use the option from the shield setting !

I had the same problem today.

  1. Remove Server in authorized device (in the Plex Account at https://www.plex.tv/).
  2. Eject the USB stick.
  3. Factory reset the Shield.
  4. Mount nas and put a static ip.
  5. Update Plex and Plex Media Server (yes, they are already install when you factory reset the nvidia shield).
  6. Start Plex and create the server (I had create the “default plex library”).
  7. Go on the PC to do the setting (I did not change anything).
  8. I open Plex to see if the server was down, but it is good.
  9. Go on pc and format the usb key. I name my usb key “cle_usb”.
  10. Plug the usb stick in the nvidia shield.
  11. In Plex, create all the librairie and scan everything.
  12. One day later, in plex, I move the storage location in the usb stick.

One day after I did everything (so two day after I start to create a new plex server, all my librairie were again empty. I try to stop the server and restart it, but it won’t.

Here is the log, but I did not on the debug (because I don’t know how to do it).

If you want, I can upload this directory in my usb key “\Android\data\com.plexapp.mediaserver.smb”
Plex Media Server.zip (9.7 MB)