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

Mailing List Archive: MythTV: Users

Changing Backend from Localhost to IP

 

 

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


marklgoldberg at gmail

Feb 21, 2010, 11:06 AM

Post #1 of 4 (1235 views)
Permalink
Changing Backend from Localhost to IP

I've got a combined frontend / backend that has localhost specified in
the various setups. I want to add another frontend and it appears that it
is necessary to change the master backend from localhost to it's static
IP address. I already changed the database to allow access from other
machines on the network and added the new frontend. It added a new
set of settings for the new frontend that could be seen in mythweb, but
after a restart, myth is broken, with no recorded programs seen, and
mythweb has the message at the top:
User Notice at /var/www/html/mythweb/classes/MythBackend.php, line 102:
Unexpected response to MYTH_PROTO_VERSION '50':

I did not make any changes yet to myth setup on the master fe/be but it does
seem that adding another fe to the database has messed things up.

I restored the database to what it was before adding the new frontend and
things seem to be OK, but I'd like to know how to do this correctly.

I found the following:

http://www.mythtv.org/docs/mythtv-HOWTO-23.html#ss23.14

which addresses most of this change, but does not mention the following
places.

1.
Mythtv Setup
General
Host Address Backend Setup

Local Backend (localhost.localdomain)
IP Address (currently 127.0.0.1)

Master Backend
IP Address (already set to static ip of combined fe/be)

2.
Frontend Setup
General
Database Configuration 1/2
Hostname (currently localhost)

I've got two questions:

Is the doc above still valid for 0.22-fixes? Some of the references to
it in the archives
are not exactly correct and I had to find it.

What changes in the two setups above need to be done and in what order, combined
with the database changes in the Howto?

Thanks for any insight.

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


mtdean at thirdcontact

Feb 21, 2010, 11:46 AM

Post #2 of 4 (1189 views)
Permalink
Re: Changing Backend from Localhost to IP [In reply to]

On 02/21/2010 02:06 PM, Mark Goldberg wrote:
> I've got a combined frontend / backend that has localhost specified in
> the various setups. I want to add another frontend and it appears that it
> is necessary to change the master backend from localhost to it's static
> IP address. I already changed the database to allow access from other
> machines on the network and added the new frontend. It added a new
> set of settings for the new frontend that could be seen in mythweb, but
> after a restart, myth is broken, with no recorded programs seen, and
> mythweb has the message at the top:
> User Notice at /var/www/html/mythweb/classes/MythBackend.php, line 102:
> Unexpected response to MYTH_PROTO_VERSION '50':
>
> I did not make any changes yet to myth setup on the master fe/be but it does
> seem that adding another fe to the database has messed things up.
>
> I restored the database to what it was before adding the new frontend and
> things seem to be OK, but I'd like to know how to do this correctly.
>
> I found the following:
>
> http://www.mythtv.org/docs/mythtv-HOWTO-23.html#ss23.14
>
> which addresses most of this change, but does not mention the following
> places.
>
> 1.
> Mythtv Setup
> General
> Host Address Backend Setup
>
> Local Backend (localhost.localdomain)
> IP Address (currently 127.0.0.1)
>
> Master Backend
> IP Address (already set to static ip of combined fe/be)
>
> 2.
> Frontend Setup
> General
> Database Configuration 1/2
> Hostname (currently localhost)
>
> I've got two questions:
>
> Is the doc above still valid for 0.22-fixes?

Actually, it was specifically updated for 0.22.

> Some of the references to
> it in the archives
> are not exactly correct and I had to find it.
>
> What changes in the two setups above need to be done and in what order, combined
> with the database changes in the Howto?
>
> Thanks for any insight.
>

You can not have 127.0.0.1 /anywhere/ in the MythTV configuration if you
have more than one host involved. Therefore, change the master backend
IP address to the real (routable) address of the master backend. Then,
on /every/ host, change the "this" backend IP address to the real
(routable) address of the current host (this on the master backend /and/
the remote frontends/backends).

Also, you'll likely want a real hostname for the master backend (as well
as all remote hosts), so change the localhost.localdomain to something
more appropriate.

All of the above is in your 1. above. If you do that, 2. won't need
changing (or, at the least, when it automatically prompts you for the
information on startup, just type in the same values you used in
mythtv-setup for the hostname and IP addresses).

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


marklgoldberg at gmail

Feb 21, 2010, 1:31 PM

Post #3 of 4 (1179 views)
Permalink
Re: Changing Backend from Localhost to IP [In reply to]

On 02/21/2010 you wrote:

>You can not have 127.0.0.1 /anywhere/ in the MythTV configuration if you
>have more than one host involved. Therefore, change the master backend
>IP address to the real (routable) address of the master backend. Then,
>on /every/ host, change the "this" backend IP address to the real
>(routable) address of the current host (this on the master backend /and/
>the remote frontends/backends).
>
>Also, you'll likely want a real hostname for the master backend (as well
>as all remote hosts), so change the localhost.localdomain to something
>more appropriate.
>
>All of the above is in your 1. above. If you do that, 2. won't need
>changing (or, at the least, when it automatically prompts you for the
>information on startup, just type in the same values you used in
>mythtv-setup for the hostname and IP addresses).
>
>Mike

Thanks,

Just to make sure I understand correclty, should I change the hostname
on the computer to something real and follow
http://www.mythtv.org/docs/mythtv-HOWTO-23.html#ss23.14
first, then go into mythtv setup and on the combined fe/be do:

Mythtv Setup
General
Host Address Backend Setup

Local Backend (localhost.localdomain)
IP Address (change to static ip of combined fe/be)

Master Backend
IP Address (already set to static ip of combined fe/be)

I don't understand at what point it creates a new hostname in the
settings table.

Thanks again,

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


marklgoldberg at gmail

Feb 24, 2010, 9:05 PM

Post #4 of 4 (1069 views)
Permalink
Re: Changing Backend from Localhost to IP [In reply to]

On Sun, Feb 21, 2010 at 2:31 PM, Mark Goldberg wrote:
> On 02/21/2010 you wrote:
>
>>All of the above is in your 1. above. If you do that, 2. won't need
>>changing (or, at the least, when it automatically prompts you for the
>>information on startup, just type in the same values you used in
>>mythtv-setup for the hostname and IP addresses).
>>
>>Mike

I followed:
http://www.mythtv.org/docs/mythtv-HOWTO-23.html#ss23.14

then went into mythtv setup and on the combined fe/be did:

Mythtv Setup
General
Host Address Backend Setup

Local Backend (now said new hostname)
IP Address (change to static ip of combined fe/be)

Master Backend
IP Address (already set to static ip of combined fe/be)

then started the backend and frontend, and it did not prompt for an address.

I went into
Frontend Setup
General
Database Configuration 1/2
Hostname (change to static ip address, was still localhost)

I worked either way but this was cleaner.

Seems to work fine. All settings on fe and be are retained.

Mark
_______________________________________________
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.