CLOSED: Plex Media Server

inquam
Posts: 78
Joined: Sat Dec 11, 2010 12:22 pm

Re: Plex Media Server

Postby inquam » Thu Sep 22, 2011 12:34 am

Did a installation test today and got it up and running.
Some small issues with 32 bit pacs on 64 bit machine but easy to solv.

There is some work still befor going full out with Plex but could quickly be turning beta.
The issues are trivial and can be addressed my simple addon installas.

I wont to address my thanks for a good project to inquam, keep on coding. :D
Please report which dependencies was unresolved and I will add them to the installation dependencies list.
My HDA: Q6400, 8GB ram, 2x1TB disk in raid 1 for system drive, 6x2TB drives for storage

User avatar
nalleju
Posts: 26
Joined: Mon Sep 12, 2011 1:18 am
Location: Esbo, Finland, EU
Contact:

Re: Plex Media Server

Postby nalleju » Thu Sep 22, 2011 5:50 am

Missing running 64bit:
  • ld-linux.so.2
    compat-libstdc++-33.i686
    libstdc++.i686
To install:

Code: Select all

yum install ld-linux.so.2 yum install compat-libstdc++-33.i686 yum install libstdc++.i686
Usage:
log on to management console:
http://pms.domain.lan:32400/manage/index.html

inquam
Posts: 78
Joined: Sat Dec 11, 2010 12:22 pm

Re: Plex Media Server

Postby inquam » Thu Sep 22, 2011 12:49 pm

Missing running 64bit:
  • ld-linux.so.2
    compat-libstdc++-33.i686
    libstdc++.i686
To install:

Code: Select all

yum install ld-linux.so.2 yum install compat-libstdc++-33.i686 yum install libstdc++.i686
Usage:
log on to management console:
http://pms.domain.lan:32400/manage/index.html
Strange

These dependecies should already be covered by the now listed dependencies which are

glibc
glibc.i686
libstdc++
libstdc++.i686

When did you do the installation? Prehaps it was after the dependencies were added.
My HDA: Q6400, 8GB ram, 2x1TB disk in raid 1 for system drive, 6x2TB drives for storage

User avatar
nalleju
Posts: 26
Joined: Mon Sep 12, 2011 1:18 am
Location: Esbo, Finland, EU
Contact:

Re: Plex Media Server

Postby nalleju » Mon Sep 26, 2011 6:32 am

See my post 22.9

User avatar
jayrock
Posts: 223
Joined: Thu Dec 02, 2010 12:55 am

Re: Plex Media Server

Postby jayrock » Mon Sep 26, 2011 11:42 am

Hi inquam,

installed today via one click-install, but I get a 503 Service unavailable error when I try to access http://pms/

I noticed that the service is not running. When I try to start it manually I get:

Code: Select all

root$ service plex_media_server start Starting Plex Media Server: bash: ./Plex Media Server: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory [FAILED]
A similar error is in /var/log/amahi-app-installer.log

Code: Select all

======= app install begin @ Mon Sep 26 20:12:55 +0200 2011 ========== Installing app id y47iytek0u under /var/hda/platform/html ENV=production NOTE: file /tmp/amahi-download-cache/4343a2ca1db902a001cdffe090d1494c8162aed7 written in cache Your HDA services have been restarted. Your HDA services have been restarted. Starting Plex Media Server: bash: ./Plex Media Server: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory [FAILED] App: Plex Media Server installed ======= app install end @ Mon Sep 26 20:14:07 +0200 2011 ==========
I checked the logs also, there are some entries in /var/hda/web-apps/pms/logs/error.log:

Code: Select all

[Mon Sep 26 20:21:02 2011] [error] (111)Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:32400 (localhost) failed [Mon Sep 26 20:21:02 2011] [error] ap_proxy_connect_backend disabling worker for (localhost) [Mon Sep 26 20:21:02 2011] [error] proxy: HTTP: disabled connection for (localhost) [Mon Sep 26 20:21:02 2011] [error] proxy: HTTP: disabled connection for (localhost) [Mon Sep 26 20:21:09 2011] [error] proxy: HTTP: disabled connection for (localhost) [Mon Sep 26 20:21:09 2011] [error] proxy: HTTP: disabled connection for (localhost) [Mon Sep 26 20:25:13 2011] [error] (111)Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:32400 (localhost) failed [Mon Sep 26 20:25:13 2011] [error] ap_proxy_connect_backend disabling worker for (localhost) [Mon Sep 26 20:25:14 2011] [error] proxy: HTTP: disabled connection for (localhost)
Let me know if you need more info.

Cheers

jayrock

inquam
Posts: 78
Joined: Sat Dec 11, 2010 12:22 pm

Re: Plex Media Server

Postby inquam » Tue Sep 27, 2011 1:57 am

Hi inquam,

installed today via one click-install, but I get a 503 Service unavailable error when I try to access http://pms/

I noticed that the service is not running. When I try to start it manually I get:

Code: Select all

root$ service plex_media_server start Starting Plex Media Server: bash: ./Plex Media Server: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory [FAILED]
A similar error is in /var/log/amahi-app-installer.log

Code: Select all

======= app install begin @ Mon Sep 26 20:12:55 +0200 2011 ========== Installing app id y47iytek0u under /var/hda/platform/html ENV=production NOTE: file /tmp/amahi-download-cache/4343a2ca1db902a001cdffe090d1494c8162aed7 written in cache Your HDA services have been restarted. Your HDA services have been restarted. Starting Plex Media Server: bash: ./Plex Media Server: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory [FAILED] App: Plex Media Server installed ======= app install end @ Mon Sep 26 20:14:07 +0200 2011 ==========
I checked the logs also, there are some entries in /var/hda/web-apps/pms/logs/error.log:

Code: Select all

[Mon Sep 26 20:21:02 2011] [error] (111)Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:32400 (localhost) failed [Mon Sep 26 20:21:02 2011] [error] ap_proxy_connect_backend disabling worker for (localhost) [Mon Sep 26 20:21:02 2011] [error] proxy: HTTP: disabled connection for (localhost) [Mon Sep 26 20:21:02 2011] [error] proxy: HTTP: disabled connection for (localhost) [Mon Sep 26 20:21:09 2011] [error] proxy: HTTP: disabled connection for (localhost) [Mon Sep 26 20:21:09 2011] [error] proxy: HTTP: disabled connection for (localhost) [Mon Sep 26 20:25:13 2011] [error] (111)Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:32400 (localhost) failed [Mon Sep 26 20:25:13 2011] [error] ap_proxy_connect_backend disabling worker for (localhost) [Mon Sep 26 20:25:14 2011] [error] proxy: HTTP: disabled connection for (localhost)
Let me know if you need more info.

Cheers

jayrock
The dependencies causing the bad ELF can probably be fixed with

yum install compat-libstdc++-33.i686

The 503 could be due to the fact that it couldn't start up. Try the above lines and if you still get a 503 let me know. Then it's probably the proxy setting that's messing it up.
My HDA: Q6400, 8GB ram, 2x1TB disk in raid 1 for system drive, 6x2TB drives for storage

User avatar
jayrock
Posts: 223
Joined: Thu Dec 02, 2010 12:55 am

Re: Plex Media Server

Postby jayrock » Tue Sep 27, 2011 3:05 am

Hi,

no luck yet. After running the command you suggested a get this:

Code: Select all

root ~$ service plex_media_server start Starting Plex Media Server: ./Plex Media Server: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
I have two questions around this:

1. Why does my install need some extra libraries whereas others obviously don't? Maybe we should try to find the root cause for this.

2. Why i686? I use x86_64 architecture so that seems a bit strange. Before I installed the package you suggested I did a

Code: Select all

yum search compat-libstdc++-33
which showed both versions for i686 and x86_64 this:

Code: Select all

================================ Matched: compat-libstdc++-33 ================================ compat-libstdc++-33.i686 : Compatibility standard C++ libraries compat-libstdc++-33.x86_64 : Compatibility standard C++ libraries
I think all the dependcies you have in the package should be without i686, to be architecture independent. yum will take care of installing the package for the correct architecture.

inquam
Posts: 78
Joined: Sat Dec 11, 2010 12:22 pm

Re: Plex Media Server

Postby inquam » Tue Sep 27, 2011 11:57 pm

Hi,

no luck yet. After running the command you suggested a get this:

Code: Select all

root ~$ service plex_media_server start Starting Plex Media Server: ./Plex Media Server: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
I have two questions around this:

1. Why does my install need some extra libraries whereas others obviously don't? Maybe we should try to find the root cause for this.

2. Why i686? I use x86_64 architecture so that seems a bit strange. Before I installed the package you suggested I did a

Code: Select all

yum search compat-libstdc++-33
which showed both versions for i686 and x86_64 this:

Code: Select all

================================ Matched: compat-libstdc++-33 ================================ compat-libstdc++-33.i686 : Compatibility standard C++ libraries compat-libstdc++-33.x86_64 : Compatibility standard C++ libraries
I think all the dependcies you have in the package should be without i686, to be architecture independent. yum will take care of installing the package for the correct architecture.
The reason is that the Plex Media Server executable comes prebuilt and thus prelinked against different libraries and is closed source. Thus it's not possible to recompile it to fit our specific system. As far as I can tell it has been built using 32-bit libraries and thus a few 32-bit libs are needed on the system.

If you try this, what do you get?

yum install libstdc++.so.6
My HDA: Q6400, 8GB ram, 2x1TB disk in raid 1 for system drive, 6x2TB drives for storage

User avatar
jayrock
Posts: 223
Joined: Thu Dec 02, 2010 12:55 am

Re: Plex Media Server

Postby jayrock » Wed Sep 28, 2011 2:27 am

Thanks for the explanation, this makes things clearer. Didn't know that Plex was closed source.

I have installed libstdc++.so.6. Now the service starts normally. When I try to access pms/ the browser is forwarded to pms/manage/index.html and then returns a 404 Not Found error. Checked some logs but didn't find anything beyond that error. Let me know if you need more to troubleshoot.

Cheers

jayrock

inquam
Posts: 78
Joined: Sat Dec 11, 2010 12:22 pm

Re: Plex Media Server

Postby inquam » Wed Sep 28, 2011 4:05 am

Thanks for the explanation, this makes things clearer. Didn't know that Plex was closed source.

I have installed libstdc++.so.6. Now the service starts normally. When I try to access pms/ the browser is forwarded to pms/manage/index.html and then returns a 404 Not Found error. Checked some logs but didn't find anything beyond that error. Let me know if you need more to troubleshoot.

Cheers

jayrock
Can you check if http://pms:32400/manage/ works?
My HDA: Q6400, 8GB ram, 2x1TB disk in raid 1 for system drive, 6x2TB drives for storage

Who is online

Users browsing this forum: No registered users and 26 guests