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 - backward7

#1
Quote from: gdur on August 21, 2024, 10:24:05 AM
I encounter the same problem as it looks like.
I had lots of (13: Permission denied) entries in /var/log/nginx/latest.log and after altering the rights of the /var/log/nginx folder those entries were gone and log lines were stored properly in the belonging log files.
You wrote that the /var/log/nginx rights were root:wheel that differs from mine which were root:staff.
Log entries are written by nginx as user www which is as expected. I haven't tried a reboot yet but if the case is that this is changed back after every reboot that would be very inconvenient.

https://github.com/opnsense/plugins/issues/4186

Here, take a look at this.
#2
24.7, 24.10 Legacy Series / Re: No NGINX Logs in UI
August 19, 2024, 04:26:54 AM
After applying the patch https://github.com/opnsense/plugins/issues/4113
did you try rebooting it?

In my case, even after the patch, not only the logs were missing again, but also there were a lot of error saying "error 13: permission denied"

I did some digging and found out that whenever I rebooted the opnsense, the owner of the nginx log folder changed to root.

Can you try rebooting as well? I wanna know this is just happening to me.

#3
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
#4
I'm experiencing an issue where Nginx on my OPNsense restarts every 10 minutes.

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


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