Timeshift-autosnap E: JSON data must be UTF-8 encoded

I can't update due to timeshift-autosnap is giving me the following error.
After attempt to remove the snapshot it just stays there till I manually cancel the operation. Please help.

 ~ sudo pacman -Syu
[sudo] password for h4rl0ck71:
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community                                     5.4 MiB  3.76 MiB/s 00:01 [----------------------------------------] 100%
 multilib is up to date
 chaotic-aur                                 941.8 KiB  1854 KiB/s 00:01 [----------------------------------------] 100%
 blackarch is up to date
:: Starting full system upgrade...
warning: protontricks-git: local (1.4.4.dev9+g5320a65-1) is newer than chaotic-aur (1.4.4-1)
resolving dependencies...
looking for conflicting packages...

Packages (27) acpi_call-1.2.1-35  bbswitch-dkms-0.8-395  btrfs-progs-5.11-1  cryptsetup-2.3.4-3
              dxvk-mingw-git-1.8.1.r16.g68e6676d-1  firefox-ublock-origin-1.34.0-1  flatpak-1.10.2-1
              garuda-dr460nized-r165.1f09f58-1  garuda-fish-config-r54.ca6f73e-1  gnutls-3.7.1-1  gperftools-2.9.1-1
              latte-dock-git-r5141.32f4c3f7-1  linux-tkg-bmq-5.11.5-135  linux-tkg-bmq-headers-5.11.5-135
              mercurial-5.7.1-1  minecraft-launcher-915-1  npm-7.6.2-1  pamac-aur-10.0.5-1  perl-html-parser-3.76-1
              python-pyqt5-5.15.4-1  python-pyqt5-webengine-5.15.4-1  python-pysocks-1.7.1-4  python-reportlab-3.5.65-1
              starship-git-0.50.0.1431.g3bc3c003-1  steam-1.0.0.69-1  virtualbox-host-modules-arch-6.1.18-17
              xpadneo-dkms-git-0.9.r31.gaa71a9a-1

Total Download Size:     3.38 MiB
Total Installed Size:  377.81 MiB
Net Upgrade Size:        0.23 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 starship-git-0.50.0.1431.g3bc3c003-1-x...     3.4 MiB  3.07 MiB/s 00:01 [----------------------------------------] 100%
(27/27) checking keys in keyring                                         [----------------------------------------] 100%
(27/27) checking package integrity                                       [----------------------------------------] 100%
(27/27) loading package files                                            [----------------------------------------] 100%
(27/27) checking for file conflicts                                      [----------------------------------------] 100%
(27/27) checking available disk space                                    [----------------------------------------] 100%
:: Running pre-transaction hooks...
(1/4) Creating Timeshift snapshot before upgrade...
[Warning] Deleted invalid lock
Using system disk as snapshot device for creating snapshots in BTRFS mode

/dev/nvme0n1p6 is mounted at: /run/timeshift/backup, options: rw,relatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=5,subvol=/

E: JSON data must be UTF-8 encoded

(process:88236): Json-CRITICAL **: 13:37:58.430: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed
E: JSON data must be UTF-8 encoded

(process:88236): Json-CRITICAL **: 13:37:58.430: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed
E: JSON data must be UTF-8 encoded

(process:88236): Json-CRITICAL **: 13:37:58.431: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed
E: JSON data must be UTF-8 encoded

(process:88236): Json-CRITICAL **: 13:37:58.431: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed
E: JSON data must be UTF-8 encoded

(process:88236): Json-CRITICAL **: 13:37:58.431: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed
E: JSON data must be UTF-8 encoded

(process:88236): Json-CRITICAL **: 13:37:58.432: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed
Creating new backup...(BTRFS)
Saving to device: /dev/nvme0n1p6, mounted at path: /run/timeshift/backup
Created directory: /run/timeshift/backup/timeshift-btrfs/snapshots/2021-03-11_13-37-58
Created subvolume snapshot: /run/timeshift/backup/timeshift-btrfs/snapshots/2021-03-11_13-37-58/@
Created subvolume snapshot: /run/timeshift/backup/timeshift-btrfs/snapshots/2021-03-11_13-37-58/@home
Created control file: /run/timeshift/backup/timeshift-btrfs/snapshots/2021-03-11_13-37-58/info.json
BTRFS Snapshot saved successfully (0s)
Tagged snapshot '2021-03-11_13-37-58': ondemand
------------------------------------------------------------------------------
E: JSON data must be UTF-8 encoded

(process:88236): Json-CRITICAL **: 13:37:58.574: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed
E: JSON data must be UTF-8 encoded

(process:88236): Json-CRITICAL **: 13:37:58.575: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed
E: JSON data must be UTF-8 encoded

(process:88236): Json-CRITICAL **: 13:37:58.575: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed
E: JSON data must be UTF-8 encoded

(process:88236): Json-CRITICAL **: 13:37:58.576: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed
E: JSON data must be UTF-8 encoded

(process:88236): Json-CRITICAL **: 13:37:58.576: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed
E: JSON data must be UTF-8 encoded

(process:88236): Json-CRITICAL **: 13:37:58.576: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed
E: JSON data must be UTF-8 encoded

(process:88236): Json-CRITICAL **: 13:37:58.681: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed
E: JSON data must be UTF-8 encoded

(process:88236): Json-CRITICAL **: 13:37:58.681: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed
E: JSON data must be UTF-8 encoded

(process:88236): Json-CRITICAL **: 13:37:58.681: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed
E: JSON data must be UTF-8 encoded

(process:88236): Json-CRITICAL **: 13:37:58.682: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed
E: JSON data must be UTF-8 encoded

(process:88236): Json-CRITICAL **: 13:37:58.682: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed
E: JSON data must be UTF-8 encoded

(process:88236): Json-CRITICAL **: 13:37:58.682: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed
E: JSON data must be UTF-8 encoded

(process:88236): Json-CRITICAL **: 13:37:58.787: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed
E: JSON data must be UTF-8 encoded

(process:88236): Json-CRITICAL **: 13:37:58.787: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed
E: JSON data must be UTF-8 encoded

(process:88236): Json-CRITICAL **: 13:37:58.788: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed
E: JSON data must be UTF-8 encoded

(process:88236): Json-CRITICAL **: 13:37:58.788: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed
E: JSON data must be UTF-8 encoded

(process:88236): Json-CRITICAL **: 13:37:58.788: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed
E: JSON data must be UTF-8 encoded

(process:88236): Json-CRITICAL **: 13:37:58.789: json_node_get_object: assertion 'JSON_NODE_IS_VALID (node)' failed
Removing snapshots (incomplete):
------------------------------------------------------------------------------
Removing snapshot: 2021-03-03_19-00-01
E: Failed to delete directory: /run/timeshift/backup/timeshift-btrfs/snapshots/2021-03-03_19-00-01
E:
E: rm: cannot remove '/run/timeshift/backup/timeshift-btrfs/snapshots/2021-03-03_19-00-01/@/etc/resolv.conf': Operation not permitted

E: Failed to remove snapshot: 2021-03-03_19-00-01
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Removing snapshot: 2021-03-04_21-00-01
E: Failed to delete directory: /run/timeshift/backup/timeshift-btrfs/snapshots/2021-03-04_21-00-01
E:
E: rm: cannot remove '/run/timeshift/backup/timeshift-btrfs/snapshots/2021-03-04_21-00-01/@/etc/resolv.conf': Operation not permitted

E: Failed to remove snapshot: 2021-03-04_21-00-01
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Removing snapshot: 2021-03-06_11-00-01
E: Failed to delete directory: /run/timeshift/backup/timeshift-btrfs/snapshots/2021-03-06_11-00-01
E:
E: rm: cannot remove '/run/timeshift/backup/timeshift-btrfs/snapshots/2021-03-06_11-00-01/@/etc/resolv.conf': Operation not permitted

E: Failed to remove snapshot: 2021-03-06_11-00-01
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Removing snapshot: 2021-03-07_11-00-01
^C
Interrupt signal received
2 Likes

thank you, I did not knew that. :smiley:

2 Likes

The Black Arch edition is experimental in nature as explained on the release notes. It is only to be used by advanced users capable of working through their own issues. Perhaps you should install one of the standard editions to see if the same issue occurs.

If your package versions are out of sync you should update your mirrors, then attempt an update with sudo pacman -Syyuu.

No luck, then try another Garuda version.

3 Likes

Im only using the repo, not actually install the blackarch edition, Im using Dr4g0nized gaming edition.

You must restore first your snapshot and then update.

1 Like

Not sure what pacman -Syyuu have to do with timeshift error. But it did fix the issue, I was concentrating to much searching for the Timeshift error that never thought in go back to basics, thanks for remind me to always see things from a fresh perspective. I been getting to used to Garuda's easy workflow that I'm not thinking enough. Thanks again.

3 Likes

It was not a timeshift error. Read carefully

This means that your package database was out of sync. You could also solve it in most cases using -Syyu but -Syyuu is fine too, if you have to use it in rare cases.

5 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.