OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 18.7 Legacy Series »
  • [SOLVED] 18.7.7: Opnsense errors after update
« previous next »
  • Print
Pages: [1]

Author Topic: [SOLVED] 18.7.7: Opnsense errors after update  (Read 4497 times)

schnipp

  • Sr. Member
  • ****
  • Posts: 309
  • Karma: 16
    • View Profile
[SOLVED] 18.7.7: Opnsense errors after update
« on: November 09, 2018, 03:45:22 pm »
After updating Opnsense (18.7.6 --> 18.7.7) and rebooting the system, Opnsense throws an error. Therefore several services are not able to start.

Code: [Select]
[09-Nov-2018 15:13:18 Europe/Berlin] PHP Fatal error:  Uncaught Error: Call to undefined function get_configured_interface_list() in /usr/local/etc/inc/plugins.inc.d/igmpproxy.inc:80
Stack trace:
#0 /usr/local/etc/inc/plugins.inc(213): igmpproxy_configure_do(true)
#1 /usr/local/etc/rc.bootup(118): plugins_configure('bootup', true)
#2 {main}
  thrown in /usr/local/etc/inc/plugins.inc.d/igmpproxy.inc on line 80
« Last Edit: November 09, 2018, 05:58:44 pm by schnipp »
Logged
OPNsense 23.1.3-amd64

schnipp

  • Sr. Member
  • ****
  • Posts: 309
  • Karma: 16
    • View Profile
Re: 18.7.7: Opnsense errors after update
« Reply #1 on: November 09, 2018, 04:39:50 pm »
Forcing the update again using the console (opnsense-update -f) solved this issue. But now, starting all the services after reboot takes long time (up to 5 minutes) and flowd_aggregate dies in its startup phase.


Code: [Select]
flowd_aggregate.py: flowd aggregate died with message Traceback (most recent call last): File "/usr/local/opnsense/scripts/netflow/flowd_aggregate.py", line 151, in run aggregate_flowd(do_vacuum) File "/usr/local/opnsense/scripts/netflow/flowd_aggregate.py", line 80, in aggregate_flowd stream_agg_object.add(flow_record_cpy) File "/usr/local/opnsense/scripts/netflow/lib/aggregates/interface.py", line 70, in add super(FlowInterfaceTotals, self).add(flow) File "/usr/local/opnsense/scripts/netflow/lib/aggregate.py", line 261, in add self._update_cur.execute(self._insert_stmt, flow) DatabaseError: database disk image is malformed

Edit: After repairing the database everything works fine again. Maybe, the database error was not raised during the update and occured longer time ago.
« Last Edit: November 09, 2018, 05:58:25 pm by schnipp »
Logged
OPNsense 23.1.3-amd64

nivek1612

  • Full Member
  • ***
  • Posts: 188
  • Karma: 25
    • View Profile
Re: [SOLVED] 18.7.7: Opnsense errors after update
« Reply #2 on: November 12, 2018, 02:25:49 pm »
I'm seeing something similar - what do you mean by "repairing the database"
Logged
OPNsense 23.1.* on Qotom i5-5250U with Zen FTTC 80/20
OPNsense 23.1.* on Qotom i7-4500U with Orange FR FTTP 1000/400 and SFR FTTP 200/20

Team Rebellion Member
One of Marjohns TESTERS :-)

gliddie

  • Newbie
  • *
  • Posts: 39
  • Karma: 3
    • View Profile
Re: [SOLVED] 18.7.7: Opnsense errors after update
« Reply #3 on: November 13, 2018, 12:09:46 am »
I guess he is talking about the NetFlow database.
After the last update, my box did show the same behavior.
opnsense-update -f and a reboot did fix it for me too.
My NetFlow database was not broken.
Logged

schnipp

  • Sr. Member
  • ****
  • Posts: 309
  • Karma: 16
    • View Profile
Re: [SOLVED] 18.7.7: Opnsense errors after update
« Reply #4 on: November 14, 2018, 06:18:51 pm »
Quote from: nivek1612 on November 12, 2018, 02:25:49 pm
I'm seeing something similar - what do you mean by "repairing the database"

Under "Reporting --> Settings" you can find a button called "Repair netflow data". On my system repairing took long time (20 minutes and more). You can monitor the repair process and touched files in the system log (System --> Log Files --> General).
Logged
OPNsense 23.1.3-amd64

schnipp

  • Sr. Member
  • ****
  • Posts: 309
  • Karma: 16
    • View Profile
Re: [SOLVED] 18.7.7: Opnsense errors after update
« Reply #5 on: December 03, 2018, 08:08:17 pm »
The database is broken again. Maybe it's a bug in some piece of the the software because there are three exisiting issues in github (all closed without solution)

  • #1696
  • #1017
  • #999

All SMART attributes of my SSD look good. But, file system is not clean. I want to give it a try. How can I force file system check at startup (e.g. creating a file "/force_fsck"?)?

Thanks
Logged
OPNsense 23.1.3-amd64

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13936
  • Karma: 1208
    • View Profile
Re: [SOLVED] 18.7.7: Opnsense errors after update
« Reply #6 on: December 03, 2018, 10:34:59 pm »
IGMP Proxy plugin was fixed in 18.7.8 by reinstalling the same. That manual fix also worked for 18.7.7. It was an oversight on my part, sorry.

For dying databases sqlite + host file system this as good as it gets. Try to configure periodic netflow backups via System: Settings: Miscellaneous and see if that helps. If it helps, it's your file system trashing the database.


Cheers,
Franco
Logged

schnipp

  • Sr. Member
  • ****
  • Posts: 309
  • Karma: 16
    • View Profile
Re: [SOLVED] 18.7.7: Opnsense errors after update
« Reply #7 on: December 06, 2018, 05:53:52 pm »
I checked the filesystem again in single user mode (in this mode the root partition is mounted read only). The File system was clean. So, maybe there is a software bug in flow aggregate!?
Logged
OPNsense 23.1.3-amd64

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13936
  • Karma: 1208
    • View Profile
Re: [SOLVED] 18.7.7: Opnsense errors after update
« Reply #8 on: December 07, 2018, 07:18:04 am »
There will always be at least one more bug left in any software. It's why the project is still alive. ;)


Cheers,
Franco
Logged

schnipp

  • Sr. Member
  • ****
  • Posts: 309
  • Karma: 16
    • View Profile
Re: [SOLVED] 18.7.7: Opnsense errors after update
« Reply #9 on: December 11, 2018, 09:55:17 pm »
Quote
It's why the project is still alive. ;)

Hopefully, this is not the main intention that this project is still alive  ;) ;)
Logged
OPNsense 23.1.3-amd64

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13936
  • Karma: 1208
    • View Profile
Re: [SOLVED] 18.7.7: Opnsense errors after update
« Reply #10 on: December 12, 2018, 04:27:48 pm »
Fingers crossed... ;)

On a more serious note, the insight database handling has been improved for 19.1 and can be previewed from the development release type.


Cheers,
Franco
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 18.7 Legacy Series »
  • [SOLVED] 18.7.7: Opnsense errors after update
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2