OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: keropiko on June 09, 2022, 08:27:14 AM

Title: configd.py log error
Post by: keropiko on June 09, 2022, 08:27:14 AM
Hello,

i recently noticed in my logs a lot of
Quote[3d448a43-1f6a-4745-9184-ee2022cc73f5] Script action stderr returned "b'usage: sysctl [-bdehiNnoqTtWx] [ -B <bufsize> ] [-f filename] name[=value] ...\n sysctl [-bdehNnoqTtWx] [ -B <bufsize> ] -a'"
these error lines for process configd.py.

What could this be?


Also i would like to ask for another strange thing (different problem), that i have installed the adguardhome plugin and every 2-3 days, all of sudden without reason it stops (the service appears red in the dhasboard) and i have to manually start because internet stops working.

Thank you
Title: Re: configd.py log error
Post by: franco on June 09, 2022, 12:22:23 PM
Hi,

Unfortunately the error itself doesn't tell us about the caller of the script. Do you have more context from the log file?

Can't speak for adguard as it's not in our managed repositories.


Cheers,
Franco
Title: Re: configd.py log error
Post by: keropiko on June 09, 2022, 04:38:01 PM
Hi and thank you for the reply.

The sequence goes like:

Quote2022-06-09T17:36:17   Notice   configd.py   [0cbdc1c6-7569-4ac9-b795-f0fd9615e69d] Show log   
2022-06-09T17:36:16   Notice   configd.py   [9b2ca3dc-95d7-420c-b6cc-7f050ae1d1d1] Show log   
2022-06-09T17:36:13   Notice   configd.py   [1fa1e63d-24f0-4532-ab4a-95a2e6f2b554] Show log   
2022-06-09T17:36:12   Notice   configd.py   [28e6c685-9fac-4c13-9d57-eb72d7ae4b93] Show log   
2022-06-09T17:36:10   Notice   configd.py   [a3f48405-f0a4-4ab7-bcf6-a9c96b74b759] Show log   
2022-06-09T17:36:08   Error   configd.py   [691da86e-45bf-4b11-80d4-2d438998e15e] Script action stderr returned "b'usage: sysctl [-bdehiNnoqTtWx] [ -B <bufsize> ] [-f filename] name[=value] ...\n sysctl [-bdehNnoqTtWx] [ -B <bufsize> ] -a'"   
2022-06-09T17:36:08   Notice   configd.py   [691da86e-45bf-4b11-80d4-2d438998e15e] Reading system temperature values   
2022-06-09T17:36:08   Notice   configd.py   [91758997-c804-476b-8543-c97111455f96] Retrieve firmware product info   
2022-06-09T17:35:37   Error   configd.py   [c18021b4-048a-4d2d-9919-d6ad989352f0] Script action stderr returned "b'usage: sysctl [-bdehiNnoqTtWx] [ -B <bufsize> ] [-f filename] name[=value] ...\n sysctl [-bdehNnoqTtWx] [ -B <bufsize> ] -a'"   
2022-06-09T17:35:37   Notice   configd.py   [c18021b4-048a-4d2d-9919-d6ad989352f0] Reading system temperature values   
2022-06-09T17:35:37   Notice   configd.py   [054c1cb5-645d-48e5-b6e3-67c00a5f7d13] Retrieve firmware product info

could it be something of the bolded lines?

Thermal Sensors in miscellaneous settings is set to "None/ACPI" anyway
Title: Re: configd.py log error
Post by: franco on June 10, 2022, 01:42:37 PM
Can you run this for me and add the output here?

# sh -x /usr/local/opnsense/scripts/system/temperature.sh


Thanks,
Franco
Title: Re: configd.py log error
Post by: keropiko on June 10, 2022, 05:53:41 PM
Hi Franco,
this is the output of the command:

Quoteroot@OPNsense:~ # sh -x /usr/local/opnsense/scripts/system/temperature.sh
+ CMD=''
+ SYSCTLS='
dev.cpu.0.temperature
hw.acpi.thermal.tz0.temperature
hw.temperature.CPU
'
+ [ '' '=' rrd ]
+ sort
+ grep temperature
+ sysctl -aN
+ sysctl -e
usage: sysctl [-bdehiNnoqTtWx] [ -B <bufsize> ] [-f filename] name[=value] ...
       sysctl [-bdehNnoqTtWx] [ -B <bufsize> ] -a
Title: Re: configd.py log error
Post by: franco on June 10, 2022, 08:54:19 PM
Thanks, I expected as much. The following patch should fix it:

https://github.com/opnsense/core/commit/3a5484dcd59

# opnsense-patch 3a5484dcd59


Cheers,
Franco