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

Mailing List Archive: MythTV: Users

Upgraded to 0.23, now the backend server dies

 

 

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


rcs at malibyte

Apr 10, 2010, 10:40 AM

Post #1 of 11 (1447 views)
Permalink
Upgraded to 0.23, now the backend server dies

Hi all -

Just upgraded to 0.23 via JYA's repo. After the upgrade, did the DB
updates. Since then, the backend won't stay up:


[mythtv [at] vade: ~]$ sudo start mythtv-backend
mythtv-backend start/running, process 13353

[mythtv [at] vade: ~]$ ps aux | grep back
root 8416 0.0 0.0 9688 1192 pts/0 S+ 10:03 0:00 watch
tail -n 35 /var/log/mythtv/mythbackend.log
mythtv 13400 0.0 0.0 7336 868 pts/1 R+ 10:28 0:00 grep back

[mythtv [at] vade: ~]$ ps aux | grep 13353
mythtv 13513 0.0 0.0 7336 880 pts/1 S+ 10:29 0:00 grep 13353


Here's the relevant stuff from mythbackend.log:

2010-04-10 10:00:38.964 mythbackend version: branches/release-0-23-fixes
[24009] www.mythtv.org
2010-04-10 10:00:38.966 Using runtime prefix = /usr
2010-04-10 10:00:38.967 Using configuration directory = /.mythtv
2010-04-10 10:00:38.968 Unable to read configuration file mysql.txt
2010-04-10 10:00:38.968 Empty LocalHostName.
2010-04-10 10:00:38.969 Using localhost value of vader
2010-04-10 10:00:38.975 New DB connection, total: 1
2010-04-10 10:00:38.978 Connected to database 'mythconverg' at host:
localhost
2010-04-10 10:00:38.979 Closing DB connection named 'DBManager0'
2010-04-10 10:00:38.980 Connected to database 'mythconverg' at host:
localhost
2010-04-10 10:00:38.983 Current MythTV Schema Version (DBSchemaVer): 1254
No setting found for this machine's BackendServerIP.
Please run setup on this machine and modify the first page
of the general settings.


It says it can't read ~/.mythtv/mysql.txt, but I have no problem reading
it. Here are the file details and the settings in the file.

[mythtv [at] vade: ~]$ lsl .mythtv/
total 196
<snip>
-rw-r--r-- 1 mythtv mythtv 1097 2009-11-13 08:02 mysql.txt
<snip>

DBHostName=192.168.1.9
#DBHostPing=no
DBUserName=mythtv
DBPassword=xxxxxxxxx
DBName=mythconverg
DBType=QMYSQL3
LocalHostName=vader.malibyte.net
WOLsqlReconnectWaitTime=20
WOLsqlConnectRetry=5
WOLsqlCommand=/etc/init.d/mysql start


I ran mythtv-setup as the log entry suggests,and the server's IP and port
numbers are correct. Looking at the settings table in the database with
Webmin, all looks good also:

DBSchemaVer 1254
MythFillFixProgramIDsHasRunOnce 1 vader.malibyte.net
BackupDBLastRunStart 2010-04-10 09:05:14
BackupDBLastRunEnd 2010-04-10 09:05:27
StorageScheduler BalancedFreeSpace
Language EN_US vader.malibyte.net
BackendServerIP 192.168.1.9 vader.malibyte.net
BackendServerPort 6543 vader.malibyte.net
BackendStatusPort 6544 vader.malibyte.net
MasterServerIP 192.168.1.9
MasterServerPort 6543
TVFormat NTSC
VbiFormat None
FreqTable us-cable
TimeOffset Auto
MasterBackendOverride 0
DeletesFollowLinks 0
TruncateDeletesSlowly 0 vader.malibyte.net
HDRingbufferSize 9400
DisableAutomaticBackup 0
DisableFirewireReset 0 vader.malibyte.net
EITTransportTimeout 5
EITIgnoresSource 0
EITCrawIdleStart 60
blockSDWUwithoutClient 1


Restarting mysqld didn't solve it, either. Anyone have a cause and a fix
for this?

Thanks!
Bob

--
________________________________________
Bob Sully - Simi Valley, California, USA
http://www.malibyte.net
http://www.malibyte.com

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


rcs at malibyte

Apr 10, 2010, 11:29 AM

Post #2 of 11 (1427 views)
Permalink
Re: Upgraded to 0.23, now the backend server dies [In reply to]

Bob Sully wrote:
> Hi all -
>
> Just upgraded to 0.23 via JYA's repo. After the upgrade, did the DB
> updates. Since then, the backend won't stay up:
>

Disregard, I figured it out. It's looking for the .mythtv directory in /
rather than the mythtv user's home directory. A softlink fixed it. Sorry
for the inconvenience.

Bob

--
________________________________________
Bob Sully - Simi Valley, California, USA
http://www.malibyte.net
http://www.malibyte.com

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


mtdean at thirdcontact

Apr 10, 2010, 11:38 AM

Post #3 of 11 (1427 views)
Permalink
Re: Upgraded to 0.23, now the backend server dies [In reply to]

On 04/10/2010 02:29 PM, Bob Sully wrote:
> Disregard, I figured it out. It's looking for the .mythtv directory in /
> rather than the mythtv user's home directory. A softlink fixed it. Sorry
> for the inconvenience.
>

That should only happen if you have no HOME specified in your
environment--and if you have no HOME specified, the backend should /not/
start.

I think you need to fix your start script to properly set your HOME
environment variable.

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


mythtv-list at dinkum

Apr 10, 2010, 3:51 PM

Post #4 of 11 (1411 views)
Permalink
Re: Upgraded to 0.23, now the backend server dies [In reply to]

On 10 Apr 2010, at 19:29, Bob Sully wrote:

>
> Bob Sully wrote:
>> Hi all -
>>
>> Just upgraded to 0.23 via JYA's repo. After the upgrade, did the DB
>> updates. Since then, the backend won't stay up:
>>
>
> Disregard, I figured it out. It's looking for the .mythtv directory in /
> rather than the mythtv user's home directory. A softlink fixed it. Sorry
> for the inconvenience.

Or it could be this, same symptom in my my upgrade:

>
> I had to manually flush the /usr/share/mythtv/themes directory as I had some manually installed themes that wouldn't go away and caused me some crashes, mythfrontend.real -v is very useful. I also found a /etc/default/mythtv-backend file that was breaking the user environment for the master backend (couldn't find mysql.txt), removed it and the backend-started happily rather than looping crazily.

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


scurtis at fixation

Apr 11, 2010, 4:16 AM

Post #5 of 11 (1393 views)
Permalink
Re: Upgraded to 0.23, now the backend server dies [In reply to]

On 10 April 2010 18:40, Bob Sully <rcs [at] malibyte> wrote:

> Hi all -
>
> Just upgraded to 0.23 via JYA's repo. After the upgrade, did the DB
> updates. Since then, the backend won't stay up:
>
>
Which repo is offering out 0.23 on JYA's repo? I had a look in there
earlier today and couldn't see any 0.23 packages when browsing the
release/testing/bleeding repos? They all looked like 0.22-fixes

I'm currently on 8.04 but may rebuild onto 10.04 for a nice fresh install to
0.23 :-)

Cheers,
Steve.


jyavenard at gmail

Apr 11, 2010, 8:36 PM

Post #6 of 11 (1362 views)
Permalink
Re: Upgraded to 0.23, now the backend server dies [In reply to]

Hi

On 11 April 2010 21:16, Steve Curtis <scurtis [at] fixation> wrote:
>
> I'm currently on 8.04 but may rebuild onto 10.04 for a nice fresh install to
> 0.23 :-)

the testing repo has the 0.23-fixes packages.

release has 0.22-fixes packages including for Lucid.

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


jstembridge at gmail

Apr 12, 2010, 2:30 AM

Post #7 of 11 (1341 views)
Permalink
Re: Upgraded to 0.23, now the backend server dies [In reply to]

On 10 April 2010 18:40, Bob Sully <rcs [at] malibyte> wrote:
> 2010-04-10 10:00:38.967 Using configuration directory = /.mythtv

See https://bugs.launchpad.net/mythbuntu/+bug/546616

As noted there my current fix for this is to add "env
HOME=/home/mythtv" to "/etc/init/mythtv-backend.conf".

Hope that helps,
James.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mythtv at ncc1701

Apr 12, 2010, 4:47 AM

Post #8 of 11 (1334 views)
Permalink
Re: Upgraded to 0.23, now the backend server dies [In reply to]

>
> the testing repo has the 0.23-fixes packages.
>
> release has 0.22-fixes packages including for Lucid.
>
> Jean-Yves
> _______________________________________________

Hi,

Where do I find this "testing" repo? I looked in
http://www.avenard.org/files/ubuntu-repos/testing/
but that's clearly the wrong place. Nothing there has changed since
September 2009...


TIA

Dave

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


jyavenard at gmail

Apr 12, 2010, 5:04 AM

Post #9 of 11 (1337 views)
Permalink
Re: Upgraded to 0.23, now the backend server dies [In reply to]

hi


On 12 April 2010 21:47, MythTV <mythtv [at] ncc1701> wrote:
>>
>> the testing repo has the 0.23-fixes packages.
>>
>> release has 0.22-fixes packages including for Lucid.
>>
>> Jean-Yves
>> _______________________________________________
>
> Hi,
>
> Where do I find this "testing" repo?  I looked in
> http://www.avenard.org/files/ubuntu-repos/testing/
> but that's clearly the wrong place.   Nothing there has changed since
> September 2009...

that's the old style intrepid repository...

http://www.avenard.org/media/Ubuntu_Repository/Entries/2010/4/5_Intrepid_Support.html
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mythtv at ncc1701

Apr 12, 2010, 5:32 AM

Post #10 of 11 (1331 views)
Permalink
Re: Upgraded to 0.23, now the backend server dies [In reply to]

> hi

:-)

> Where do I find this "testing" repo? I looked in
> http://www.avenard.org/files/ubuntu-repos/testing/
> that's the old style intrepid repository...
>
>
http://www.avenard.org/media/Ubuntu_Repository/Entries/2010/4/5_Intrepid
_Support.html

Thanks for that. I clearly didn't actually understand what was going
on...

# apt-get --verbose-versions --print-uris dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
libmyth-perl (0.23.0+fixes24009-0ubuntu1)
mythtv-status (0.7.3-2ubuntu2)
The following packages will be upgraded:
mythmovies (0.22.0-fixes23469-0ubuntu2 => 0.23.0+fixes24014-0ubuntu1)
...
mythweb (0.22.0-fixes23469-0ubuntu2 => 0.23.0+fixes24014-0ubuntu1)
35 upgraded, 4 newly installed, 2 to remove and 1 not upgraded.
Need to get 80.4MB/80.5MB of archives.
After this operation, 49.0MB of additional disk space will be used.
'http://www.avenard.org/files/ubuntu-repos/pool/dists/karmic/testing/myt
htv_0.23.0+fixes24009-0ubuntu1_all.deb'
mythtv_2%3a0.23.0+fixes24009-0ubuntu1_all.deb 30026
'http://www.avenard.org/files/ubuntu-repos/pool/dists/karmic/testing/myt
htv-frontend_0.23.0+fixes24009-0ubuntu1_amd64.deb'
mythtv-frontend_2%3a0.23.0+fixes24009-0ubuntu1_amd64.deb 3810238
... etc ...


I can now satisfy my curiosity here instead...

http://www.avenard.org/files/ubuntu-repos/pool/dists/karmic/testing/

Thanks
Dave

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


rcs at malibyte

Apr 12, 2010, 7:45 AM

Post #11 of 11 (1331 views)
Permalink
Re: Upgraded to 0.23, now the backend server dies [In reply to]

James Stembridge wrote:
> On 10 April 2010 18:40, Bob Sully <rcs [at] malibyte> wrote:
>> 2010-04-10 10:00:38.967 Using configuration directory = /.mythtv
>
> See https://bugs.launchpad.net/mythbuntu/+bug/546616
>
> As noted there my current fix for this is to add "env
> HOME=/home/mythtv" to "/etc/init/mythtv-backend.conf".
>
> Hope that helps,
> James.
>

Done - thanks!
--
________________________________________
Bob Sully - Simi Valley, California, USA
http://www.malibyte.net
http://www.malibyte.com

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