OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Profile of backward7 »
  • 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 - backward7

Pages: [1]
1
24.7 Production Series / Nginx Plugin Fails to Modify Log Folder Due to Ownership
« on: August 18, 2024, 05:06:18 am »
I'm encountering an issue where the ownership of the Nginx log folder (/var/log/nginx) changes to root:wheel after each reboot.

Due to this change in ownership, the Nginx plugin cannot modify the log folder, which creates several issues.
(unable to parse logs through crowdsec, error log gets flooded with error 13: permission denied)

I have noticed that if I manually change the ownership of the log folder to a lower privilege level, which is www:wheel, the problem is resolved and everything functions correctly.

But it reverts to root:wheel whenever I reboot the system.

I'm trying to understand where this issue is originated from. Is there a particular script or configuration within OPNsense that is resetting the ownership of this folder to root:wheel after a reboot? Any insights or guidance on how to fix this issue would be greatly appreciated.

OpnSense 24.7.1
Nginx 1.34

2
24.7 Production Series / Nginx on OPNsense Restarting Every 10 Minutes
« on: August 16, 2024, 06:07:22 am »
I'm experiencing an issue where Nginx on my OPNsense restarts every 10 minutes.

this is from `/var/log/nginx/error.log`

Code: [Select]
2024/08/16 11:10:00 [notice] (PID)#(TID): signal process started
2024/08/16 11:20:00 [notice] (PID)#(TID): signal process started
2024/08/16 11:30:00 [notice] (PID)#(TID): signal process started
2024/08/16 11:40:00 [notice] (PID)#(TID): signal process started
2024/08/16 11:50:00 [notice] (PID)#(TID): signal process started
2024/08/16 12:00:00 [notice] (PID)#(TID): signal process started
2024/08/16 12:10:00 [notice] (PID)#(TID): signal process started
2024/08/16 12:20:00 [notice] (PID)#(TID): signal process started
2024/08/16 12:30:00 [notice] (PID)#(TID): signal process started
2024/08/16 12:40:00 [notice] (PID)#(TID): signal process started
2024/08/16 12:50:00 [notice] (PID)#(TID): signal process started
As you can see, it is restarting at exactly 10-minute intervals.

I've already checked the cron jobs and log rotation settings, and neither seem to be the cause.
Here’s what I’ve tried so far:

    Cron jobs: There are no jobs scheduled that would cause a restart every 10 minutes.
    Log rotation: Log rotation is set to daily, and does not seem to be causing the issue.

Is this intended behavior, or is there a configuration error causing this? I would appreciate any insights you might have.

Thanks


OpnSense 24.7.1
Nginx plugin 1.34

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