Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

multiple mythfrontends on same computer

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


erez0001 at gmail

Nov 24, 2009, 1:07 AM

Post #1 of 7 (1025 views)
Permalink
multiple mythfrontends on same computer

hello

i have a computer which runs mysql, mythbackend and two instances of
mythfrontend (for two TVs)

i work in this configuration for around 5 years...

now that i upgraded to karmic, i had a lot of problems.
i fixed them one by one, and now i got to the issue of not being able to run
two frontends on the same computer at the same time

i run directly mythfrontend.real (as two instances of frontend were disabled
in the wrapper script)
i run the two instances from two different users, and different
"LocalHostName" in the users's ~/.mythtv/mysql.txt

it seams that the first instance i run works, the other doesn't.
the log file i get on the second is:

2009-11-24 11:06:01.781 mythfrontend version: branches/release-0-22-fixes
[22594] www.mythtv.org
2009-11-24 11:06:01.781 (old)Settings::ReadSettings(settings.txt) - No such
file
2009-11-24 11:06:01.781 Using runtime prefix = /usr
2009-11-24 11:06:01.781 Using configuration directory = /home/myth2/.mythtv
2009-11-24 11:06:01.781 UPnp - Constructor
2009-11-24 11:06:01.781 MediaRenderer::Begin
2009-11-24 11:06:01.781 ThreadPool:AddWorkerThread - HTTP_WorkerThread
2009-11-24 11:06:01.781 HttpServer() - SharePath = /usr/share/mythtv/
2009-11-24 11:06:01.781 MediaRenderer::HttpServer Create Error




any idea ?

thanks,
erez.

system:
mythtv 0.22.0+fixes22594-0ubuntu1
ubuntu karmic 9.10 64 bit


yan at seiner

Nov 24, 2009, 4:33 AM

Post #2 of 7 (999 views)
Permalink
Re: multiple mythfrontends on same computer [In reply to]

Erez D wrote:
> hello
>
> i have a computer which runs mysql, mythbackend and two instances of
> mythfrontend (for two TVs)
>
> i work in this configuration for around 5 years...
>
> now that i upgraded to karmic, i had a lot of problems.
> i fixed them one by one, and now i got to the issue of not being able
> to run two frontends on the same computer at the same time
>
> i run directly mythfrontend.real (as two instances of frontend were
> disabled in the wrapper script)
> i run the two instances from two different users, and different
> "LocalHostName" in the users's ~/.mythtv/mysql.txt
>
> it seams that the first instance i run works, the other doesn't.
> the log file i get on the second is:
>
> 2009-11-24 11:06:01.781 mythfrontend version:
> branches/release-0-22-fixes [22594] www.mythtv.org <http://www.mythtv.org>
> 2009-11-24 11:06:01.781 (old)Settings::ReadSettings(settings.txt) - No
> such file
> 2009-11-24 11:06:01.781 Using runtime prefix = /usr
> 2009-11-24 11:06:01.781 Using configuration directory =
> /home/myth2/.mythtv
> 2009-11-24 11:06:01.781 UPnp - Constructor
> 2009-11-24 11:06:01.781 MediaRenderer::Begin
> 2009-11-24 11:06:01.781 ThreadPool:AddWorkerThread - HTTP_WorkerThread
> 2009-11-24 11:06:01.781 HttpServer() - SharePath = /usr/share/mythtv/
> 2009-11-24 11:06:01.781 MediaRenderer::HttpServer Create Error
>
>
>
>
> any idea ?

Start one frontend at a time; make sure they each run under a different
user. Go into Setup | General and on page 2 add "Custom Identifier" for
each frontend.

AFAIK mysql.txt isn't used anymore.

--Yan


--

o__
,>/'_ o__
(_)\(_) ,>/'_ o__
A day may come (_)\(_) ,>/'_ o__
when the courage of men fails, (_)\(_) ,>/'_
when we forsake our friends and break all (_)\(_)
bonds of fellowship, but it is not this day.
It is not this day!
This day we ride!

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


erez0001 at gmail

Nov 24, 2009, 5:21 AM

Post #3 of 7 (1002 views)
Permalink
Re: multiple mythfrontends on same computer [In reply to]

On Tue, Nov 24, 2009 at 2:33 PM, Yan Seiner <yan [at] seiner> wrote:

> Erez D wrote:
>
>> hello
>>
>> i have a computer which runs mysql, mythbackend and two instances of
>> mythfrontend (for two TVs)
>>
>> i work in this configuration for around 5 years...
>>
>> now that i upgraded to karmic, i had a lot of problems.
>> i fixed them one by one, and now i got to the issue of not being able to
>> run two frontends on the same computer at the same time
>>
>> i run directly mythfrontend.real (as two instances of frontend were
>> disabled in the wrapper script)
>> i run the two instances from two different users, and different
>> "LocalHostName" in the users's ~/.mythtv/mysql.txt
>>
>> it seams that the first instance i run works, the other doesn't.
>> the log file i get on the second is:
>>
>> 2009-11-24 11:06:01.781 mythfrontend version: branches/release-0-22-fixes
>> [22594] www.mythtv.org <http://www.mythtv.org>
>>
>> 2009-11-24 11:06:01.781 (old)Settings::ReadSettings(settings.txt) - No
>> such file
>> 2009-11-24 11:06:01.781 Using runtime prefix = /usr
>> 2009-11-24 11:06:01.781 Using configuration directory =
>> /home/myth2/.mythtv
>> 2009-11-24 11:06:01.781 UPnp - Constructor
>> 2009-11-24 11:06:01.781 MediaRenderer::Begin
>> 2009-11-24 11:06:01.781 ThreadPool:AddWorkerThread - HTTP_WorkerThread
>> 2009-11-24 11:06:01.781 HttpServer() - SharePath = /usr/share/mythtv/
>> 2009-11-24 11:06:01.781 MediaRenderer::HttpServer Create Error
>>
>>
>>
>>
>> any idea ?
>>
>
> Start one frontend at a time; make sure they each run under a different
> user.


I run the first under user "myth1" and the second under user "myth2"

Go into Setup | General and on page 2 add "Custom Identifier" for each
> frontend.
>
>
it's already there (probably was read from mysql.txt as i havn't put that
there myself)


any other ideas ?

thanks,
erez.



> AFAIK mysql.txt isn't used anymore.
>
> --Yan
>
>
> --
>
> o__
> ,>/'_ o__
> (_)\(_) ,>/'_ o__
> A day may come (_)\(_) ,>/'_ o__
> when the courage of men fails, (_)\(_) ,>/'_ when we forsake our
> friends and break all (_)\(_)
> bonds of fellowship, but it is not this day.
> It is not this day!
> This day we ride!
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>


gareth.glaccum at btopenworld

Nov 24, 2009, 6:21 AM

Post #4 of 7 (991 views)
Permalink
Re: multiple mythfrontends on same computer [In reply to]

Disable upnp on the frontends? This sets up a port for the server to connect back to I think.




________________________________
From: Erez D <erez0001 [at] gmail>
To: Discussion about mythtv <mythtv-users [at] mythtv>
Sent: Tuesday, 24 November, 2009 13:21:31
Subject: Re: [mythtv-users] multiple mythfrontends on same computer





On Tue, Nov 24, 2009 at 2:33 PM, Yan Seiner <yan [at] seiner> wrote:

>Erez D wrote:
>
>>>hello
>>
>>>>i have a computer which runs mysql, mythbackend and two instances of mythfrontend (for two TVs)
>>
>>>>i work in this configuration for around 5 years...
>>
>>>>now that i upgraded to karmic, i had a lot of problems.
>>>>i fixed them one by one, and now i got to the issue of not being able to run two frontends on the same computer at the same time
>>
>>>>i run directly mythfrontend.real (as two instances of frontend were disabled in the wrapper script)
>>>>i run the two instances from two different users, and different "LocalHostName" in the users's ~/.mythtv/mysql.txt
>>
>>>>it seams that the first instance i run works, the other doesn't.
>>>>the log file i get on the second is:
>>
>>
>>2009-11-24 11:06:01.781 mythfrontend version: branches/release-0-22-fixes [22594] www.mythtv.org <http://www.mythtv.org>
>>
>>>>2009-11-24 11:06:01.781 (old)Settings::ReadSettings(settings.txt) - No such file
>>>>2009-11-24 11:06:01.781 Using runtime prefix = /usr
>>>>2009-11-24 11:06:01.781 Using configuration directory = /home/myth2/.mythtv
>>>>2009-11-24 11:06:01.781 UPnp - Constructor
>>>>2009-11-24 11:06:01.781 MediaRenderer::Begin
>>>>2009-11-24 11:06:01.781 ThreadPool:AddWorkerThread - HTTP_WorkerThread
>>>>2009-11-24 11:06:01.781 HttpServer() - SharePath = /usr/share/mythtv/
>>>>2009-11-24 11:06:01.781 MediaRenderer::HttpServer Create Error
>>
>>
>>
>>
>>>>any idea ?
>>
>>Start one frontend at a time; make sure they each run under a different user.

I run the first under user "myth1" and the second under user "myth2"


>Go into Setup | General and on page 2 add "Custom Identifier" for each frontend.
>
>

it's already there (probably was read from mysql.txt as i havn't put that there myself)


any other ideas ?

thanks,
erez.



>
>AFAIK mysql.txt isn't used anymore.
>
>>--Yan
>
>
>>--
>
>> o__
>> ,>/'_ o__
>> (_)\(_) ,>/'_ o__
>>A day may come (_)\(_) ,>/'_ o__
>>when the courage of men fails, (_)\(_) ,>/'_ when we forsake our friends and break all (_)\(_)
>>bonds of fellowship, but it is not this day.
>>It is not this day!
>>This day we ride!
>
>>_______________________________________________
>>mythtv-users mailing list
>mythtv-users [at] mythtv
>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>


erez0001 at gmail

Nov 24, 2009, 6:27 AM

Post #5 of 7 (987 views)
Permalink
Re: multiple mythfrontends on same computer [In reply to]

On Tue, Nov 24, 2009 at 4:21 PM, Gareth Glaccum <
gareth.glaccum [at] btopenworld> wrote:

> Disable upnp on the frontends? This sets up a port for the server to
> connect back to I think.
>

thats what i thought.

how do i disable upnp on the frontend ?


>
> ------------------------------
> *From:* Erez D <erez0001 [at] gmail>
> *To:* Discussion about mythtv <mythtv-users [at] mythtv>
> *Sent:* Tuesday, 24 November, 2009 13:21:31
> *Subject:* Re: [mythtv-users] multiple mythfrontends on same computer
>
>
>
> On Tue, Nov 24, 2009 at 2:33 PM, Yan Seiner <yan [at] seiner> wrote:
>
>> Erez D wrote:
>>
>>> hello
>>>
>>> i have a computer which runs mysql, mythbackend and two instances of
>>> mythfrontend (for two TVs)
>>>
>>> i work in this configuration for around 5 years...
>>>
>>> now that i upgraded to karmic, i had a lot of problems.
>>> i fixed them one by one, and now i got to the issue of not being able to
>>> run two frontends on the same computer at the same time
>>>
>>> i run directly mythfrontend.real (as two instances of frontend were
>>> disabled in the wrapper script)
>>> i run the two instances from two different users, and different
>>> "LocalHostName" in the users's ~/.mythtv/mysql.txt
>>>
>>> it seams that the first instance i run works, the other doesn't.
>>> the log file i get on the second is:
>>>
>>> 2009-11-24 11:06:01.781 mythfrontend version: branches/release-0-22-fixes
>>> [22594] www.mythtv.org <http://www.mythtv.org>
>>>
>>> 2009-11-24 11:06:01.781 (old)Settings::ReadSettings(settings.txt) - No
>>> such file
>>> 2009-11-24 11:06:01.781 Using runtime prefix = /usr
>>> 2009-11-24 11:06:01.781 Using configuration directory =
>>> /home/myth2/.mythtv
>>> 2009-11-24 11:06:01.781 UPnp - Constructor
>>> 2009-11-24 11:06:01.781 MediaRenderer::Begin
>>> 2009-11-24 11:06:01.781 ThreadPool:AddWorkerThread - HTTP_WorkerThread
>>> 2009-11-24 11:06:01.781 HttpServer() - SharePath = /usr/share/mythtv/
>>> 2009-11-24 11:06:01.781 MediaRenderer::HttpServer Create Error
>>>
>>>
>>>
>>>
>>> any idea ?
>>>
>>
>> Start one frontend at a time; make sure they each run under a different
>> user.
>
>
> I run the first under user "myth1" and the second under user "myth2"
>
> Go into Setup | General and on page 2 add "Custom Identifier" for each
>> frontend.
>>
>>
> it's already there (probably was read from mysql.txt as i havn't put that
> there myself)
>
>
> any other ideas ?
>
> thanks,
> erez.
>
>
>
>> AFAIK mysql.txt isn't used anymore.
>>
>> --Yan
>>
>>
>> --
>>
>> o__
>> ,>/'_ o__
>> (_)\(_) ,>/'_ o__
>> A day may come (_)\(_) ,>/'_ o__
>> when the courage of men fails, (_)\(_) ,>/'_ when we forsake our
>> friends and break all (_)\(_)
>> bonds of fellowship, but it is not this day.
>> It is not this day!
>> This day we ride!
>>
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users [at] mythtv
>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>


gareth.glaccum at btopenworld

Nov 24, 2009, 6:38 AM

Post #6 of 7 (993 views)
Permalink
Re: multiple mythfrontends on same computer [In reply to]

I dunno, maybe -d?
I thought I saw the option a couple of months ago when I ran mythfrontend --help, but:
[root]# mythfrontend --help


2009-11-24 14:36:41.700 mythfrontend version: trunk [22291] www.mythtv.org
Valid options are:
-l or --logfile filename Writes STDERR and STDOUT messages to filename
-r or --reset Resets frontend appearance settings and language
-display X-server Create GUI on X-server, not localhost
-geometry or --geometry WxH Override window size settings
-geometry WxH+X+Y Override window size and position
-w or --windowed Run in windowed mode
-nw or --no-windowed Run in non-windowed mode
-O or --override-setting KEY=VALUE
Force the setting named 'KEY' to value 'VALUE'
This option may be repeated multiple times
--override-settings-file <file>
File containing KEY=VALUE pairs for settings
Use a comma seperated list to return multiple values
-G or --get-setting KEY[,KEY2,etc]
Returns the current database setting for 'KEY'
--version Version information
-v or --verbose debug-level Use '-v help' for level info
-p or --prompt Always prompt for Mythbackend selection.
-d or --disable-autodiscovery Never prompt for Mythbackend selection.
-u or --upgrade-schema Allow mythfrontend to upgrade the database schema
<plugin> Initialize and run this plugin

Environment Variables:
$MYTHTVDIR Set the installation prefix
$MYTHCONFDIR Set the config dir (instead of ~/.mythtv)





________________________________
From: Erez D <erez0001 [at] gmail>
To: Discussion about mythtv <mythtv-users [at] mythtv>
Sent: Tuesday, 24 November, 2009 14:27:43
Subject: Re: [mythtv-users] multiple mythfrontends on same computer





On Tue, Nov 24, 2009 at 4:21 PM, Gareth Glaccum <gareth.glaccum [at] btopenworld> wrote:

Disable upnp on the frontends? This sets up a port for the server to connect back to I think.
>

thats what i thought.

how do i disable upnp on the frontend ?



>
>
________________________________
From: Erez D <erez0001 [at] gmail>
>To: Discussion about mythtv <mythtv-users [at] mythtv>
>Sent: Tuesday, 24 November, 2009 13:21:31
>Subject: Re: [mythtv-users] multiple mythfrontends on same computer
>
>
>
>
>
>
>On Tue, Nov 24, 2009 at
> 2:33 PM, Yan Seiner <yan [at] seiner> wrote:
>
>>>
>>Erez D wrote:
>>
>>>>>hello
>>>
>>>>>>i have a computer which runs mysql, mythbackend and two instances of mythfrontend (for two TVs)
>>>
>>>>>>i work in this configuration for around 5 years...
>>>
>>>>>>now that i upgraded to karmic, i had a lot of problems.
>>>>>>i fixed them one by one, and now i got to the issue of not being able to run two frontends on the same computer at the same time
>>>
>>>>>>i run directly mythfrontend.real (as two instances of frontend were disabled in the wrapper script)
>>>>>>i run the two instances from two different users, and different "LocalHostName" in the users's ~/.mythtv/mysql.txt
>>>
>>>>>>it seams that the first instance i run works, the other doesn't.
>>>>>>the log file i get on the second is:
>>>
>>>
>>>2009-11-24 11:06:01.781 mythfrontend version: branches/release-0-22-fixes [22594] www.mythtv.org <http://www.mythtv.org>
>>>>>>
>>>>>>2009-11-24 11:06:01.781 (old)Settings::ReadSettings(settings.txt) - No such file
>>>>>>2009-11-24 11:06:01.781 Using runtime prefix = /usr
>>>>>>2009-11-24 11:06:01.781 Using configuration directory = /home/myth2/.mythtv
>>>>>>2009-11-24 11:06:01.781 UPnp - Constructor
>>>>>>2009-11-24 11:06:01.781 MediaRenderer::Begin
>>>>>>2009-11-24 11:06:01.781 ThreadPool:AddWorkerThread - HTTP_WorkerThread
>>>>>>2009-11-24 11:06:01.781 HttpServer() - SharePath = /usr/share/mythtv/
>>>>>>2009-11-24 11:06:01.781 MediaRenderer::HttpServer Create Error
>>>
>>>
>>>
>>>
>>>>>>any idea ?
>>>
>>>>Start one frontend at a time; make sure they each run under a different user.
>
>I run the first under user "myth1" and the second under user "myth2"
>
>
>>>
>>Go into Setup | General and on page 2 add "Custom Identifier" for each frontend.
>>
>>
>
>it's already there (probably was read from mysql.txt as i havn't put that there myself)
>
>
>any other ideas ?
>
>thanks,
>erez.
>
>
>
>>>
>>
>>AFAIK mysql.txt isn't used anymore.
>>
>>>>--Yan
>>
>>
>>>>--
>>
>>>> o__
>>>> ,>/'_ o__
>>>> (_)\(_) ,>/'_ o__
>>>>A day may come (_)\(_) ,>/'_ o__
>>>>when the courage of men fails, (_)\(_) ,>/'_ when we forsake our friends and break all (_)\(_)
>>>>bonds of fellowship, but it is not this day.
>>>>It is not this day!
>>>>This day we ride!
>>
>>>>_______________________________________________
>>>>mythtv-users mailing list
>>mythtv-users [at] mythtv
>>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>
>
>_______________________________________________
>>mythtv-users mailing list
>mythtv-users [at] mythtv
>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>


mtdean at thirdcontact

Nov 24, 2009, 10:12 AM

Post #7 of 7 (991 views)
Permalink
Re: multiple mythfrontends on same computer [In reply to]

On 11/24/2009 04:07 AM, Erez D wrote:
> i have a computer which runs mysql, mythbackend and two instances of
> mythfrontend (for two TVs)
>
> i work in this configuration for around 5 years...
>
> now that i upgraded to karmic, i had a lot of problems.
> i fixed them one by one, and now i got to the issue of not being able to run
> two frontends on the same computer at the same time
>
> i run directly mythfrontend.real (as two instances of frontend were disabled
> in the wrapper script)
> i run the two instances from two different users, and different
> "LocalHostName" in the users's ~/.mythtv/mysql.txt
>
> it seams that the first instance i run works, the other doesn't.
> the log file i get on the second is:
>
> 2009-11-24 11:06:01.781 mythfrontend version: branches/release-0-22-fixes
> [22594] www.mythtv.org
> 2009-11-24 11:06:01.781 (old)Settings::ReadSettings(settings.txt) - No such
> file
> 2009-11-24 11:06:01.781 Using runtime prefix = /usr
> 2009-11-24 11:06:01.781 Using configuration directory = /home/myth2/.mythtv
> 2009-11-24 11:06:01.781 UPnp - Constructor
> 2009-11-24 11:06:01.781 MediaRenderer::Begin
> 2009-11-24 11:06:01.781 ThreadPool:AddWorkerThread - HTTP_WorkerThread
> 2009-11-24 11:06:01.781 HttpServer() - SharePath = /usr/share/mythtv/
> 2009-11-24 11:06:01.781 MediaRenderer::HttpServer Create Error
>

Change the service port for the Media Renderer:

master_backend_host_or_ip='localhost'
my_host='setyourfrontendhostnamehere'
my_key='UPnP/MythFrontend/ServicePort'
my_value='6574'
wget -O result.xml
"http://${master_backend_host_or_ip}:6544/Myth/PutSetting?HostName=${my_host}&Key=${my_key}&Value=${my_value}"



Mike
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.