Hi,
I’m running Plex Media Server 1.3.3.3148 on Ubuntu 16.04. I have 2 x Nexus 5X android phones that I sync music and films to (running 5.4.0). However, the last time I tried to sync some media the android client just says Pending. The server sync status shows “waiting to be converted”.
The issue appears on both phones. I’ve tried reinstalling the app on the android phone, and restarting the linux server, but get the same result.
Any ideas?
From your logs, it appears your server cannot connect to plex.tv The server is trying to loop up the device name and information but cannot due to the failed connection. Please notice the ‘error 6’. This is a DNS name look up failure. Something with your internet service (PMS -> plex.tv) is not operating correctly.
Jan 25, 2017 20:53:49.669 [0x7f7971bff700] DEBUG - NetworkService: Setting up multicast listener on 0.0.0.0:32414 (outbound: 0)
Jan 25, 2017 20:53:49.705 [0x7f79773fd700] DEBUG - MyPlex: Updating device connections (from timer: 0)
Jan 25, 2017 20:53:49.705 [0x7f79773fd700] DEBUG - HTTP requesting PUT https://plex.tv/devices/5f4edfd273e9e5ef6ca2dea13b7c101ae282018c?Connection[][uri]=http://media.9kb.uk&Connection[][uri]=http://media.stetchworth.net&httpsEnabled=1&httpsRequired=0&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Jan 25, 2017 20:53:49.705 [0x7f79773fd700] ERROR - Error issuing curl_easy_perform(handle): 6
Jan 25, 2017 20:53:49.705 [0x7f79773fd700] WARN - HTTP error requesting PUT https://plex.tv/devices/5f4edfd273e9e5ef6ca2dea13b7c101ae282018c?Connection[][uri]=http://media.9kb.uk&Connection[][uri]=http://media.stetchworth.net&httpsEnabled=1&httpsRequired=0&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (0, No error) (Couldn't resolve host 'plex.tv')
Jan 25, 2017 20:53:49.705 [0x7f79773fd700] WARN - MyPlex: Updating device connections failed, retrying in 10 seconds.
Jan 25, 2017 20:53:49.707 [0x7f7973bfd700] DEBUG - Relay: read 4 cached entries from hosts file
Jan 25, 2017 20:53:49.707 [0x7f7973bfd700] DEBUG - EventSource: Connecting to 139.162.245.220
Jan 25, 2017 20:53:49.707 [0x7f7973bfd700] DEBUG - Sync: onMyPlexSignIn
Jan 25, 2017 20:53:49.707 [0x7f7973bfd700] DEBUG - HTTP requesting GET https://plex.tv/servers/5f4edfd273e9e5ef6ca2dea13b7c101ae282018c/sync_lists?auth_token=xxxxxxxxxxxxxxxxxxxx
Jan 25, 2017 20:53:49.707 [0x7f7973bfd700] ERROR - Error issuing curl_easy_perform(handle): 6
Jan 25, 2017 20:53:49.707 [0x7f7973bfd700] WARN - HTTP error requesting GET https://plex.tv/servers/5f4edfd273e9e5ef6ca2dea13b7c101ae282018c/sync_lists?auth_token=xxxxxxxxxxxxxxxxxxxx (0, No error) (Couldn't resolve host 'plex.tv')
Jan 25, 2017 20:53:49.708 [0x7f7973bfd700] ERROR - Sync: unable to download sync lists from https://plex.tv/: -6
Jan 25, 2017 20:53:49.708 [0x7f7973bfd700] WARN - Sync: either our myPlex credentials were wrong, or myPlex wasn't available
Jan 25, 2017 20:53:49.708 [0x7f7973bfd700] DEBUG - MyPlex: Updating device connections (from timer: 0)
Jan 25, 2017 20:53:49.708 [0x7f7973bfd700] DEBUG - HTTP requesting PUT https://plex.tv/devices/5f4edfd273e9e5ef6ca2dea13b7c101ae282018c?Connection[][uri]=http://media.9kb.uk&Connection[][uri]=http://media.stetchworth.net&httpsEnabled=1&httpsRequired=0&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Jan 25, 2017 20:53:49.708 [0x7f7973bfd700] ERROR - Error issuing curl_easy_perform(handle): 6
Jan 25, 2017 20:53:49.708 [0x7f7973bfd700] WARN - HTTP error requesting PUT https://plex.tv/devices/5f4edfd273e9e5ef6ca2dea13b7c101ae282018c?Connection[][uri]=http://media.9kb.uk&Connection[][uri]=http://media.stetchworth.net&httpsEnabled=1&httpsRequired=0&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (0, No error) (Couldn't resolve host 'plex.tv')
Jan 25, 2017 20:53:49.708 [0x7f7973bfd700] WARN - MyPlex: Updating device connections failed, retrying in 10 seconds.
Jan 25, 2017 20:53:49.709 [0x7f79703fe700] DEBUG - It took 0.0 sec to serialize a list with 6 elements.
Jan 25, 2017 20:53:49.709 [0x7f79703fe700] DEBUG - MyPlex: Sending Server Info to myPlex (user=ben@langridge.org.uk, ip=, port=0)
Jan 25, 2017 20:53:49.710 [0x7f79703fe700] DEBUG - HTTP requesting POST https://plex.tv/servers.xml?auth_token=xxxxxxxxxxxxxxxxxxxx&async=1&asyncIdentifier=380f6193-3764-4fe4-9611-b80664446fa8
Jan 25, 2017 20:53:49.710 [0x7f7973bfd700] DEBUG - CERT: Certificate will not expire soon.
Jan 25, 2017 20:53:49.710 [0x7f79703fe700] ERROR - Error issuing curl_easy_perform(handle): 6
Jan 25, 2017 20:53:49.710 [0x7f79703fe700] WARN - HTTP error requesting POST https://plex.tv/servers.xml?auth_token=xxxxxxxxxxxxxxxxxxxx&async=1&asyncIdentifier=380f6193-3764-4fe4-9611-b80664446fa8 (0, No error) (Couldn't resolve host 'plex.tv')
Jan 25, 2017 20:53:49.710 [0x7f79703fe700] DEBUG - MyPlex: Published Mapping State response was -6
Jan 25, 2017 20:53:49.710 [0x7f79703fe700] WARN - MyPlex: Invalid response when mapping state (code=-6):
Jan 25, 2017 20:53:49.712 [0x7f7971bff700] ERROR - NetworkService: Couldn't join multicast group: set_option: No such device
Thanks for taking a look ChuckPa.
Running a few tests on my server, i can’t recreate the issue seen in the logs. The server is able to resolve plex.tv fine, and I can send a curl request for that exact URL from the command line of the server…
media@media:~$ host plex.tv plex.tv has address 52.213.208.228 plex.tv has address 52.31.49.122 plex.tv has address 52.209.254.156 plex.tv has address 52.214.149.31 plex.tv has address 52.30.162.251 plex.tv has address 54.76.211.208 plex.tv has address 54.194.110.119 plex.tv has address 52.210.244.61 plex.tv mail is handled by 10 aspmx.l.google.com. plex.tv mail is handled by 20 alt1.aspmx.l.google.com. plex.tv mail is handled by 20 alt2.aspmx.l.google.com. plex.tv mail is handled by 30 aspmx2.googlemail.com. plex.tv mail is handled by 30 aspmx3.googlemail.com.
`media@media:~$ curl https://plex.tv/servers/5f4edfd273e9e5ef6ca2dea13b7c101ae282018c/sync_lists
<?xml version="1.0" encoding="UTF-8"?>
Please sign in.
`
Have also tried this as user 'plex' and I get the same result.
What else should I be looking at? Why would I be able to resolve this, but the plex server app not be able to?
I tend to keep everything up-to-date on my server, is it possible that I’ve updated a component that plex uses and this has caused an issue?
For anyone who stumbles upon this. I finally found a fix.
I gave the user “plex” read, write and execute permissions to the location where my Music and Movies were stored. I have no idea why this fixed it, as Plex writes transcodes to $PLEX_HOME/Library/Application Support/Plex Media Server/Cache/Transcode/Sync/ - which is already owned by plex.
Oh well, at least its working now.
What were the permissions before? By default they should have been Read/Write (drwxr-xr-x
0755
)
Yes, they were, but plex doesn’t own my media. I have a user called ‘media’ that mounts my raid array and is the owner of the files contained on it. Therefore plex only had read and execute access under ‘others’.
drwxr-xr-x 52 media media 4.0K Mar 23 18:05 movies
This was sufficient to add the media to the library, I didn’t ever use Plex to delete media and I had a separate file location owned by Plex for optimised versions.
For a number of months this seemed to work and I could sync to my Android phone. However, at some point this behaviour changed. I don’t know if it was a plex server update, or something else on my Linux server.
The reason I discovered this was after buying a HDHomeRun and setting up the DVR. Whenever I tried to record something and drop it in an existing library Plex would give a permission error.
To get around this I made plex a member of group “media” and added write access for that group:
drwxrwxr-x 52 media media 4.0K Mar 23 18:05 movies
After doing this I re-tested sync and it was working again. Is it possible Plex tries to write something to the library when performing a sync?
I might try taking the rights away and see if it breaks!
Hmm - well, there goes that theory.
I took away Plex’s ability to write to my music folder, restarted the service, and sync still works fine.
I shouldn’t complain, its great the have sync working again. I just don’t know what I’ve done to fix it!
If I have an optimized version job running, do sync jobs wait until that has completed?
No it’s not that either. I set an optimized version job running in a location where Plex doesn’t have write permissions and then kicked off a sync. The optimized version job failed, but the sync still worked fine.
Oh well. Everything is working again at least!