# Linux Tips

**URL:** <https://forums.plex.tv/t/linux-tips/276247>\
**Category:** Tips, Tricks & How-Tos\
**Tags:** server-linux-tips, server-linux, tipstricks\
**Created:** [June 26, 2018, 5:11pm UTC](https://forums.plex.tv/t/linux-tips/276247 "2018-06-26T17:11:57Z")\
**Posts on this page:** 1\
**Showing post:** 21

<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:** [March 14, 2020, 10:56am UTC](https://forums.plex.tv/t/linux-tips/276247/21 "2020-03-14T10:56:51Z")

</div>

## When server and device credentials are out of sync.

Use this procedure when:

1. You receive the nasty “No Soup For You” message
2. You’ve changed your Plex password and now have trouble accessing something.
3. You’ve cloned the server or performed a ‘backup & restore’ using the procedures above but now cannot access the server.

### First choice - Preferences.xml missing or deleted.

If something happened to “Preferences.xml” and you need to claim the server again, with everything being normal, Start here first.

**Begin here:**

1. Sign out the plex/web browser
2. Open a new Window
3. Go to to [www.plex.tv](http://www.plex.tv) (not [app.plex.tv](http://app.plex.tv))
4. Sign into your account settings.
5. Force sign out everything as you change the password.
6. Open an **incognito** window
7. Open [http://ip.addr.of.host:32400/web](http://ip.addr.of.host:32400/web) (or 127.0.0.1:32400/web if on the host)
8. Sign in
9. Claim it again.

The X-Plex-Token (PlexOnlineToken) and other credentials will now all resync  
go to your devices and sign them in again.

### Second choice - After a hard password reset on [plex.tv](http://plex.tv)

If you’ve changed your password on [Plex.tv](http://Plex.tv), and things didn’t go well afterwards ..

There is a similar method for other hosts:

#### On the server computer

1. Open a Terminal window / SSH into the machine / get into the container ,  
(whichever case applies)
2. Stop Plex
3. Edit Preferences.xml  
(Use the Linux text editor on the host itself.)
4. Carefully remove the following `Name="Value"` pairs  
– PlexOnlineName  
– PlexOnlineToken  
– PlexOnlineMail  
– PlexOnlineHome (if it exists)
5. Save the file
6. Start Plex
7. Keep the terminal window open. You will need it again momentarily.

#### On your computer

1. Open [http://plex.tv/claim](http://plex.tv/claim)
2. COPY the token given into your browser

#### Switch back to the Terminal session window

1. On the command line (where the server is), type:

```auto
curl -X POST 'http://127.0.0.1:32400/myplex/claim?token=PASTE_TOKEN_HERE'

```

1. Hit Enter.
2. Wait 15-20 seconds for Curl / PMS to talk to [Plex.tv](http://Plex.tv) and setup new credentials.

As confirmation, the `curl` statement will look like this:

```auto
curl -X POST 'http://127.0.0.1:32400/myplex/claim?token=claim-xxxxxxx'

```

### Confirming success.

You will be able to confirm the server is properly reclaimed and credentials are in sync when, after executing the `curl` statement, it responds with a stream of XML which ends in `</MyPlex>`

---

_[View the full topic](https://forums.plex.tv/t/linux-tips/276247)._
