OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Profile of sirebral »
  • Show Posts »
  • Topics
  • Profile Info
    • Summary
    • Show Stats
    • Show Posts...
      • Messages
      • Topics
      • Attachments

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

  • Messages
  • Topics
  • Attachments

Topics - sirebral

Pages: [1]
1
23.7 Legacy Series / Problems updating from download to current
« on: January 30, 2024, 07:01:55 am »
Hi all!

I downloaded the DVD image, performed the basic net configuration, and then in the GUI ran the full firmware update.  Now every time I try to install a plugin, I get the following error:

/usr/local/opnsense/mvc/app/library/OPNsense/Core/Backend.php:169: stream_get_contents(): Argument #1 ($stream) must be of type resource, null given

Any ideas as to how to resolve this?  It seems there's a regression in the update process from base to current.  The version I updated to is:  23.7.12-amd64

PHP Trace:

[30-Jan-2024 05:40:41 Etc/UTC] PHP Fatal error:  Uncaught TypeError: stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Backend.php:169
Stack trace:
#0 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Backend.php(169): stream_get_contents(NULL)
#1 /usr/local/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/JsonKeyValueStoreField.php(139): OPNsense\Core\Backend->configdRun('interface gatew...', false, 20)
#2 /usr/local/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php(193): OPNsense\Base\FieldTypes\JsonKeyValueStoreField->actionPostLoadingEvent()
#3 /usr/local/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php(191): OPNsense\Base\FieldTypes\BaseField->eventPostLoading()
#4 /usr/local/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php(191): OPNsense\Base\FieldTypes\BaseField->eventPostLoading()
#5 /usr/local/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php(191): OPNsense\Base\FieldTypes\BaseField->eventPostLoading()
#6 /usr/local/opnsense/mvc/app/models/OPNsense/Base/BaseModel.php(365): OPNsense\Base\FieldTypes\BaseField->eventPostLoading()
#7 [internal function]: OPNsense\Base\BaseModel->__construct()
#8 /usr/local/opnsense/mvc/script/run_migrations.php(52): ReflectionClass->newInstance()
#9 {main}
  thrown in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Backend.php on line 169
[29-Jan-2024 21:58:56 America/Los_Angeles] TypeError: stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Backend.php:169
Stack trace:
#0 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Backend.php(169): stream_get_contents(NULL)
#1 /usr/local/opnsense/mvc/app/controllers/OPNsense/Core/Api/FirmwareController.php(810): OPNsense\Core\Backend->configdRun('firmware status')
#2 [internal function]: OPNsense\Core\Api\FirmwareController->upgradestatusAction()
#3 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->callActionMethod(Object(OPNsense\Core\Api\FirmwareController), 'upgradestatusAc...', Array)
#4 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->dispatch()
#5 /usr/local/opnsense/www/api.php(24): Phalcon\Mvc\Application->handle('/api/core/firmw...')
#6 {main}
[29-Jan-2024 21:59:02 America/Los_Angeles] PHP Fatal error:  Uncaught TypeError: stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Backend.php:169
Stack trace:
#0 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Backend.php(169): stream_get_contents(NULL)
#1 /usr/local/etc/inc/legacy_bindings.inc(41): OPNsense\Core\Backend->configdRun('template reload...', false)
#2 /usr/local/etc/inc/system.inc(794): configd_run('template reload...')
#3 /usr/local/etc/rc.configure_plugins(49): system_syslog_start(true)
#4 {main}
  thrown in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Backend.php on line 169
[29-Jan-2024 21:59:08 America/Los_Angeles] TypeError: stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Backend.php:169
Stack trace:
#0 /usr/local/opnsense/mvc/app/library/OPNsense/Core/Backend.php(169): stream_get_contents(NULL)
#1 /usr/local/opnsense/mvc/app/controllers/OPNsense/Core/Api/FirmwareController.php(810): OPNsense\Core\Backend->configdRun('firmware status')
#2 [internal function]: OPNsense\Core\Api\FirmwareController->upgradestatusAction()
#3 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->callActionMethod(Object(OPNsense\Core\Api\FirmwareController), 'upgradestatusAc...', Array)
#4 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->dispatch()
#5 /usr/local/opnsense/www/api.php(24): Phalcon\Mvc\Application->handle('/api/core/firmw...')
#6 {main}

Thanks!

2
23.7 Legacy Series / Flowd_aggregate - Dies all of the time
« on: September 15, 2023, 01:30:47 am »
Hey all,

My flowd collector is dying about one time per hour.   I searched for the error, yet couldn't find any references to it or a fix.  I am running bare-metal on ZFS, latest release version of OPNSense.

flowd_aggregate.py   flowd aggregate died with message Traceback (most recent call last): File "/usr/local/opnsense/scripts/netflow/flowd_aggregate.py", line 160, in run aggregate_flowd(self.config, do_vacuum) File "/usr/local/opnsense/scripts/netflow/flowd_aggregate.py", line 86, in aggregate_flowd stream_agg_object.cleanup(do_vacuum) File "/usr/local/opnsense/scripts/netflow/lib/aggregates/__init__.py", line 209, in cleanup self.commit() File "/usr/local/opnsense/scripts/netflow/lib/aggregates/__init__.py", line 160, in commit self._db_connection.commit() sqlite3.OperationalError: database is locked

This kills the process, I'm not sure why sqllite would be locked.  I have no other issues that are blatent.  I do have a few of these as well.

[2a9c303b-b7ff-420b-af01-a1374bce2b09] Script action failed with Command '/usr/local/opnsense/scripts/netflow/get_top_usage.py --provider 'FlowDstPortTotals' --start_time '1694703600' --end_time '1694711555' --key_fields 'dst_port,protocol' --value_field 'octets' --filter 'if=mlxen0' --max_hits '25'' returned non-zero exit status 1. at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/actions/script_output.py", line 44, in execute subprocess.check_call(script_command, env=self.config_environment, shell=True, File "/usr/local/lib/python3.9/subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '/usr/local/opnsense/scripts/netflow/get_top_usage.py --provider 'FlowDstPortTotals' --start_time '1694703600' --end_time '1694711555' --key_fields 'dst_port,protocol' --value_field 'octets' --filter 'if=mlxen0' --max_hits '25'' returned non-zero exit status 1.

Currently I have monit watching the pid and restarting when it's not running, yet it's dying off frequently.  Anyone happen to know what may be causing this?  Appreciate the assistance!


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