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

Mailing List Archive: MythTV: Users

mysql not starting on boot

 

 

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


paul.bubbles at yahoo

Jul 24, 2010, 12:38 AM

Post #1 of 19 (1310 views)
Permalink
mysql not starting on boot

After the last update mysql is now not starting on boot, it has to be
started manually, does anyone know how to fix this?

MythTV Version : 25396
MythTV Branch : branches/release-0-23-fixes
Network Protocol : 23056
Library API : 0.23.1.201000710-1
QT Version : 4.6.2


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


mtdean at thirdcontact

Jul 24, 2010, 12:45 AM

Post #2 of 19 (1291 views)
Permalink
Re: mysql not starting on boot [In reply to]

On 07/24/2010 03:38 AM, paul wrote:
> After the last update mysql is now not starting on boot, it has to be
> started manually, does anyone know how to fix this?
>
> MythTV Version : 25396
> MythTV Branch : branches/release-0-23-fixes
> Network Protocol : 23056
> Library API : 0.23.1.201000710-1
> QT Version : 4.6.2

Guess (which would be much easier if you mentioned/didn't trim the
distro name): you're using a distro that starts mysqld before networking
is initialized (likely due to an asynchronous upstart of an
initialization system and a race condition).

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


paul.bubbles at yahoo

Jul 24, 2010, 1:04 AM

Post #3 of 19 (1287 views)
Permalink
Re: mysql not starting on boot [In reply to]

Sorry Mythbuntu, both front end and back end are on the same machine so
I can't see networking being an issue. It does look like mysql may have
moved from init.d to upstart as part of the last update from some file
dates.

In the /etc/rc3.d and rc5.d folders I have:

S17mysql-ndb-mgm -> ../init.d/mysql-ndb-mgm
S18mysql-ndb -> ../init.d/mysql-ndb

but no ref to /etc/init./mysql

Paul

On 24/07/10 08:45, Michael T. Dean wrote:
> On 07/24/2010 03:38 AM, paul wrote:
>> After the last update mysql is now not starting on boot, it has to be
>> started manually, does anyone know how to fix this?
>>
>> MythTV Version : 25396
>> MythTV Branch : branches/release-0-23-fixes
>> Network Protocol : 23056
>> Library API : 0.23.1.201000710-1
>> QT Version : 4.6.2
>
> Guess (which would be much easier if you mentioned/didn't trim the
> distro name): you're using a distro that starts mysqld before
> networking is initialized (likely due to an asynchronous upstart of an
> initialization system and a race condition).
>
> Mike
> _______________________________________________
> 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


Douglas_Peale at comcast

Jul 24, 2010, 9:18 AM

Post #4 of 19 (1276 views)
Permalink
Re: mysql not starting on boot [In reply to]

On 07/24/2010 01:04 AM, paul wrote:
> Sorry Mythbuntu, both front end and back end are on the same machine so
> I can't see networking being an issue. It does look like mysql may have
> moved from init.d to upstart as part of the last update from some file
> dates.
>
> In the /etc/rc3.d and rc5.d folders I have:
>
> S17mysql-ndb-mgm -> ../init.d/mysql-ndb-mgm
> S18mysql-ndb -> ../init.d/mysql-ndb
>
> but no ref to /etc/init./mysql
>
> Paul
>
> On 24/07/10 08:45, Michael T. Dean wrote:
>> On 07/24/2010 03:38 AM, paul wrote:
>>> After the last update mysql is now not starting on boot, it has to be
>>> started manually, does anyone know how to fix this?
>>>
>>> MythTV Version : 25396
>>> MythTV Branch : branches/release-0-23-fixes
>>> Network Protocol : 23056
>>> Library API : 0.23.1.201000710-1
>>> QT Version : 4.6.2
>>
>> Guess (which would be much easier if you mentioned/didn't trim the
>> distro name): you're using a distro that starts mysqld before
>> networking is initialized (likely due to an asynchronous upstart of an
>> initialization system and a race condition).
>>
>> Mike
>> _______________________________________________

I may be having this problem as well (though I thought it was a username/password issue) I will check next boot to see if it is
running. I'm running Ubuntu 64 with mythbuntu 0.24 installed as a package. My system is setup to shutdown when idle, so this is
a real problem.

If it is an upstart issue, it may be related to this: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/554172
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


greg12866 at nycap

Jul 24, 2010, 10:19 AM

Post #5 of 19 (1273 views)
Permalink
Re: mysql not starting on boot [In reply to]

On 07/24/2010 12:18 PM, Douglas Peale wrote:
> On 07/24/2010 01:04 AM, paul wrote:
>
>> Sorry Mythbuntu, both front end and back end are on the same machine so
>> I can't see networking being an issue. It does look like mysql may have
>> moved from init.d to upstart as part of the last update from some file
>> dates.
>>
>> In the /etc/rc3.d and rc5.d folders I have:
>>
>> S17mysql-ndb-mgm -> ../init.d/mysql-ndb-mgm
>> S18mysql-ndb -> ../init.d/mysql-ndb
>>
>> but no ref to /etc/init./mysql
>>
>> Paul
>>
>> On 24/07/10 08:45, Michael T. Dean wrote:
>>
>>> On 07/24/2010 03:38 AM, paul wrote:
>>>
>>>> After the last update mysql is now not starting on boot, it has to be
>>>> started manually, does anyone know how to fix this?
>>>>
>>>> MythTV Version : 25396
>>>> MythTV Branch : branches/release-0-23-fixes
>>>> Network Protocol : 23056
>>>> Library API : 0.23.1.201000710-1
>>>> QT Version : 4.6.2
>>>>
>>> Guess (which would be much easier if you mentioned/didn't trim the
>>> distro name): you're using a distro that starts mysqld before
>>> networking is initialized (likely due to an asynchronous upstart of an
>>> initialization system and a race condition).
>>>
>>> Mike
>>> _______________________________________________
>>>
> I may be having this problem as well (though I thought it was a username/password issue) I will check next boot to see if it is
> running. I'm running Ubuntu 64 with mythbuntu 0.24 installed as a package. My system is setup to shutdown when idle, so this is
> a real problem.
>
> If it is an upstart issue, it may be related to this: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/554172
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>
I had the same problem..What id did is I start mythbackend by putting
the back end startup in System,Preferences,startup applications..This
way everything is started before the back end...I don't use upstart any
longer.. Maybe not too elegant,but it never fails to start...
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


lists at qucae

Jul 24, 2010, 10:23 AM

Post #6 of 19 (1266 views)
Permalink
Re: mysql not starting on boot [In reply to]

paul wrote:
> After the last update mysql is now not starting on boot, it has to be
> started manually, does anyone know how to fix this?
>

I was having a similar issue after upgrading Ubuntu a while back.
Changing the bind-address in my.cnf to "bind-address = 0.0.0.0" resolved
the problem for me. Previously I had it set to the machine's static ip
address.



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


Douglas_Peale at comcast

Jul 24, 2010, 10:35 AM

Post #7 of 19 (1264 views)
Permalink
Re: mysql not starting on boot [In reply to]

On 07/24/2010 10:19 AM, Greg wrote:
> On 07/24/2010 12:18 PM, Douglas Peale wrote:
>> On 07/24/2010 01:04 AM, paul wrote:
>>
>>> Sorry Mythbuntu, both front end and back end are on the same machine so
>>> I can't see networking being an issue. It does look like mysql may have
>>> moved from init.d to upstart as part of the last update from some file
>>> dates.
>>>
>>> In the /etc/rc3.d and rc5.d folders I have:
>>>
>>> S17mysql-ndb-mgm -> ../init.d/mysql-ndb-mgm
>>> S18mysql-ndb -> ../init.d/mysql-ndb
>>>
>>> but no ref to /etc/init./mysql
>>>
>>> Paul
>>>
>>> On 24/07/10 08:45, Michael T. Dean wrote:
>>>
>>>> On 07/24/2010 03:38 AM, paul wrote:
>>>>
>>>>> After the last update mysql is now not starting on boot, it has to be
>>>>> started manually, does anyone know how to fix this?
>>>>>
>>>>> MythTV Version : 25396
>>>>> MythTV Branch : branches/release-0-23-fixes
>>>>> Network Protocol : 23056
>>>>> Library API : 0.23.1.201000710-1
>>>>> QT Version : 4.6.2
>>>>>
>>>> Guess (which would be much easier if you mentioned/didn't trim the
>>>> distro name): you're using a distro that starts mysqld before
>>>> networking is initialized (likely due to an asynchronous upstart of an
>>>> initialization system and a race condition).
>>>>
>>>> Mike
>>>> _______________________________________________
>>>>
>> I may be having this problem as well (though I thought it was a
>> username/password issue) I will check next boot to see if it is
>> running. I'm running Ubuntu 64 with mythbuntu 0.24 installed as a
>> package. My system is setup to shutdown when idle, so this is
>> a real problem.
>>
>> If it is an upstart issue, it may be related to this:
>> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/554172
>>
>>
> I had the same problem..What id did is I start mythbackend by putting
> the back end startup in System,Preferences,startup applications..This
> way everything is started before the back end...I don't use upstart any
> longer.. Maybe not too elegant,but it never fails to start...


mysqld is definitely not started on boot. Has a bug report been filed on this yet?
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Douglas_Peale at comcast

Jul 24, 2010, 10:50 AM

Post #8 of 19 (1268 views)
Permalink
Re: mysql not starting on boot [In reply to]

On 07/24/2010 10:35 AM, Douglas Peale wrote:
> On 07/24/2010 10:19 AM, Greg wrote:
>> On 07/24/2010 12:18 PM, Douglas Peale wrote:
>>> On 07/24/2010 01:04 AM, paul wrote:
>>>
>>>> Sorry Mythbuntu, both front end and back end are on the same machine so
>>>> I can't see networking being an issue. It does look like mysql may have
>>>> moved from init.d to upstart as part of the last update from some file
>>>> dates.
>>>>
>>>> In the /etc/rc3.d and rc5.d folders I have:
>>>>
>>>> S17mysql-ndb-mgm -> ../init.d/mysql-ndb-mgm
>>>> S18mysql-ndb -> ../init.d/mysql-ndb
>>>>
>>>> but no ref to /etc/init./mysql
>>>>
>>>> Paul
>>>>
>>>> On 24/07/10 08:45, Michael T. Dean wrote:
>>>>
>>>>> On 07/24/2010 03:38 AM, paul wrote:
>>>>>
>>>>>> After the last update mysql is now not starting on boot, it has to be
>>>>>> started manually, does anyone know how to fix this?
>>>>>>
>>>>>> MythTV Version : 25396
>>>>>> MythTV Branch : branches/release-0-23-fixes
>>>>>> Network Protocol : 23056
>>>>>> Library API : 0.23.1.201000710-1
>>>>>> QT Version : 4.6.2
>>>>>>
>>>>> Guess (which would be much easier if you mentioned/didn't trim the
>>>>> distro name): you're using a distro that starts mysqld before
>>>>> networking is initialized (likely due to an asynchronous upstart of an
>>>>> initialization system and a race condition).
>>>>>
>>>>> Mike
>>>>> _______________________________________________
>>>>>
>>> I may be having this problem as well (though I thought it was a
>>> username/password issue) I will check next boot to see if it is
>>> running. I'm running Ubuntu 64 with mythbuntu 0.24 installed as a
>>> package. My system is setup to shutdown when idle, so this is
>>> a real problem.
>>>
>>> If it is an upstart issue, it may be related to this:
>>> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/554172
>>>
>>>
>> I had the same problem..What id did is I start mythbackend by putting
>> the back end startup in System,Preferences,startup applications..This
>> way everything is started before the back end...I don't use upstart any
>> longer.. Maybe not too elegant,but it never fails to start...
>
>
> mysqld is definitely not started on boot. Has a bug report been filed on this yet?

I did not find one, so I opened a bug, it is Bug #609543.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mwmcmlln at mnsi

Jul 24, 2010, 1:35 PM

Post #9 of 19 (1266 views)
Permalink
Re: mysql not starting on boot [In reply to]

On Sat, 2010-07-24 at 08:38 +0100, paul wrote:
> After the last update mysql is now not starting on boot, it has to be
> started manually, does anyone know how to fix this?
>
> MythTV Version : 25396
> MythTV Branch : branches/release-0-23-fixes
> Network Protocol : 23056
> Library API : 0.23.1.201000710-1
> QT Version : 4.6.2

Which distro?

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


Douglas_Peale at comcast

Jul 24, 2010, 7:08 PM

Post #10 of 19 (1252 views)
Permalink
Re: mysql not starting on boot [In reply to]

On 07/24/2010 12:38 AM, paul wrote:
> After the last update mysql is now not starting on boot, it has to be
> started manually, does anyone know how to fix this?
>
I'm suffering the same issue. What command are you using to start mysql?

I'm using "sudo dpkg-reconfigure mythtv-database" but I'm sure that is not what I should be using.

I tried "sudo mysqld start" but that did not work.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


paul.bubbles at yahoo

Jul 25, 2010, 3:59 AM

Post #11 of 19 (1227 views)
Permalink
Re: mysql not starting on boot [In reply to]

On 25/07/10 03:08, Douglas Peale wrote:
> On 07/24/2010 12:38 AM, paul wrote:
>
>> After the last update mysql is now not starting on boot, it has to be
>> started manually, does anyone know how to fix this?
>>
>>
> I'm suffering the same issue. What command are you using to start mysql?
>
> I'm using "sudo dpkg-reconfigure mythtv-database" but I'm sure that is not what I should be using.
>
> I tried "sudo mysqld start" but that did not work.
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>
As it is now an upstart service you use:

sudo service mysql start

Thanks for reporting it as a bug, I wasn't sure if you was specific to
my set up or not.

Paul


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


paul.bubbles at yahoo

Jul 25, 2010, 4:01 AM

Post #12 of 19 (1229 views)
Permalink
Re: mysql not starting on boot [In reply to]

On 24/07/10 21:35, Mike McMullin wrote:
> On Sat, 2010-07-24 at 08:38 +0100, paul wrote:
>
>> After the last update mysql is now not starting on boot, it has to be
>> started manually, does anyone know how to fix this?
>>
>> MythTV Version : 25396
>> MythTV Branch : branches/release-0-23-fixes
>> Network Protocol : 23056
>> Library API : 0.23.1.201000710-1
>> QT Version : 4.6.2
>>
> Which distro?
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>
mythbuntu (I'll try and remember to include this in the future), it is
some sort of upstart issue, time for me to read up on upstart, I have
been putting it off for too long......

Paul


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


Douglas_Peale at comcast

Jul 26, 2010, 11:51 AM

Post #13 of 19 (1152 views)
Permalink
Re: mysql not starting on boot [In reply to]

On 07/25/2010 03:59 AM, paul wrote:
> On 25/07/10 03:08, Douglas Peale wrote:
>> On 07/24/2010 12:38 AM, paul wrote:
>>
>>> After the last update mysql is now not starting on boot, it has to be
>>> started manually, does anyone know how to fix this?
>>>
>>>
>> I'm suffering the same issue. What command are you using to start mysql?
>>
>> I'm using "sudo dpkg-reconfigure mythtv-database" but I'm sure that is
>> not what I should be using.
>>
>> I tried "sudo mysqld start" but that did not work.
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users [at] mythtv
>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>
>>
> As it is now an upstart service you use:
>
> sudo service mysql start
>
> Thanks for reporting it as a bug, I wasn't sure if you was specific to
> my set up or not.
>
> Paul
>
My bug report has been marked as a duplicate of Bug #608423
This bug claims to have a fix, but I do not understand how one would apply it.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


paul.bubbles at yahoo

Jul 26, 2010, 12:20 PM

Post #14 of 19 (1149 views)
Permalink
Re: mysql not starting on boot [In reply to]

On 26/07/10 19:51, Douglas Peale wrote:
> On 07/25/2010 03:59 AM, paul wrote:
>
>> On 25/07/10 03:08, Douglas Peale wrote:
>>
>>> On 07/24/2010 12:38 AM, paul wrote:
>>>
>>>
>>>> After the last update mysql is now not starting on boot, it has to be
>>>> started manually, does anyone know how to fix this?
>>>>
>>>>
>>>>
>>> I'm suffering the same issue. What command are you using to start mysql?
>>>
>>> I'm using "sudo dpkg-reconfigure mythtv-database" but I'm sure that is
>>> not what I should be using.
>>>
>>> I tried "sudo mysqld start" but that did not work.
>>> _______________________________________________
>>> mythtv-users mailing list
>>> mythtv-users [at] mythtv
>>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>>
>>>
>>>
>> As it is now an upstart service you use:
>>
>> sudo service mysql start
>>
>> Thanks for reporting it as a bug, I wasn't sure if you was specific to
>> my set up or not.
>>
>> Paul
>>
>>
> My bug report has been marked as a duplicate of Bug #608423
> This bug claims to have a fix, but I do not understand how one would apply it.
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>

The fix appears to be to get mythtv-backed to wait until mysql has
started.... as mysql will never start neither will myth-backend. This
bug does not look the same to me.

I have tried "net-device-up IFACE=lo" and "net-device-up IFACE=ath0"
in the /etc/init/mysql.conf file and neither works for my setup.

diff -uNr mythtv-0.23.0+fixes25396.old/debian/mythtv-backend.upstart mythtv-0.23.0+fixes25396/debian/mythtv-backend.upstart
--- mythtv-0.23.0+fixes25396.old/debian/mythtv-backend.upstart 2010-07-20 19:02:49.000000000 -0400
+++ mythtv-0.23.0+fixes25396/debian/mythtv-backend.upstart 2010-07-24 02:23:02.836117249 -0400
@@ -3,8 +3,10 @@
description "MythTV Backend"
author "Mario Limonciello<superm1 [at] ubuntu>"

-start on (local-filesystems and net-device-up IFACE=lo and started udev-finish)
-stop on starting shutdown
+start on (local-filesystems and net-device-up IFACE=lo and started udev-finish
+ and started mysql)
+stop on (starting shutdown
+ or stopping mysql)

#expect fork
respawn



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


paul.bubbles at yahoo

Jul 27, 2010, 9:46 AM

Post #15 of 19 (1123 views)
Permalink
Re: mysql not starting on boot [In reply to]

On 26/07/10 20:20, paul wrote:
> On 26/07/10 19:51, Douglas Peale wrote:
>> On 07/25/2010 03:59 AM, paul wrote:
>>> On 25/07/10 03:08, Douglas Peale wrote:
>>>> On 07/24/2010 12:38 AM, paul wrote:
>>>>
>>>>> After the last update mysql is now not starting on boot, it has to be
>>>>> started manually, does anyone know how to fix this?
>>>>>
>>>>>
>>>> I'm suffering the same issue. What command are you using to start
>>>> mysql?
>>>>
>>>> I'm using "sudo dpkg-reconfigure mythtv-database" but I'm sure that is
>>>> not what I should be using.
>>>>
>>>> I tried "sudo mysqld start" but that did not work.
>>>> _______________________________________________
>>>> mythtv-users mailing list
>>>> mythtv-users [at] mythtv
>>>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>>>
>>>>
>>> As it is now an upstart service you use:
>>>
>>> sudo service mysql start
>>>
>>> Thanks for reporting it as a bug, I wasn't sure if you was specific to
>>> my set up or not.
>>>
>>> Paul
>>>
>> My bug report has been marked as a duplicate of Bug #608423
>> This bug claims to have a fix, but I do not understand how one would
>> apply it.
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users [at] mythtv
>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>
>
> The fix appears to be to get mythtv-backed to wait until mysql has
> started.... as mysql will never start neither will myth-backend. This
> bug does not look the same to me.
>
> I have tried "net-device-up IFACE=lo" and "net-device-up IFACE=ath0"
> in the /etc/init/mysql.conf file and neither works for my setup.
>
> diff -uNr mythtv-0.23.0+fixes25396.old/debian/mythtv-backend.upstart
> mythtv-0.23.0+fixes25396/debian/mythtv-backend.upstart
> --- mythtv-0.23.0+fixes25396.old/debian/mythtv-backend.upstart
> 2010-07-20 19:02:49.000000000 -0400
> +++ mythtv-0.23.0+fixes25396/debian/mythtv-backend.upstart
> 2010-07-24 02:23:02.836117249 -0400
> @@ -3,8 +3,10 @@
> description "MythTV Backend"
> author "Mario Limonciello<superm1 [at] ubuntu>"
>
> -start on (local-filesystems and net-device-up IFACE=lo and started
> udev-finish)
> -stop on starting shutdown
> +start on (local-filesystems and net-device-up IFACE=lo and started
> udev-finish
> + and started mysql)
> +stop on (starting shutdown
> + or stopping mysql)
>
> #expect fork
> respawn
>
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
As suggested by Douglas Peale the solution is at the bottom of this bug
https://bugs.launchpad.net/ubuntu/+source/mysql-dfsg-5.1/+bug/608423,

The amended /etc/init/mysql.conf is as follows (in full), obviously back
up the original before trying this version but it has successfully
started mysql for me bear in mind that I applied the modifications
suggested in the diff in the 608423 bug report to my existing file:

Paul

# MySQL Service

description "MySQL Server"
author "Mario Limonciello <superm1 [at] ubuntu>"

start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [016]

respawn

env HOME=/etc/mysql
umask 007

pre-start script
#Sanity checks
[ -r $HOME/my.cnf ]
[ -d /var/run/mysqld ] || install -m 755 -o mysql -g root -d
/var/run/mysqld
# Load AppArmor profile
if aa-status --enabled 2>/dev/null; then
apparmor_parser -r /etc/apparmor.d/usr.sbin.mysqld || true
fi
LC_ALL=C BLOCKSIZE= df --portability /var/lib/mysql/. | tail -n 1 |
awk '{ exit ($4<4096) }'
end script

exec /usr/sbin/mysqld

post-start script
for i in `seq 1 30` ; do
/usr/bin/mysqladmin --defaults-file="$HOME"/debian.cnf ping && {
exec "$HOME"/debian-start
#Should not reach this line
exit 2
}
sleep 1
done
echo "timeout waiting for mysqld" >&2
exit 1
end script



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


Douglas_Peale at comcast

Jul 27, 2010, 11:15 AM

Post #16 of 19 (1117 views)
Permalink
Re: mysql not starting on boot [In reply to]

On 07/27/2010 09:46 AM, paul wrote:
> On 26/07/10 20:20, paul wrote:
>> On 26/07/10 19:51, Douglas Peale wrote:
>>> On 07/25/2010 03:59 AM, paul wrote:
>>>> On 25/07/10 03:08, Douglas Peale wrote:
>>>>> On 07/24/2010 12:38 AM, paul wrote:
>>>>>
>>>>>> After the last update mysql is now not starting on boot, it has to be
>>>>>> started manually, does anyone know how to fix this?
>>>>>>
>>>>>>
>>>>> I'm suffering the same issue. What command are you using to start
>>>>> mysql?
>>>>>
>>>>> I'm using "sudo dpkg-reconfigure mythtv-database" but I'm sure that is
>>>>> not what I should be using.
>>>>>
>>>>> I tried "sudo mysqld start" but that did not work.
>>>>> _______________________________________________
>>>>> mythtv-users mailing list
>>>>> mythtv-users [at] mythtv
>>>>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>>>>
>>>>>
>>>> As it is now an upstart service you use:
>>>>
>>>> sudo service mysql start
>>>>
>>>> Thanks for reporting it as a bug, I wasn't sure if you was specific to
>>>> my set up or not.
>>>>
>>>> Paul
>>>>
>>> My bug report has been marked as a duplicate of Bug #608423
>>> This bug claims to have a fix, but I do not understand how one would
>>> apply it.
>>> _______________________________________________
>>> mythtv-users mailing list
>>> mythtv-users [at] mythtv
>>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>>
>>
>> The fix appears to be to get mythtv-backed to wait until mysql has
>> started.... as mysql will never start neither will myth-backend. This
>> bug does not look the same to me.
>>
>> I have tried "net-device-up IFACE=lo" and "net-device-up IFACE=ath0"
>> in the /etc/init/mysql.conf file and neither works for my setup.
>>
>> diff -uNr mythtv-0.23.0+fixes25396.old/debian/mythtv-backend.upstart
>> mythtv-0.23.0+fixes25396/debian/mythtv-backend.upstart
>> --- mythtv-0.23.0+fixes25396.old/debian/mythtv-backend.upstart
>> 2010-07-20 19:02:49.000000000 -0400
>> +++ mythtv-0.23.0+fixes25396/debian/mythtv-backend.upstart
>> 2010-07-24 02:23:02.836117249 -0400
>> @@ -3,8 +3,10 @@
>> description "MythTV Backend"
>> author "Mario Limonciello<superm1 [at] ubuntu>"
>>
>> -start on (local-filesystems and net-device-up IFACE=lo and started
>> udev-finish)
>> -stop on starting shutdown
>> +start on (local-filesystems and net-device-up IFACE=lo and started
>> udev-finish
>> + and started mysql)
>> +stop on (starting shutdown
>> + or stopping mysql)
>>
>> #expect fork
>> respawn
>>
>>
>>
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users [at] mythtv
>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>
> As suggested by Douglas Peale the solution is at the bottom of this bug
> https://bugs.launchpad.net/ubuntu/+source/mysql-dfsg-5.1/+bug/608423,
>
> The amended /etc/init/mysql.conf is as follows (in full), obviously back
> up the original before trying this version but it has successfully
> started mysql for me bear in mind that I applied the modifications
> suggested in the diff in the 608423 bug report to my existing file:
>
> Paul
>
> # MySQL Service
>
> description "MySQL Server"
> author "Mario Limonciello <superm1 [at] ubuntu>"
>
> start on (net-device-up
> and local-filesystems
> and runlevel [2345])
> stop on runlevel [016]
>
> respawn
>
> env HOME=/etc/mysql
> umask 007
>
> pre-start script
> #Sanity checks
> [ -r $HOME/my.cnf ]
> [ -d /var/run/mysqld ] || install -m 755 -o mysql -g root -d
> /var/run/mysqld
> # Load AppArmor profile
> if aa-status --enabled 2>/dev/null; then
> apparmor_parser -r /etc/apparmor.d/usr.sbin.mysqld || true
> fi
> LC_ALL=C BLOCKSIZE= df --portability /var/lib/mysql/. | tail -n 1 |
> awk '{ exit ($4<4096) }'
> end script
>
> exec /usr/sbin/mysqld
>
> post-start script
> for i in `seq 1 30` ; do
> /usr/bin/mysqladmin --defaults-file="$HOME"/debian.cnf ping && {
> exec "$HOME"/debian-start
> #Should not reach this line
> exit 2
> }
> sleep 1
> done
> echo "timeout waiting for mysqld" >&2
> exit 1
> end script
>
>
>

Thank you for including the entire file. I was unable to figure out how to implement the fix via the bug report page. This I was
able to implement, and yes it does work.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Douglas_Peale at comcast

Jul 29, 2010, 11:32 AM

Post #17 of 19 (1059 views)
Permalink
Re: mysql not starting on boot [In reply to]

On 07/27/2010 11:15 AM, Douglas Peale wrote:
> On 07/27/2010 09:46 AM, paul wrote:
>> On 26/07/10 20:20, paul wrote:
>>> On 26/07/10 19:51, Douglas Peale wrote:
>>>> On 07/25/2010 03:59 AM, paul wrote:
>>>>> On 25/07/10 03:08, Douglas Peale wrote:
>>>>>> On 07/24/2010 12:38 AM, paul wrote:
>>>>>>
>>>>>>> After the last update mysql is now not starting on boot, it has to be
>>>>>>> started manually, does anyone know how to fix this?
>>>>>>>
>>>>>>>
>>>>>> I'm suffering the same issue. What command are you using to start
>>>>>> mysql?
>>>>>>
>>>>>> I'm using "sudo dpkg-reconfigure mythtv-database" but I'm sure that is
>>>>>> not what I should be using.
>>>>>>
>>>>>> I tried "sudo mysqld start" but that did not work.
>>>>>> _______________________________________________
>>>>>> mythtv-users mailing list
>>>>>> mythtv-users [at] mythtv
>>>>>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>>>>>
>>>>>>
>>>>> As it is now an upstart service you use:
>>>>>
>>>>> sudo service mysql start
>>>>>
>>>>> Thanks for reporting it as a bug, I wasn't sure if you was specific to
>>>>> my set up or not.
>>>>>
>>>>> Paul
>>>>>
>>>> My bug report has been marked as a duplicate of Bug #608423
>>>> This bug claims to have a fix, but I do not understand how one would
>>>> apply it.
>>>> _______________________________________________
>>>> mythtv-users mailing list
>>>> mythtv-users [at] mythtv
>>>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>>>
>>>
>>> The fix appears to be to get mythtv-backed to wait until mysql has
>>> started.... as mysql will never start neither will myth-backend. This
>>> bug does not look the same to me.
>>>
>>> I have tried "net-device-up IFACE=lo" and "net-device-up IFACE=ath0"
>>> in the /etc/init/mysql.conf file and neither works for my setup.
>>>
>>> diff -uNr mythtv-0.23.0+fixes25396.old/debian/mythtv-backend.upstart
>>> mythtv-0.23.0+fixes25396/debian/mythtv-backend.upstart
>>> --- mythtv-0.23.0+fixes25396.old/debian/mythtv-backend.upstart
>>> 2010-07-20 19:02:49.000000000 -0400
>>> +++ mythtv-0.23.0+fixes25396/debian/mythtv-backend.upstart
>>> 2010-07-24 02:23:02.836117249 -0400
>>> @@ -3,8 +3,10 @@
>>> description "MythTV Backend"
>>> author "Mario Limonciello<superm1 [at] ubuntu>"
>>>
>>> -start on (local-filesystems and net-device-up IFACE=lo and started
>>> udev-finish)
>>> -stop on starting shutdown
>>> +start on (local-filesystems and net-device-up IFACE=lo and started
>>> udev-finish
>>> + and started mysql)
>>> +stop on (starting shutdown
>>> + or stopping mysql)
>>>
>>> #expect fork
>>> respawn
>>>
>>>
>>>
>>> _______________________________________________
>>> mythtv-users mailing list
>>> mythtv-users [at] mythtv
>>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>>
>> As suggested by Douglas Peale the solution is at the bottom of this bug
>> https://bugs.launchpad.net/ubuntu/+source/mysql-dfsg-5.1/+bug/608423,
>>
>> The amended /etc/init/mysql.conf is as follows (in full), obviously back
>> up the original before trying this version but it has successfully
>> started mysql for me bear in mind that I applied the modifications
>> suggested in the diff in the 608423 bug report to my existing file:
>>
>> Paul
>>
>> # MySQL Service
>>
>> description "MySQL Server"
>> author "Mario Limonciello <superm1 [at] ubuntu>"
>>
>> start on (net-device-up
>> and local-filesystems
>> and runlevel [2345])
>> stop on runlevel [016]
>>
>> respawn
>>
>> env HOME=/etc/mysql
>> umask 007
>>
>> pre-start script
>> #Sanity checks
>> [ -r $HOME/my.cnf ]
>> [ -d /var/run/mysqld ] || install -m 755 -o mysql -g root -d
>> /var/run/mysqld
>> # Load AppArmor profile
>> if aa-status --enabled 2>/dev/null; then
>> apparmor_parser -r /etc/apparmor.d/usr.sbin.mysqld || true
>> fi
>> LC_ALL=C BLOCKSIZE= df --portability /var/lib/mysql/. | tail -n 1 |
>> awk '{ exit ($4<4096) }'
>> end script
>>
>> exec /usr/sbin/mysqld
>>
>> post-start script
>> for i in `seq 1 30` ; do
>> /usr/bin/mysqladmin --defaults-file="$HOME"/debian.cnf ping && {
>> exec "$HOME"/debian-start
>> #Should not reach this line
>> exit 2
>> }
>> sleep 1
>> done
>> echo "timeout waiting for mysqld" >&2
>> exit 1
>> end script
>>
>>
>>
>
> Thank you for including the entire file. I was unable to figure out how to implement the fix via the bug report page. This I was
> able to implement, and yes it does work.

The latest update via the proposed builds broke mysql again, I'm going to change back to the above script.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


adrinux at gmail

Jul 29, 2010, 4:09 PM

Post #18 of 19 (1042 views)
Permalink
Re: mysql not starting on boot [In reply to]

On 24 July 2010 08:38, paul <paul.bubbles [at] yahoo> wrote:
> After the last update mysql is now not starting on boot, it has to be
> started manually, does anyone know how to fix this?
I had this issue in mythbuntu too, took me a while to find the right
bug report, but it's a really trivial one space fix:

Here's the issue, answer is in comment #6:
https://bugs.launchpad.net/ubuntu/+source/mysql-5.1/+bug/598476

Quote:
/etc/init/mysql.conf.

Line 8 says: and runlevel[2345])
but should be: and runlevel [2345])
with a space separating runlevel from [2345].

HTH

--
Adrian Simmons | http://perlucida.com
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Douglas_Peale at comcast

Jul 29, 2010, 10:43 PM

Post #19 of 19 (1028 views)
Permalink
Re: mysql not starting on boot [In reply to]

On 07/29/2010 11:32 AM, Douglas Peale wrote:
> On 07/27/2010 11:15 AM, Douglas Peale wrote:


>> Thank you for including the entire file. I was unable to figure out how to implement the fix via the bug report page. This I was
>> able to implement, and yes it does work.
>
> The latest update via the proposed builds broke mysql again, I'm going to change back to the above script.

Yet another update in proposed builds today, this one works.
_______________________________________________
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.