datetime: 500 error when enabling on Bullseye Virtualbox
FreedomBox 21.15 on Bullseye (all optional updates installed) Virtualbox
When enabling Date & Time:
Dec 10 13:38:36 mybox /usr/bin/plinth[2667]: # service enable systemd-timesyncd
Dec 10 13:38:36 mybox sudo[192558]: plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/service enable systemd-timesyncd
Dec 10 13:38:36 mybox sudo[192558]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=115)
Dec 10 13:38:36 mybox sudo[192558]: pam_unix(sudo:session): session closed for user root
Dec 10 13:38:36 mybox /usr/bin/plinth[2667]: Error executing command - ['sudo', '-n', '/usr/share/plinth/actions/service', 'enable', 'systemd-timesyncd'], , Traceback (most recent call last):
File "/usr/share/plinth/actions/service", line 130, in <module>
main()
File "/usr/share/plinth/actions/service", line 125, in main
_assert_service_is_managed_by_plinth(arguments.service)
File "/usr/share/plinth/actions/service", line 115, in _assert_service_is_managed_by_plinth
raise ValueError(msg)
ValueError: The service 'systemd-timesyncd' is not managed by FreedomBox. Access is only permitted for services listed in the 'managed_services' variable of any FreedomBox app.
Dec 10 13:38:36 mybox /usr/bin/plinth[2667]: Internal Server Error: /plinth/sys/datetime/
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3/dist-packages/django/views/generic/base.py", line 71, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python3/dist-packages/django/views/generic/base.py", line 97, in dispatch
return handler(request, *args, **kwargs)
File "/usr/lib/python3/dist-packages/plinth/views.py", line 173, in post
return self.enable_disable_form_valid(form)
File "/usr/lib/python3/dist-packages/plinth/views.py", line 245, in enable_disable_form_valid
self.app.enable()
File "/usr/lib/python3/dist-packages/plinth/app.py", line 184, in enable
component.enable()
File "/usr/lib/python3/dist-packages/plinth/daemon.py", line 73, in enable
actions.superuser_run('service', ['enable', self.unit])
File "/usr/lib/python3/dist-packages/plinth/actions.py", line 104, in superuser_run
return _run(action, options, input, run_in_background, True,
File "/usr/lib/python3/dist-packages/plinth/actions.py", line 200, in _run
raise ActionError(action, output, error)
plinth.errors.ActionError: ('service', '', 'Traceback (most recent call last):\n File "/usr/share/plinth/actions/service", line 130, in <module>\n main()\n File "/usr/share/plinth/actions/service", line 125, in main\n _assert_service_is_managed_by_plinth(arguments.service)\n File "/usr/share/plinth/actions/service", line 115, in _assert_service_is_managed_by_plinth\n raise ValueError(msg)\nValueError: The service \'systemd-timesyncd\' is not managed by FreedomBox. Access is only permitted for services listed in the \'managed_services\' variable of any FreedomBox app.\n')