Страница 1 из 1
NAS: 3 SQL error MySQL server has gone away
Добавлено: Пт июл 11, 2008 8:04 am
Azudim
Подскажите, что может означать такая запись в логе Abills?
Код: Выделить всё
LOG_WARNING: AUTH [taras] NAS: 3 SQL error MySQL server has gone away CID: 0:4:23:11:3d:41
FreeBSD 7.0
Abills 040b
FreeRadius 1.1.7
PPPoE
Добавлено: Пт июл 11, 2008 9:34 am
vlad
нет такого пользователя "taras"
Добавлено: Пт июл 11, 2008 1:06 pm
~AsmodeuS~
не может подключиться к майскл, если стоит рлм перл сбросило и не подключается повторно
Добавлено: Пт июл 11, 2008 3:08 pm
chtito2
Отключите таймаут на неактивность. В /etc/my.cnf в раздел [mysqld] добавьте:
wait_timeout = -1
И перезапустите мускул.
Добавлено: Пн июл 14, 2008 7:54 am
Azudim
хотелось бы немного разобраться в причинах..
некоторые из них описаны тут:
http://dev.mysql.com/doc/refman/5.0/en/gone-away.html
*By default, the server closes the connection after eight hours if nothing has happened. - у меня это сообщение в логе появляется спустя несколько минут после использования ВебМорды или успешной аутентификации.. 8 часов простоя ни разу не наблюдалось.
*You (or the db administrator) has killed the running thread with a KILL statement or a mysqladmin kill command. - исключено
*You tried to run a query after closing the connection to the server. This indicates a logic error in the application that should be corrected. - а вот это вполне возможно..
You can also encounter this error with applications that fork child processes, all of which try to use the same connection to the MySQL server. This can be avoided by using a separate connection for each child process. - тоже вероятно..
Хотелось бы знать, только у меня такая проблемка возникала, или может еще у кого?
Добавлено: Пн июл 14, 2008 8:11 am
Azudim
установка wait_timeout в -1 приводит к:
Код: Выделить всё
[Warning] option 'wait_timeout': unsigned value 18446744073709551615 adjusted to 31536000
а главное, проблему не решает.. в лог продолжает сыпаться:
Код: Выделить всё
2008-07-14 12:18:02 LOG_WARNING: AUTH [test2] NAS: 3 SQL error MySQL server has gone away
2008-07-14 12:18:02 LOG_INFO: AUTH [test2] MS-CHAP PREAUTH FAILED GT: 0.00494
Добавлено: Пн июл 14, 2008 8:12 am
ran
дык там жеж и советуют:
You can get more information about the lost connections by starting mysqld with the --log-warnings=2 option. This logs some of the disconnected errors in the hostname.err file. See Section 5.2.1, ?The Error Log?.
Добавлено: Пн июл 14, 2008 8:32 am
Azudim
запуск с аргументом --log-warnings=2 не дал в логе ни одной строчки по этой проблеме =(
думаю начать надо было с лога радиуса:
Код: Выделить всё
Waking up in 6 seconds...
rad_recv: Access-Request packet from host 127.0.0.1:56097, id=146, length=103
User-Name = "test2"
Service-Type = Framed-User
Framed-Protocol = PPP
CHAP-Password = 0x01e6ec0e3ac60978c44c63dbeb67846220
CHAP-Challenge = 0x32313034363539323734303634333131
NAS-IP-Address = 192.168.0.250
NAS-Identifier = "isa3.lanaudit"
NAS-Port-Type = Virtual
Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 2
modcall[authorize]: module "preprocess" returns ok for request 2
rlm_realm: No '@' in User-Name = "test2", looking up realm NULL
rlm_realm: No such realm "NULL"
modcall[authorize]: module "suffix" returns noop for request 2
rlm_eap: No EAP-Message, not doing EAP
modcall[authorize]: module "eap" returns noop for request 2
Using perl at 0x2840c160
Auth-Type := Accept
Use of uninitialized value in numeric ne (!=) at /usr/abills/libexec/../Abills/mysql/Auth.pm line 287.
Use of uninitialized value in concatenation (.) or string at /usr/abills/libexec/../Abills/mysql/Auth.pm line 288.
rlm_perl: Added pair Reply-Message = Wrong port ''
rlm_perl: Added pair Auth-Type = Accept
modcall[authorize]: module "perl" returns reject for request 2
modcall: leaving group authorize (returns reject) for request 2
тут уж я не силен..
Добавлено: Пн июл 14, 2008 9:39 am
ran
та не...
Use of uninitialized value in numeric ne (!=) at /usr/abills/libexec/../Abills/mysql/Auth.pm line 287.
эт скорее всего уже следствие не выполненного корректно ранее запроса к базе с матюгом
SQL error MySQL server has gone away
попробуй включить квери лог мускла и посмотреть что за квери там бегают