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