Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeshift returns E: rsync returned an error and fails on a fresh install #304

Open
alelom opened this issue May 20, 2024 · 1 comment
Open

Comments

@alelom
Copy link

alelom commented May 20, 2024

Ubuntu 24.04 LTS fresh install. Server, only from terminal. Nothing else done before attempted usage of timeshift.
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 throws:

E: rsync returned an error
E: Failed to create new snapshot

Versions: rsync --version shows 3.2.7, while timeshift --version shows 24.01.1.

Attempted workarounds

Attempt 1: Install timeshift from PPA version

I have 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 not resolved. Uninstalled and purged timeshift and rysnc.

Attempt 2: Install older version of rsync

Many users report that this can be solved by using version 3.2.3 of rsync. Did it this way:

Download and unpack rsync 3.2.3:

wget https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/rsync/3.2.3-8ubuntu3/rsync_3.2.3.orig.tar.gz
tar -xvzf rsync_3.2.3.orig.tar.gz
cd rsync-3.2.3

Compile and install rysnc 3.2.3 (requires sudo apt-get install build-essential):

./configure --prefix=/usr --disable-lz4 --disable-xxhash --without-included-zlib --disable-zstd && make
sudo make install

Keep rsync on hold, then install timeshift:

sudo apt-mark hold rsync
sud apt-get install timeshift

Still same error.

@ykarrde
Copy link

ykarrde commented May 22, 2024

The Workarounds you tried are for Ubuntu 22.04 and its older timeshift.

The PPA version is probably currently equivalent with your 24.01.1 from Ubuntu 24.04
and at least with my still Ubuntu 22.04 based distro (PPA) timeshift 24.01.1 and rsync 3.2.7 protocol 31 are working together.

Does the logfile, located at /var/log/timeshift , contain more details (maybe the specific rsync error) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants