This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

[9.004-33]Erros whilst restoring backup

Hi All

I have recently restored my backup from my own UTM to a 120rev 5. Everything works fine apart from the errors below:

2012:11:22-22:57:52 ****** [daemon:notice] rrdcached[3453]: queue_thread_main: rrd_update_r (/var/log/reporting/rrd/wifi-connected_ssid_WLAN2.rrd) failed with status -1. (/var/log/reporting/rrd/wifi-connected_ssid_WLAN2.rrd: illegal attempt to update using time 1353625070 when last update time is 1353649539 (minimum one second step))

2012:11:22-22:57:52 ****** [daemon:notice] rrdcached[3453]: queue_thread_main: rrd_update_r (/var/log/reporting/rrd/wifi-connected_ssid_WLAN0.rrd) failed with status -1. (/var/log/reporting/rrd/wifi-connected_ssid_WLAN0.rrd: illegal attempt to update using time 1353625070 when last update time is 1353649539 (minimum one second step))
2012:11:22-22:58:05 ****** [daemon:notice] rrdcached[3453]: queue_thread_main: rrd_update_r (/var/log/reporting/rrd/vpn.rrd) failed with status -1. (/var/log/reporting/rrd/vpn.rrd: illegal attempt to update using time 1353625085 when last update time is 1353649679 (minimum one second step))
2012:11:22-22:58:05 ****** [daemon:notice] rrdcached[3453]: queue_thread_main: rrd_update_r (/var/log/reporting/rrd/vpn_clv.rrd) failed with status -1. (/var/log/reporting/rrd/vpn_clv.rrd: illegal attempt to update using time 1353625085 when last update time is 1353649679 (minimum one second step))
2012:11:22-22:58:06 ****** [daemon:notice] rrdcached[3453]: queue_thread_main: rrd_update_r (/var/log/reporting/rrd/waf.rrd) failed with status -1. (/var/log/reporting/rrd/waf.rrd: illegal attempt to update using time 1353625086 when last update time is 1353649680 (minimum one second step))
2012:11:22-22:58:06 ****** [daemon:notice] rrdcached[3453]: queue_thread_main: rrd_update_r (/var/log/reporting/rrd/mailsec.rrd) failed with status -1. (/var/log/reporting/rrd/mailsec.rrd: illegal attempt to update using time 1353625086 when last update time is 1353649679 (minimum one second step))
2012:11:22-22:58:12 ****** [local0:err] [4628]: CEnginesContainer::GetCacheDelta - HttpError: 400
2012:11:22-22:58:14 ****** [daemon:notice] rrdcached[3453]: queue_thread_main: rrd_update_r (/var/log/reporting/rrd/pfilter.rrd) failed with status -1. (/var/log/reporting/rrd/pfilter.rrd: illegal attempt to update using time 1353625094 when last update time is 1353649686 (minimum one second step))
2012:11:22-22:58:17 ****** [daemon:notice] rrdcached[3453]: queue_thread_main: rrd_update_r (/var/log/reporting/rrd/ips.rrd) failed with status -1. (/var/log/reporting/rrd/ips.rrd: illegal attempt to update using time 1353625097 when last update time is 1353649688 (minimum one second step))
2012:11:22-22:58:18 ****** [daemon:notice] rrdcached[3453]: queue_thread_main: rrd_update_r (/var/log/reporting/rrd/websec.rrd) failed with status -1. (/var/log/reporting/rrd/websec.rrd: illegal attempt to update using time 1353625098 when last update time is 1353649688 (minimum one second step)) 


It seems that reporting is not working . I've tried to re index the databases with no luck so far

Thanks


This thread was automatically locked due to age.
  • Rebuilding the database produces sooo many fatal errors [:)]


    /root # /etc/init.d/postgresql rebuild
    Rebuilding PostgreSQL database, all reporting data will be lost!
    Enter "yes" to continue...
    yes
    :: Stopping PostgreSQL                                               done
    :: Initializing the PostgreSQL database                               done
    :: Starting PostgreSQL                                                done
    no schema upgrades found
    :: Restarting SMTP Proxy
    :: Stopping SMTP Proxy
    [ ok ]
    :: Starting SMTP Proxy
    [ ok ]
    [ ok ]





    2012:11:22-23:16:57 ****** postgres[15345]: [2-1] FATAL: database "reporting" does not exist
    2012:11:22-23:16:57 ****** ulogd[4485]: pg1: connect: FATAL: database "reporting" does not exist
    2012:11:22-23:17:00 ****** postgres[15366]: [2-1] FATAL: database "smtp" does not exist
    201:11:22-23:17:01 ****** /usr/sbin/cron[15388]: (root) CMD ( nice -n19 /usr/local/bin/gen_inline_reporting_data.plx)
    2012:11:22-23:17:02 ****** postgres[15393]: [2-1] ERROR: function ins_accounting(unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown) does not exist at character 8
    2012:11:22-23:17:02 ****** postgres[15393]: [2-2] HINT: No function matches the given name and argument types. You might need to add explicit type casts.
    2012:11:22-23:17:02 ****** postgres[15393]: [2-3] STATEMENT: select ins_accounting($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11)
    2012:11:22-23:17:02 ****** ulogd[4485]: pg1: ERROR: function ins_accounting(unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown) does not exist
    2012:11:22-23:17:02 ****** ulogd[4485]: pg1: prepare failed
    2012:11:22-23:17:07 ****** postgres[15443]: [2-1] ERROR: function ins_accounting(unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown) does not exist at character 8
    2012:11:22-23:17:07 ****** postgres[15443]: [2-2] HINT: No function matches the given name and argument types. You might need to add explicit type casts.
    2012:11:22-23:17:07 ****** postgres[15443]: [2-3] STATEMENT: select ins_accounting($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11
    2012:11:22-23:17:07 ****** ulogd[4485]: pg1: ERROR: function ins_accounting(unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown) does not exist
    2012:11:22-23:17:07 ****** ulogd[4485]: pg1: prepare failed 
    2012:11:22-23:17:07 ****** postgres[15446]: [2-1] ERROR: relation "accounting_data" does not exist at character 800
    2012:11:22-23:17:07 ****** postgres[15446]: [2-2] STATEMENT: SELECT resolve_service(ip_protocol || '/' || l4_dport) as service_str, resolve_protocol(ip_protocol) as protocol_str, ip_protocol || '/' || l4_dport as service, transform_SI(CAST(sum(raw_in_pktlen) AS BIGINT),1) as sum_tra_in_str, sum(raw_in_pktlen) as sum_tra_in_int, transform_SI(CAST(sum(raw_out_pktlen) AS BIGINT),1) as sum_tra_out_str, sum(raw_out_pktlen) as sum_tra_out_int, transform_SI(CAST(sum(raw_in_pktlen+raw_out_pktlen) AS BIGINT),1) as sum_tra_total_str, sum(raw_in_pktlen+raw_out_pktlen) as sum_tra_total_int, transform_common(CAST(sum(flow_count) AS BIGINT)) as cnt_flow_str, sum(flow_count) as cnt_flow_int, transform_common(CAST(sum(raw_in_pktcount+raw_out_pktcount) AS BIGINT)) as sum_pktcount_str, sum(raw_in_pktcount+raw_out_pktcount) as sum_pktcount_int, l4_dport as port FROM accounting_data WHERE logday = '2012-11-22' GROUP BY service, ip_protocol, port ORDER BY sum_tra_total_int DESC, sum_tra_out_int DESC, sum_tra_total_int DESC, cnt_flow_int DESC LIMIT 10
    2012:11:22-23:17:07 ****** postgres[15446]: [3-1] ERROR: relation "accounting_data" does not exist at character 628
    2012:11:22-23:17:07 ****** postgres[15446]: [3-2] STATEMENT: SELECT transform_SI(CAST(sum(raw_in_pktlen) AS BIGINT),1) as sum_tra_in_str, sum(raw_in_pktlen) as sum_tra_in_int, transform_SI(CAST(sum(raw_out_pktlen) AS BIGINT),1) as sum_tra_out_str, sum(raw_out_pktlen) as sum_tra_out_int, transform_SI(CAST(sum(raw_in_pktlen+raw_out_pktlen) AS BIGINT),1) as sum_tra_total_str, sum(raw_in_pktlen+raw_out_pktlen) as sum_tra_total_int, transform_common(CAST(sum(flow_count) AS BIGINT)) as cnt_flow_str, sum(flow_count) as cnt_flow_int, transform_common(CAST(sum(raw_in_pktcount+raw_out_pktcount) AS BIGINT)) as sum_pktcount_str, sum(raw_in_pktcount+raw_out_pktcount) as sum_pktcount_int FROM accounting_data WHERE logday = '2012-11-22'
    2012:11:22-23:17:07 ****** postgres[15446]: [4-1] ERROR: relation "accounting_data" does not exist at character 702
    2012:11:22-23:17:07 ****** postgres[15446]: [4-2] STATEMENT: SELECT application as application, appgroup as appgroup, afc_proto as afc_proto, transform_SI(CAST(sum(raw_in_pktlen) AS BIGINT),1) as sum_tra_in_str, sum(raw_in_pktlen) as sum_tra_in_int, transform_SI(CAST(sum(raw_out_pktlen) AS BIGINT),1) as sum_tra_out_str, sum(raw_out_pktlen) as sum_tra_out_int, transform_SI(CAST(sum(raw_in_pktlen+raw_out_pktlen) AS BIGINT),1) as sum_tra_total_str, sum(raw_in_pktlen+raw_out_pktlen) as sum_tra_total_int, transform_common(CAST(sum(flow_count) AS BIGINT)) as cnt_flow_str, sum(flow_count) as cnt_flow_int, transform_common(CAST(sum(raw_in_pktcount+raw_out_pktcount) AS BIGINT)) as sum_pktcount_str, sum(raw_in_pktcount+raw_out_pktcount) as sum_pktcount_int FROM accounting_data WHERE logday = '2012-11-22' GROUP BY afc_proto, application, appgroup ORDER BY sum_tra_total_int DESC, sum_tra_out_int DESC, sum_tra_total_int DESC, cnt_flow_int DESC LIMIT 10
    2012:11:22-23:17:07 ****** postgres[15446]: [5-1] ERROR: relation "accounting_data" does not exist at character 628
    2012:11:22-23:17:07 ****** postgres[15446]: [5-2] STATEMENT: SELECT transform_SI(CAST(sum(raw_in_pktlen) AS BIGINT),1) as sum_tra_in_str, sum(raw_in_pktlen) as sum_tra_in_int, transform_SI(CAST(sum(raw_out_pktlen) AS BIGINT),1) as sum_tra_out_str, sum(raw_out_pktlen) as sum_tra_out_int, transform_SI(CAST(sum(raw_in_pktlen+raw_out_pktlen) AS BIGINT),1) as sum_tra_total_str, sum(raw_in_pktlen+raw_out_pktlen) as sum_tra_total_int, transform_common(CAST(sum(flow_count) AS BIGINT)) as cnt_flow_str, sum(flow_count) as cnt_flow_int, transform_common(CAST(sum(raw_in_pktcount+raw_out_pktcount) AS BIGINT)) as sum_pktcount_str, sum(raw_in_pktcount+raw_out_pktcount) as sum_pktcount_int FROM accounting_data WHERE logday = '2012-11-22'
    2012:11:22-23:17:07 ****** postgres[15446]: [6-1] ERROR: relation "accounting_data" does not exist at character 650
    2012:11:22-23:17:07 ****** postgres[15446]: [6-2] STATEMENT: SELECT appgroup as appgroup, transform_SI(CAST(sum(raw_in_pktlen) AS BIGINT),1) as sum_tra_in_str, sum(raw_in_pktlen) as sum_tra_in_int, transform_SI(CAST(sum(raw_out_pktlen) AS BIGINT),1) as sum_tra_out_str, sum(raw_out_pktlen) as sum_tra_out_int, transform_SI(CAST(sum(raw_in_pktlen+raw_out_pktlen) AS BIGINT),1) as sum_tra_total_str, sum(raw_in_pktlen+raw_out_pktlen) as sum_tra_total_int, transform_common(CAST(sum(flow_count) AS BIGINT)) as cnt_flow_str, sum(flow_count) as cnt_flow_int, transform_common(CAST(sum(raw_in_pktcount+raw_out_pktcount) AS BIGINT)) as sum_pktcount_str, sum(raw_in_pktcount+raw_out_pktcount) as sum_pktcount_int FROM accounting_data WHERE logday = '2012-11-22' GROUP BY appgroup ORDER BY sum_tra_total_int DESC, sum_tra_out_int DESC, sum_tra_total_int DESC, cnt_flow_int DESC LIMIT 10
    2012:11:22-23:17:07 ****** postgres[15446]: [7-1] ERROR: relation "accounting_data" does not exist at character 62
    2012:11:22-23:17:07 ****** postgres[15446]: [7-2] STATEMENT: SELECT transform_SI(CAST(sum(raw_in_pktlen) AS BIGINT),1) as sum_tra_in_str, sum(raw_in_pktlen) as sum_tra_in_int, transform_SI(CAST(sum(raw_out_pktlen) AS BIGINT),1) as sum_tra_out_str, sum(raw_out_pktlen) as sum_tra_out_int, transform_SI(CAST(sum(raw_in_pktlen+raw_out_pktlen) AS BIGINT),1) as sum_tra_total_str, sum(raw_in_pktlen+raw_out_pktlen) as sum_tra_total_int, transform_common(CAST(sum(flow_count) AS BIGINT)) as cnt_flow_str, sum(flow_count) as cnt_flow_int, transform_common(CAST(sum(raw_in_pktcount+raw_out_pktcount) AS BIGINT)) as sum_pktcount_str, sum(raw_in_pktcount+raw_out_pktcount) as sum_pktcount_int FROM accounting_data WHERE logday = '2012-11-22'
    2012:11:22-23:17:07 ****** postgres[15446]: [8-1] ERROR: relation "accounting_data" does not exist at character 457
    2012:11:22-23:17:07 ****** postgres[15446]: [8-2] STATEMENT: SELECT ip2country(srcip) as srccountry, srcip, srchost, transform_common(CAST(sum(flow_count) AS BIGINT)) as cnt_flow_str, sum(flow_count) as cnt_flow_int, transform_SI(CAST(sum(raw_in_pktlen+raw_out_pktlen) AS BIGINT),1) as sum_tra_total_str, sum(raw_in_pktlen+raw_out_pktlen) as sum_tra_total_int, transform_common(CAST(sum(raw_in_pktcount+raw_out_pktcount) AS BIGINT)) as sum_pktcount_str, sum(raw_in_pktcount+raw_out_pktcount) as sum_pktcount_int FROM accounting_data WHERE logday = '2012-11-22' GROUP BY srcip, srchost ORDER BY sum_tra_total_int DESC, cnt_flow_int DESC LIMIT 1
    2012:11:22-23:17:08 ****** postgres[15446]: [9-1] ERROR: relation "accounting_data" does not exist at character 408
    2012:11:22-23:17:08 ****** postgres[15446]: [9-2] STATEMENT: SELECT transform_common(CAST(sum(flow_count) AS BIGINT)) as cnt_flow_str, sum(flow_count) as cnt_flow_int, transform_SI(CAST(sum(raw_in_pktlen+raw_out_pktlen) AS BIGINT),1) as sum_tra_total_str, sum(raw_in_pktlen+raw_out_pktlen) as sum_tra_total_int, transform_common(CAST(sum(raw_in_pktcount+raw_out_pktcount) AS BIGINT)) as sum_pktcount_str, sum(raw_in_pktcount+raw_out_pktcount) as sum_pktcount_int FROM accounting_data WHERE logday = '2012-11-22''
  • Looks like the system thinks the time of the last update was 23.11.2012 06:48:00, so I'd assume it will resume working after that time...
  • The databases though are corrupted so not sure how is going to be fixed by itself on 23.11.2012 06:48:00
  • rrd graphs are back this morning as DerAndy suggested. I will give it another day and see if things are better
  • Found this old thread by Google-ing, same problem and solution.

    Migrating from trial to production UTM220 using backup/restore procedure. New factory installed UTM booted in wrong time zone (+8h). After configuration restore and reboot logging was down, with Syslog events every 5 minutes:

    2014:04:26-20:01:12 utm rrdcached[3854]: queue_thread_main: rrd_update_r (/var/log/reporting/rrd/vpn_clv.rrd) failed with status -1. (/var/log/reporting/rrd/vpn_clv.rrd: illegal attempt to update using time 1398535272 when last update time is 1398535793 (minimum one second step))


    After +8h, logging started again.

    I am just wondering what would be the proper procedure (instead of waiting) in the case that time was one month or even one year ahead [:)]...?
  • When you change the time or zone, you must reboot (as is noted on the page beside these fields).  Did you do that?

    Cheers - Bob

    Sorry for any short responses.  Posted from my iPhone.
  • Device was rebooted at least 4-5 times after initial factory boot (initial power-on, restore configuration, moving from desk to rack mount, connecting to UPS...etc.)

    Google-ing revealed that it was rrd graph known problem. 

    If you power your device in wrong time zone, just wait before logging starts.