OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 22.1 Legacy Series »
  • configd.py log error
« previous next »
  • Print
Pages: [1]

Author Topic: configd.py log error  (Read 823 times)

keropiko

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 2
    • View Profile
configd.py log error
« 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
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 15133
  • Karma: 1309
    • View Profile
Re: configd.py log error
« Reply #1 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
Logged

keropiko

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 2
    • View Profile
Re: configd.py log error
« Reply #2 on: June 09, 2022, 04:38:01 pm »
Hi and thank you for the reply.

The sequence goes like:

Quote
2022-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
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 15133
  • Karma: 1309
    • View Profile
Re: configd.py log error
« Reply #3 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
Logged

keropiko

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 2
    • View Profile
Re: configd.py log error
« Reply #4 on: June 10, 2022, 05:53:41 pm »
Hi Franco,
this is the output of the command:

Quote
root@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
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 15133
  • Karma: 1309
    • View Profile
Re: configd.py log error
« Reply #5 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
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 22.1 Legacy Series »
  • configd.py log error
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2