ClearFoundation Tracker - ClearOS
View Issue Details
0013671ClearOSapp-network-report - Network Reportpublic2017-03-12 01:242017-03-23 08:01
NickH 
bchambers 
normalminoralways
closedfixed 
7.3.0 
7.3.1 Updates7.3.1 Updates 
0013671: Network reports broken/empty
The Network Report has been broken apparently since 24/02. See https://www.clearos.com/clearfoundation/social/community/network-report-not-running-or-logging-since-februari-24-updates# [^]

My Network Reports show "Nothing to report ..." for each interface.
No tags attached.
related to 0013721closed bchambers New purge script drop tables' options 
Issue History
2017-03-12 01:24NickHNew Issue
2017-03-12 09:39user2Statusnew => acknowledged
2017-03-12 09:39user2Target Version => 7.3.1 Updates
2017-03-13 08:55bchambersNote Added: 0005101
2017-03-13 08:58bchambersNote Added: 0005111
2017-03-13 09:12bchambersAssigned To => bchambers
2017-03-13 09:12bchambersStatusacknowledged => assigned
2017-03-13 09:47bchambersRelationship addedrelated to 0013721
2017-03-13 09:52bchambersStatusassigned => confirmed
2017-03-13 09:52bchambersStatusconfirmed => resolved
2017-03-13 09:52bchambersFixed in Version => 7.3.1 Updates
2017-03-13 09:52bchambersResolutionopen => fixed
2017-03-23 08:01user2Statusresolved => closed

Notes
(0005101)
bchambers   
2017-03-13 08:55   
Something dropping all the table options (auto_increment, default values etc.). It is not just on an upgrade.

I fixed my tables last night by dropping the network table and re-adding using the schema. This morning, the options are gone again. Weird:

MariaDB [reports]> explain network;
+------------+---------------------+------+-----+---------------------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------+---------------------+------+-----+---------------------+-------+
| id | bigint(20) unsigned | NO | | 0 | |
| iface | varchar(16) | NO | | NULL | |
| rx_bytes | bigint(20) | YES | | NULL | |
| rx_packets | bigint(20) | YES | | NULL | |
| rx_errors | bigint(20) | YES | | NULL | |
| rx_drop | bigint(20) | YES | | NULL | |
| rx_rate | bigint(20) | YES | | NULL | |
| tx_bytes | bigint(20) | YES | | NULL | |
| tx_packets | bigint(20) | YES | | NULL | |
| tx_errors | bigint(20) | YES | | NULL | |
| tx_drop | bigint(20) | YES | | NULL | |
| tx_rate | bigint(20) | YES | | NULL | |
| timestamp | timestamp | NO | | 0000-00-00 00:00:00 | |
+------------+---------------------+------+-----+---------------------+-------+
(0005111)
bchambers   
2017-03-13 08:58   
Tracked it down to this script that runs daily:

/usr/sbin/purge-report-tables report

Investigating...