Results 1 to 7 of 7

Thread: Timshift not working: E: rsync returned an error E: Failed to create new snapshot

  1. #1
    Join Date
    May 2024
    Beans
    3

    Timshift not working: E: rsync returned an error E: Failed to create new snapshot

    Ubuntu 24.04 LTS Fresh install. Server, only from terminal.


    Timeshift used for the absolute first time on a clean install with nothing else installed prior, using the following command:
    sudo timeshift --create --comments "First backup" --tags B

    Timeshift doesn't work, it throws `E: rsync returned an error E: Failed to create new snapshot`.

    I have already read several posts suggesting to use a PPA version of timeshift instead. So I tried:

    1. Uninstalled and purged existing timeshift and rsync with `sudo apt autoremove timeshift --purge` and `sudo apt autoremove rsync --purge`
    2. Installed Timesync from the PPA version with `sudo add-apt-repository ppa:teejee2008/timeshift && sudo apt update`, then `sudo apt-get install timeshift`


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

    Any tips?

  2. #2
    #&thj^% is offline I Ubuntu, Therefore, I Am
    Join Date
    Aug 2016
    Beans
    Hidden!

    Re: Timshift not working: E: rsync returned an error E: Failed to create new snapshot

    What version of rsync?
    Code:
    rsync --version

  3. #3
    #&thj^% is offline I Ubuntu, Therefore, I Am
    Join Date
    Aug 2016
    Beans
    Hidden!

    Re: Timshift not working: E: rsync returned an error E: Failed to create new snapshot

    What you should try is again remove both "timeshift" and "rsync" with the same code you show in your first post#1
    Then downgrade rsync:
    Code:
    sudo apt-get install rsync=3.2.3-8ubuntu3
    Put rsync on hold:
    To keep it workling:
    Code:
    sudo apt-mark hold rsync
    Then reinstall Timeshift.

  4. #4
    Join Date
    May 2024
    Beans
    3

    Re: Timshift not working: E: rsync returned an error E: Failed to create new snapshot

    After having purged the system from both timeshift and rsync, I installed rysnc 3.2.3, and put in on hold, as mentioned. Then when I go and install timeshift, I get an incompatibility (see below).

    Does anyone know which version of timeshift can I use with rsync 3.2.3. and where can I find it?

    Also, just running sudo apt-get install rsync=3.2.3-8ubuntu3 would not work for me, I had to find that version and compile it from source (here: https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/rsync/3.2.3-8ubuntu3/rsync_3.2.3.orig.tar.gz)
    Is there an easier way to find it?


    $ sudo apt-get install timeshift
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:


    The following packages have unmet dependencies:
    timeshift : Depends: rsync but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.
    Last edited by alexlomba87; May 20th, 2024 at 07:55 AM.

  5. #5
    #&thj^% is offline I Ubuntu, Therefore, I Am
    Join Date
    Aug 2016
    Beans
    Hidden!

    Re: Timshift not working: E: rsync returned an error E: Failed to create new snapshot

    This needs to be brought to the attention of the bug-team then.
    To fix your broken install please try:
    Code:
    sudo apt -f install
    Followed by:
    Code:
    sudo apt autoremove --purge
    I'm unable to test Timeshift here on a ZFS root, not supported. Also I'm on 24.10 Testing ATM

    But i would in your case file a bug report on Timeshift.
    Attached Images Attached Images

  6. #6
    #&thj^% is offline I Ubuntu, Therefore, I Am
    Join Date
    Aug 2016
    Beans
    Hidden!

    Re: Timshift not working: E: rsync returned an error E: Failed to create new snapshot

    After I re-read your first post and the command you used, You may need to use the Timeshift GUI to setup first. The Timeshift Wizzard.
    First tell apt to release the hold on rsync:
    Code:
    sudo apt-mark unhold rsync
    Code:
    sudo timeshift-launcher
    This is still on 24.10 but with a LVM2/ext4 format. (NO ZFS-Root this time)

    Sorry I misunderstood you are on Noble(24.04) and not Jammy(22.04)

    Mine worked on 24.10 and 24.04 with no outside sources needed. 24.10 will become 24.04.1 after it's release.
    Code:
     apt policy timeshift rsync
    timeshift:
      Installed: 24.01.1-1build2
      Candidate: 24.01.1-1build2
      Version table:
     *** 24.01.1-1build2 500
            500 http://us.archive.ubuntu.com/ubuntu oracular/universe amd64 Packages
            100 /var/lib/dpkg/status
    rsync:
      Installed: 3.2.7-1ubuntu1
      Candidate: 3.2.7-1ubuntu1
      Version table:
         3.3.0-1 100
            100 http://us.archive.ubuntu.com/ubuntu oracular-proposed/main amd64 Packages
     *** 3.2.7-1ubuntu1 500
            500 http://us.archive.ubuntu.com/ubuntu oracular/main amd64 Packages
            100 /var/lib/dpkg/status
    A good snapshot was indeed successful:
    Code:
     sudo timeshift --list
    Mounted '/dev/dm-1' at '/run/timeshift/35137/backup'
    Device : /dev/dm-1
    UUID   : ff1bc2ff-170d-4e06-9b8d-2a385faae98e
    Path   : /run/timeshift/35137/backup
    Mode   : RSYNC
    Status : OK
    1 snapshots, 170.3 GB free
    
    Num     Name                 Tags  Description  
    ------------------------------------------------------------------------------
    0    >  2024-05-20_10-54-27  O
    And the same command you used in your first post:
    Code:
    sudo timeshift --create --comments "First backup" --tags B
    [sudo] password for me: 
    Mounted '/dev/dm-1' at '/run/timeshift/25722/backup'
    ------------------------------------------------------------------------------
    Creating new snapshot...(RSYNC)
    Saving to device: /dev/dm-1, mounted at path: /run/timeshift/25722/backup
    Linking from snapshot: 2024-05-23_11-00-01
    Syncing files with rsync...
    Created control file: /run/timeshift/25722/backup/timeshift/snapshots/2024-05-23_11-07-46/info.json
    RSYNC Snapshot saved successfully (18s)
    Tagged snapshot '2024-05-23_11-07-46': ondemand
    ------------------------------------------------------------------------------
    Attached Images Attached Images
    Last edited by #&thj^%; May 23rd, 2024 at 06:09 PM. Reason: add to

  7. #7
    Join Date
    May 2024
    Beans
    3

    Re: Timshift not working: E: rsync returned an error E: Failed to create new snapshot

    You may need to use the Timeshift GUI to setup first. The Timeshift Wizzard.
    I really would like to avoid installing any GUI on my Ubuntu Server. Also, I can't see why a GUI would be required.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •