1 |
On Thu, 2006-10-05 at 14:39 -0500, Michael Sullivan wrote: |
2 |
> On Thu, 2006-10-05 at 14:10 -0500, Michael Sullivan wrote: |
3 |
> > My mythbackend is screwing up. I called /usr/bin/mythbackend directly |
4 |
> > so that I could see what exactly the problem is. It gave me this: |
5 |
> > |
6 |
> > camille ~ # mythbackend |
7 |
> > 2006-10-05 14:08:36.085 Using runtime prefix = /usr |
8 |
> > 2006-10-05 14:08:36.120 New DB connection, total: 1 |
9 |
> > 2006-10-05 14:08:36.127 Connected to database 'mythconverg' at host: |
10 |
> > localhost |
11 |
> > 2006-10-05 14:08:36.139 Current Schema Version: 1123 |
12 |
> > Running as a slave backend. |
13 |
> > 2006-10-05 14:08:36.153 New DB connection, total: 2 |
14 |
> > 2006-10-05 14:08:36.154 Connected to database 'mythconverg' at host: |
15 |
> > localhost |
16 |
> > 2006-10-05 14:08:36.156 mythbackend: MythBackend started as a slave |
17 |
> > backend |
18 |
> > 2006-10-05 14:08:36.173 New DB connection, total: 3 |
19 |
> > 2006-10-05 14:08:36.174 Connected to database 'mythconverg' at host: |
20 |
> > localhost |
21 |
> > 2006-10-05 14:08:36.241 mythbackend version: 0.19.20060121-2 |
22 |
> > www.mythtv.org |
23 |
> > 2006-10-05 14:08:36.241 Enabled verbose msgs: important general |
24 |
> > 2006-10-05 14:08:36.242 AutoExpire: Found 1 recorders w/max rate of 72 |
25 |
> > MiB/min |
26 |
> > 2006-10-05 14:08:36.244 AutoExpire: Required Free Space: 1.1 GB w/freq: |
27 |
> > 10 min |
28 |
> > QServerSocket: failed to bind or listen to the socket |
29 |
> > 2006-10-05 14:08:36.247 Failed to bind port 6543. Exiting. |
30 |
> > |
31 |
> > |
32 |
> > I tried it with and without the firewall running and I got the same |
33 |
> > results. Why can't it bind to the port? |
34 |
> > |
35 |
> |
36 |
> I think I might have discovered one reason why mythbackend was screwing |
37 |
> up. I rebooted my machine and tried mythbackend again after rebooting: |
38 |
> |
39 |
> camille ~ # mythbackend |
40 |
> 2006-10-05 14:36:41.431 Using runtime prefix = /usr |
41 |
> 2006-10-05 14:36:41.573 New DB connection, total: 1 |
42 |
> 2006-10-05 14:36:41.574 Unable to connect to database! |
43 |
> 2006-10-05 14:36:41.574 Driver error was [1/2002]: |
44 |
> QMYSQL3: Unable to connect |
45 |
> Database error was: |
46 |
> Can't connect to local MySQL server through socket |
47 |
> '/var/run/mysqld/mysqld.sock' (2) |
48 |
> |
49 |
> QSqlQuery::exec: database not open |
50 |
> QSqlQuery::exec: database not open |
51 |
> 2006-10-05 14:36:41.633 DB Error (KickDatabase): |
52 |
> Query was: |
53 |
> SELECT NULL; |
54 |
> No error type from QSqlError? Strange... |
55 |
> 2006-10-05 14:36:41.688 Failed to init MythContext, exiting. |
56 |
> |
57 |
> So I tried mysql: |
58 |
> |
59 |
> camille ~ # /etc/init.d/mysql start |
60 |
> * ... |
61 |
> * Starting mysql (/etc/mysql/my.cnf) |
62 |
> * MySQL NOT started (0) |
63 |
> [ !! ] |
64 |
> |
65 |
> I looked for logs: |
66 |
> |
67 |
> camille ~ # ls /var/log/mysql |
68 |
> camille ~ # |
69 |
> |
70 |
> camille ~ # cat /var/log/messages | grep 'mysql' |
71 |
> Jun 16 08:43:44 camille groupadd[27649]: new group: name=mysql, gid=60 |
72 |
> Jun 16 08:43:44 camille useradd[27713]: new user: name=mysql, uid=60, |
73 |
> gid=60, home=/dev/null, shell=/bin/false |
74 |
> Jun 18 17:01:18 camille rc-scripts: Strange, the socket file already |
75 |
> exist in "/var/run/mysqld/mysqld.sock" |
76 |
> Jun 18 17:08:13 camille rc-scripts: Strange, the socket file already |
77 |
> exist in "/var/run/mysqld/mysqld.sock" |
78 |
> Jun 19 16:15:21 camille rc-scripts: Strange, the socket file already |
79 |
> exist in "/var/run/mysqld/mysqld.sock" |
80 |
> Jun 20 14:23:09 camille rc-scripts: Strange, the socket file already |
81 |
> exist in "/var/run/mysqld/mysqld.sock" |
82 |
> Jun 25 20:29:49 camille rc-scripts: Strange, the socket file already |
83 |
> exist in "/var/run/mysqld/mysqld.sock" |
84 |
> Jul 10 13:52:29 camille rc-scripts: Strange, the socket file already |
85 |
> exist in "/var/run/mysqld/mysqld.sock" |
86 |
> Jul 20 11:26:56 camille rc-scripts: Strange, the socket file already |
87 |
> exist in "/var/run/mysqld/mysqld.sock" |
88 |
> Jul 27 08:55:43 camille rc-scripts: Strange, the socket file already |
89 |
> exist in "/var/run/mysqld/mysqld.sock" |
90 |
> Aug 3 17:50:25 camille rc-scripts: Strange, the socket file already |
91 |
> exist in "/var/run/mysqld/mysqld.sock" |
92 |
> Aug 8 19:07:39 camille rc-scripts: Strange, the socket file already |
93 |
> exist in "/var/run/mysqld/mysqld.sock" |
94 |
> Aug 26 21:36:41 camille rc-scripts: Strange, the socket file already |
95 |
> exist in "/var/run/mysqld/mysqld.sock" |
96 |
> Sep 8 23:02:08 camille usermod[24305]: delete `mythtv' from group |
97 |
> `mysql' |
98 |
> Sep 8 23:02:09 camille usermod[24305]: delete `mythtv' from shadow |
99 |
> group `mysql' |
100 |
> Sep 15 17:46:20 camille rc-scripts: Strange, the socket file already |
101 |
> exist in "/var/run/mysqld/mysqld.sock" |
102 |
> Oct 2 13:13:00 camille rc-scripts: Strange, the socket file already |
103 |
> exist in "/var/run/mysqld/mysqld.sock" |
104 |
> camille ~ # |
105 |
> |
106 |
> I can't find any logs as to why mysql won't start. I can't make sense |
107 |
> of the /etc/init.d/mysql script. Can anyone give me a hint as to why |
108 |
> mysql is not starting? |
109 |
> |
110 |
|
111 |
The mysql problem was because I forgot to update my bind-address in |
112 |
my.cnf. Myth is working now... |
113 |
|
114 |
-- |
115 |
gentoo-user@g.o mailing list |