You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...
Feb 09 16:39:41 rzutnik autosuspend[424770]: 2025-02-09 16:39:41,891 - autosuspend - INFO - Configuring check Load with class Load from module autosuspend.checks.activity using config parameters {'enabled': 'true', 'threshold': '10'}
Feb 09 16:39:44 rzutnik autosuspend[424770]: Traceback (most recent call last):
Feb 09 16:39:44 rzutnik autosuspend[424770]: File "/usr/bin/autosuspend", line 33, in <module>
Feb 09 16:39:44 rzutnik autosuspend[424770]: sys.exit(load_entry_point('autosuspend==6.0.0', 'console_scripts', 'autosuspend')())
Feb 09 16:39:44 rzutnik autosuspend[424770]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 09 16:39:44 rzutnik autosuspend[424770]: File "/usr/lib/python3/dist-packages/autosuspend/__init__.py", line 793, in main
Feb 09 16:39:44 rzutnik autosuspend[424770]: args.func(args, config)
Feb 09 16:39:44 rzutnik autosuspend[424770]: File "/usr/lib/python3/dist-packages/autosuspend/__init__.py", line 760, in main_daemon
Feb 09 16:39:44 rzutnik autosuspend[424770]: checks = set_up_checks(
Feb 09 16:39:44 rzutnik autosuspend[424770]: ^^^^^^^^^^^^^^
Feb 09 16:39:44 rzutnik autosuspend[424770]: File "/usr/lib/python3/dist-packages/autosuspend/__init__.py", line 481, in set_up_checks
Feb 09 16:39:44 rzutnik autosuspend[424770]: _set_up_single_check(section, prefix, internal_module, target_class)
Feb 09 16:39:44 rzutnik autosuspend[424770]: File "/usr/lib/python3/dist-packages/autosuspend/__init__.py", line 425, in _set_up_single_check
Feb 09 16:39:44 rzutnik autosuspend[424770]: config_section_string(section),
Feb 09 16:39:44 rzutnik autosuspend[424770]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 09 16:39:44 rzutnik autosuspend[424770]: File "/usr/lib/python3/dist-packages/autosuspend/__init__.py", line 380, in config_section_string
Feb 09 16:39:44 rzutnik autosuspend[424770]: data = {k: v if k != "password" else "<redacted>" for k, v in section.items()}
Feb 09 16:39:44 rzutnik autosuspend[424770]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 09 16:39:44 rzutnik autosuspend[424770]: File "<frozen _collections_abc>", line 894, in __iter__
Feb 09 16:39:44 rzutnik autosuspend[424770]: File "/usr/lib/python3.12/configparser.py", line 1225, in __getitem__
Feb 09 16:39:44 rzutnik autosuspend[424770]: return self._parser.get(self._name, key)
Feb 09 16:39:44 rzutnik autosuspend[424770]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 09 16:39:44 rzutnik autosuspend[424770]: File "/usr/lib/python3.12/configparser.py", line 777, in get
Feb 09 16:39:44 rzutnik autosuspend[424770]: return self._interpolation.before_get(self, section, option, value,
Feb 09 16:39:44 rzutnik autosuspend[424770]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 09 16:39:44 rzutnik autosuspend[424770]: File "/usr/lib/python3.12/configparser.py", line 428, in before_get
Feb 09 16:39:44 rzutnik autosuspend[424770]: self._interpolate_some(parser, option, L, value, section, defaults, 1)
Feb 09 16:39:44 rzutnik autosuspend[424770]: File "/usr/lib/python3.12/configparser.py", line 488, in _interpolate_some
Feb 09 16:39:44 rzutnik autosuspend[424770]: raise InterpolationSyntaxError(
Feb 09 16:39:44 rzutnik autosuspend[424770]: configparser.InterpolationSyntaxError: '$' must be followed by '$' or '{', found: '$(date +%H) -gt 7'
Feb 09 16:39:45 rzutnik systemd[1]: autosuspend.service: Main process exited, code=exited, status=1/FAILURE
Feb 09 16:39:45 rzutnik systemd[1]: autosuspend.service: Failed with result 'exit-code'.
Feb 09 16:39:45 rzutnik systemd[1]: autosuspend.service: Consumed 3.665s CPU time.
...
Looks like the configuration values might not be escaped properly.
The text was updated successfully, but these errors were encountered:
Adding this kind of ExternalCommand
Will result in
Looks like the configuration values might not be escaped properly.
The text was updated successfully, but these errors were encountered: