linuxmint / timeshift

System restore tool for Linux. Creates filesystem snapshots using rsync+hardlinks, or BTRFS snapshots. Supports scheduled snapshots, multiple backup levels, and exclude filters. Snapshots can be restored while system is running or from Live CD/USB.
2.46k stars 90 forks source link

Timeshift not working anymore with rsync 3.2.7-0ubuntu0.22.04.2 #152

Open quallenbezwinger opened 1 year ago

quallenbezwinger commented 1 year ago

Describe the bug Snapshots are not created anymore. Process is starting and also UI is saying that snapshot was created. Bu snapshot is not appearing in the list. Timeshift log and systemlog is showing an rsync error.

To Reproduce Steps to reproduce the behavior:

  1. Update rsync to 3.2.7-0ubuntu0.22.04.2
  2. Try to create a snapshot

Log Mar 10 19:54:55 ubuntu-desktop timeshift-gtk.desktop[11612]: App config loaded: /etc/timeshift/timeshift.json Mar 10 19:54:55 ubuntu-desktop timeshift-gtk.desktop[11612]: /dev/sda1 is mounted at: /run/timeshift/backup, options: rw,relatime Mar 10 19:55:02 ubuntu-desktop timeshift-gtk.desktop[11612]: ------------------------------------------------------------------------------ Mar 10 19:55:02 ubuntu-desktop timeshift-gtk.desktop[11612]: Creating new snapshot...(RSYNC) Mar 10 19:55:02 ubuntu-desktop timeshift-gtk.desktop[11612]: Saving to device: /dev/sda1, mounted at path: /run/timeshift/backup Mar 10 19:55:02 ubuntu-desktop timeshift-gtk.desktop[11612]: Linking from snapshot: 2023-03-10_19-52-36 Mar 10 19:55:02 ubuntu-desktop timeshift-gtk.desktop[11612]: Synching files with rsync... Mar 10 19:55:03 ubuntu-desktop timeshift-gtk[11612]: Failed to set text '\F48d\8D\91' from markup due to error parsing markup: Error on line 1 char 15: Invalid UTF-8 encoded text in name — not valid “\F48d\8D\91”

System:

therob84 commented 1 year ago

I do have the same problem - Timeshift GUI is starting, snapshot creation is started (and also files are copied, no error in rsync log, sometimes it never leaves 0,00% status), but in the end the snapshot is not available in the list and no error is shown in the GUI. I also re-formattet the ext. USB-Device (Ext4)

Should I downgrade Timeshift or rsync?

quallenbezwinger commented 1 year ago

Downgrading rsync was the solution for me

IamLunchbox commented 1 year ago

I can reproduce on my system. Interestingly, timeshift is no really helpful regarding the source of the rsync error.

user@ubuntu: sudo timeshift --debug --verbose --create                                                                                                                                              
D: Main()
D: 
D: Running Timeshift v21.09.1
D: 
D: Session log file: /var/log/timeshift/2023-03-13_08-11-04_ondemand.log
D: Distribution: Ubuntu 22.04 (jammy)
D: DIST_ID: Ubuntu
D: Main: check_dependencies()
D: Main: add_default_exclude_entries()
D: Main: add_default_exclude_entries(): exit
D: update_partitions()
D: df -T -B1
D: Device: get_disk_space_using_df(): 3
D: Device: get_mounted_filesystems_using_mtab(): 3
D: Device: get_filesystems(): 26
D: partition list updated
D: detect_system_devices()
D: /boot/efi is mapped to device: /dev/nvme0n1p1, UUID=C7E3-FFA2
D: /boot is mapped to device: /dev/nvme0n1p2, UUID=69362699-2491-4351-b7f2-aa2a76170260
D: / is mapped to device: /dev/dm-1, UUID=004e8411-bf6b-46eb-a619-571fe9b40043
D: Searching subvolume for system at path: /
D: Users: raphael libvirt-qemu root
D: Encrypted home users: 
D: Encrypted home dirs:

D: Encrypted private dirs:

D: Main: load_app_config()
App config loaded: /etc/timeshift/timeshift.json
D: IconManager: init()
D: bin_path: /usr/bin/timeshift
D: found images directory: /usr/share/timeshift/images
D: Main(): ok
D: AppConsole: parse_arguments()

/dev/dm-1 is mounted at: /run/timeshift/backup, options: rw,relatime,errors=remount-ro

------------------------------------------------------------------------------
Creating new snapshot...(RSYNC)
Saving to device: /dev/dm-1, mounted at path: /run/timeshift/backup
Linking from snapshot: 2023-03-03_13-00-02
Synching files with rsync...
E: Error opening file “/run/timeshift/backup/timeshift/snapshots/2023-03-13_08-11-04/rsync-log-changes”: File exists
E: Failed to write file: /run/timeshift/backup/timeshift/snapshots/2023-03-13_08-11-04/rsync-log-changes
E: rsync returned an error                                                      
E: Failed to create new snapshot
Failed to create snapshot
------------------------------------------------------------------------------
Removing snapshots (incomplete):
------------------------------------------------------------------------------
Removing '2023-03-13_08-11-04'...
Removed '2023-03-13_08-11-04'                                                   
------------------------------------------------------------------------------

I am running VERSION="22.04.2 LTS (Jammy Jellyfish)" with rsync 3.2.7 and timeshift 21.09.1-1.

IamLunchbox commented 1 year ago

It seems to be an error due to an unexpected logfile:

[08:11:04] ------------------------------------------------------------------------------
[08:11:04] Creating new snapshot...(RSYNC)
[08:11:04] Saving to device: /dev/dm-1, mounted at path: /run/timeshift/backup
[08:11:04] Linking from snapshot: 2023-03-03_13-00-02
[08:11:04] Main: save_exclude_list_for_backup()
[08:11:04] Main: create_exclude_list_for_backup()
[08:11:04] Main: create_exclude_list_for_backup(): exit
[08:11:04] Synching files with rsync...
[08:11:04] RsyncTask:execute()
[08:11:04] rsync -aii --recursive --verbose --delete --force --stats --sparse --delete-excluded --link-dest='/run/timeshift/backup/timeshift/snapshots/2023-03-03_13-00-02/localhost/' --log-file='/run/timeshift/backup/timeshift/snapshots/2023-03-13_08-11-04/rsync-log' --exclude-from='/run/timeshift/backup/timeshift/snapshots/2023-03-13_08-11-04/exclude.list' --delete-excluded '/' '/run/timeshift/backup/timeshift/snapshots/2023-03-13_08-11-04/localhost/'
[08:11:04] RsyncTask:prepare(): saved: /tmp/B6NulnK3/2023-03-13_08-11-04/script.sh
[08:11:04] AsyncTask: child_pid: 8611
[08:11:09] AsyncTask: finish(): enter
[08:11:09] AsyncTask: finish(): enter
[08:11:09] exit_code: 0
[08:11:09] exit_code: 0
[08:11:09] E: Error opening file “/run/timeshift/backup/timeshift/snapshots/2023-03-13_08-11-04/rsync-log-changes”: File exists
[08:11:09] E: Failed to write file: /run/timeshift/backup/timeshift/snapshots/2023-03-13_08-11-04/rsync-log-changes
[08:11:09] E: rsync returned an error
[08:11:09] E: Failed to create new snapshot
[08:11:09] Failed to create snapshot
[08:11:09] ------------------------------------------------------------------------------
[08:11:09] SnapshotRepo: load_snapshots()
[08:11:09] loading snapshots from '/run/timeshift/backup/timeshift/snapshots': 14 found
[08:11:09] SnapshotRepo: auto_remove()
[08:11:09] SnapshotRepo: remove_untagged()
[08:11:09] SnapshotRepo: load_snapshots()
[08:11:09] loading snapshots from '/run/timeshift/backup/timeshift/snapshots': 14 found
[08:11:09] SnapshotRepo: load_snapshots()
[08:11:09] loading snapshots from '/run/timeshift/backup/timeshift/snapshots': 14 found
[08:11:09] Removing snapshots (incomplete):
[08:11:09] ------------------------------------------------------------------------------
[08:11:09] Removing '2023-03-13_08-11-04'...
[08:11:09] RsyncTask:execute()
[08:11:09] rm -rfv '/run/timeshift/backup/timeshift/snapshots/2023-03-13_08-11-04/'
[08:11:09] RsyncTask:prepare(): saved: /tmp/B6NulnK3/2023-03-13_08-11-09/script.sh
[08:11:09] AsyncTask: child_pid: 8629
[08:11:11] AsyncTask: finish(): enter
[08:11:11] exit_code: 0
[08:11:11] Removed '2023-03-13_08-11-04'
[08:11:11] ------------------------------------------------------------------------------
hubabe commented 1 year ago

I have been using TIMESHIFT for several years. My operating system is: lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.2 LTS Release: 22.04 Codename: jammy rsync -v rsync version 3.2.7 protocol version 31 The rsync version is: The version of TIMESHIFT that I use is: 21.09.1-1 This morning I mounted a backup disk formatted as ext4 without any snapshot, and ordered a backup of my entire system. The process started at 11:39:41 and ended at 13:11:51 without recording any snapshot. The content of the 2023-03-14_11-39-41_gui.log file is as follows:

[11:39:41] Archivo de registro de sesión: /var/log/timeshift/2023-03-14_11-39-41_gui.log [11:39:41] Distribución: Ubuntu 22.04 (jammy) [11:39:41] DIST_ID: Ubuntu [11:39:41] Main: check_dependencies() [11:39:41] Main: add_default_exclude_entries() [11:39:41] Main: add_default_exclude_entries(): exit [11:39:41] update_partitions() [11:39:41] Device: get_disk_space_using_df(): 8 [11:39:41] Device: get_mounted_filesystems_using_mtab(): 8 [11:39:41] Device: get_filesystems(): 64 [11:39:41] partition list updated [11:39:41] detect_system_devices() [11:39:41] / está mapeado al dispositivo: /dev/sda1, UUID=8e20c169-8bb1-4137-9a73-42655ef53e43 [11:39:41] Searching subvolume for system at path: / [11:39:41] Users: hugo root [11:39:41] Encrypted home users: [11:39:41] Encrypted home dirs:

[11:39:41] Encrypted private dirs:

[11:39:41] Main: load_app_config() [11:39:41] Configuración de aplicación cargada: /etc/timeshift/timeshift.json [11:39:41] IconManager: init() [11:39:41] bin_path: /usr/bin/timeshift-gtk [11:39:41] found images directory: /usr/share/timeshift/images [11:39:41] Main(): ok [11:39:41] Main: initialize_repo() [11:39:41] backup_uuid=6c99cad5-dfe6-4027-911b-7cbe352df303 [11:39:41] backup_parent_uuid= [11:39:41] Setting snapshot device from config file [11:39:41] Main: initialize_repo(): exit [11:39:41] MainWindow: MainWindow() [11:39:41] SnapshotListBox: SnapshotListBox() [11:39:41] SnapshotListBox: SnapshotListBox(): exit [11:39:41] MainWindow: MainWindow(): exit [11:39:41] MainWindow(): init_delayed() [11:39:41] SnapshotRepo: available() [11:39:41] is_available: false [11:39:41] SnapshotRepo: available() [11:39:41] is_available: false [11:39:41] SnapshotRepo: check_status() [11:39:41] SnapshotRepo: available() [11:39:41] is_available: false [11:39:41] Dispositivo de instantánea: ' UNKNOWN' [11:39:41] Ubicación de la instantánea: [11:39:41] Dispositivo de instantánea no disponible [11:39:41] Dispositivo no hallado: UUID='6c99cad5-dfe6-4027-911b-7cbe352df303' [11:39:41] Estado: NOT_AVAILABLE [11:39:41] [11:39:41] SnapshotRepo: check_status(): exit [11:39:41] SnapshotRepo: has_snapshots() [11:39:41] MainWindow(): init_delayed(): exit [11:39:46] MainWindow: btn_settings_clicked() [11:39:46] SettingsWindow: SettingsWindow() [11:39:46] SnapshotBackendBox: SnapshotBackendBox() [11:39:46] SnapshotBackendBox: SnapshotBackendBox(): exit [11:39:46] BackupDeviceBox: BackupDeviceBox() [11:39:46] BackupDeviceBox: BackupDeviceBox(): exit [11:39:46] ScheduleBox: ScheduleBox() [11:39:46] ScheduleBox: ScheduleBox(): exit [11:39:46] ExcludeBox: ExcludeBox() [11:39:46] treeview_add_item(): /home/hugo/ [11:39:46] ExcludeBox: ExcludeBox(): exit [11:39:46] UsersBox: UsersBox() [11:39:46] treeview_add_item(): /home/hugo/ [11:39:46] treeview_add_item(): /root/ [11:39:46] UsersBox: UsersBox(): exit [11:39:46] MiscBox: MiscBox() [11:39:46] MiscBox: init_date_format_option() [11:39:46] MiscBox: init_date_format_option(): exit [11:39:46] MiscBox: MiscBox(): exit [11:39:46] SettingsWindow: SettingsWindow(): exit [11:39:46] update_partitions() [11:39:46] Device: get_disk_space_using_df(): 8 [11:39:46] Device: get_mounted_filesystems_using_mtab(): 8 [11:39:46] Device: get_filesystems(): 64 [11:39:46] partition list updated [11:39:46] SnapshotRepo: check_status() [11:39:46] SnapshotRepo: available() [11:39:46] is_available: false [11:39:46] Dispositivo de instantánea: ' UNKNOWN' [11:39:46] Ubicación de la instantánea: [11:39:46] Dispositivo de instantánea no disponible [11:39:46] Dispositivo no hallado: UUID='6c99cad5-dfe6-4027-911b-7cbe352df303' [11:39:46] Estado: NOT_AVAILABLE [11:39:46] [11:39:46] SnapshotRepo: check_status(): exit [11:39:46] treeview_add_item(): /home/hugo/ [11:39:46] treeview_add_item(): /root/** [11:40:34] try_change_device: /dev/sde1 [11:40:34]

[11:40:34] selected device: /dev/sde1 [11:40:34] fstype: ext4 [11:40:34] SnapshotRepo: from_device(): RSYNC [11:40:34] SnapshotRepo: init_from_device() [11:40:34] [11:40:34] SnapshotRepo: unlock_and_mount_devices() [11:40:34] device=/dev/sde1 [11:40:34] SnapshotRepo: unlock_and_mount_device() [11:40:34] device=/dev/sde1 [11:40:34] Device: get_mounted_filesystems_using_mtab(): 8 [11:40:34] ------------------ [11:40:34] arg=7e8f5e85-93f3-4b30-a44f-ccbd394afaea, device=/dev/sde1 [11:40:34] /media/hugo/Linux [11:40:34] ------------------ [11:40:34] Device: get_mounted_filesystems_using_mtab(): 8 [11:40:34] Mounted '/dev/sde1' at '/run/timeshift/backup' [11:40:34] SnapshotRepo: load_snapshots() [11:40:34] SnapshotRepo: unlock_and_mount_device(): exit [11:40:34] Dispositivo de instantánea seleccionado: /dev/sde1 [11:40:34] Espacio libre: 311,9 GB [11:40:34] SnapshotRepo: check_status() [11:40:34] SnapshotRepo: available() [11:40:34] is_available: ok [11:40:34] SnapshotRepo: has_snapshots() [11:40:34] SnapshotRepo: has_space() [11:40:34] Device: get_disk_space_using_df(): 1 [11:40:34] no snapshots [11:40:34] Dispositivo de instantánea: '/dev/sde1' [11:40:34] Ubicación de la instantánea: /run/timeshift/backup [11:40:34] No hay instantáneas en este dispositivo [11:40:34] La primera instantánea requiere: 52,4 GB [11:40:34] Estado: NO_SNAPSHOTS_HAS_SPACE [11:40:34] [11:40:34] SnapshotRepo: check_status(): exit [11:40:34] SnapshotRepo: init_from_device(): exit [11:40:34] SnapshotRepo: check_status() [11:40:34] SnapshotRepo: available() [11:40:34] is_available: ok [11:40:34] SnapshotRepo: has_snapshots() [11:40:34] SnapshotRepo: has_space() [11:40:34] Device: get_disk_space_using_df(): 1 [11:40:34] no snapshots [11:40:34] Dispositivo de instantánea: '/dev/sde1' [11:40:34] Ubicación de la instantánea: /run/timeshift/backup [11:40:34] No hay instantáneas en este dispositivo [11:40:34] La primera instantánea requiere: 52,4 GB [11:40:34] Estado: NO_SNAPSHOTS_HAS_SPACE [11:40:34] [11:40:34] SnapshotRepo: check_status(): exit [11:40:40] update_partitions() [11:40:40] Device: get_disk_space_using_df(): 8 [11:40:40] Device: get_mounted_filesystems_using_mtab(): 8 [11:40:40] Device: get_filesystems(): 64 [11:40:40] partition list updated [11:40:40] update_partitions() [11:40:40] Device: get_disk_space_using_df(): 8 [11:40:40] Device: get_mounted_filesystems_using_mtab(): 8 [11:40:40] Device: get_filesystems(): 64 [11:40:40] partition list updated [11:40:50] save_changes(): exclude_list_user: [11:40:50] /home/hugo/ [11:40:50] [11:40:50] treeview_add_item(): /home/hugo/ [11:40:50] treeview_add_item(): /root/** [11:40:50] crontab -l [11:40:50] Error al leer la ficha cron [11:40:50] crontab -l [11:40:50] Error al leer la ficha cron [11:40:50] La tarea cron existe: /etc/cron.d/timeshift-hourly [11:40:50] Main: save_app_config() [11:40:50] SnapshotRepo: available() [11:40:50] is_available: ok [11:40:50] Configuración de aplicación guardada: /etc/timeshift/timeshift.json [11:40:50] SnapshotRepo: load_snapshots() [11:40:50] SnapshotRepo: available() [11:40:50] is_available: ok [11:40:50] SnapshotRepo: load_snapshots() [11:40:50] SnapshotRepo: check_status() [11:40:50] SnapshotRepo: available() [11:40:50] is_available: ok [11:40:50] SnapshotRepo: has_snapshots() [11:40:50] SnapshotRepo: has_space() [11:40:50] Device: get_disk_space_using_df(): 1 [11:40:50] no snapshots [11:40:50] Dispositivo de instantánea: '/dev/sde1' [11:40:50] Ubicación de la instantánea: /run/timeshift/backup [11:40:50] No hay instantáneas en este dispositivo [11:40:50] La primera instantánea requiere: 52,4 GB [11:40:50] Estado: NO_SNAPSHOTS_HAS_SPACE [11:40:50] [11:40:50] SnapshotRepo: check_status(): exit [11:40:50] SnapshotRepo: has_snapshots() [11:40:50] SnapshotRepo: has_snapshots() [11:40:58] SnapshotRepo: available() [11:40:58] is_available: ok [11:40:58] SnapshotRepo: has_space() [11:40:58] Device: get_disk_space_using_df(): 1 [11:40:58] no snapshots [11:40:58] BackupWindow: BackupWindow() [11:40:58] EstimateBox: EstimateBox() [11:40:58] EstimateBox: EstimateBox(): exit [11:40:58] BackupDeviceBox: BackupDeviceBox() [11:40:58] BackupDeviceBox: BackupDeviceBox(): exit [11:40:58] BackupBox: BackupBox() [11:40:58] BackupBox: BackupBox(): exit [11:40:58] BackupFinishBox: BackupFinishBox() [11:40:58] BackupFinishBox: BackupFinishBox(): exit [11:40:58] BackupWindow: BackupWindow(): exit [11:40:58] SnapshotRepo: available() [11:40:58] is_available: ok [11:40:58] SnapshotRepo: has_space() [11:40:58] Device: get_disk_space_using_df(): 1 [11:40:58] no snapshots [11:40:58] [11:40:58] page: 2 [11:40:58] Main: create_snapshot() [11:40:58] SnapshotRepo: has_space() [11:40:58] Device: get_disk_space_using_df(): 1 [11:40:58] no snapshots [11:40:58] mkdir: /run/timeshift/backup/timeshift/snapshots [11:40:58] Main: backup_and_rotate() [11:40:58] SnapshotRepo: available() [11:40:58] is_available: ok [11:40:58] SnapshotRepo: has_space() [11:40:58] Device: get_disk_space_using_df(): 1 [11:40:58] no snapshots [11:40:58] ------------------------------------------------------------------------------ [11:40:58] Creando nueva instantánea...(RSYNC) [11:40:58] Guardando al dispositivo: /dev/sde1, montado en la ruta: /run/timeshift/backup [11:40:58] Main: save_exclude_list_for_backup() [11:40:58] Main: create_exclude_list_for_backup() [11:40:58] Main: create_exclude_list_for_backup(): exit [11:40:58] Sincronizando archivos con rsync... [11:40:58] RsyncTask:execute() [11:40:58] rsync -aii --recursive --verbose --delete --force --stats --sparse --delete-excluded --log-file='/run/timeshift/backup/timeshift/snapshots/2023-03-14_11-40-58/rsync-log' --exclude-from='/run/timeshift/backup/timeshift/snapshots/2023-03-14_11-40-58/exclude.list' --delete-excluded '/' '/run/timeshift/backup/timeshift/snapshots/2023-03-14_11-40-58/localhost/' [11:40:58] RsyncTask:prepare(): saved: /tmp/LeEk8H4H/2023-03-14_11-40-58/script.sh [11:40:59] AsyncTask: child_pid: 44917 [13:07:08] AsyncTask: finish(): enter [13:07:08] exit_code: 0 [13:07:08] E: rsync ha devuelto un error [13:07:08] E: Error creando una nueva instantánea [13:07:08] Error creando una instantánea [13:07:08] ------------------------------------------------------------------------------ [13:07:08] SnapshotRepo: load_snapshots() [13:07:09] loading snapshots from '/run/timeshift/backup/timeshift/snapshots': 0 found [13:07:09] Symlinks actualizados [13:07:09] [13:07:09] page: 3 [13:07:10] SnapshotRepo: available() [13:07:10] is_available: ok [13:07:10] SnapshotRepo: load_snapshots() [13:07:10] loading snapshots from '/run/timeshift/backup/timeshift/snapshots': 0 found [13:07:10] SnapshotRepo: check_status() [13:07:10] SnapshotRepo: available() [13:07:10] is_available: ok [13:07:10] SnapshotRepo: has_snapshots() [13:07:10] SnapshotRepo: has_space() [13:07:10] Device: get_disk_space_using_df(): 1 [13:07:10] no snapshots [13:07:10] Dispositivo de instantánea: '/dev/sde1' [13:07:10] Ubicación de la instantánea: /run/timeshift/backup [13:07:10] No hay instantáneas en este dispositivo [13:07:10] La primera instantánea requiere: 52,4 GB [13:07:10] Estado: NO_SNAPSHOTS_HAS_SPACE [13:07:10] [13:07:10] SnapshotRepo: check_status(): exit [13:07:10] SnapshotRepo: has_snapshots() [13:07:10] SnapshotRepo: has_snapshots() [13:11:51] SnapshotRepo: available() [13:11:51] is_available: ok [13:11:51] SnapshotRepo: has_space() [13:11:51] Device: get_disk_space_using_df(): 1 [13:11:51] no snapshots [13:11:51] exit_app() [13:11:51] Main: save_app_config() [13:11:51] SnapshotRepo: available() [13:11:51] is_available: ok [13:11:51] Configuración de aplicación guardada: /etc/timeshift/timeshift.json [13:11:51] crontab -l [13:11:51] Error al leer la ficha cron [13:11:51] crontab -l [13:11:51] Error al leer la ficha cron [13:11:51] La tarea cron existe: /etc/cron.d/timeshift-hourly [13:11:51] unmount_target_device() [13:11:51] clean_logs() [13:11:51] rm -rf '/tmp/LeEk8H4H'

quallenbezwinger commented 1 year ago

I tried it with Arch Linux and rsync 3.2.7 and it is working with Timeshift 22.11.2...Root cause could be the OS?

[09:19:38] Session log file: /var/log/timeshift/2023-03-15_09-19-38_gui.log [09:19:38] Distribution: EndeavourOS rolling (rolling) [09:19:38] DIST_ID: EndeavourOS [09:19:38] Main: check_dependencies() [09:19:38] Main: add_default_exclude_entries() [09:19:38] Main: add_default_exclude_entries(): exit [09:19:38] update_partitions() [09:19:38] Device: get_disk_space_using_df(): 3 [09:19:38] Device: get_mounted_filesystems_using_mtab(): 3 [09:19:38] Device: get_filesystems(): 9 [09:19:38] partition list updated [09:19:38] detect_system_devices() [09:19:38] / is mapped to device: /dev/dm-0, UUID=005f60ed-875a-4135-bf14-af26ebea88ae [09:19:38] Searching subvolume for system at path: / [09:19:38] Encrypted home users: [09:19:38] Encrypted home dirs:

[09:19:38] Encrypted private dirs:

[09:19:38] Main: load_app_config() [09:19:38] App config loaded: /etc/timeshift/timeshift.json [09:19:38] IconManager: init() [09:19:38] found images directory: /usr/share/timeshift/images [09:19:38] Main(): ok [09:19:38] Main: initialize_repo() [09:19:38] backup_uuid=511f4bd9-59ce-4f61-a195-0e534284a486 [09:19:38] backup_parent_uuid= [09:19:38] Setting snapshot device from config file [09:19:38] repo: creating from uuid [09:19:38] SnapshotRepo: from_uuid(): RSYNC [09:19:38] uuid=511f4bd9-59ce-4f61-a195-0e534284a486 [09:19:38] SnapshotRepo: init_from_device() [09:19:38] [09:19:38] SnapshotRepo: unlock_and_mount_devices() [09:19:38] device=/dev/sda1 [09:19:38] SnapshotRepo: unlock_and_mount_device() [09:19:38] device=/dev/sda1 [09:19:38] Device: get_mounted_filesystems_using_mtab(): 3 [09:19:38] ------------------ [09:19:38] arg=511f4bd9-59ce-4f61-a195-0e534284a486, device=/dev/sda1 [09:19:38] /mnt/backup [09:19:38] ------------------ [09:19:38] Device: get_mounted_filesystems_using_mtab(): 3 [09:19:38] Mounted '/dev/sda1' at '/run/timeshift/5190/backup' [09:19:38] SnapshotRepo: load_snapshots() [09:19:38] loading snapshots from '/run/timeshift/5190/backup/timeshift/snapshots': 9 found [09:19:38] SnapshotRepo: unlock_and_mount_device(): exit [09:19:38] Selected snapshot device: /dev/sda1 [09:19:38] Free space: 225,2 GB [09:19:38] SnapshotRepo: check_status() [09:19:38] SnapshotRepo: available() [09:19:38] is_available: ok [09:19:38] SnapshotRepo: has_snapshots() [09:19:38] SnapshotRepo: has_space() - 0 required (0 B) [09:19:38] Device: get_disk_space_using_df(): 1 [09:19:38] Snapshot device: '/dev/sda1' [09:19:38] Snapshot location: /run/timeshift/5190/backup [09:19:38] OK [09:19:38] 9 snapshots, 225,2 GB free [09:19:38] Status: HAS_SNAPSHOTS_HAS_SPACE [09:19:38] [09:19:38] SnapshotRepo: check_status(): exit [09:19:38] SnapshotRepo: init_from_device(): exit [09:19:38] SnapshotRepo: from_uuid(): exit [09:19:38] Main: initialize_repo(): exit [09:19:38] MainWindow: MainWindow() [09:19:38] SnapshotListBox: SnapshotListBox() [09:19:38] SnapshotListBox: SnapshotListBox(): exit [09:19:38] MainWindow: MainWindow(): exit [09:19:39] MainWindow(): init_delayed() [09:19:39] SnapshotRepo: available() [09:19:39] is_available: ok [09:19:39] SnapshotRepo: available() [09:19:39] is_available: ok [09:19:39] SnapshotRepo: load_snapshots() [09:19:39] loading snapshots from '/run/timeshift/5190/backup/timeshift/snapshots': 9 found [09:19:39] SnapshotRepo: check_status() [09:19:39] SnapshotRepo: available() [09:19:39] is_available: ok [09:19:39] SnapshotRepo: has_snapshots() [09:19:39] SnapshotRepo: has_space() - 0 required (0 B) [09:19:39] Device: get_disk_space_using_df(): 1 [09:19:39] Snapshot device: '/dev/sda1' [09:19:39] Snapshot location: /run/timeshift/5190/backup [09:19:39] OK [09:19:39] 9 snapshots, 225,2 GB free [09:19:39] Status: HAS_SNAPSHOTS_HAS_SPACE [09:19:39] [09:19:39] SnapshotRepo: check_status(): exit [09:19:39] SnapshotRepo: has_snapshots() [09:19:39] SnapshotRepo: has_snapshots() [09:19:39] MainWindow(): init_delayed(): exit [09:19:43] SnapshotRepo: available() [09:19:43] is_available: ok [09:19:43] BackupWindow: BackupWindow() [09:19:43] EstimateBox: EstimateBox() [09:19:43] EstimateBox: EstimateBox(): exit [09:19:43] BackupDeviceBox: BackupDeviceBox() [09:19:43] BackupDeviceBox: BackupDeviceBox(): exit [09:19:43] BackupBox: BackupBox() [09:19:43] BackupBox: BackupBox(): exit [09:19:43] BackupFinishBox: BackupFinishBox() [09:19:43] BackupFinishBox: BackupFinishBox(): exit [09:19:43] BackupWindow: BackupWindow(): exit [09:19:43] SnapshotRepo: available() [09:19:43] is_available: ok [09:19:43] SnapshotRepo: has_space() - 0 required (0 B) [09:19:43] Device: get_disk_space_using_df(): 1 [09:19:43] [09:19:43] page: 2 [09:19:43] Main: create_snapshot() [09:19:43] SnapshotRepo: has_space() - 0 required (0 B) [09:19:43] Device: get_disk_space_using_df(): 1 [09:19:43] Main: backup_and_rotate() [09:19:43] SnapshotRepo: available() [09:19:43] is_available: ok [09:19:43] ------------------------------------------------------------------------------ [09:19:43] Creating new snapshot...(RSYNC) [09:19:43] Saving to device: /dev/sda1, mounted at path: /run/timeshift/5190/backup [09:19:43] Linking from snapshot: 2023-03-14_16-18-22 [09:19:43] Main: save_exclude_list_for_backup() [09:19:43] Main: create_exclude_list_for_backup() [09:19:43] Main: create_exclude_list_for_backup(): exit [09:19:43] Syncing files with rsync... [09:19:43] RsyncTask:execute() [09:19:43] export LC_ALL=C.UTF-8 rsync -aii --recursive --verbose --delete --force --stats --sparse --delete-excluded --link-dest='/run/timeshift/5190/backup/timeshift/snapshots/2023-03-14_16-18-22/localhost/' --log-file='/run/timeshift/5190/backup/timeshift/snapshots/2023-03-15_09-19-43/rsync-log' --exclude-from='/run/timeshift/5190/backup/timeshift/snapshots/2023-03-15_09-19-43/exclude.list' --delete-excluded '/' '/run/timeshift/5190/backup/timeshift/snapshots/2023-03-15_09-19-43/localhost/' [09:19:43] RsyncTask:prepare(): saved: /tmp/KslMpSCm/2023-03-15_09-19-43/script.sh [09:19:43] AsyncTask: child_pid: 5275 [09:19:52] AsyncTask: finish(): enter [09:19:52] exit_code: 0 [09:19:53] Created control file: /run/timeshift/5190/backup/timeshift/snapshots/2023-03-15_09-19-43/info.json [09:19:53] RSYNC Snapshot saved successfully (10s) [09:19:53] Tagged snapshot '2023-03-15_09-19-43': ondemand [09:19:53] ------------------------------------------------------------------------------ [09:19:53] SnapshotRepo: load_snapshots() [09:19:53] loading snapshots from '/run/timeshift/5190/backup/timeshift/snapshots': 10 found [09:19:53] Symlinks updated [09:19:53] [09:19:53] page: 3 [09:19:54] SnapshotRepo: available() [09:19:54] is_available: ok [09:19:54] SnapshotRepo: load_snapshots() [09:19:54] loading snapshots from '/run/timeshift/5190/backup/timeshift/snapshots': 10 found [09:19:54] SnapshotRepo: check_status() [09:19:54] SnapshotRepo: available() [09:19:54] is_available: ok [09:19:54] SnapshotRepo: has_snapshots() [09:19:54] SnapshotRepo: has_space() - 0 required (0 B) [09:19:54] Device: get_disk_space_using_df(): 1 [09:19:54] Snapshot device: '/dev/sda1' [09:19:54] Snapshot location: /run/timeshift/5190/backup [09:19:54] OK [09:19:54] 10 snapshots, 224,1 GB free [09:19:54] Status: HAS_SNAPSHOTS_HAS_SPACE [09:19:54] [09:19:54] SnapshotRepo: check_status(): exit [09:19:54] SnapshotRepo: has_snapshots() [09:19:54] SnapshotRepo: has_snapshots() [09:20:02] RsyncLogWindow: RsyncLogWindow() [09:20:02] RsyncLogBox: RsyncLogBox() [09:20:02] create_filters() [09:20:02] RsyncLogWindow: RsyncLogWindow(): exit [09:20:02] RsyncLogWindow: RsyncLogWindow(): exit [09:20:02] init_delayed() [09:20:02] RsyncTask: parse_log() [09:20:02] log_file = /run/timeshift/5190/backup/timeshift/snapshots/2023-03-15_09-19-43/rsync-log-changes [09:20:02] RsyncTask: parse_log(): exit [09:20:02] treeview_refresh(): 0 [09:20:03] treeview_refresh(): 283 ms [09:20:03] init_delayed(): finish

knorr-goose commented 1 year ago

Kubuntu 22.04 rsync version 3.2.7 protocol version 31. Can anyone provide a circunvention/alternative to the problem?

Siltyx commented 1 year ago

Same problem here. Ubuntu 22.04. Fixed by downgrading to 3.2.3. Removed timeshift and rsync via apt. Then: sudo apt-get install rsync=3.2.3-8ubuntu3 Put rsync on hold: sudo apt-mark hold rsync

Reinstall timeshift via apt.

hubabe commented 1 year ago

The solution given by Siltyx works. I downgraded the rsync version to version 3.2.3 and reinstall timeshift

knorr-goose commented 1 year ago

Thanks a lot. Have a great day !!

El mié, 15 mar 2023 a la(s) 14:41, hubabe @.***) escribió:

The solution given by Siltyx works. I downgraded the rsync version to version 3.2.3 and reinstall timeshift

— Reply to this email directly, view it on GitHub https://github.com/linuxmint/timeshift/issues/152#issuecomment-1470477011, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM34CZIRBGPAY226MQ26W6LW4H5MXANCNFSM6AAAAAAVW3KZTA . You are receiving this because you commented.Message ID: @.***>

therob84 commented 1 year ago

I still have troubles with creating a snapshot - even after downgrading to rsync 3.2.3 and Timeshift to 21.09.1 (on Linux Mint 21.1) following @Siltyx.

Creating snapshop with sudo timeshift --create is taking a while, most of the time I watched it is stuck at 0.72% - after more time (1h?) it finished, and even stating snapshop tagged and I find folder on the external Ext4-Device containing a lot of files/folders in the - it seems the snapshot folder is created correctly. But it wont appear under sudo timeshift --list" or under the GUI (and thus is not available for potentially restore). Also with creating another snapshop it is not referenced as incremental starting point. Half a year before with Linux Mint <21.1 (20.3?) it worked without problems, if I remember right. Downgrading of rsync and timeshift (see above) did not made any difference.


Select backup device:

Num     Device         Size  Type  Label  
------------------------------------------------------------------------------
0    >  /dev/sda6   31.5 GB  ext4         
1    >  /dev/sda7   52.5 GB  ext4         
2    >  /dev/sdd1  313.9 GB  ext4         

Enter device name or number (a=Abort): 2

Mounted '/dev/sdd1' at '/run/timeshift/backup'
------------------------------------------------------------------------------
Creating new snapshot...(RSYNC)
Saving to device: /dev/sdd1, mounted at path: /run/timeshift/backup
Synching files with rsync...
  0.72% complete (131:44:22 remaining)
Message from syslogd@pc at Mar 18 16:30:41 ...
 kernel:[25014.221623] EXT4-fs (sdd1): failed to convert unwritten extents to written extents -- potential data loss!  (inode 17331750, error -30)

Message from syslogd@pc at Mar 18 16:30:41 ...
 kernel:[25014.222116] EXT4-fs (sdd1): failed to convert unwritten extents to written extents -- potential data loss!  (inode 17331742, error -30)
E: Error opening file “/run/timeshift/backup/timeshift/snapshots/2023-03-18_15-33-14/rsync-log-changes”: Input/output error
E: Failed to write file: /run/timeshift/backup/timeshift/snapshots/2023-03-18_15-33-14/rsync-log-changes
E: Failed to create file “/run/timeshift/backup/timeshift/snapshots/2023-03-18_15-33-14/info.json.1TSX11”: Input/output error
Created control file: /run/timeshift/backup/timeshift/snapshots/2023-03-18_15-33-14/info.json
RSYNC Snapshot saved successfully (3463s)
Tagged snapshot '2023-03-18_15-33-14': ondemand
------------------------------------------------------------------------------
E: Error creating directory /run/timeshift/backup/timeshift/snapshots-boot: Input/output error
E: Error creating directory /run/timeshift/backup/timeshift/snapshots-hourly: Input/output error
E: Error creating directory /run/timeshift/backup/timeshift/snapshots-daily: Input/output error
E: Error creating directory /run/timeshift/backup/timeshift/snapshots-weekly: Input/output error
E: Error creating directory /run/timeshift/backup/timeshift/snapshots-monthly: Input/output error
E: Error creating directory /run/timeshift/backup/timeshift/snapshots-ondemand: Input/output error
Siltyx commented 1 year ago

Sadly, I can only tell you that this error look different from what I experienced, so it might have another cause than the rsync version problem :/

hoangtv49 commented 1 year ago

Same problem here. Ubuntu 22.04. Fixed by downgrading to 3.2.3. Removed timeshift and rsync via apt. Then: sudo apt-get install rsync=3.2.3-8ubuntu3 Put rsync on hold: sudo apt-mark hold rsync

Reinstall timeshift via apt.

work like a charm, thank so much

ghost commented 1 year ago

Same problem here. Ubuntu 22.04. Fixed by downgrading to 3.2.3. Removed timeshift and rsync via apt. Then: sudo apt-get install rsync=3.2.3-8ubuntu3 Put rsync on hold: sudo apt-mark hold rsync

Reinstall timeshift via apt.

I had the same problem on KDE neon 5.27 (Ubuntu 22.04-base) with Timeshift 21.09 and rsync 3.2.7. Your workaround fixed the issue for me, so thank you!

mtwebster commented 1 year ago

Can anyone get a stack trace for this? If you're running Mint you can check the System Reports utility.

I can't reproduce the issue, but if it's related to the markup warnings, it is fixed already: https://github.com/linuxmint/timeshift/commit/18cd48ddd48ea6adeed1a0ab433c7bc71494c43e

The issue that fixed could definitely cause a crash, but since downgrading rsync fixes the problem, I'm not certain, though it doesn't rule it out - the fixed issue was related to progress reporting, and that's being parsed from rsync's output.

vrapalis commented 1 year ago

I have same problem on Ubuntu 22.04.2 LTS

vrapalis commented 1 year ago

Same problem here. Ubuntu 22.04. Fixed by downgrading to 3.2.3. Removed timeshift and rsync via apt. Then: sudo apt-get install rsync=3.2.3-8ubuntu3 Put rsync on hold: sudo apt-mark hold rsync

Reinstall timeshift via apt.

Working well for temporary solution

paulorocketz commented 1 year ago

Same problem here. Ubuntu 22.04. Fixed by downgrading to 3.2.3. Removed timeshift and rsync via apt. Then: sudo apt-get install rsync=3.2.3-8ubuntu3 Put rsync on hold: sudo apt-mark hold rsync Reinstall timeshift via apt.

Working well for temporary solution

for me too it's working for a temporary solution using ubuntu 22.04.2 LTS

jmarinho73 commented 1 year ago

Same problem here. Ubuntu 22.04. Fixed by downgrading to 3.2.3. Removed timeshift and rsync via apt. Then: sudo apt-get install rsync=3.2.3-8ubuntu3 Put rsync on hold: sudo apt-mark hold rsync Reinstall timeshift via apt.

Working well for temporary solution

Same here, the workaround solved that issue for me too on Ubuntu 22.04.2

marko19914 commented 1 year ago

It seems, there is no issue with rsync 3.2.7-1 on Ubuntu 23.04 Lunar Lobster. No need for putting on hold.

hsiktas commented 1 year ago

I can confirm that it is working on 23.04.

linux-rox commented 1 year ago

FWIW, I'm unable to reproduce the problem on four different computers, nor in VirtualBox. Linux Mint 21.1; rsync 3.27; Timeshift 22.11.2. Manual snapshots (not scheduled).

Don't doubt it's happening, but not universal. Perhaps not even common.

henry701 commented 1 year ago

FWIW, I'm unable to reproduce the problem on four different computers, nor in VirtualBox. Linux Mint 21.1; rsync 3.27; Timeshift 22.11.2. Manual snapshots (not scheduled).

Don't doubt it's happening, but not universal. Perhaps not even common.

Oh it's common alright: https://bugs.launchpad.net/ubuntu/+source/timeshift/+bug/2009885

Prodeguerriero commented 1 year ago

I can confirm the issue on Ubuntu 22.04.2.

@mtwebster Do you still need info?

P.S. Creating the manual snapshot via terminal also has the added benefit of deleting from the disk any failed/incomplete snapshots.

HeidrHH commented 1 year ago

Timeshift v21.09.1

Operating System: TUXEDO OS 2 (Ubuntu 22.04.2 jammy) KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.106.0 Qt Version: 5.15.9 Kernel Version: 6.2.0-10007-tuxedo (64-bit)

Hello, I tried the solution of Siltyx too.

If I start Timeshift it ever asks for my password and on my old Ubuntu 20.04 (was a Tuxedo Linux too) and on my old Linux Mint 19.3 (what I need setup new) the automatic snapshots still work fine.

But still I don't get any autmatic snapshot on my TUXEDO OS 2 (Ubuntu 22.04.2 jammy).

I only can do manual snapshots, what is not too bad. But no idea if a restore would work.

If I try

rep -E '^[^#].+/\s+btrfs' /etc/fstab | \
grep -oE 'subvol=[^,]+' | \
cut -d= -f2 | \
grep -qE '^/?@$' && \
echo 'OK' || \
echo 'Not OK'

I get:

*** File error: File or folder not found, -E
Not OK

My fstab looks like that:

# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=9D57-7BFB                            /boot/efi      vfat    umask=0077 0 2
UUID=26b05443-8bc3-4df6-be14-3ce3397f8a74 /              ext4    defaults,noatime 0 1
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0

# manually added
UUID=d6aa6a0d-4c0c-4a33-975b-7c9d87f207ba   none    swap    sw  0   0
UUID=0521a226-541b-4585-adf7-79e72fd49d73   none    swap    sw  0   0
UUID=c69a1e30-88a0-40c1-9b51-612bd43a1f3c   none    swap    sw  0   0
UUID=d9449383-cf17-4fc0-ba0d-b19f41cd4398   /mnt/kat/nvme1btrfs750  btrfs   defaults,noatime    0   1
UUID=88f193a2-9b08-48dc-90ef-fa0dcb847c65   /mnt/kat/nvme0btrfs750  btrfs   defaults,noatime    0   1
UUID=96205acf-2375-43a4-8496-891cfc221495   /mnt/kat/nvme2btrfs750  btrfs   defaults,noatime    0   1

I did the manual snapshots on /mnt/kat/nvme0btrfs750 what is /dev/nvme0n1p4.

kat@XXXXX:~$ sudo timeshift --create
[sudo] Passwort für kat:

/dev/nvme0n1p4 is mounted at: /run/timeshift/backup, options: rw,relatime,ssd,discard=async,space_cache,subvolid=5,subvol=/

------------------------------------------------------------------------------
Creating new snapshot...(RSYNC)
Saving to device: /dev/nvme0n1p4, mounted at path: /run/timeshift/backup
Linking from snapshot: 2023-06-10_18-08-35
Synching files with rsync...
Created control file: /run/timeshift/backup/timeshift/snapshots/2023-06-10_18-28-31/info.json
RSYNC Snapshot saved successfully (23s)
Tagged snapshot '2023-06-10_18-28-31': ondemand
------------------------------------------------------------------------------
Removing snapshots (incomplete):
------------------------------------------------------------------------------
Removing '2023-05-28_19-31-01'...
Removed '2023-05-28_19-31-01'
------------------------------------------------------------------------------
kat@XXXXX:~$ sudo timeshift --list

/dev/nvme0n1p4 is mounted at: /run/timeshift/backup, options: rw,relatime,ssd,discard=async,space_cache,subvolid=5,subvol=/

Device : /dev/nvme0n1p4
UUID   : 88f193a2-9b08-48dc-90ef-fa0dcb847c65
Path   : /run/timeshift/backup
Mode   : RSYNC
Status : OK
12 snapshots, 442.7 GB free

Num     Name                 Tags  Description
------------------------------------------------------------------------------
0    >  2023-01-22_18-00-01  D     Tuxedo Linux before edit fstab
1    >  2023-05-25_00-00-02  D     Tuxedo Linux
2    >  2023-05-26_00-00-01  D     Tuxedo Linux
3    >  2023-05-27_00-00-01  D     Tuxedo Linux
4    >  2023-05-28_19-44-12  O     TUXEDO OS 2
5    >  2023-06-02_13-45-50  O     TUXEDO OS 2
6    >  2023-06-04_00-40-25  O     TUXEDO OS 2
7    >  2023-06-06_00-33-58  O     TUXEDO OS 2
8    >  2023-06-08_20-27-04  O     TUXEDO OS 2
9    >  2023-06-10_14-58-39  O     TUXEDO OS 2
10   >  2023-06-10_18-08-35  O
11   >  2023-06-10_18-28-31  O

kat@XXXXX:~$

The last both snapshots I did via sudo timeshift --create and both times it worked fine but not the automatic snapshots.

I have no idea what I should or could do better atm.

Oh and I found the "debug":

kat@XXXXX:~$ sudo timeshift --debug
[sudo] Passwort für kat:
D: Main()
D:
D: Running Timeshift v21.09.1
D:
D: Session log file: /var/log/timeshift/2023-06-10_18-38-59_.log
D: Distribution: Ubuntu 22.04.2 (jammy)
D: DIST_ID: Ubuntu
D: Main: check_dependencies()
D: Main: add_default_exclude_entries()
D: Main: add_default_exclude_entries(): exit
D: update_partitions()
D: df -T -B1
D: Device: get_disk_space_using_df(): 5
D: Device: get_mounted_filesystems_using_mtab(): 5
D: Device: get_filesystems(): 19
D: partition list updated
D: detect_system_devices()
D: /boot/efi is mapped to device: /dev/nvme2n1p1, UUID=9D57-7BFB
D: / is mapped to device: /dev/nvme2n1p2, UUID=26b05443-8bc3-4df6-be14-3ce3397f8a74
D: Searching subvolume for system at path: /
D: Users: kat root
D: Encrypted home users:
D: Encrypted home dirs:

D: Encrypted private dirs:

D: Main: load_app_config()
App config loaded: /etc/timeshift/timeshift.json
D: IconManager: init()
D: bin_path: /usr/bin/timeshift
D: found images directory: /usr/share/timeshift/images
D: Main(): ok
D: AppConsole: parse_arguments()
D: Main: initialize_repo()
D: backup_uuid=88f193a2-9b08-48dc-90ef-fa0dcb847c65
D: backup_parent_uuid=
D: Setting snapshot device from config file
D: repo: creating from uuid
D: SnapshotRepo: from_uuid(): RSYNC
D: uuid=88f193a2-9b08-48dc-90ef-fa0dcb847c65
D: SnapshotRepo: init_from_device()
D:
D: SnapshotRepo: unlock_and_mount_devices()
D: device=/dev/nvme0n1p4
D: SnapshotRepo: unlock_and_mount_device()
D: device=/dev/nvme0n1p4
D: Device: get_mounted_filesystems_using_mtab(): 5
D: ------------------
D: arg=88f193a2-9b08-48dc-90ef-fa0dcb847c65, device=/dev/nvme0n1p4
D: /run/timeshift/backup
D: /mnt/kat/nvme0btrfs750
D: ------------------

/dev/nvme0n1p4 is mounted at: /run/timeshift/backup, options: rw,relatime,ssd,discard=async,space_cache,subvolid=5,subvol=/

D: SnapshotRepo: load_snapshots()
D: loading snapshots from '/run/timeshift/backup/timeshift/snapshots': 12 found
D: SnapshotRepo: unlock_and_mount_device(): exit
D: Selected snapshot device: /dev/nvme0n1p4
D: Free space: 442.7 GB
D: SnapshotRepo: check_status()
D: SnapshotRepo: available()
D: is_available: ok
D: SnapshotRepo: has_snapshots()
D: SnapshotRepo: has_space()
D: df -T -B1 '/dev/nvme0n1p4'
D: Device: get_disk_space_using_df(): 1
D: Snapshot device: '/dev/nvme0n1p4'
D: Snapshot location: /run/timeshift/backup
D: OK
D: 12 snapshots, 442.7 GB free
D: Status: HAS_SNAPSHOTS_HAS_SPACE
D:
D: SnapshotRepo: check_status(): exit
D: SnapshotRepo: init_from_device(): exit
D: SnapshotRepo: from_uuid(): exit
D: Main: initialize_repo(): exit
D: AppConsole: start_application()
D: exit_app()
D: Main: save_app_config()
D: SnapshotRepo: available()
D: is_available: ok
App config saved: /etc/timeshift/timeshift.json
D: crontab -l
D: Failed to read cron tab
D: crontab -l
D: Failed to read cron tab
D: Cron task exists: /etc/cron.d/timeshift-hourly
D: Cron task exists: /etc/cron.d/timeshift-boot
D: unmount_target_device()
D: clean_logs()
D: rm -rf '/tmp/5z6MRa4L'
kat@XXXXX:~$

I'm not a Linux specialist, but so far I don't see any problems in the debug output.

The "check" function brought up the following:

kat@XXXXX:~$ sudo timeshift --check
[sudo] Passwort für kat:

/dev/nvme0n1p4 is mounted at: /run/timeshift/backup, options: rw,relatime,ssd,discard=async,space_cache,subvolid=5,subvol=/

Boot snapshots are enabled
Last boot snapshot not found
Tagged snapshot '2023-06-10_18-08-35': boot
Hourly snapshots are enabled
Last hourly snapshot not found
Tagged snapshot '2023-06-10_18-08-35': hourly
Daily snapshots are enabled
Last daily snapshot not found
Tagged snapshot '2023-06-10_18-08-35': daily
------------------------------------------------------------------------------
kat@CXXXXX:~$

Maybe the timer does not work anymore.

And strange - now for snapshot 10 I got this after I did the check:

10   >  2023-06-10_18-08-35  O B H D

Before it only had tag O.

Prodeguerriero commented 1 year ago

I can confirm that timeshift --check appears to be doing what the scheduled task should be doing.

Also, on my not-so-fast drive I am starting to notice lag while using the computer every hour, and I believe it is caused by timeshift trying to perform the backup, and failing.

@mtwebster Should we just wait until a more recent version of timeshift is added to the Ubuntu 22.04 LTS PPA?

mtwebster commented 1 year ago

Timeshift 23.06.2 is the latest version and has finally been tagged in the project.

The PPA is always up-to-date, and builds automatically. I have no control over this.

If this issue is occurring in 23.06.2 then I'll investigate this further. I wanted to wait until I could be sure everyone was running the same version.

Prodeguerriero commented 1 year ago

The PPA is always up-to-date, and builds automatically. I have no control over this.

I understand this. I am only pointing out that apt for Ubuntu 22.04.2 still offers version 21.09.1 of Timeshift.

In other words, the only viable solutions are:

Correct?

mtwebster commented 1 year ago

Only the PPAs or building yourself will have the latest version currently.

HeidrHH commented 1 year ago

Where I can find the ppa for Timeshift 23.06.2?

I only found this: launchpad.net

or this: code.launchpad.net

Both from Tony George.

But everywhere the ppa points to teejee2008.

mtwebster commented 1 year ago

One of those is a ppa, the other is just the download page for Ubuntu 22.04 that that ppa builds.

If you want to stay up-to-date, add the PPA

HeidrHH commented 1 year ago

One of those is a ppa, the other is just the download page for Ubuntu 22.04 that that ppa builds.

If you want to stay up-to-date, add the PPA

Ah, thank you. Now I got it.

Operating System: TUXEDO OS 2 (Ubuntu 22.04.2 jammy) KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.106.0 Qt Version: 5.15.9 Kernel Version: 6.2.0-10007-tuxedo (64-bit)

It is Timeshift v23.06.2 now.

After each command I get this - no idea why:

E: Failed to remove directory
Ret=256

And several time on --debug I got this:

D: df -T -B1
D: Device: get_disk_space_using_df(): 5
D: Device: get_mounted_filesystems_using_mtab(): 5
D: Device: get_filesystems(): 19

No idea if that is normal. But no idea why it should do it several times.

Debug

kat@XXXXX:~$ sudo timeshift --debug
D: Main()
D: 
D: Running Timeshift v23.06.2
D: 
D: Session log file: /var/log/timeshift/2023-06-12_22-55-14_.log
D: Distribution: Ubuntu 22.04.2 (jammy)
D: DIST_ID: Ubuntu
D: Main: check_dependencies()
D: Main: add_default_exclude_entries()
D: Main: add_default_exclude_entries(): exit
D: update_partitions()
D: df -T -B1
D: Device: get_disk_space_using_df(): 5
D: Device: get_mounted_filesystems_using_mtab(): 5
D: Device: get_filesystems(): 19
D: partition list updated
D: detect_system_devices()
D: /boot/efi is mapped to device: /dev/nvme2n1p1, UUID=9D57-7BFB
D: / is mapped to device: /dev/nvme2n1p2, UUID=26b05443-8bc3-4df6-be14-3ce3397f8a74
D: Searching subvolume for system at path: /
D: Users: kat root
D: Encrypted home users: 
D: Encrypted home dirs:

D: Encrypted private dirs:

D: Main: load_app_config()
App config loaded: /etc/timeshift/timeshift.json
D: IconManager: init()
D: found images directory: /usr/share/timeshift/images
D: Main(): ok
D: AppConsole: parse_arguments()
D: Main: initialize_repo()
D: backup_uuid=88f193a2-9b08-48dc-90ef-fa0dcb847c65
D: backup_parent_uuid=
D: Setting snapshot device from config file
D: repo: creating from uuid
D: SnapshotRepo: from_uuid(): RSYNC
D: uuid=88f193a2-9b08-48dc-90ef-fa0dcb847c65
D: SnapshotRepo: init_from_device()
D: 
D: SnapshotRepo: unlock_and_mount_devices()
D: device=/dev/nvme0n1p4
D: SnapshotRepo: unlock_and_mount_device()
D: device=/dev/nvme0n1p4
D: Device: get_mounted_filesystems_using_mtab(): 5
D: ------------------
D: arg=88f193a2-9b08-48dc-90ef-fa0dcb847c65, device=/dev/nvme0n1p4
D: /run/timeshift/backup
D: /mnt/kat/nvme0btrfs750
D: ------------------
D: Device: get_mounted_filesystems_using_mtab(): 5
Mounted '/dev/nvme0n1p4' at '/run/timeshift/222557/backup'
D: SnapshotRepo: load_snapshots()
D: loading snapshots from '/run/timeshift/222557/backup/timeshift/snapshots': 13 found
D: SnapshotRepo: unlock_and_mount_device(): exit
D: Selected snapshot device: /dev/nvme0n1p4
D: Free space: 430.2 GB
D: SnapshotRepo: check_status()
D: SnapshotRepo: available()
D: is_available: ok
D: SnapshotRepo: has_snapshots()
D: SnapshotRepo: has_space() - 0 required (0 B)
D: df -T -B1 '/dev/nvme0n1p4'
D: Device: get_disk_space_using_df(): 1
D: Snapshot device: '/dev/nvme0n1p4'
D: Snapshot location: /run/timeshift/222557/backup
D: OK
D: 13 snapshots, 430.2 GB free
D: Status: HAS_SNAPSHOTS_HAS_SPACE
D: 
D: SnapshotRepo: check_status(): exit
D: SnapshotRepo: init_from_device(): exit
D: SnapshotRepo: from_uuid(): exit
D: Main: initialize_repo(): exit
D: AppConsole: start_application()
D: exit_app()
D: Main: save_app_config()
D: SnapshotRepo: available()
D: is_available: ok
D: SnapshotRepo: has_snapshots()
App config saved: /etc/timeshift/timeshift.json
D: crontab -l
D: Failed to read cron tab
D: crontab -l
D: Failed to read cron tab
D: Cron task exists: /etc/cron.d/timeshift-hourly
D: Cron task exists: /etc/cron.d/timeshift-boot
D: unmount_target_device()
D: clean_logs()
D: rm -rf '/tmp/CanXfeMQ'
D: cleanup_unmount_devices()
D: df -T -B1
D: Device: get_disk_space_using_df(): 5
D: Device: get_mounted_filesystems_using_mtab(): 5
D: Device: get_filesystems(): 19
D: 
Found stale mount for device '/dev/nvme0n1p4' at path '/run/timeshift/222557/backup'
D: Unmounted successfully
D: df -T -B1
D: Device: get_disk_space_using_df(): 5
D: Device: get_mounted_filesystems_using_mtab(): 5
D: Device: get_filesystems(): 19
D: df -T -B1
D: Device: get_disk_space_using_df(): 5
D: Device: get_mounted_filesystems_using_mtab(): 5
D: Device: get_filesystems(): 19
D: df -T -B1
D: Device: get_disk_space_using_df(): 5
D: Device: get_mounted_filesystems_using_mtab(): 5
D: Device: get_filesystems(): 19
D: df -T -B1
D: Device: get_disk_space_using_df(): 5
D: Device: get_mounted_filesystems_using_mtab(): 5
D: Device: get_filesystems(): 19
D: df -T -B1
D: Device: get_disk_space_using_df(): 5
D: Device: get_mounted_filesystems_using_mtab(): 5
D: Device: get_filesystems(): 19
D: df -T -B1
D: Device: get_disk_space_using_df(): 5
D: Device: get_mounted_filesystems_using_mtab(): 5
D: Device: get_filesystems(): 19
D: df -T -B1
D: Device: get_disk_space_using_df(): 5
D: Device: get_mounted_filesystems_using_mtab(): 5
D: Device: get_filesystems(): 19
D: df -T -B1
D: Device: get_disk_space_using_df(): 5
D: Device: get_mounted_filesystems_using_mtab(): 5
D: Device: get_filesystems(): 19
D: df -T -B1
D: Device: get_disk_space_using_df(): 5
D: Device: get_mounted_filesystems_using_mtab(): 5
D: Device: get_filesystems(): 19
D: df -T -B1
D: Device: get_disk_space_using_df(): 5
D: Device: get_mounted_filesystems_using_mtab(): 5
D: Device: get_filesystems(): 19
D: df -T -B1
D: Device: get_disk_space_using_df(): 5
D: Device: get_mounted_filesystems_using_mtab(): 5
D: Device: get_filesystems(): 19
D: df -T -B1
D: Device: get_disk_space_using_df(): 5
D: Device: get_mounted_filesystems_using_mtab(): 5
D: Device: get_filesystems(): 19
D: df -T -B1
D: Device: get_disk_space_using_df(): 5
D: Device: get_mounted_filesystems_using_mtab(): 5
D: Device: get_filesystems(): 19
D: df -T -B1
D: Device: get_disk_space_using_df(): 5
D: Device: get_mounted_filesystems_using_mtab(): 5
D: Device: get_filesystems(): 19
E: Failed to remove directory
Ret=256

Check

kat@XXXXX:~$ sudo timeshift --check
Mounted '/dev/nvme0n1p4' at '/run/timeshift/222885/backup'
Boot snapshots are enabled
Last boot snapshot is 52 hours old
Hourly snapshots are enabled
Last hourly snapshot is more than 1 hour old
------------------------------------------------------------------------------
Creating new snapshot...(RSYNC)
Saving to device: /dev/nvme0n1p4, mounted at path: /run/timeshift/222885/backup
Linking from snapshot: 2023-06-11_16-30-27
Syncing files with rsync...
Created control file: /run/timeshift/222885/backup/timeshift/snapshots/2023-06-12_22-57-30/info.json
RSYNC Snapshot saved successfully (72s)
Tagged snapshot '2023-06-12_22-57-30': hourly
Daily snapshots are enabled
Last daily snapshot is more than 1 day old
Tagged snapshot '2023-06-12_22-57-30': daily
------------------------------------------------------------------------------
E: Failed to remove directory
Ret=256

List

kat@XXXXX:~$ sudo timeshift --list
Mounted '/dev/nvme0n1p4' at '/run/timeshift/223213/backup'
Device : /dev/nvme0n1p4
UUID   : 88f193a2-9b08-48dc-90ef-fa0dcb847c65
Path   : /run/timeshift/223213/backup
Mode   : RSYNC
Status : OK
14 snapshots, 421.2 GB free

Num     Name                 Tags     Description                     
------------------------------------------------------------------------------
0    >  2023-01-22_18-00-01  D        Tuxedo Linux before edit fstab  
1    >  2023-05-25_00-00-02  D        Tuxedo Linux                    
2    >  2023-05-26_00-00-01  D        Tuxedo Linux                    
3    >  2023-05-27_00-00-01  D        Tuxedo Linux                    
4    >  2023-05-28_19-44-12  O        TUXEDO OS 2                     
5    >  2023-06-02_13-45-50  O        TUXEDO OS 2                     
6    >  2023-06-04_00-40-25  O        TUXEDO OS 2                     
7    >  2023-06-06_00-33-58  O        TUXEDO OS 2                     
8    >  2023-06-08_20-27-04  O        TUXEDO OS 2                     
9    >  2023-06-10_14-58-39  O        TUXEDO OS 2                     
10   >  2023-06-10_18-08-35  O B H D  TUXEDO OS 2 t                   
11   >  2023-06-10_18-28-31  O        TUXEDO OS 2 t                   
12   >  2023-06-11_16-30-27  O                                        
13   >  2023-06-12_22-57-30  H D                                      

E: Failed to remove directory
Ret=256
HeidrHH commented 1 year ago

Doing a snapshot on system start still does not work.

I get an "Admin Access Required" message.

Did I forget anything there?

Next is the "Browse" button on the top that does not work still.

"Show Timeshift-protocol" in Menu does not work too. No idea if the menu entry is named like this in English because I have it in German.

Next I will have a look if the scheduled tasks will start or not.

HeidrHH commented 1 year ago

Like that it looks today.

The hourly scheduled tasks should run but they did not so I think the daily will not run too.

kat@XXXXX:~$ sudo timeshift --list
[sudo] Passwort für kat: 
Mounted '/dev/nvme0n1p4' at '/run/timeshift/45689/backup'
Device : /dev/nvme0n1p4
UUID   : 88f193a2-9b08-48dc-90ef-fa0dcb847c65
Path   : /run/timeshift/45689/backup
Mode   : RSYNC
Status : OK
14 snapshots, 421.2 GB free

Num     Name                 Tags     Description                     
------------------------------------------------------------------------------
0    >  2023-01-22_18-00-01  D        Tuxedo Linux before edit fstab  
1    >  2023-05-25_00-00-02  D        Tuxedo Linux                    
2    >  2023-05-26_00-00-01  D        Tuxedo Linux                    
3    >  2023-05-27_00-00-01  D        Tuxedo Linux                    
4    >  2023-05-28_19-44-12  O        TUXEDO OS 2                     
5    >  2023-06-02_13-45-50  O        TUXEDO OS 2                     
6    >  2023-06-04_00-40-25  O        TUXEDO OS 2                     
7    >  2023-06-06_00-33-58  O        TUXEDO OS 2                     
8    >  2023-06-08_20-27-04  O        TUXEDO OS 2                     
9    >  2023-06-10_14-58-39  O        TUXEDO OS 2                     
10   >  2023-06-10_18-08-35  O B H D  TUXEDO OS 2 t                   
11   >  2023-06-10_18-28-31  O        TUXEDO OS 2 t                   
12   >  2023-06-11_16-30-27  O        TUXEDO OS 2 t                   
13   >  2023-06-12_22-57-30  H D      TUXEDO OS 2 t                   

kat@XXXXX:~$ sudo timeshift --debug
D: Main()
D: 
D: Running Timeshift v23.06.2
D: 
D: Session log file: /var/log/timeshift/2023-06-13_13-30-54_.log
D: Distribution: Ubuntu 22.04.2 (jammy)
D: DIST_ID: Ubuntu
D: Main: check_dependencies()
D: Main: add_default_exclude_entries()
D: Main: add_default_exclude_entries(): exit
D: update_partitions()
D: df -T -B1
D: Device: get_disk_space_using_df(): 5
D: Device: get_mounted_filesystems_using_mtab(): 5
D: Device: get_filesystems(): 19
D: partition list updated
D: detect_system_devices()
D: /boot/efi is mapped to device: /dev/nvme1n1p1, UUID=9D57-7BFB
D: / is mapped to device: /dev/nvme1n1p2, UUID=26b05443-8bc3-4df6-be14-3ce3397f8a74
D: Searching subvolume for system at path: /
D: Users: kat root
D: Encrypted home users: 
D: Encrypted home dirs:

D: Encrypted private dirs:

D: Main: load_app_config()
App config loaded: /etc/timeshift/timeshift.json
D: IconManager: init()
D: found images directory: /usr/share/timeshift/images
D: Main(): ok
D: AppConsole: parse_arguments()
D: Main: initialize_repo()
D: backup_uuid=88f193a2-9b08-48dc-90ef-fa0dcb847c65
D: backup_parent_uuid=
D: Setting snapshot device from config file
D: repo: creating from uuid
D: SnapshotRepo: from_uuid(): RSYNC
D: uuid=88f193a2-9b08-48dc-90ef-fa0dcb847c65
D: SnapshotRepo: init_from_device()
D: 
D: SnapshotRepo: unlock_and_mount_devices()
D: device=/dev/nvme0n1p4
D: SnapshotRepo: unlock_and_mount_device()
D: device=/dev/nvme0n1p4
D: Device: get_mounted_filesystems_using_mtab(): 5
D: ------------------
D: arg=88f193a2-9b08-48dc-90ef-fa0dcb847c65, device=/dev/nvme0n1p4
D: /mnt/kat/nvme0btrfs750
D: ------------------
D: Device: get_mounted_filesystems_using_mtab(): 5
Mounted '/dev/nvme0n1p4' at '/run/timeshift/45981/backup'
D: SnapshotRepo: load_snapshots()
D: loading snapshots from '/run/timeshift/45981/backup/timeshift/snapshots': 14 found
D: SnapshotRepo: unlock_and_mount_device(): exit
D: Selected snapshot device: /dev/nvme0n1p4
D: Free space: 421.2 GB
D: SnapshotRepo: check_status()
D: SnapshotRepo: available()
D: is_available: ok
D: SnapshotRepo: has_snapshots()
D: SnapshotRepo: has_space() - 0 required (0 B)
D: df -T -B1 '/dev/nvme0n1p4'
D: Device: get_disk_space_using_df(): 1
D: Snapshot device: '/dev/nvme0n1p4'
D: Snapshot location: /run/timeshift/45981/backup
D: OK
D: 14 snapshots, 421.2 GB free
D: Status: HAS_SNAPSHOTS_HAS_SPACE
D: 
D: SnapshotRepo: check_status(): exit
D: SnapshotRepo: init_from_device(): exit
D: SnapshotRepo: from_uuid(): exit
D: Main: initialize_repo(): exit
D: AppConsole: start_application()
D: exit_app()
D: Main: save_app_config()
D: SnapshotRepo: available()
D: is_available: ok
D: SnapshotRepo: has_snapshots()
App config saved: /etc/timeshift/timeshift.json
D: crontab -l
D: Failed to read cron tab
D: crontab -l
D: Failed to read cron tab
D: Cron task exists: /etc/cron.d/timeshift-hourly
D: Cron task exists: /etc/cron.d/timeshift-boot
D: unmount_target_device()
D: clean_logs()
D: rm -rf '/tmp/GG04hNYG'
D: cleanup_unmount_devices()
D: df -T -B1
D: Device: get_disk_space_using_df(): 5
D: Device: get_mounted_filesystems_using_mtab(): 5
D: Device: get_filesystems(): 19
D: 
Found stale mount for device '/dev/nvme0n1p4' at path '/run/timeshift/45981/backup'
D: Unmounted successfully

kat@XXXXX:~$ sudo timeshift --check
Mounted '/dev/nvme0n1p4' at '/run/timeshift/46090/backup'
Boot snapshots are enabled
Last boot snapshot is older than system start time
------------------------------------------------------------------------------
Creating new snapshot...(RSYNC)
Saving to device: /dev/nvme0n1p4, mounted at path: /run/timeshift/46090/backup
Linking from snapshot: 2023-06-12_22-57-30
Syncing files with rsync...
Created control file: /run/timeshift/46090/backup/timeshift/snapshots/2023-06-13_13-32-06/info.json
RSYNC Snapshot saved successfully (50s)
Tagged snapshot '2023-06-13_13-32-06': boot
Hourly snapshots are enabled
Last hourly snapshot is more than 1 hour old
Tagged snapshot '2023-06-13_13-32-06': hourly
Daily snapshots are enabled
Last daily snapshot is 14 hours old
------------------------------------------------------------------------------

kat@XXXXX:~$ 
HeidrHH commented 1 year ago

Are the 5 snapshot levels read out here?

D: crontab -l
D: Failed to read cron tab
D: crontab -l
D: Failed to read cron tab
D: Cron task exists: /etc/cron.d/timeshift-hourly
D: Cron task exists: /etc/cron.d/timeshift-boot

My settings:

Monthly is disabled. Weekly is disabled. Daily is enabled. Hourly is enabled. Boot is enabled.

So if disabled there is a failed message?

But where then is the message for the daily snapshot task?

After restart yesterday today this seems to be gone:

E: Failed to remove directory
Ret=256

And yesterday several time on --debug I got this today I got it only one time:

D: df -T -B1
D: Device: get_disk_space_using_df(): 5
D: Device: get_mounted_filesystems_using_mtab(): 5
D: Device: get_filesystems(): 19
Prodeguerriero commented 1 year ago

FYI, after adding the PPA and installing 23.06.2, everything appears to be working.

HeidrHH commented 1 year ago

Looks like that the cron service on my computer did not run.

No idea why, I never switched it off (had no idea how it worked - up to now) and here now it was the first time that I had to switch on / enable the cron service myself.

I had thought that something like that normally runs from Linux installation anyway or that e.g. Timeshift then just activates it if not or gives a hint that it still needs to be activated.

Before I started cron service the status said:

Active: inactive (dead)

Here now it is active:

kat@XXXXX:~$ service cron status
● cron.service - Regular background program processing daemon
     Loaded: loaded (/lib/systemd/system/cron.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2023-06-15 00:44:02 CEST; 29s ago
       Docs: man:cron(8)
   Main PID: 1134 (cron)
      Tasks: 4 (limit: 37952)
     Memory: 2.4M
        CPU: 6ms
     CGroup: /system.slice/cron.service
             ├─1134 /usr/sbin/cron -f -P
             ├─1143 /usr/sbin/CRON -f -P
             ├─1164 /bin/bash -c "sleep 10m && timeshift --create --scripted --tags B"
             └─1165 sleep 10m

Jun 15 00:44:02 XXXXX systemd[1]: Started Regular background program processing daemon.
Jun 15 00:44:02 XXXXX cron[1134]: (CRON) INFO (pidfile fd = 3)
Jun 15 00:44:02 XXXXX cron[1134]: (CRON) INFO (Running @reboot jobs)
Jun 15 00:44:02 XXXXX CRON[1143]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Jun 15 00:44:02 XXXXX CRON[1164]: (root) CMD (sleep 10m && timeshift --create --scripted --tags B)
kat@XXXXX:~$ 

Three scheduled tasks now ran like they should:

18   >  2023-06-15_00-00-01  H                                        
19   >  2023-06-15_00-54-02  B H                                      
20   >  2023-06-15_02-00-01  H D  

So I think now the scheduled tasks problem for me is solved.

Only the Browse button at the top and the menu entry for the log files still do not work.

Some informations how to start/stop cron service I found here:

https://www.cyberciti.biz/faq/howto-linux-unix-start-restart-cron/

THN1 commented 1 year ago

Same here - timeshift rolls back any new snapshot automatically when done, as it is not able to correctly understand the output messages from rsync. Hence, no snapshots get created anymore.

timeshift 21.09.1 rsync 3.2.7-0ubuntu0.22.04.2 KDE neon 5.27 KDE Plasma Version: 5.27.6 KDE Frameworks Version: 5.107.0 Qt Version: 5.15.10 Kernel Version: 5.19.0-45-generic (64-bit) Graphics Platform: X11 Processors: 12 × Intel® Core™ i7-8700 CPU @ 3.20GHz Memory: 15.6 GiB of RAM Graphics Processor: NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2 Manufacturer: Micro-Star International Co., Ltd. Product Name: MS-7B48 System Version: 1.0

Need to downgrade and lock (with synaptic) rsync to version 3.2.3-8ubuntu3

pacoorozco commented 1 year ago

+1

StosstruppVenus commented 1 year ago

Hi! I am following this thread for a while because I also have the problem that timeshift stopped working on Ubuntu 22.04. For me even the way via terminal does not work. My question would be if the timeshift repository version of Ubuntu 22.04 will be upgraded any time or if this problem will persist as long as I do not fix it? In such a case installing timeshift from PPA seems like the solution to go, but I am confused which PPA to add. Is it this one: https://launchpad.net/~teejee2008/+archive/ubuntu/timeshift (I am confused because timehift is supposed to be developed by the Linux Mint team now.)

mauricioduarte01 commented 1 year ago

Confirm with the same issue on Ubuntu 22.04 system up-to-date

Synching files with rsync... E: rsync returned an error
E: Failed to create new snapshot Failed to create snapshot

Removing snapshots (incomplete):

Removing '2023-06-30_09-16-09'... Removed '2023-06-30_09-16-09'

Downgrading rsync fixed temporarily the issue

ykarrde commented 1 year ago

Timeshift 23.07.1 from PPA with TUXEDO OS 2 (Ubuntu 22.04.2 jammy) KDE up to date with its rsync 3.2.7-0ubuntu0.22.04.2 is working here so far. Created a snapshot manually from the UI and also the scheduled snapshots are created successfully, according to the logs at least, not (needed to) tried to restore one yet.

But I had a weird thing happening where I accidentally clicked on either create or restore (not sure which one) and then at the dialog at its first "determine free space" part hastily clicked cancel which immediately resulted in black screens at all of my 3 Monitors. Thankfully with a alt-ctrl-del the logout/reboot/shutdown Dialog appeared. Not tried to recreate that thing because it was scary enough.

schockocraft commented 1 year ago

Same problem here. Ubuntu 22.04. Fixed by downgrading to 3.2.3. Removed timeshift and rsync via apt. Then: sudo apt-get install rsync=3.2.3-8ubuntu3 Put rsync on hold: sudo apt-mark hold rsync

Reinstall timeshift via apt.

Ok, for anyone like me, who just came from windows and doesnt feel confident doing that in console yet, Muon can do that version change for you, worked like a charm :)

JulianvonGebhardi commented 1 year ago

same problem (Ubuntu 22.04) Downgrading rsync works perfectly. Thanks!

Horatio-Hornblower commented 1 year ago

FWIW, I'm unable to reproduce the problem on four different computers, nor in VirtualBox. Linux Mint 21.1; rsync 3.27; Timeshift 22.11.2. Manual snapshots (not scheduled). Don't doubt it's happening, but not universal. Perhaps not even common.

Oh it's common alright: https://bugs.launchpad.net/ubuntu/+source/timeshift/+bug/2009885

FWIW, I'm unable to reproduce the problem on four different computers, nor in VirtualBox. Linux Mint 21.1; rsync 3.27; Timeshift 22.11.2. Manual snapshots (not scheduled).

Don't doubt it's happening, but not universal. Perhaps not even common.

problem only appears when I use an external USB disk for timeshift.

n0rthernstar commented 1 year ago

Solution for Ubuntu 22.04.3 LTS

sudo apt-get remove rsync sudo apt-get remove --auto-remove rsync sudo apt-get purge rsync sudo apt-get install rsync=3.2.3-8ubuntu3 sudo apt-mark hold rsync sudo apt install timeshift

And it works!

ykarrde commented 1 year ago

Solution for Ubuntu 22.04.3 LTS

sudo apt-get remove rsync sudo apt-get remove --auto-remove rsync sudo apt-get purge rsync sudo apt-get install rsync=3.2.3-8ubuntu3 ...

But Just be aware that this older version of rsync has some security issues. If you are not running a server and you are sure nothing else uses rsync you maybe fine. Otherwise using a up to date version of rsync and the very latest quot on quot "Beta"/PPA timeshift would probably be more recommended, at least works here as well.

ncthao90 commented 1 year ago

Same problem here. Ubuntu 22.04. Fixed by downgrading to 3.2.3. Removed timeshift and rsync via apt. Then: sudo apt-get install rsync=3.2.3-8ubuntu3 Put rsync on hold: sudo apt-mark hold rsync

Reinstall timeshift via apt.

It work fine. Thank you so much!

victoraugusto6 commented 10 months ago

I solved this problem by just installing the ppa version, thus bringing a newer version of Timeshift. https://launchpad.net/~teejee2008/+archive/ubuntu/timeshift

alelom commented 5 months ago

Fresh install.

  1. Timeshift doesn't work (as OP -- E: rsync returned an error E: Failed to create new snapshot, plus this bug)
  2. Uninstalled and purged existing timeshift and rsync with sudo apt autoremove timeshift --purge and sudo apt autoremove rsync --purge
  3. Installed Timesync from the PPA version with sudo add-apt-repository ppa:teejee2008/timeshift && sudo apt update, then sudo apt-get install timeshift=24.01.1-1build2 selecting the newest version from the PPA (24.01.1-1build2) to make sure it's picked.

Issue still there. Still getting E: rsync returned an error E: Failed to create new snapshot.