OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Zenarmor (Sensei) »
  • Bug report: PHP error due to typo with mongodb
« previous next »
  • Print
Pages: [1]

Author Topic: Bug report: PHP error due to typo with mongodb  (Read 3167 times)

sorano

  • Full Member
  • ***
  • Posts: 153
  • Karma: 21
    • View Profile
Bug report: PHP error due to typo with mongodb
« on: June 29, 2021, 11:45:55 am »
Saw this error when I logged into OPNsense today:

Code: [Select]
[28-Jun-2021 22:47:18 Europe/Stockholm] PHP Warning:  unlink(/tmp/mongodb_dahsboard60da35511c350.json): No such file or directory in /usr/local/opnsense/mvc/app/controllers/OPNsense/Sensei/Api/WidgetController.php on line 97
[28-Jun-2021 22:47:18 Europe/Stockholm] PHP Warning:  unlink(/tmp/mongodb_dahsboard60da35511c350_result.json): No such file or directory in /usr/local/opnsense/mvc/app/controllers/OPNsense/Sensei/Api/WidgetController.php on line 98

If you look at the filename it's looking for a file called dahsboard.
Logged
2x 23.7 VMs & CARP, 4x 2.1GHz, 8GB
Cisco L3 switch, ESXi, VDS, vmxnet3
DoT, Chrony, HAProxy + NAXSI, Suricata
VPN: IPSec, OpenVPN, Wireguard
MultiWAN: Fiber 500/500Mbit dual stack + 4G failover

--
Available for private support.
Did my answer help you? Feel free to click [applaud] to the left

sy

  • Hero Member
  • *****
  • Posts: 598
  • Karma: 44
    • View Profile
Re: Bug report: PHP error due to typo with mongodb
« Reply #1 on: June 29, 2021, 03:22:56 pm »
Hi,

What about the reports and widget? All works or?
Logged

sorano

  • Full Member
  • ***
  • Posts: 153
  • Karma: 21
    • View Profile
Re: Bug report: PHP error due to typo with mongodb
« Reply #2 on: June 29, 2021, 05:56:08 pm »
Well, the mongodb service had stopped again for some unknown reason.

Just starting the service normally (without erasing reporting data) got it up and running.

However I seem to get alot of mongodb stops for no apparent reason, the fw is up and running all other services works fine but mongodb keeps taking a dump from time to time.

Edit:

Looking at this further I found the following:

Code: [Select]
root@fw01:/var/log # grep -i mongod dmesg.*
dmesg.today:pid 20481 (mongod), jid 0, uid 922, was killed: out of swap space
dmesg.yesterday:pid 20481 (mongod), jid 0, uid 922, was killed: out of swap space

So out of memory seems like a solid guess, just weird that no other services was affected. I have 8GB RAM and 2 days retention for Sensei.
Looks like Suricata is using alot of RAM though.
« Last Edit: June 29, 2021, 06:12:29 pm by sorano »
Logged
2x 23.7 VMs & CARP, 4x 2.1GHz, 8GB
Cisco L3 switch, ESXi, VDS, vmxnet3
DoT, Chrony, HAProxy + NAXSI, Suricata
VPN: IPSec, OpenVPN, Wireguard
MultiWAN: Fiber 500/500Mbit dual stack + 4G failover

--
Available for private support.
Did my answer help you? Feel free to click [applaud] to the left

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Zenarmor (Sensei) »
  • Bug report: PHP error due to typo with mongodb
 

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