ERROR : UTM5 DBA: DBAError throws in __disc

Технические вопросы по UTM 5.0
Ответить
Puzan_aga
Сообщения: 105
Зарегистрирован: Чт сен 11, 2008 10:43

ERROR : UTM5 DBA: DBAError throws in __disc

Сообщение Puzan_aga »

Добрый вечер.

Помогите решить проблемку.

В mail.log выводится вот такая проблема

Код: Выделить всё

 ERROR : Jul 05 16:02:59 UTM5 DBA: DBAError throws in __discount_from_account(discount_info_iptraffic *): commit_ip_traffic_downloaded: bad database structure, more than one lines with downloaded_id=451 and tclass_id=20
 ERROR : Jul 05 16:03:05 DBAInternalError: commit_ip_traffic_downloaded: bad database structure, more than one lines with downloaded_id=451 and tclass_id=20
 ERROR : Jul 05 16:03:05 UTM5 DBA: DBAError throws in __discount_from_account(discount_info_iptraffic *): commit_ip_traffic_downloaded: bad database structure, more than one lines with downloaded_id=451 and tclass_id=20
 ERROR : Jul 05 16:03:11 DBAInternalError: commit_ip_traffic_downloaded: bad database structure, more than one lines with downloaded_id=451 and tclass_id=20
 ERROR : Jul 05 16:03:11 UTM5 DBA: DBAError throws in __discount_from_account(discount_info_iptraffic *): commit_ip_traffic_downloaded: bad database structure, more than one lines with downloaded_id=451 and tclass_id=20
 ERROR : Jul 05 16:03:17 DBAInternalError: commit_ip_traffic_downloaded: bad database structure, more than one lines with downloaded_id=451 and tclass_id=20
 ERROR : Jul 05 16:03:17 UTM5 DBA: DBAError throws in __discount_from_account(discount_info_iptraffic *): commit_ip_traffic_downloaded: bad database structure, more than one lines with downloaded_id=451 and tclass_id=20
 ERROR : Jul 05 16:03:23 DBAInternalError: commit_ip_traffic_downloaded: bad database structure, more than one lines with downloaded_id=451 and tclass_id=20
 ERROR : Jul 05 16:03:23 UTM5 DBA: DBAError throws in __discount_from_account(discount_info_iptraffic *): commit_ip_traffic_downloaded: bad database structure, more than one lines with downloaded_id=451 and tclass_id=20
Зарание спасибо!!!

Pulse
Сообщения: 945
Зарегистрирован: Вт окт 03, 2006 12:58

Сообщение Pulse »

Код: Выделить всё

Это достаточно критичная проблема. Мы рекомендуем при выключенном ядре
UTM5 
сделать резерную копию БД UTM5, а затем пометить удаленными
(is_deleted=1) в 
БД все строчки, кроме одной, относящиеся к downloaded_id=1 and
tclass_id=20 
в таблице downloaded. После чего запустить UTM5.

P.S. Напоминаем, что наша компания не может гарантировать
работоспособность
биллинга при внесении изменений в БД. При возникновении проблем
восстановите БД из 
резервной копии.
в вашем случае downloaded_id=451 and tclass_id=20

запрос на все дубли в таблице

Код: Выделить всё

SELECT `downloaded_id`, `tclass_id`, COUNT(*) AS count FROM `downloaded` WHERE `is_deleted` 
= 0 GROUP BY `downloaded_id`, `tclass_id` HAVING count > 1; 

Puzan_aga
Сообщения: 105
Зарегистрирован: Чт сен 11, 2008 10:43

Сообщение Puzan_aga »

Pulse писал(а):

Код: Выделить всё

Это достаточно критичная проблема. Мы рекомендуем при выключенном ядре
UTM5 
сделать резерную копию БД UTM5, а затем пометить удаленными
(is_deleted=1) в 
БД все строчки, кроме одной, относящиеся к downloaded_id=1 and
tclass_id=20 
в таблице downloaded. После чего запустить UTM5.

P.S. Напоминаем, что наша компания не может гарантировать
работоспособность
биллинга при внесении изменений в БД. При возникновении проблем
восстановите БД из 
резервной копии.
в вашем случае downloaded_id=451 and tclass_id=20

запрос на все дубли в таблице

Код: Выделить всё

SELECT `downloaded_id`, `tclass_id`, COUNT(*) AS count FROM `downloaded` WHERE `is_deleted` 
= 0 GROUP BY `downloaded_id`, `tclass_id` HAVING count > 1; 
Спасибо. Сейчас попробую.

Puzan_aga
Сообщения: 105
Зарегистрирован: Чт сен 11, 2008 10:43

Сообщение Puzan_aga »

Сделал та ошибка пропала.

Теперь другая:

Код: Выделить всё

 ERROR : Jul 06 09:42:29 DBAExistingError: trying to get unexist link 0
 ERROR : Jul 06 09:42:29 Radius: Exception couthed while sending ip information
 ERROR : Jul 06 09:42:29 DBAExistingError: trying to get unexist link 0
 ERROR : Jul 06 09:42:29 Radius: Exception couthed while sending ip information
 ERROR : Jul 06 09:42:29 DBAExistingError: trying to get unexist link 0
 ERROR : Jul 06 09:42:29 Radius: Exception couthed while sending ip information
 ERROR : Jul 06 09:42:29 DBAExistingError: trying to get unexist link 0
 ERROR : Jul 06 09:42:29 Radius: Exception couthed while sending ip information
 ERROR : Jul 06 09:42:29 DBAExistingError: trying to get unexist link 0
 ERROR : Jul 06 09:42:29 Radius: Exception couthed while sending ip information
 ERROR : Jul 06 09:42:29 DBAExistingError: trying to get unexist link 0
 ERROR : Jul 06 09:42:29 Radius: Exception couthed while sending ip information
 ERROR : Jul 06 09:42:29 DBAExistingError: trying to get unexist link 0
 ERROR : Jul 06 09:42:29 Radius: Exception couthed while sending ip information
 ERROR : Jul 06 09:42:29 DBAExistingError: trying to get unexist link 0
 ERROR : Jul 06 09:42:29 Radius: Exception couthed while sending ip information
 ERROR : Jul 06 09:42:29 DBAExistingError: trying to get unexist link 0
 ERROR : Jul 06 09:42:29 Radius: Exception couthed while sending ip information

Puzan_aga
Сообщения: 105
Зарегистрирован: Чт сен 11, 2008 10:43

Сообщение Puzan_aga »

И вот такая появилась:

Код: Выделить всё

*ALERT &#58; Jul 06 09&#58;57&#58;38 UTM5 DBA&#58; IP <10.189.0.75> linked in the database but not exist in IPTree &#40;1 intersections in ip_groups table&#41;
*ALERT &#58; Jul 06 09&#58;57&#58;38 UTM5 DBA&#58; IP <10.189.2.5> linked in the database but not exist in IPTree &#40;1 intersections in ip_groups table&#41;
*ALERT &#58; Jul 06 09&#58;57&#58;38 UTM5 DBA&#58; IP <80.67.###.###> linked in the database but not exist in IPTree &#40;1 intersections in ip_groups table&#41;
*ALERT &#58; Jul 06 09&#58;57&#58;38 UTM5 DBA&#58; IP <80.67.###.###> linked in the database but not exist in IPTree &#40;1 intersections in ip_groups table&#41;

Pulse
Сообщения: 945
Зарегистрирован: Вт окт 03, 2006 12:58

Сообщение Pulse »

верификатор явно не пустой :) таблицы мож битые?

Dimonyga
Сообщения: 1
Зарегистрирован: Ср ноя 02, 2011 06:52

Сообщение Dimonyga »

Puzan_aga писал(а):И вот такая появилась:

Код: Выделить всё

*ALERT &#58; Jul 06 09&#58;57&#58;38 UTM5 DBA&#58; IP <10.189.0.75> linked in the database but not exist in IPTree &#40;1 intersections in ip_groups table&#41;
*ALERT &#58; Jul 06 09&#58;57&#58;38 UTM5 DBA&#58; IP <10.189.2.5> linked in the database but not exist in IPTree &#40;1 intersections in ip_groups table&#41;
*ALERT &#58; Jul 06 09&#58;57&#58;38 UTM5 DBA&#58; IP <80.67.###.###> linked in the database but not exist in IPTree &#40;1 intersections in ip_groups table&#41;
*ALERT &#58; Jul 06 09&#58;57&#58;38 UTM5 DBA&#58; IP <80.67.###.###> linked in the database but not exist in IPTree &#40;1 intersections in ip_groups table&#41;
По всей видимости вы удалили не только дуюлирующие записи но и основные. Одна запись из двух всёже должна сохраниться.

apathy_sidex
Сообщения: 14
Зарегистрирован: Ср июл 30, 2014 16:39

Сообщение apathy_sidex »

Код: Выделить всё

 ERROR &#58; Sep 03 16&#58;41&#58;47 899d1ec0 DBAInternalError&#58; commit_ip_traffic_downloaded&#58; bad database structure, more than one lines with downloaded_id=1026 and tclass_id=1000
 ERROR &#58; Sep 03 16&#58;41&#58;47 899d1ec0 UTM5 DBA&#58; DBAError throws in __discount_from_account&#40;discount_info_iptraffic *&#41;&#58; commit_ip_traffic_downloaded&#58; bad database structure, more than one lines with downloaded_id=
1026 and tclass_id=1000
Подскажите пожалуйста конкретный запрос на исправление данной петрушки

Ответить