Media server stuck on "Starting"?

Hi SA2000, Atrus,

Thanks for responding. I am quite sure I use ~/Library/Logs. See screenshot. Second screenshot is the contents of this folder.

...... I hate having unique problems ......

Hi SA2000, Atrus,

Thanks for responding. I am quite sure I use ~/Library/Logs. See screenshot. Second screenshot is the contents of this folder.

...... I hate having unique problems ......

Interesting. What happens if you disable your Antivirus software and try starting PMS?

Nope .... no effect.

The sad smiley for the channellist is a bit how I feel now .... and still the dreadfull Starting item in the top bar.

Nope .... no effect.

The sad smiley for the channellist is a bit how I feel now .... and still the dreadfull Starting item in the top bar.

The only time I have seen things like this happening is when third-party apps been involved somehow, or if the user has symlinked important system folders or app folders and not knowing what they were doing. For example this one guy had been playing with utilising his RAM as a small disk space so some things would run quicker. And when he did that an important folder was being symlinked and that led to a situation similar as yours. Come to think of it, it might even have been in this thread that we solved that. Can't remember.
Easiest way to solve these unknown and weird issues is to re-install the OS from scratch. If you do not want to do that you need to dig into this a bit deeper. Either by trying to start PMS from the Terminal or keeping an eye in the OS system log when starting up PMS. Both those should give us some clues on what is happening.

That does not sound very comforting .... :-( I am going to buy a new Mac ... in December, not August. ;-)

I did do a REAL complete removal, supported by:

https://support.plex.tv/hc/en-us/articles/201941078-Uninstall-Plex-Media-Server

These were all there:

~/Library/Application Support/Plex Media Server/
~/Library/Caches/PlexMediaServer/
~/Library/Preferences/com.plexapp.plexmediaserver.plist

Why not the Logs .... ?

But moving on ...

I reinstalled PMS. After starting and accepting the user agreement, the screenshot appears asking me to wait while Plex is starting (in Dutch) .... and never leaves.

That does not sound very comforting .... :-( I am going to buy a new Mac ... in December, not August. ;-)

I did do a REAL complete removal, supported by:

https://support.plex.tv/hc/en-us/articles/201941078-Uninstall-Plex-Media-Server

These were all there:

~/Library/Application Support/Plex Media Server/
~/Library/Caches/PlexMediaServer/
~/Library/Preferences/com.plexapp.plexmediaserver.plist

Why not the Logs .... ?

But moving on ...

I reinstalled PMS. After starting and accepting the user agreement, the screenshot appears asking me to wait while Plex is starting (in Dutch) .... and never leaves.

The references to symlinks that Atrus were for system directories and not for Plex directories so clean install of Plex would not resolve such system issues

I think you will need to start Plex Media Server in terminal 

So kill any running Plex Media Server processes and 

 

See this thread starting from this post where this method showed the actual error in launching Plex Media Server

Weird ... it's a file permission issue. See one of the messages below from the console. The log directories can't be created. Meanwhile all the other dirs are made succesfully?

File "/Users/admin/jenkins/pms-deps-universal/BUILD_TAG/darwin-x86_64/output/pms-depends-darwin-x86_64-release-8400c3b/lib/python2.7/os.py", line 157, in makedirs
OSError: [Errno 13] Permission denied: '/Users/snowkrash/Library/Logs/PMS Plugin Logs'
2014-08-18 16:01:55.090 Plex DLNA Server[640:507] NEPTUNE_LOG_CONFIG not found in 'Info.plist'

Do I need to su root or something?

Weird ... it's a file permission issue. See one of the messages below from the console. The log directories can't be created. Meanwhile all the other dirs are made succesfully?

File "/Users/admin/jenkins/pms-deps-universal/BUILD_TAG/darwin-x86_64/output/pms-depends-darwin-x86_64-release-8400c3b/lib/python2.7/os.py", line 157, in makedirs
OSError: [Errno 13] Permission denied: '/Users/snowkrash/Library/Logs/PMS Plugin Logs'
2014-08-18 16:01:55.090 Plex DLNA Server[640:507] NEPTUNE_LOG_CONFIG not found in 'Info.plist'
Do I need to su root or something?

Please run this command in the terminal:
cd /Users/snowkrash/Library/Logs/
and then run this command:
ls -la
Then paste the entire output you get to a post in this thread.
 
Then run this command:
cd /Users/snowkrash/Library/Logs/PMS\ Plugin\ Logs
and then this command:
ls -la
...and then paste the entire output you get to the same post in this thread.

Hi! Here is the first:

-rw-r--r--   1 root       staff  12203 17 aug 14:16 FlashPlayerInstallManager.log
-rw-r--r--   1 root       staff   1228 13 jun 21:58 ReceiverInstall.log
drwxr-xr-x   3 root       staff    102 26 aug  2012 Sophos Anti-Virus

And the second:

-bash: cd: /Users/snowkrash/Library/Logs/PMS: No such file or directory

.... And Plex tries so hard to create the folder ....

Traceback (most recent call last):
  File "/Users/snowkrash/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py", line 177, in 
    run()
  File "/Users/snowkrash/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py", line 157, in run
    core = Framework.core.FrameworkCore(bundle_path, FRAMEWORK_DIR, config)
  File "/Users/snowkrash/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/core.py", line 129, in __init__
    self._setup_storage()
  File "/Users/snowkrash/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/core.py", line 292, in _setup_storage
    self.storage.ensure_dirs(log_dir)
  File "/Users/snowkrash/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/storage.py", line 130, in ensure_dirs
    self.make_dirs(path)
  File "/Users/snowkrash/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/storage.py", line 126, in make_dirs
    os.makedirs(path)
  File "/Users/admin/jenkins/pms-deps-universal/BUILD_TAG/darwin-x86_64/output/pms-depends-darwin-x86_64-release-8400c3b/lib/python2.7/os.py", line 157, in makedirs
OSError: [Errno 13] Permission denied: '/Users/snowkrash/Library/Logs/PMS Plugin Logs'

Hi! Here is the first:

-rw-r--r--   1 root       staff  12203 17 aug 14:16 FlashPlayerInstallManager.log
-rw-r--r--   1 root       staff   1228 13 jun 21:58 ReceiverInstall.log
drwxr-xr-x   3 root       staff    102 26 aug  2012 Sophos Anti-Virus
And the second:
-bash: cd: /Users/snowkrash/Library/Logs/PMS: No such file or directory
.... And Plex tries so hard to create the folder ....
Traceback (most recent call last):
  File "/Users/snowkrash/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py", line 177, in 
    run()
  File "/Users/snowkrash/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py", line 157, in run
    core = Framework.core.FrameworkCore(bundle_path, FRAMEWORK_DIR, config)
  File "/Users/snowkrash/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/core.py", line 129, in __init__
    self._setup_storage()
  File "/Users/snowkrash/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/core.py", line 292, in _setup_storage
    self.storage.ensure_dirs(log_dir)
  File "/Users/snowkrash/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/storage.py", line 130, in ensure_dirs
    self.make_dirs(path)
  File "/Users/snowkrash/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/storage.py", line 126, in make_dirs
    os.makedirs(path)
  File "/Users/admin/jenkins/pms-deps-universal/BUILD_TAG/darwin-x86_64/output/pms-depends-darwin-x86_64-release-8400c3b/lib/python2.7/os.py", line 157, in makedirs
OSError: [Errno 13] Permission denied: '/Users/snowkrash/Library/Logs/PMS Plugin Logs'

Yeah, ok, so I think I have found why this crash is happening, but not how the hell you have managed to create this situation.
Anyway, before we start with some kind of solution we need to check one last command:

cd /Users/snowkrash/Library/

And then do this command and paste the output in the thread please:

ls -la

And finally, please repair Disk Permissions for your internal hard drive in the app Disk Utility which you can find in Applications/Utilities.
 
After Disk Utility has completed the repair of the disk permissions, do this command in Terminal:

cd /Users/snowkrash/Library/

 
And then:

ls -la

 
... and see if the row that earlier said:
 

drwx------+  75 root  staff   2550 Aug 18 15:57 Logs

...now says:

drwx------+  75 snowkrash  staff   2550 Aug 18 15:57 Logs
If root has been transformed into snowkrash you can now safely start up PMS.
If repairing (not verifying!) disk permissions did not help, and it still says root instead of snowkrash, then we need to make manual intervention.

Pity, the dics utility didn't work, not even repairing file permissions. I guess the manual solution is necessary. My Linux past is quite far away, but, the below should work?

sudo chown $USER -R ~/Library/Logs

(....) but not how the hell you have managed to create this situation. (....)

:blink:  Me neither! :huh:

Pity, the dics utility didn't work, not even repairing file permissions. I guess the manual solution is necessary. My Linux past is quite far away, but, the below should work?

sudo chown $USER -R ~/Library/Logs

:blink:  Me neither! :huh:

Use this command:

sudo chown -R snowkrash ~/Library/Logs

But only do this if you are logged in as snowkrash in your OS of course.

Well, well, well! That did the trick! :) :) :)  Plex is running like a charm now. All because of correct file ownership on the Logs directory. Probably the newest 0.9.9 version will work also.

I am very grateful. Thank you, Atrus. Your status as Plex ninja is well deserved! :ph34r:

Well, well, well! That did the trick! :) :) :)  Plex is running like a charm now. All because of correct file ownership on the Logs directory. Probably the newest 0.9.9 version will work also.

I am very grateful. Thank you, Atrus. Your status as Plex ninja is well deserved! :ph34r:

Very kind of you. Glad it worked, those kind of issues are not fun to have as they are kind of hard to solve unless one got intimate knowledge of the OS.

Very kind of you. Glad it worked, those kind of issues are not fun to have as they are kind of hard to solve unless one got intimate knowledge of the OS.

Yeah .... I stopped fiddling with Linux about 10 years ago, so console hacking is somewhat rusty. But you helped me very well. Now I can buy that Chromecast and have a great movie marathon!

I was almost to the point of switching to XBMC when I found this thread. After a little work, I got everything to work by deleting all the plug-ins and starting over. It's working like before, and even better - we have Food Network back!

Thanks for all the info shared on this site. My expertise is in biological things - DNA makes more sense to me than computer code!

Mark

Thanks for all the info shared on this site.

The people on this site were very helpful and I tried to write my texts in a certain fashion so that hopefully this thread comes up when people search Google for help.

looks like I'm having similar issues to other folks but things tried haven't resolved it.

this started when i realised that the scanning agents were not working so updated from 9.9.10 to 9.9.14 and now server says it's starting constantly.

removed the  2 bundles listed, frameworks and system, issue persists.

attached logs in case someone a bit more davy can see what's going on

*edit* only thing I'll add is that I've symlinked my plex folder from application support into the root of an external fat32 drive, however this has been working fine since i did it until the last few days when scanning new things hasn't given me any metadata

*edit*

fixed it.

reformatted the drive i was using to HFS and rolled back the library a bit (as i kinda deleted a bit much of it) and it's now working.  i recon it was probably the formatting and as such permissions and ownership and the like

I'm really sorry everyone... I recently sent out an update which turned out to have some problems, and prevents the media server from starting. By the time we realised, it'd already been downloaded by several users. We've taken the bad update offline, so it won't affect anyone else.

If you've been hit by this problem, you can resolve it by taking the following steps:

  • Quit the media server by selecting the Plex icon in your Mac's menu bar, and choosing "Quit" from the drop-down menu.
  • Open the folder "/Users/(username)/Library/Application Support/Plex Media Server/Plug-ins" in Finder.
  • Delete "Framework.bundle", and "System.bundle" or move them to the trash.
  • Restart Plex Media Server.

After that, everything should be back to normal. Please post in this thread if you're still having issues, and again I sincerely apologise for any trouble this has caused.

Thank you for the update!