From owner-freebsd-ports@FreeBSD.ORG Wed Mar 19 21:30:59 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B4F4D1DB; Wed, 19 Mar 2014 21:30:59 +0000 (UTC) Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 26EC72F; Wed, 19 Mar 2014 21:30:59 +0000 (UTC) Received: by mail-wi0-f171.google.com with SMTP id hn9so5536904wib.10 for ; Wed, 19 Mar 2014 14:30:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=rmZ8rUQmjC0UTXV4QQvLxLKXvCN46FR+vet4Z5moizQ=; b=mvcAxQE6se8pf1HZhkn1vwqRA/+03E+mpTTbYdCN91aJjGu1VabE1LZCsJiDGdUU+S hF2/en0NoXYe0lP32AoQ1uTDqEJJdZbEe4DHx3PqP3vzUKLq/zkCdbnFoaK1Ga68g86u WRKsa+KHeAI13VPXQxqR9WnpsVryzJik2ZDPqikU980mPo3viWAUgctr1jR7PCi2YjTP FyJRjpq0ZGg3B6coa9fHDIvrgXKv3SC8eMDfLlEp00z6fAN6oWOS5adJStROzA40yTZu c5y55m5V2EN1X6O/0rEQG3hVW8JRFKOANPswM3uREIXI0utuNOlNN0LwFLbk1ARGRrX8 UetQ== X-Received: by 10.194.59.226 with SMTP id c2mr30388398wjr.6.1395264657566; Wed, 19 Mar 2014 14:30:57 -0700 (PDT) Received: from [192.168.20.30] (81-178-2-118.dsl.pipex.com. [81.178.2.118]) by mx.google.com with ESMTPSA id j8sm59048002wjn.13.2014.03.19.14.30.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Mar 2014 14:30:56 -0700 (PDT) Message-ID: <532A0C8F.4010409@gmail.com> Date: Wed, 19 Mar 2014 21:30:55 +0000 From: Kaya Saman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Mark Felder , freebsd-ports@freebsd.org Subject: Re: Plex Media Server Port issues References: <5328D887.3080901@gmail.com> <472a4971005448e80373e7829bd5d023@feld.me> In-Reply-To: <472a4971005448e80373e7829bd5d023@feld.me> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2014 21:30:59 -0000 On 03/19/2014 06:59 PM, Mark Felder wrote: > On 2014-03-18 18:36, Kaya Saman wrote: >> Hi, >> >> I'm experiencing 3 issues with the Plex Media Server.... >> >> My configuration is running FreeBSD 10.0 x64 with the ports tree up >> to date. >> >> Issue 1: Upon first installing the port everything went fine however, >> PMS wouldn't start and kept complaining about a Python C Lang issue... >> Google'ing I managed to find a FreeBSD Forum posting stating to >> insert this line: >> >> #!/bin/sh >> export LD_LIBMAP="/lib/libc.so.7 >> /usr/local/share/plexmediaserver/libc.so.7" >> >> >> in the start.sh file located in: /usr/local/share/plexmediaserver >> >> >> In addition I had to comment out these two lines: >> >> #export LC_ALL="en_US.UTF-8" >> #export LANG="en_US.UTF-8" >> >> in the start.sh file. >> > > On FreeBSD we do not use the start.sh file supplied by Plex. We only > use the /usr/local/etc/rc.d/plexmediaserver script. I did not strip it > out of the port/package install as I did not feel that was necessary, > but I will consider doing so to prevent this confusion in the future. > > Everything should work just fine using the FreeBSD rc script. I've > tested on FreeBSD 9, 10, and CURRENT as well as in jails. Thanks for the response! Ok this is strange, as I've just installed to root OS (non-jailed). # ps aux |grep plex plex 46502 0.0 0.2 208064 17204 - IsJ 4:06PM 0:07.88 /usr/local/sh plex 46503 0.0 0.1 223992 10188 - SNJ 4:06PM 0:21.70 Plex Plug-in plex 46508 0.0 0.1 139844 5260 - SJ 4:06PM 0:01.15 /usr/local/sh root 76712 0.0 0.0 18724 1760 3 S+ 9:12PM 0:00.00 grep plex # /usr/local/etc/rc.d/plexmediaserver start Starting plexmediaserver. Again I get "Sign in to Plex Account" when going to URL: http://:32400/web the redirect goes here: 32400/web/index.html#!/login > >> >> Issue 2: As I'm running PMS in a Jail on a headless server, for some >> reason the rc script doesn't start properly?? This is quite weird... >> >> Using an SSH tunnel running: service plexmediaserver start or the >> /usr/local/etc/rc.d/plexmediaserver start method, not all services >> seem to come up properly. >> > > What exactly do you mean "not all services seem to come up properly"? > You should see the following two processes at a minimum: > > /usr/local/share/plexmediaserver/Plex Media Server > /usr/local/share/plexmediaserver/Plex DLNA Server Sorry for not being more specific... the web service sometimes doesn't come up on port 32400.... also I run into login situation on other occasions. If I start the service from VNC: /usr/local/etc/rc.d/plexmediaserver start then all seems to be fine?? Ok, just copied my previous Preferences.xml content over to new instance and now Plex comes up fine! DLNA also is working! Thankfully I held off sending this email until now as it seems everything is fine and working :-) Seems to be the Jail was my issue and perhaps not enough memory ;-) as 8GB with 40TB over ZFS isn't much!! > >> >> Probably linked in with this is that not VNC'ing leaves me unable to >> login at the web interface. Putting my Plex ID/passwd combo in doesn't >> do a thing. >> > > This is a permissions issue caused by not running Plex from the rc > script which automatically launches the process as the "plex" user. > >> >> Issue 3: For some reason the DLNA server doesn't work properly.... >> >> Though it does show up as online using ps: >> >> plex 89291 0.0 0.2 139844 17808 - SJ 10:40PM 0:00.15 >> /usr/local/share/plexmediaserver/Plex DLNA Server >> >> It doesn't seem to broadcast itself. >> > > If you're running in a jail you're correct, this will not work. DLNA > uses multicast and multicast does not work in FreeBSD jails. Aha hence my switch to root OS per above! > > > Let's start fresh here; remove the port, delete any contents in > /usr/local/plexdata, and reinstall the port. > > Add plexmediaserver_enable="YES" to /etc/rc.conf and start the > service. It should start up flawlessly as I've handled all these > quirks in the rc script (except the multicast in a jail issue; I > cannot fix that). ...again see > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"