No feature of Premium Music Library is being generated

I followed the instructions on there. Shut down PMS, removed PubSubServerPing=6 and PubSubServer=82.94.168.14 keys from Preferences.xml and PMS automatically restarted. Only PubSubServerPing=6 was automatically created again. Although, I don’t get “This server cannot reach the Internet. Please verify connectivity and try again.” anymore, the albums/artists are not populated with premium music content.

Also, further down that thread, it was mentioned that 0.9.15 had the fix. My server runs 0.9.15.6.

See this post which gives a url to try to get the current list of IP Addresses it would be trying for connection to pubsub.plex.tv
http://forums.plex.tv/discussion/comment/1146203/#Comment_1146203
May be your router is blocking these IP Addresses

A full Debug Plex Media Server.log file which show the pubsub and EventSource logged messages relating to this

I ran traceroute on those IP addresses and they seemed to run fine. However, I have asked the remote staff to verify that these IP addresses are not blocked.

I have attached the logs.

There is no evidence of the pubsub.plex.tv connection issue i referred you to and it does look that your server is already processing Premium Music Library content - so that was just an irrelevant digression

You need to go back to looking into MTU Size at various settings starting with network interface settings on the server and then into the router as Error 52 has been in almost all scenarios caused by an MTU Size greater than 1500. Only cases other than that were during Plex Media Server shutdown time whilst some processes are still running

I am curious about one thing in the logs - something i have not seen before. There is a limit on how many agents (plugins) we run concurrently and by default it is 10 - except linux and NAS where it is 6
Your logs show only one agent is allowed to run at any time -

Mar 11, 2016 22:08:45 [0x7fd1433ff700] DEBUG - Plug-in limit of 1 exceeded.

Have you made any changes here - like setting this environment variable from the default value of 6?
PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS

We are continuously killing plexmusic agent to allow lastfm agent to run and then killing that to allow plexmusic agent to run !
I am thinking out loud here - in case they need to exist concurrently and communicate with each other

I mentioned I have seen error 52 when processes get killed - well this is exactly that

So have you tampered with the system settings to change the value this variable has ?

PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS

and where did you get the recommendation to set it to 1 from ?

Extracts from the log

We have a plexmusic request here

Mar 11, 2016 22:08:28 [0x7fd14bfff700] DEBUG - HTTP requesting GET http://127.0.0.1:53598/:/plugins/com.plexapp.agents.plexmusic/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNQozMjEyNnM0CmRiaWRpMApzNwp2ZXJzaW9ubnMxMApwYXJlbnRHVUlEbnM4CnBhcmVudElEczYKQXJ0aXN0czEwCm1lZGlhX3R5cGVzNzIKY29tLnBsZXhhcHAuYWdlbnRzLnBsZXhtdXNpYzovL2dyYWNlbm90ZS9hcnRpc3QvMDUzNkQ5OUYwQTI0NkExOT9sYW5nPWVuczQKZ3VpZHMzMwpncmFjZW5vdGUvYXJ0aXN0LzA1MzZEOTlGMEEyNDZBMTlzMgppZHIwCg__

It gets queued

Then we have a request to the lastfm agent

Mar 11, 2016 22:08:28 [0x7fd1487ff700] DEBUG - Request: [127.0.0.1:33799] GET /:/plugins/com.plexapp.agents.lastfm/messaging/function/TWVzc2FnZUtpdDpBcnRpc3RTZWFyY2g_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKbGlzdAozCnMyCmVuczQKbGFuZ3IxCnM2CmFsYnVtc3M4CldhcmRydW5hczYKYXJ0aXN0MQpzOQpZZ2dkcmFzaWxyMAo_ (13 live) GZIP

We notice it is not running so we find oldest agent process to kill but there is only one - plexmusic

Mar 11, 2016 22:08:28 [0x7fd1487ff700] DEBUG - Starting file watcher for com.plexapp.agents.lastfm
Mar 11, 2016 22:08:28 [0x7fd1487ff700] DEBUG - Plug-in limit of 1 exceeded.
Mar 11, 2016 22:08:28 [0x7fd1487ff700] DEBUG -  * Bringing down the older plug-in: com.plexapp.agents.plexmusic.
Mar 11, 2016 22:08:28 [0x7fd1487ff700] DEBUG - Stopping [com.plexapp.agents.plexmusic].
Mar 11, 2016 22:08:28 [0x7fd1487ff700] DEBUG - [com.plexapp.agents.plexmusic] Killing.

and the killing of the process results in Error 52 for the plexmusic request

Mar 11, 2016 22:08:28 [0x7fd14bfff700] ERROR - Error issuing curl_easy_perform(handle): 52

Please change the value for the environment variable back to 6
It was i understand introduced for very slow NAS systems to allow some tweaking but that needs advice from Plex Devs and should not be a user decision

A change will be made to Plex Media Server to override the environment variable setting if it is set below a value of 3
PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS
The minimum will be 3 - this is the current decision - it may change by the time it is released.

I haven’t tampered with that setting. I checked the config file and found that it was already set to 6.

Here is the entire contents of the file:

#!/bin/sh

#change these parameters in /etc/default/plexmediaserver
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
export PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver
export PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000
export PLEX_MEDIA_SERVER_TMPDIR=/tmp
export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HOME}/Library/Application Support"

test -f /etc/default/plexmediaserver && . /etc/default/plexmediaserver

if [ ! -d "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR" ]
then
  mkdir -p "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR"
  if [ ! $? -eq 0 ]
  then
    echo "WARNING COULDN'T CREATE $PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR, MAKE SURE I HAVE PERMISSON TO DO THAT!"
    exit 1
  fi
fi

export LD_LIBRARY_PATH="${PLEX_MEDIA_SERVER_HOME}"
export TMPDIR="${PLEX_MEDIA_SERVER_TMPDIR}"

echo $PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS $PLEX_MEDIA_SERVER_MAX_STACK_SIZE $PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR

ulimit -s $PLEX_MAX_STACK_SIZE

# Add sleep - Possible fix for start on boot.
sleep 3

(cd /usr/lib/plexmediaserver; ./Plex\ Media\ Server)

That is very interesting

Somehow it got set to 1 at run time

Is there a way to dump out environment variables for the Plex processes ?

Like to apologize for assuming you made the change. I am really sorry. We just now need to understand what happened
I am not a linux knowledgeable person so will need others to step in and help

Came across this post which shows how environment variables values can be seen.
Either with
echo $PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS
or to list all
env | sort | grep PLEX

There are also references to /etc/default/plexmediaserver
Is there a default settings file here?

@enthusiastic
hi - have you managed to look into the environment variable values ?

I am intrigued as to how this switch from 6 to 1 happened

Sorry, I was away for a bit. I tried the suggested commands but didn’t get any output on the screen. So I don’t know how it got set to 1. I have forwarded this to the staff.

2.|-- host-46-18-174-253.in-addr.ixreach.com 0.0% 10 0.5 1.6 0.4 11.4 3.4
3.|-- ams-ix.sara.xs4all.net 0.0% 10 1.9 2.3 1.5 6.9 1.5
4.|-- 0.ae4.xr3.3d12.xs4all.net 0.0% 10 1.9 1.8 1.5 2.5 0.0
5.|-- 0.ae10.xrc2.3d12.xs4all.net 0.0% 10 1.9 1.8 1.3 2.6 0.0
6.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0

This is what I got when I tried mtr for 82.94.168.14 (one of the servers in request.xml) and I think it is not responding to ping. The staff said there are no blocks/filters in place in their network.

@enthusiastic said:
Sorry, I was away for a bit. I tried the suggested commands but didn’t get any output on the screen. So I don’t know how it got set to 1. I have forwarded this to the staff.

I am a windows person - but i would expect the environment variables to be accessible if you login to the same linux user account that plex media server is running in. Will need some help here from linux experts.

@enthusiastic said:
2.|-- host-46-18-174-253.in-addr.ixreach.com 0.0% 10 0.5 1.6 0.4 11.4 3.4
3.|-- ams-ix.sara.xs4all.net 0.0% 10 1.9 2.3 1.5 6.9 1.5
4.|-- 0.ae4.xr3.3d12.xs4all.net 0.0% 10 1.9 1.8 1.5 2.5 0.0
5.|-- 0.ae10.xrc2.3d12.xs4all.net 0.0% 10 1.9 1.8 1.3 2.6 0.0
6.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0

This is what I got when I tried mtr for 82.94.168.14 (one of the servers in request.xml) and I think it is not responding to ping. The staff said there are no blocks/filters in place in their network.

There is no issue with the pubsub.plex.tv servers for you - you have gone past the stage and your server was already processing the premium library content. You are right they do not respond to ping

The staff increased the cap on simultaneous plugins. I restarted PMS and now everything is working. This was so frustrating! I want to thank everyone who contributed, especially @sa2000 Thank you so much!

@enthusiastic said:
The staff increased the cap on simultaneous plugins. I restarted PMS and now everything is working. This was so frustrating! I want to thank everyone who contributed, especially @sa2000 Thank you so much!

Excellent, So where was it forced to a value of 1?

There was a restart pms script that only the admins had access to.

@enthusiastic said:
There was a restart pms script that only the admins had access to.

So it is not your server?

and where did that restart script come from - is it all local to you only or did it come from somewhere that may affect others as well?

It was in the master server. They have a lot of people sharing the resources so they thought they would limit it. Since it was not running on my server, the echo command didn’t return the MAX_PROCS value when I tried.