Storage Snapshot Rollback Fails: Internal error 500
Summary: Storage snapshots are turned on. I installed Zoph, but decided to rollback to a preinstallation snapshot. I clicked on snapshot and confirmed rollback. System gives error 500. This is the first time I've used Rollback on this installation.
System: Debian GNU/Linux 11 (bullseye) and FreedomBox version 21.11. I am logged in as the administrative user.
Here is the log that was given on the page with the error message:
- Journal begins at Tue 2021-07-13 10:29:26 PDT, ends at Sun 2021-10-24 20:10:31 PDT. --
Oct 24 20:03:57 freedombox sudo[14540]: pam_unix(sudo:session): session closed for user root
Oct 24 20:03:58 freedombox /usr/bin/plinth[456]: # zoph get-configuration
Oct 24 20:03:58 freedombox sudo[14550]: plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/zoph get-configuration
Oct 24 20:03:58 freedombox sudo[14550]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=115)
Oct 24 20:03:59 freedombox sudo[14550]: pam_unix(sudo:session): session closed for user root
Oct 24 20:03:59 freedombox /usr/bin/plinth[456]: # zoph set-configuration --enable-osm False
Oct 24 20:03:59 freedombox sudo[14554]: plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/zoph set-configuration --enable-osm False
Oct 24 20:03:59 freedombox sudo[14554]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=115)
Oct 24 20:04:01 freedombox sudo[14554]: pam_unix(sudo:session): session closed for user root
Oct 24 20:04:02 freedombox /usr/bin/plinth[456]: # zoph is-configured
Oct 24 20:04:02 freedombox sudo[14561]: plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/zoph is-configured
Oct 24 20:04:02 freedombox sudo[14561]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=115)
Oct 24 20:04:03 freedombox sudo[14561]: pam_unix(sudo:session): session closed for user root
Oct 24 20:04:04 freedombox /usr/bin/plinth[456]: # zoph get-configuration
Oct 24 20:04:04 freedombox sudo[14570]: plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/zoph get-configuration
Oct 24 20:04:04 freedombox sudo[14570]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=115)
Oct 24 20:04:05 freedombox sudo[14570]: pam_unix(sudo:session): session closed for user root
Oct 24 20:04:58 freedombox /usr/bin/plinth[456]: Attempting to perform upgrade
Oct 24 20:04:58 freedombox /usr/bin/plinth[456]: # packages is-package-manager-busy
Oct 24 20:04:58 freedombox sudo[14587]: plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/packages is-package-manager-busy
Oct 24 20:04:58 freedombox sudo[14587]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=115)
Oct 24 20:05:00 freedombox sudo[14587]: pam_unix(sudo:session): session closed for user root
Oct 24 20:05:07 freedombox /usr/bin/plinth[456]: Apps needing conffile upgrades: None
Oct 24 20:07:02 freedombox /usr/bin/plinth[456]: # snapshot get-config
Oct 24 20:07:02 freedombox sudo[14675]: plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/snapshot get-config
Oct 24 20:07:02 freedombox sudo[14675]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=115)
Oct 24 20:07:03 freedombox sudo[14675]: pam_unix(sudo:session): session closed for user root
Oct 24 20:07:19 freedombox /usr/bin/plinth[456]: # snapshot list
Oct 24 20:07:19 freedombox sudo[14690]: plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/snapshot list
Oct 24 20:07:19 freedombox sudo[14690]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=115)
Oct 24 20:07:20 freedombox sudo[14690]: pam_unix(sudo:session): session closed for user root
Oct 24 20:07:40 freedombox /usr/bin/plinth[456]: # snapshot list
Oct 24 20:07:40 freedombox sudo[14700]: plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/snapshot list
Oct 24 20:07:40 freedombox sudo[14700]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=115)
Oct 24 20:07:42 freedombox sudo[14700]: pam_unix(sudo:session): session closed for user root
Oct 24 20:07:49 freedombox /usr/bin/plinth[456]: # snapshot rollback 21
Oct 24 20:07:49 freedombox sudo[14706]: plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/snapshot rollback 21
Oct 24 20:07:49 freedombox sudo[14706]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=115)
Oct 24 20:07:50 freedombox sudo[14706]: pam_unix(sudo:session): session closed for user root
Oct 24 20:07:50 freedombox /usr/bin/plinth[456]: Error executing command - ['sudo', '-n', '/usr/share/plinth/actions/snapshot', 'rollback', '21'], , Cannot detect ambit since default subvolume is unknown.
This can happen if the system was not set up for rollback.
The ambit can be specified manually using the --ambit option.
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 286, in subcommand_rollback
subprocess.run(command, check=True)
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['snapper', 'rollback', '--description', 'created by rollback', '21']' returned non-zero exit status 1.
Oct 24 20:07:50 freedombox /usr/bin/plinth[456]: Internal Server Error: /plinth/sys/snapshot/21/rollback
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/plinth/modules/snapshot/views.py", line 204, in rollback
actions.superuser_run('snapshot', ['rollback', number])
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: ('snapshot', '', 'Cannot detect ambit since default subvolume is unknown.\nThis can happen if the system was not set up for rollback.\nThe ambit can be specified manually using the --ambit option.\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 286, in subcommand_rollback\n subprocess.run(command, check=True)\n File "/usr/lib/python3.9/subprocess.py", line 528, in run\n raise CalledProcessError(retcode, process.args,\nsubprocess.CalledProcessError: Command \'[\'snapper\', \'rollback\', \'--description\', \'created by rollback\', \'21\']\' returned non-zero exit status 1.\n')
Oct 24 20:08:13 freedombox /usr/bin/plinth[456]: # help get-logs
Oct 24 20:08:13 freedombox sudo[14719]: plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/help get-logs
Oct 24 20:08:13 freedombox sudo[14719]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=115)
Oct 24 20:08:16 freedombox sudo[14719]: pam_unix(sudo:session): session closed for user root
Oct 24 20:08:57 freedombox /usr/bin/plinth[456]: # snapshot list
Oct 24 20:08:57 freedombox sudo[14727]: plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/snapshot list
Oct 24 20:08:57 freedombox sudo[14727]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=115)
Oct 24 20:08:58 freedombox sudo[14727]: pam_unix(sudo:session): session closed for user root
Oct 24 20:09:31 freedombox /usr/bin/plinth[456]: AXES: Successful login by {username: "woods", ip_address: "192.168.0.31", user_agent: "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0", path_info: "/accounts/login/"}.
Oct 24 20:09:32 freedombox /usr/bin/plinth[456]: AXES: Reset 0 access attempts from database.
Oct 24 20:09:32 freedombox /usr/bin/plinth[456]: AXES: Deleted 0 failed login attempts by {username: "woods", ip_address: "192.168.0.31", user_agent: "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0", path_info: "/accounts/login/"} from database.
Oct 24 20:09:32 freedombox /usr/bin/plinth[456]: # auth-pubtkt generate-ticket --uid woods --private-key-file /etc/apache2/auth-pubtkt-keys/privkey.pem --tokens admin
Oct 24 20:09:32 freedombox sudo[14837]: plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/auth-pubtkt generate-ticket --uid woods --private-key-file /etc/apache2/auth-pubtkt-keys/privkey.pem --tokens admin
Oct 24 20:09:32 freedombox sudo[14837]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=115)
Oct 24 20:09:34 freedombox sudo[14837]: pam_unix(sudo:session): session closed for user root
Oct 24 20:09:34 freedombox /usr/bin/plinth[456]: # users get-user-groups woods
Oct 24 20:09:34 freedombox sudo[14840]: plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/users get-user-groups woods
Oct 24 20:09:34 freedombox sudo[14840]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=115)
Oct 24 20:09:35 freedombox ldapsearch[14882]: DIGEST-MD5 common mech free
Oct 24 20:09:35 freedombox ldapsearch[14888]: DIGEST-MD5 common mech free
Oct 24 20:09:36 freedombox ldapsearch[14897]: DIGEST-MD5 common mech free
Oct 24 20:09:36 freedombox ldapsearch[14908]: DIGEST-MD5 common mech free
Oct 24 20:09:36 freedombox ldapsearch[14923]: DIGEST-MD5 common mech free
Oct 24 20:09:36 freedombox sudo[14840]: pam_unix(sudo:session): session closed for user root
Oct 24 20:09:47 freedombox /usr/bin/plinth[456]: # snapshot get-config
Oct 24 20:09:47 freedombox sudo[14939]: plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/snapshot get-config
Oct 24 20:09:47 freedombox sudo[14939]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=115)
Oct 24 20:09:48 freedombox sudo[14939]: pam_unix(sudo:session): session closed for user root
Oct 24 20:09:51 freedombox /usr/bin/plinth[456]: # snapshot list
Oct 24 20:09:51 freedombox sudo[14945]: plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/snapshot list
Oct 24 20:09:51 freedombox sudo[14945]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=115)
Oct 24 20:09:52 freedombox sudo[14945]: pam_unix(sudo:session): session closed for user root
Oct 24 20:09:57 freedombox /usr/bin/plinth[456]: # snapshot list
Oct 24 20:09:57 freedombox sudo[14951]: plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/snapshot list
Oct 24 20:09:57 freedombox sudo[14951]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=115)
Oct 24 20:09:58 freedombox sudo[14951]: pam_unix(sudo:session): session closed for user root
Oct 24 20:10:03 freedombox /usr/bin/plinth[456]: # snapshot rollback 21
Oct 24 20:10:03 freedombox sudo[15009]: plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/snapshot rollback 21
Oct 24 20:10:03 freedombox sudo[15009]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=115)
Oct 24 20:10:04 freedombox sudo[15009]: pam_unix(sudo:session): session closed for user root
Oct 24 20:10:04 freedombox /usr/bin/plinth[456]: Error executing command - ['sudo', '-n', '/usr/share/plinth/actions/snapshot', 'rollback', '21'], , Cannot detect ambit since default subvolume is unknown.
This can happen if the system was not set up for rollback.
The ambit can be specified manually using the --ambit option.
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 286, in subcommand_rollback
subprocess.run(command, check=True)
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['snapper', 'rollback', '--description', 'created by rollback', '21']' returned non-zero exit status 1.
Oct 24 20:10:04 freedombox /usr/bin/plinth[456]: Internal Server Error: /plinth/sys/snapshot/21/rollback
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/plinth/modules/snapshot/views.py", line 204, in rollback
actions.superuser_run('snapshot', ['rollback', number])
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: ('snapshot', '', 'Cannot detect ambit since default subvolume is unknown.\nThis can happen if the system was not set up for rollback.\nThe ambit can be specified manually using the --ambit option.\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 286, in subcommand_rollback\n subprocess.run(command, check=True)\n File "/usr/lib/python3.9/subprocess.py", line 528, in run\n raise CalledProcessError(retcode, process.args,\nsubprocess.CalledProcessError: Command \'[\'snapper\', \'rollback\', \'--description\', \'created by rollback\', \'21\']\' returned non-zero exit status 1.\n')
Oct 24 20:10:07 freedombox /usr/bin/plinth[456]: # snapshot list
Oct 24 20:10:07 freedombox sudo[15024]: plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/snapshot list
Oct 24 20:10:07 freedombox sudo[15024]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=115)
Oct 24 20:10:08 freedombox sudo[15024]: pam_unix(sudo:session): session closed for user root
Oct 24 20:10:14 freedombox /usr/bin/plinth[456]: # snapshot list
Oct 24 20:10:14 freedombox sudo[15033]: plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/snapshot list
Oct 24 20:10:14 freedombox sudo[15033]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=115)
Oct 24 20:10:15 freedombox sudo[15033]: pam_unix(sudo:session): session closed for user root
Oct 24 20:10:18 freedombox /usr/bin/plinth[456]: # snapshot rollback 22
Oct 24 20:10:18 freedombox sudo[15039]: plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/snapshot rollback 22
Oct 24 20:10:18 freedombox sudo[15039]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=115)
Oct 24 20:10:19 freedombox sudo[15039]: pam_unix(sudo:session): session closed for user root
Oct 24 20:10:19 freedombox /usr/bin/plinth[456]: Error executing command - ['sudo', '-n', '/usr/share/plinth/actions/snapshot', 'rollback', '22'], , Cannot detect ambit since default subvolume is unknown.
This can happen if the system was not set up for rollback.
The ambit can be specified manually using the --ambit option.
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 286, in subcommand_rollback
subprocess.run(command, check=True)
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['snapper', 'rollback', '--description', 'created by rollback', '22']' returned non-zero exit status 1.
Oct 24 20:10:19 freedombox /usr/bin/plinth[456]: Internal Server Error: /plinth/sys/snapshot/22/rollback
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/plinth/modules/snapshot/views.py", line 204, in rollback
actions.superuser_run('snapshot', ['rollback', number])
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: ('snapshot', '', 'Cannot detect ambit since default subvolume is unknown.\nThis can happen if the system was not set up for rollback.\nThe ambit can be specified manually using the --ambit option.\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 286, in subcommand_rollback\n subprocess.run(command, check=True)\n File "/usr/lib/python3.9/subprocess.py", line 528, in run\n raise CalledProcessError(retcode, process.args,\nsubprocess.CalledProcessError: Command \'[\'snapper\', \'rollback\', \'--description\', \'created by rollback\', \'22\']\' returned non-zero exit status 1.\n')
Oct 24 20:10:31 freedombox /usr/bin/plinth[456]: # help get-logs
Oct 24 20:10:31 freedombox sudo[15047]: plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/help get-logs
Oct 24 20:10:31 freedombox sudo[15047]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=115)