Menu

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.

Show posts Menu

Messages - doug_phoenix

#1
Zenarmor (Sensei) / Re: MongoDB database locked
September 26, 2023, 06:13:15 PM
Update:

SunnyValley has provided a patch that I have tested on my system. I am no longer seeing database or Netmap-related crashes.  :)

I had another issue. My temporary memory filled up within a few hours. Along with this, CPU use increased (60-85% with spikes to 100%, processer increased from 45 to 58 C. No crashes, but the firewall became sluggish. This was resolved by setting web controls from "moderate" to "permissive."

Feedback from tech support is that this issue is due to hardware insufficiency. My system uses a Celeron J4125.
#2
Zenarmor (Sensei) / Re: MongoDB database locked
September 20, 2023, 05:18:03 PM
Reply to @almodovaris

I suppose Proxmox is an option to leverage spare resources on the Protectli box. I might try that some day. But to solve the ZA issues (which seems netmap related) it looks like another rabbit hole. I've been down a few already...

Having never run VM's, my understanding is that Proxmox would consume a little overhead, and I would have concerns about the demands of both OPNsense/ZenArmor on one VM and another VM running Elasticsearch. My box runs a Celeron J4125.

Thanks.
#3
Zenarmor (Sensei) / Re: MongoDB database locked
September 20, 2023, 05:05:55 PM
I'm running OPNsense 23.7.4-amd64. I've removed ZenArmor, but I downloaded snd installed the Plugins just yesterday, and ZA reported that the engine was the "latest."

Yes, it seems to me like a netmap issue too. I've had issues with native and emulated drivers.

Thank you.
#4
Zenarmor (Sensei) / Re: MongoDB database locked
September 20, 2023, 12:38:13 AM
I'm running OPNsense on bare metal (no VM). Did you mean to say that I could constrain available memory? I'm not quite sure how to do that. (Anything at the BIOS-level might be risky given other experience with this hardware.)

Thanks!
#5
Zenarmor (Sensei) / Re: MongoDB database locked
September 18, 2023, 11:56:14 PM
Well, it only took a few hours for OPNsense to lock up.

I had errors displayed on the console that were similar to before (netmap emulated adapter destroyed ... created etc.)

Yes, I was running the latest update.

I submitted a full report to Sunnyvalley (checked all options), as requested previously. Removing ZenArmor now.

I'm disappointed. I purchased this hardware specifically to run ZenArmor on OPNsense.
#6
Zenarmor (Sensei) / Re: MongoDB database locked
September 18, 2023, 08:55:48 PM
I just reinstalled this morning. I'm using SQL again because I do not know how to enable local Elasticsearch on my hardware (and I don't want the overhead of setting up and maintaining a remote database).

I limited data retention to 1-day, even though I have plenty of storage.

So far, ZA is running well - CPU use is low, no obvious speed issues, memory use is < 35%. Will update after it's been running for awhile.
#7
Zenarmor (Sensei) / Re: MongoDB database locked
September 04, 2023, 03:55:57 PM
Thanks. I used to run Elasticsearch, but with reinstallation I was not presented with the option to use local Elasticsearch. I'm running a Protectli VP2410 with 16 GB DRAM and 480 GB SSD. Should be plenty of storage, memory, and even processing speed.

Let us know if you learn more. Thanks.
#8
Zenarmor (Sensei) / Re: MongoDB database locked
September 02, 2023, 02:24:55 PM
@chaosphere64,

All along I thought it was just me. Good to know at least someone else sees the same problem. But I'm sorry, too.

Are you using LAGG?

One of my suspicions has been the bios itself. I ran into a memory problem early-on, now resolved. I'm wondering if there could be a disk management issue too.
I've considered flashing AMI, but there are risks.

I'm out of town for a couple of weeks; hoping that you or someone else manages to resolve the problem.
#9
Zenarmor (Sensei) / Re: MongoDB database locked
August 31, 2023, 10:15:29 PM
@sy,

I've temporarily removed ZenArmor after a crash. I did submit a crash report. I recall a number of netmap messages as on my third post from Aug 28 (here).

I'll be away for the next two weeks, but I'll revisit after I return. Thanks for your interest and support.
#10
Zenarmor (Sensei) / Re: MongoDB database locked
August 29, 2023, 12:55:19 AM
OPNsense is running well so far with ZA in passive mode. I added some blocklists to Unbound DNS, and I think that I'm blocking most of the traffic that ZA had been blocking, as far as I can tell.

I can continue operating in this mode for some time, but I'm curious: why does ZA routing cause my system to lock up? I've run a few hardware tests, including smartctl (long and short tests), Memtest 86+, and s-tui stress. I'm on my second SSD.

I've disabled hardware CSC, TSO, LRO, and VLAN filtering.

I do run LAGG (LACP) on two of the four ports. Could that be the issue?
#11
Zenarmor (Sensei) / Re: MongoDB database locked
August 28, 2023, 05:29:49 PM
Only took an hour this time. CPU pegged at 100% again.

Trying passive mode now.
#12
Zenarmor (Sensei) / Re: MongoDB database locked
August 28, 2023, 04:24:08 PM
Thank you, that is helpful.  :)

This morning my network was down again. The console showed screens full of netmap errors (emulated adapter ... destroyed... Native netmap emulator ... created... emulated adapter ... created).

I'm trying native netmap now. I should know in a few hours if that is my issue.
#13
Zenarmor (Sensei) / Re: MongoDB database locked
August 28, 2023, 03:47:55 AM
After several hours, I'm seeing a similar issue with SQL. CPU pegged at 100%. Resetting the database returns things to normal.

I think my hardware should be powerful enough to run ZenArmor. Smartctl passes.
Any other ideas?

Protectli VP2410
Intel Celeron J4125
16 GB DRAM
480 GB M.2 SSD
coreboot BIOS

Type   opnsense   
Version   23.7.2   
Architecture   amd64   
Commit   81a9dcc9c   
Mirror   https://pkg.opnsense.org/FreeBSD:13:amd64/23.7   
Repositories   OPNsense, SunnyValley   
Updated on   Sun Aug 27 09:01:37 MST 2023
#14
Zenarmor (Sensei) / Re: MongoDB database locked
August 27, 2023, 04:13:13 PM
Thank you! I hadn't appreciated that SQL was less problematic. I'll reinstall ZA with SQL.

And yes, I'll keep retention to two days, as I did with MongoDB.
#15
Zenarmor (Sensei) / Re: MongoDB database locked
August 27, 2023, 12:22:12 AM
Brief update:

Since rebooting my CPU has been pegged at 100% most of the time. Previously, it had been varying from 0-60% or so. Stopping MongoDB gives 25-40%. I'll try leaving it off. No database, of course, but better than a locked-up firewall.

Along the way, I switched from native to emulated netmap. No difference, so for now I'm staying with emulated.

FYI I've read that Elasticsearch is preferred, but I was not presented with that option when I reinstalled ZA recently.