/srv/irclogs.ubuntu.com/2010/12/30/#ubuntu-mythtv.txt

ComradeHaz`Hi guys, how do I set my mythbackend database to accept connections from other frontends?11:47
ComradeHaz`OK, found it in mybuntu control center but when I check the appropriate box and press apply for the dialog that appears when I press apply, the control center crashes.12:01
ComradeHaz`http://pastebin.com/LHK15UJF12:15
Zinn[pastebin.com] tom@ares:~$ sudo mythbuntu-control-centre [sudo]12:15
ComradeHaz`I first tried running as 'me' and then as root, same thing happens.12:16
ComradeHaz`So I have now tried to configure the database manually as per http://www.mythtv.org/docs/mythtv-HOWTO-6.html but while being sure I have done all it suggests I still cannot access it13:30
Zinn[www.mythtv.org] MythTV, Open Source DVR13:30
patdk-wkComradeHaz`, note second paragraph from the bottom13:32
ComradeHaz`patdk-wk: noted. Done.13:33
patdk-wknetstat -atnp | grep mysql, shows what?13:33
ComradeHaz`tom@ares:~$ netstat -atnp | grep mysql13:34
ComradeHaz`(Not all processes could be identified, non-owned process info13:34
ComradeHaz` will not be shown, you would have to be root to see it all.)13:34
patdk-wkheh, guess you not root13:35
patdk-wksudo netstat -atnp | grep mysql, shows what?13:35
ComradeHaz`tcp        0      0 10.0.0.6:3306           0.0.0.0:*               LISTEN      2779/mysqld13:35
ComradeHaz`Sorry, stupid13:35
patdk-wkyour telling your frontend to access it via 10.0.0.6 for mysql?13:35
ComradeHaz`Correct.13:35
patdk-wkany firewall configured?13:35
ComradeHaz`No.13:35
patdk-wksudo iptables -L -nv, is blank?13:36
ComradeHaz`Not blank, but looks uninteresting.13:36
patdk-wkwell, should only be like 3 lines of stuff13:37
patdk-wkor was it 6, forget13:37
ComradeHaz`3 pairs.13:37
ComradeHaz`INPUT, FORWARD, OUTPUT13:37
patdk-wkhmm13:37
ComradeHaz`indeed, 'tis most odd.13:38
ComradeHaz`The my.cnf config file mentions machines running apparmor may need to mess with another file13:39
ComradeHaz`I've looked at the file it mentions, it doesn't seem to be the sort of thing that's applicable13:40
patdk-wkdunno, I don't use apparmor13:40
ComradeHaz`I believe it is standard on mythbuntu installs13:40
patdk-wkapparmor is standard on ubuntu installs13:40
ComradeHaz`well, I installed mythbuntu and I have it13:41
ComradeHaz`and have certainly not added it myself13:41
ComradeHaz`but as I say, I really don't think the issue lays with that13:41
ComradeHaz`skip-external-locking13:42
ComradeHaz`#13:42
ComradeHaz`# Instead of skip-networking the default is now to listen only on13:42
ComradeHaz`# localhost which is more compatible and is not less secure.13:42
ComradeHaz`bind-address            = 10.0.0.613:42
patdk-wkoh ya heh, /etc/hosts.allow13:42
ComradeHaz`That of any interest?13:42
patdk-wksomeone had this issue yesterday, and hosts.allow was blocking it13:42
patdk-wkmysql on my machine doesn't use hosts.allow :)13:42
ComradeHaz`Oh?13:43
ComradeHaz`man hosts_allow13:44
ComradeHaz`gah13:44
patdk-wkmysqld: ALL: ALL13:44
patdk-wkprobably13:44
patdk-wkthen restart mysql13:44
ComradeHaz`Seems not13:45
ComradeHaz`grr, this is hellish frustrating13:54
patdk-wkwell, worst case14:03
ComradeHaz`Google is NOT being my friend :/14:04
patdk-wkrun tcpdump -n port 330614:04
patdk-wkon your mysql machine14:04
patdk-wkand see if the frontend every attempts to connect or not14:04
patdk-wkor look at the frontend logs and see what it says is the error messages14:04
ComradeHaz`Hmm, looks like Access denied14:06
ComradeHaz`% mysql -h 10.0.0.6 -u mythtv -p14:06
ComradeHaz`Enter password:14:06
ComradeHaz`ERROR 1045 (28000): Access denied for user 'mythtv'@'10.0.0.1' (using password: YES)14:06
patdk-wkthat would be a mysql user error then, a grant issue14:06
ComradeHaz`Hmm? Meaning what?14:07
patdk-wkthat page you posted14:07
patdk-wkthose grant/flush lines14:07
ComradeHaz`Yer?14:07
patdk-wkgrant all on mythconverg.* to mythtv@"10.%" identified by "mythtv_user_password"; flush privileges;14:07
ComradeHaz`still not working.14:11
ComradeHaz`or do you mean I should specify the password there?14:11
patdk-wkyou should put the password you are using there14:14
ComradeHaz`If I put in the hosts allow file what you suggested, I get ERROR 1045 (28000): Access denied for user 'mythtv'@'10.0.0.1' (using password: YES)14:18
ComradeHaz`Incorrect, Sorry.14:19
ComradeHaz`If I put in the hosts allow file what you suggested, I get: "ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0"14:19
ComradeHaz`If I put "ALL: 10.0.0.1" (my clients IP) I get "ERROR 1045 (28000): Access denied for user 'mythtv'@'10.0.0.1' (using password: YES)" whatever I specify as the 'identified by' value14:20
ComradeHaz`So I am inclined to think leaving in hosts.allow "ALL: 10.0.0.1" and concentrate on the value for identified by14:21
ComradeHaz`OK14:26
ComradeHaz`All on local machine:14:26
ComradeHaz`tom@ares:~$ mysql -u mythtv -p WORKS14:27
ComradeHaz`tom@ares:~$ mysql -h 10.0.0.6 -u mythtv -p DOESN'T WORK14:27
patdk-wkhosts allow again :)14:27
ComradeHaz`tom@ares:~$ mysql -h localhost -u mythtv -p WORKS14:27
patdk-wkALL: 10.0.0.614:28
ComradeHaz`Ah.14:28
ComradeHaz`Situations still as above.14:29
ComradeHaz`Meh, I really need to stop playing with this now.14:31
ComradeHaz`If you have any brilliant ideas let me know!14:31
ComradeHaz`Thanks for your help so far! :)14:32
patdk-wkheh14:33
patdk-wkI dunno, I am so used to doing things manually14:34
patdk-wkand mysql is one of those things I take out of ubuntu control and into my own14:34
=== hpeter_ is now known as hpeter

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!