Проблемы с UTM5
Проблемы с UTM5
File: main.log
ERROR : Jun 11 20:05:03 DBCtx: Exception while doing SQL insert/update !
ERROR : Jun 11 20:05:13 DBCtx: MySQL query failed:
ERROR : Jun 11 20:05:13 DBASQLError: MySQL query failed:
ERROR : Jun 11 20:05:13 DBCtx: Exception while doing SQL insert/update !
ERROR : Jun 11 20:05:23 DBCtx: MySQL query failed:
ERROR : Jun 11 20:05:23 DBASQLError: MySQL query failed:
ERROR : Jun 11 20:05:23 DBCtx: Exception while doing SQL insert/update !
ERROR : Jun 11 20:05:34 DBCtx: MySQL query failed:
ERROR : Jun 11 20:05:34 DBASQLError: MySQL query failed:
ERROR : Jun 11 20:05:34 DBCtx: Exception while doing SQL insert/update !
ERROR : Jun 11 20:05:44 DBCtx: MySQL query failed:
ERROR : Jun 11 20:05:44 DBASQLError: MySQL query failed:
ERROR : Jun 11 20:05:44 DBCtx: Exception while doing SQL insert/update !
ERROR : Jun 11 20:05:54 DBCtx: MySQL query failed:
ERROR : Jun 11 20:05:54 DBASQLError: MySQL query failed:
ERROR : Jun 11 20:05:54 DBCtx: Exception while doing SQL insert/update !
ERROR : Jun 11 20:06:04 DBCtx: MySQL query failed:
ERROR : Jun 11 20:06:04 DBASQLError: MySQL query failed:
ERROR : Jun 11 20:06:04 DBCtx: Exception while doing SQL insert/update !
ERROR : Jun 11 20:06:14 DBCtx: MySQL query failed:
ERROR : Jun 11 20:06:14 DBASQLError: MySQL query failed:
ERROR : Jun 11 20:06:14 DBCtx: Exception while doing SQL insert/update !
ERROR : Jun 11 20:06:24 DBCtx: MySQL query failed:
ERROR : Jun 11 20:06:24 DBASQLError: MySQL query failed:
ERROR : Jun 11 20:06:24 DBCtx: Exception while doing SQL insert/update !
ERROR : Jun 11 20:06:34 DBCtx: MySQL query failed:
debug.log
?Debug : Jun 11 21:03:36 BusLogic: BLM(37) pushed (comment: ruh block)
?Debug : Jun 11 21:03:36 DBCtx: SQL query: UPDATE dtagg_iptraffic SET discounted='0.000000', discounted_without_tax='0.000000'
, bytes='14374584' WHERE id='26387'
?Debug : Jun 11 21:03:36 BusLogic: try to execute 37
?Debug : Jun 11 21:03:36 BusLogic: hw_block_handler with code 37
?Debug : Jun 11 21:03:36 BusLogic: finished unknown
?Debug : Jun 11 21:03:36 DBCtx: SQL query: INSERT INTO discount_transactions_iptraffic_all(id,account_id,discount,discount_wit
h_tax,service_id,slink_id,discount_date,discount_date_hour,discount_date_day,discount_date_month,t_class,base_cost,ipid,bytes,
discount_period_id) VALUES('52440356','4041','0','0','26','4824','1244736216','1244736000','1244660400','1243796400','40','0',
'1307873864','2200','11039')
?Debug : Jun 11 21:03:36 DBCtx: MySQL query failed:<Duplicate entry '52440356' for key 1> Trying to reconnect: 0
?Debug : Jun 11 21:03:38 DBCtx: MySQL query failed:<Duplicate entry '52440356' for key 1> Trying to reconnect: 1
?Debug : Jun 11 21:03:40 DBCtx: MySQL query failed:<Duplicate entry '52440356' for key 1> Trying to reconnect: 2
?Debug : Jun 11 21:03:40 StreamConnection: Message id <0x1001>, handler returns 2048
?Debug : Jun 11 21:03:42 DBCtx: MySQL query failed:<Duplicate entry '52440356' for key 1> Trying to reconnect: 3
?Debug : Jun 11 21:03:44 DBCtx: MySQL query failed:<Duplicate entry '52440356' for key 1> Trying to reconnect: 4
?Debug : Jun 11 21:03:45 StreamConnection: Message id <0x1001>, handler returns 2048
ERROR : Jun 11 21:03:46 DBCtx: MySQL query failed:
ERROR : Jun 11 21:03:46 DBASQLError: MySQL query failed:
ERROR : Jun 11 21:03:46 DBCtx: Exception while doing SQL insert/update !
?Debug : Jun 11 21:03:46 DBCtx: SQL SELECT query: SELECT qnt FROM downloaded WHERE is_deleted=0 AND downloaded_id='1544' AND t
class_id='80'
?Debug : Jun 11 21:03:46 DBCtx: SQL query: UPDATE downloaded SET qnt='7458539', discounted='0', downed_as_prepaid='0' WHERE do
wnloaded_id='1544' AND tclass_id='80'
?Debug : Jun 11 21:03:46 UTM5 DBA: Discount:0.000000 p.u. for link:4786 account 4004
?Debug : Jun 11 21:03:46 UTM5 DBA: Checking for rehash: flags 3, balance 28.702 (old 28.702), credit 0.000
?Debug : Jun 11 21:03:46 DBAGiga: Rehash: Target: 10; Action: 1; Ptr: bf2dc990
?Debug : Jun 11 21:03:46 Radius: Account '4004': 28.702/0.000 send...
?Debug : Jun 11 21:03:46 DBCtx: SQL query: UPDATE accounts SET balance='28.7016' WHERE id = '4004'
?Debug : Jun 11 21:03:46 DBCtx: SQL query: INSERT INTO discount_transactions_all(account_id,incoming_rest,outgoing_rest,discou
nt,discount_without_tax,discount_with_tax,service_id,service_type,slink_id,discount_date,comment,discount_period_id) VALUES('4
004','28.7016','28.7016','0','0','0','130','3','4786','1244736226','IP discount','11024')
?Debug : Jun 11 21:03:46 BusLogic: BLM(37) pushed (comment: ruh block)
?Debug : Jun 11 21:03:46 DBCtx: SQL query: UPDATE dtagg_iptraffic SET discounted='0.000000', discounted_without_tax='0.000000'
, bytes='7458539' WHERE id='26124'
?Debug : Jun 11 21:03:46 BusLogic: try to execute 37
?Debug : Jun 11 21:03:46 BusLogic: hw_block_handler with code 37
?Debug : Jun 11 21:03:46 BusLogic: finished unknown
?Debug : Jun 11 21:03:46 DBCtx: SQL query: INSERT INTO discount_transactions_iptraffic_all(id,account_id,discount,discount_wit
h_tax,service_id,slink_id,discount_date,discount_date_hour,discount_date_day,discount_date_month,t_class,base_cost,ipid,bytes,
discount_period_id) VALUES('52440357','4004','0','0','130','4786','1244736226','1244736000','1244660400','1243796400','80','0'
,'-1062711288','576','11024')
?Debug : Jun 11 21:03:46 DBCtx: MySQL query failed:<Duplicate entry '52440357' for key 1> Trying to reconnect: 0
Первые 3-5 минут после перезагрузки нормально, а потом не заходит в Админку
Пожалуйста помогите!
ERROR : Jun 11 20:05:03 DBCtx: Exception while doing SQL insert/update !
ERROR : Jun 11 20:05:13 DBCtx: MySQL query failed:
ERROR : Jun 11 20:05:13 DBASQLError: MySQL query failed:
ERROR : Jun 11 20:05:13 DBCtx: Exception while doing SQL insert/update !
ERROR : Jun 11 20:05:23 DBCtx: MySQL query failed:
ERROR : Jun 11 20:05:23 DBASQLError: MySQL query failed:
ERROR : Jun 11 20:05:23 DBCtx: Exception while doing SQL insert/update !
ERROR : Jun 11 20:05:34 DBCtx: MySQL query failed:
ERROR : Jun 11 20:05:34 DBASQLError: MySQL query failed:
ERROR : Jun 11 20:05:34 DBCtx: Exception while doing SQL insert/update !
ERROR : Jun 11 20:05:44 DBCtx: MySQL query failed:
ERROR : Jun 11 20:05:44 DBASQLError: MySQL query failed:
ERROR : Jun 11 20:05:44 DBCtx: Exception while doing SQL insert/update !
ERROR : Jun 11 20:05:54 DBCtx: MySQL query failed:
ERROR : Jun 11 20:05:54 DBASQLError: MySQL query failed:
ERROR : Jun 11 20:05:54 DBCtx: Exception while doing SQL insert/update !
ERROR : Jun 11 20:06:04 DBCtx: MySQL query failed:
ERROR : Jun 11 20:06:04 DBASQLError: MySQL query failed:
ERROR : Jun 11 20:06:04 DBCtx: Exception while doing SQL insert/update !
ERROR : Jun 11 20:06:14 DBCtx: MySQL query failed:
ERROR : Jun 11 20:06:14 DBASQLError: MySQL query failed:
ERROR : Jun 11 20:06:14 DBCtx: Exception while doing SQL insert/update !
ERROR : Jun 11 20:06:24 DBCtx: MySQL query failed:
ERROR : Jun 11 20:06:24 DBASQLError: MySQL query failed:
ERROR : Jun 11 20:06:24 DBCtx: Exception while doing SQL insert/update !
ERROR : Jun 11 20:06:34 DBCtx: MySQL query failed:
debug.log
?Debug : Jun 11 21:03:36 BusLogic: BLM(37) pushed (comment: ruh block)
?Debug : Jun 11 21:03:36 DBCtx: SQL query: UPDATE dtagg_iptraffic SET discounted='0.000000', discounted_without_tax='0.000000'
, bytes='14374584' WHERE id='26387'
?Debug : Jun 11 21:03:36 BusLogic: try to execute 37
?Debug : Jun 11 21:03:36 BusLogic: hw_block_handler with code 37
?Debug : Jun 11 21:03:36 BusLogic: finished unknown
?Debug : Jun 11 21:03:36 DBCtx: SQL query: INSERT INTO discount_transactions_iptraffic_all(id,account_id,discount,discount_wit
h_tax,service_id,slink_id,discount_date,discount_date_hour,discount_date_day,discount_date_month,t_class,base_cost,ipid,bytes,
discount_period_id) VALUES('52440356','4041','0','0','26','4824','1244736216','1244736000','1244660400','1243796400','40','0',
'1307873864','2200','11039')
?Debug : Jun 11 21:03:36 DBCtx: MySQL query failed:<Duplicate entry '52440356' for key 1> Trying to reconnect: 0
?Debug : Jun 11 21:03:38 DBCtx: MySQL query failed:<Duplicate entry '52440356' for key 1> Trying to reconnect: 1
?Debug : Jun 11 21:03:40 DBCtx: MySQL query failed:<Duplicate entry '52440356' for key 1> Trying to reconnect: 2
?Debug : Jun 11 21:03:40 StreamConnection: Message id <0x1001>, handler returns 2048
?Debug : Jun 11 21:03:42 DBCtx: MySQL query failed:<Duplicate entry '52440356' for key 1> Trying to reconnect: 3
?Debug : Jun 11 21:03:44 DBCtx: MySQL query failed:<Duplicate entry '52440356' for key 1> Trying to reconnect: 4
?Debug : Jun 11 21:03:45 StreamConnection: Message id <0x1001>, handler returns 2048
ERROR : Jun 11 21:03:46 DBCtx: MySQL query failed:
ERROR : Jun 11 21:03:46 DBASQLError: MySQL query failed:
ERROR : Jun 11 21:03:46 DBCtx: Exception while doing SQL insert/update !
?Debug : Jun 11 21:03:46 DBCtx: SQL SELECT query: SELECT qnt FROM downloaded WHERE is_deleted=0 AND downloaded_id='1544' AND t
class_id='80'
?Debug : Jun 11 21:03:46 DBCtx: SQL query: UPDATE downloaded SET qnt='7458539', discounted='0', downed_as_prepaid='0' WHERE do
wnloaded_id='1544' AND tclass_id='80'
?Debug : Jun 11 21:03:46 UTM5 DBA: Discount:0.000000 p.u. for link:4786 account 4004
?Debug : Jun 11 21:03:46 UTM5 DBA: Checking for rehash: flags 3, balance 28.702 (old 28.702), credit 0.000
?Debug : Jun 11 21:03:46 DBAGiga: Rehash: Target: 10; Action: 1; Ptr: bf2dc990
?Debug : Jun 11 21:03:46 Radius: Account '4004': 28.702/0.000 send...
?Debug : Jun 11 21:03:46 DBCtx: SQL query: UPDATE accounts SET balance='28.7016' WHERE id = '4004'
?Debug : Jun 11 21:03:46 DBCtx: SQL query: INSERT INTO discount_transactions_all(account_id,incoming_rest,outgoing_rest,discou
nt,discount_without_tax,discount_with_tax,service_id,service_type,slink_id,discount_date,comment,discount_period_id) VALUES('4
004','28.7016','28.7016','0','0','0','130','3','4786','1244736226','IP discount','11024')
?Debug : Jun 11 21:03:46 BusLogic: BLM(37) pushed (comment: ruh block)
?Debug : Jun 11 21:03:46 DBCtx: SQL query: UPDATE dtagg_iptraffic SET discounted='0.000000', discounted_without_tax='0.000000'
, bytes='7458539' WHERE id='26124'
?Debug : Jun 11 21:03:46 BusLogic: try to execute 37
?Debug : Jun 11 21:03:46 BusLogic: hw_block_handler with code 37
?Debug : Jun 11 21:03:46 BusLogic: finished unknown
?Debug : Jun 11 21:03:46 DBCtx: SQL query: INSERT INTO discount_transactions_iptraffic_all(id,account_id,discount,discount_wit
h_tax,service_id,slink_id,discount_date,discount_date_hour,discount_date_day,discount_date_month,t_class,base_cost,ipid,bytes,
discount_period_id) VALUES('52440357','4004','0','0','130','4786','1244736226','1244736000','1244660400','1243796400','80','0'
,'-1062711288','576','11024')
?Debug : Jun 11 21:03:46 DBCtx: MySQL query failed:<Duplicate entry '52440357' for key 1> Trying to reconnect: 0
Первые 3-5 минут после перезагрузки нормально, а потом не заходит в Админку
Пожалуйста помогите!
-
- Сообщения: 309
- Зарегистрирован: Сб апр 16, 2005 11:44
Код: Выделить всё
?Debug : Jun 11 21:03:36 DBCtx: SQL query: INSERT INTO discount_transactions_iptraffic_all(id,account_id,discount,discount_wit
h_tax,service_id,slink_id,discount_date,discount_date_hour,discount_date_day,discount_date_month,t_class,base_cost,ipid,bytes,
discount_period_id) VALUES('52440356','4041','0','0','26','4824','1244736216','1244736000','1244660400','1243796400','40','0',
'1307873864','2200','11039')
?Debug : Jun 11 21:03:36 DBCtx: MySQL query failed:<Duplicate entry '52440356' for key 1> Trying to reconnect: 0
?Debug : Jun 11 21:03:38 DBCtx: MySQL query failed:<Duplicate entry '52440356' for key 1> Trying to reconnect: 1
?Debug : Jun 11 21:03:40 DBCtx: MySQL query failed:<Duplicate entry '52440356' for key 1> Trying to reconnect: 2
Wishmaster писал(а):Все ясно написано. Останавливайте ядро, заходите в БД, делайте проверку/ремонт таблиц discount_transactions_iptraffic_all и discount_transactions_all, затем в обоих увеличиваете параметр AUTO_INCREMENT на 1. т.е. чтобы он стал 52440357. Делать это надо на обоих таблицах!Код: Выделить всё
?Debug : Jun 11 21:03:36 DBCtx: SQL query: INSERT INTO discount_transactions_iptraffic_all(id,account_id,discount,discount_wit h_tax,service_id,slink_id,discount_date,discount_date_hour,discount_date_day,discount_date_month,t_class,base_cost,ipid,bytes, discount_period_id) VALUES('52440356','4041','0','0','26','4824','1244736216','1244736000','1244660400','1243796400','40','0', '1307873864','2200','11039') ?Debug : Jun 11 21:03:36 DBCtx: MySQL query failed:<Duplicate entry '52440356' for key 1> Trying to reconnect: 0 ?Debug : Jun 11 21:03:38 DBCtx: MySQL query failed:<Duplicate entry '52440356' for key 1> Trying to reconnect: 1 ?Debug : Jun 11 21:03:40 DBCtx: MySQL query failed:<Duplicate entry '52440356' for key 1> Trying to reconnect: 2
Я новичок в этом деле. Тем более что он мне по наследству остался. Если можно объясните по пальцам как делать.
-
- Сообщения: 309
- Зарегистрирован: Сб апр 16, 2005 11:44
zafar писал(а):неужели никто не может ответить
Код: Выделить всё
CHECK TABLE `discount_transactions_all`;
CHECK TABLE `discount_transactions_iptraffic_all`;
REPAIR TABLE `discount_transactions_all`;
REPAIR TABLE `discount_transactions_iptraffic_all`;
ALTER TABLE `discount_transactions_all` AUTO_INCREMENT =52440357;
ALTER TABLE `discount_transactions_iptraffic_all` AUTO_INCREMENT =52440357;
-
- Сообщения: 309
- Зарегистрирован: Сб апр 16, 2005 11:44
У вас с самим MySQL сервером какие-то проблемы. Включайте лог и смотрите, почему он падает при запросе CHECK TABLE. REPAIR на innodb не работает. Там достаточно ALTER TABLE table_name ENGINE=INNODB.zafar писал(а):mysql> CHECK TABLE `discount_transactions_all`;
ERROR 2013: Lost connection to MySQL server during query
Я заметил что после перезагрузки машины InnoDB все время пытается завершить одни и те же транзакции, и говорит что завершил. Но после очередной перезагрузки так же. В старых логах смотрю такого не было. Может из за этого проблема?
090612 20:39:38 mysqld restarted
090612 20:39:39 InnoDB: Database was not shut down normally.
InnoDB: Starting recovery from log files...
InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 9 654757317
InnoDB: Doing recovery: scanned up to log sequence number 9 654757317
InnoDB: 3 transaction(s) which must be rolled back or cleaned up
InnoDB: in total 3 row operations to undo
InnoDB: Trx id counter is 0 415598848
InnoDB: Starting rollback of uncommitted transactions
InnoDB: Cleaning up trx with id 0 415433971
InnoDB: Cleaning up trx with id 0 389372908
InnoDB: Cleaning up trx with id 0 384659687
InnoDB: Rollback of uncommitted transactions completed
090612 20:39:40 InnoDB: Flushing modified pages from the buffer pool...
090612 20:39:40 InnoDB: Started
/usr/local/libexec/mysqld: ready for connections.
Version: '4.0.24' socket: '/tmp/mysql.sock' port: 3306 FreeBSD port: mysql-server-4.0.24
090612 20:49:17 /usr/local/libexec/mysqld: Normal shutdown
090612 20:49:18 InnoDB: Starting shutdown...
090612 20:49:21 InnoDB: Shutdown completed
090612 20:49:21 /usr/local/libexec/mysqld: Shutdown Complete
090612 20:49:21 mysqld ended
090612 20:50:13 mysqld started
InnoDB: 3 transaction(s) which must be rolled back or cleaned up
InnoDB: in total 3 row operations to undo
InnoDB: Trx id counter is 0 415599872
InnoDB: Starting rollback of uncommitted transactions
InnoDB: Cleaning up trx with id 0 415433971
InnoDB: Cleaning up trx with id 0 389372908
InnoDB: Cleaning up trx with id 0 384659687
InnoDB: Rollback of uncommitted transactions completed
090612 20:50:16 InnoDB: Started
090612 20:39:38 mysqld restarted
090612 20:39:39 InnoDB: Database was not shut down normally.
InnoDB: Starting recovery from log files...
InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 9 654757317
InnoDB: Doing recovery: scanned up to log sequence number 9 654757317
InnoDB: 3 transaction(s) which must be rolled back or cleaned up
InnoDB: in total 3 row operations to undo
InnoDB: Trx id counter is 0 415598848
InnoDB: Starting rollback of uncommitted transactions
InnoDB: Cleaning up trx with id 0 415433971
InnoDB: Cleaning up trx with id 0 389372908
InnoDB: Cleaning up trx with id 0 384659687
InnoDB: Rollback of uncommitted transactions completed
090612 20:39:40 InnoDB: Flushing modified pages from the buffer pool...
090612 20:39:40 InnoDB: Started
/usr/local/libexec/mysqld: ready for connections.
Version: '4.0.24' socket: '/tmp/mysql.sock' port: 3306 FreeBSD port: mysql-server-4.0.24
090612 20:49:17 /usr/local/libexec/mysqld: Normal shutdown
090612 20:49:18 InnoDB: Starting shutdown...
090612 20:49:21 InnoDB: Shutdown completed
090612 20:49:21 /usr/local/libexec/mysqld: Shutdown Complete
090612 20:49:21 mysqld ended
090612 20:50:13 mysqld started
InnoDB: 3 transaction(s) which must be rolled back or cleaned up
InnoDB: in total 3 row operations to undo
InnoDB: Trx id counter is 0 415599872
InnoDB: Starting rollback of uncommitted transactions
InnoDB: Cleaning up trx with id 0 415433971
InnoDB: Cleaning up trx with id 0 389372908
InnoDB: Cleaning up trx with id 0 384659687
InnoDB: Rollback of uncommitted transactions completed
090612 20:50:16 InnoDB: Started
Эта таблица не поддерживает REPAIR
mysql> repair table discount_transactions_all;
+--------------------------------+--------+----------+--------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+--------------------------------+--------+----------+--------------------------------------------------+
| UTM5.discount_transactions_all | repair | error | The handler for the table doesn't support repair |
+--------------------------------+--------+----------+--------------------------------------------------+
1 row in set (0.00 sec)
mysql> repair table discount_transactions_all;
+--------------------------------+--------+----------+--------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+--------------------------------+--------+----------+--------------------------------------------------+
| UTM5.discount_transactions_all | repair | error | The handler for the table doesn't support repair |
+--------------------------------+--------+----------+--------------------------------------------------+
1 row in set (0.00 sec)
mysql> repair table discount_transactions_iptraffic_all;
+------------------------------------------+--------+----------+--------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+------------------------------------------+--------+----------+--------------------------------------------------+
| UTM5.discount_transactions_iptraffic_all | repair | error | The handler for the table doesn't support repair |
+------------------------------------------+--------+----------+--------------------------------------------------+
1 row in set (0.00 sec)
mysql>
+------------------------------------------+--------+----------+--------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+------------------------------------------+--------+----------+--------------------------------------------------+
| UTM5.discount_transactions_iptraffic_all | repair | error | The handler for the table doesn't support repair |
+------------------------------------------+--------+----------+--------------------------------------------------+
1 row in set (0.00 sec)
mysql>