Skip to content

snapshot: 500 internal error on ext4 system

This is on a Linode VPS running Debian bullseye with FreedomBox 22.20. Their Debian image has an ext4 file system rather than btrfs.

Sep 24 19:57:14 freedombox /usr/bin/plinth[27832]: # snapshot get-config
Sep 24 19:57:14 freedombox sudo[36436]:   plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/snapshot get-config
Sep 24 19:57:14 freedombox sudo[36436]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=114)
Sep 24 19:57:14 freedombox sudo[36436]: pam_unix(sudo:session): session closed for user root
Sep 24 19:57:14 freedombox /usr/bin/plinth[27832]: Error executing command - ['sudo', '-n', '/usr/share/plinth/actions/snapshot', 'get-config'], , The config 'root' does not exist. Likely snapper is not configured.
                                                   See 'man snapper' for further instructions.
                                                   Traceback (most recent call last):
                                                     File "/usr/share/plinth/actions/snapshot", line 299, in <module>
                                                       main()
                                                     File "/usr/share/plinth/actions/snapshot", line 295, in main
                                                       subcommand_method(arguments)
                                                     File "/usr/share/plinth/actions/snapshot", line 253, in subcommand_get_config
                                                       config = _get_config()
                                                     File "/usr/share/plinth/actions/snapshot", line 243, in _get_config
                                                       process = subprocess.run(command, stdout=subprocess.PIPE, check=True)
                                                     File "/usr/lib/python3.9/subprocess.py", line 528, in run
                                                       raise CalledProcessError(retcode, process.args,
                                                   subprocess.CalledProcessError: Command '['snapper', 'get-config']' returned non-zero exit status 1.
Sep 24 19:57:14 freedombox /usr/bin/plinth[27832]: Internal Server Error: /plinth/sys/snapshot/
                                                   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/django/views/generic/edit.py", line 133, in get
                                                       return self.render_to_response(self.get_context_data())
                                                     File "/usr/lib/python3/dist-packages/plinth/modules/snapshot/views.py", line 74, in get_context_data
                                                       context = super().get_context_data(*args, **kwargs)
                                                     File "/usr/lib/python3/dist-packages/plinth/views.py", line 252, in get_context_data
                                                       context = super().get_context_data(*args, **kwargs)
                                                     File "/usr/lib/python3/dist-packages/django/views/generic/edit.py", line 66, in get_context_data
                                                       kwargs['form'] = self.get_form()
                                                     File "/usr/lib/python3/dist-packages/plinth/views.py", line 197, in get_form
                                                       return super().get_form(*args, **kwargs)
                                                     File "/usr/lib/python3/dist-packages/django/views/generic/edit.py", line 33, in get_form
                                                       return form_class(**self.get_form_kwargs())
                                                     File "/usr/lib/python3/dist-packages/django/views/generic/edit.py", line 38, in get_form_kwargs
                                                       'initial': self.get_initial(),
                                                     File "/usr/lib/python3/dist-packages/plinth/modules/snapshot/views.py", line 69, in get_initial
                                                       initial.update(get_configuration())
                                                     File "/usr/lib/python3/dist-packages/plinth/modules/snapshot/__init__.py", line 118, in get_configuration
                                                       output = actions.superuser_run('snapshot', ['get-config'])
                                                     File "/usr/lib/python3/dist-packages/plinth/actions.py", line 109, in superuser_run
                                                       return _run(action, options, input, run_in_background, True,
                                                     File "/usr/lib/python3/dist-packages/plinth/actions.py", line 205, in _run
                                                       raise ActionError(action, output, error)
                                                   plinth.errors.ActionError: ('snapshot', '', 'The config \'root\' does not exist. Likely snapper is not configured.\nSee \'man snapper\' for further instructions.\nTraceback (most recent call last):\n  File "/usr/share/plinth/actions/snapshot", line 299, in <module>\n    main()\n  File "/usr/share/plinth/actions/snapshot", line 295, in main\n    subcommand_method(arguments)\n  File "/usr/share/plinth/actions/snapshot", line 253, in subcommand_get_config\n    config = _get_config()\n  File "/usr/share/plinth/actions/snapshot", line 243, in _get_config\n    process = subprocess.run(command, stdout=subprocess.PIPE, check=True)\n  File "/usr/lib/python3.9/subprocess.py", line 528, in run\n    raise CalledProcessError(retcode, process.args,\nsubprocess.CalledProcessError: Command \'[\'snapper\', \'get-config\']\' returned non-zero exit status 1.\n')
Sep 24 19:57:49 freedombox /usr/bin/plinth[27832]: # help get-logs