Timeshift wont restore

Hi guys
I installed another copy of PM 4 for testing purposes and it hasn’t taken me long to screw it up, however as a precaution I took a snapshot of the original install with Timeshift for this very reason, but the problem is when I try to restore an error message appears “Cannot Restore” (or something equally helpful) I ran Timeshift from the terminal and I get this output,

any ideas ?

graeme@Linux-Testing ~ $ timeshift
graeme@Linux-Testing ~ $ sudo timeshift
[sudo] password for graeme: 
[08:11:36] Session log file: /var/log/timeshift/2013-12-14 08-11-36.log
[08:11:36] Distribution: Peppermint 4 (raring)
[08:11:36] All dependencies satisfied
[08:11:36] Mounted device '/dev/sda1' at mount point '/mnt/timeshift'
[08:11:36] App config loaded: '/etc/timeshift.json'
[08:11:56] Using user-specified exclude-list
xterm: bad command line option "--fullscreen"

usage:  xterm [-/+132] [-C] [-Sccn] [-T string] [-/+ah] [-/+ai] [-/+aw]
    [-b number] [-/+bc] [-bcf milliseconds] [-bcn milliseconds] [-bd color]
    [-/+bdc] [-bg color] [-bw number] [-/+cb] [-cc classrange] [-/+cjk_width]
    [-class string] [-/+cm] [-/+cn] [-cr color] [-/+cu] [-/+dc]
    [-display displayname] [-e command args ...] [-fa pattern] [-fb fontname]
    [-/+fbb] [-/+fbx] [-fd pattern] [-fg color] [-fi fontname] [-fn fontname]
    [-fs size] [-/+fullscreen] [-fw fontname] [-fwb fontname] [-fx fontname]
    [%geom] [#geom] [-geometry geom] [-help] [-/+hm] [-/+hold] [-iconic]
    [-/+ie] [-/+im] [-into windowId] [-/+j] [-/+k8] [-kt keyboardtype] [-/+l]
    [-/+lc] [-lcc path] [-leftbar] [-lf filename] [-/+ls] [-/+maximized]
    [-/+mb] [-mc milliseconds] [-/+mesg] [-/+mk_width] [-ms color] [-n string]
    [-name string] [-nb number] [-/+nul] [-/+pc] [-/+pob] [-rightbar] [-/+rv]
    [-/+rvc] [-/+rw] [-/+s] [-/+samename] [-/+sb] [-selbg color] [-selfg color]
    [-/+sf] [-/+si] [-/+sk] [-sl number] [-/+sm] [-/+sp] [-/+t] [-ti termid]
    [-title string] [-tm string] [-tn name] [-/+u8] [-/+uc] [-/+ulc] [-/+ulit]
    [-/+ut] [-/+vb] [-version] [-/+wc] [-/+wf] [-xrm resourcestring]
    [-ziconbeep percent]

Type xterm -help for a full description.

[08:11:56] Error: Restore failed with exit code: 256

Any help would be much appreciated

Many thanks

Graeme

Are you using xterm or lxterminal ?

and can you post the /etc/timeshift.json

so we can see if that’s specifying xterm.

can you also post the output from:

update-alternatives --display x-terminal-emulator

a quick look suggests neither xterm, lxterminal, or even gnome-terminal have a “–fullscreen” option … so quite where that’s coming from I don’t know.

A timeshift website suggests you boot an Ubuntu LiveCD/LiveUSB … install timeshift … and run it from there.
but as I said, the Ubuntu terminal doesn’t support the --fullscreen option either :o
http://www.teejeetech.in/p/timeshift.html

Maybe you need to report a bug:
https://bugs.launchpad.net/timeshift

This might be a bug as xterm has a “-fullscreen” option but not “–fullscreen”.
On the other hand timeshift might be targeting other terminal emulators which accept that “–fullscreen” option like Konsole or xfce4-terminal. :-\

Hmm … I’d say that’s a pretty big bug,
(it’s obviously written to select xterm, as update-alternatives would have lxterminal by default in Peppermint)

Releasing a version that they haven’t tested can “restore” … that would make me drop it altogether, it’s not really confidence inspiring is it ::slight_smile:

Unless of course you’re using a development/beta version ?

Hi guys thanks for your help

Are you using xterm or lxterminal ?

lxterminal

Unless of course you're using a development/beta version ?

The version is v1.3.2 I don’t think it’s a beta

A timeshift website suggests you boot an Ubuntu LiveCD/LiveUSB .. install timeshift .. and run it from there.

As far as I believe that’s only necessary if the system wont boot

anyway here’s the outputs you asked for

{


  "backup_device_uuid" : "c4a8e442-bee5-4643-99ee-537252e862e3",
  "is_scheduled" : "false",
  "schedule_monthly" : "false",
  "schedule_weekly" : "false",
  "schedule_daily" : "true",
  "schedule_hourly" : "false",
  "schedule_boot" : "true",
  "count_monthly" : "2",
  "count_weekly" : "3",
  "count_daily" : "5",
  "count_hourly" : "6",
  "count_boot" : "5",
  "max_days" : "200",
  "min_space" : "2048",
  "exclude" : [
  ]
}
graeme@Linux-Testing ~ $ update-alternatives --display x-terminal-emulator
x-terminal-emulator - auto mode
  link currently points to /usr/bin/lxterminal
/usr/bin/koi8rxterm - priority 20
  slave x-terminal-emulator.1.gz: /usr/share/man/man1/koi8rxterm.1.gz
/usr/bin/lxterm - priority 30
  slave x-terminal-emulator.1.gz: /usr/share/man/man1/lxterm.1.gz
/usr/bin/lxterminal - priority 40
  slave x-terminal-emulator.1.gz: /usr/share/man/man1/lxterminal.1.gz
/usr/bin/uxterm - priority 20
  slave x-terminal-emulator.1.gz: /usr/share/man/man1/uxterm.1.gz
/usr/bin/xterm - priority 20
  slave x-terminal-emulator.1.gz: /usr/share/man/man1/xterm.1.gz
Current 'best' version is '/usr/bin/lxterminal'.
graeme@Linux-Testing ~ $ 

Graeme

You’ve definitely got lxterminal set as the default terminal through “alternatives” … so timeshift must be specifically calling xterm, and if that’s the case it MUST (as SeZo says) be a bug … it should be calling

xterm -fullscreen

but instead it’s calling

xterm --fullscreen

and as timeshift is a binary executable, there’s little we can do about it short of adjusting the source code and recompiling.

is there a later pre-packaged version out yet ?

is there a later pre-packaged version out yet ?

I dont think so I installed it via the ppa TimeShift: Restore Your Linux Desktop To Previous State | Unixmen so I assume I have the latest version

Many thanks

Graeme

What is the output from:

echo $TERM
graeme@Linux-Testing ~ $ echo $TERM
xterm
graeme@Linux-Testing ~ $ 

So, timeshift is just reading the value of $THERM which is in this case xterm

You can change that value with (for lxterm):

export TERM=lxterm

If that works then you could add it to your ~/.bashrc

But you need to find terminal emulators that support --fullscreen

Hi SeZo

So, timeshift is just reading the value of $THERM which is in this case xterm

You can change that value with (for lxterm):
Code: [Select]
export TERM=lxterm
If that works then you could add it to your ~/.bashrc

But you need to find terminal emulators that support --fullscreen

is what your suggesting a possible fix or is it a workaround for a bug in the program, sorry if that’s a stupid question but I really don’t understand any of this

Many thanks

Graeme

is what your suggesting a possible fix or is it a workaround for a bug in the program

It is just a workaround. Timeshift should (conditionally) issue commands based on the terminal emulator they encounter.
You could try to install konsole which will accept that command.
Change the $TERM to that:

export TERM=konsole

and try again with Timeshift.

Be aware, installing konsole in Peppermint will pull in this little lot :o

docbook-xsl icoutils kate-data katepart kde-runtime kde-runtime-data
kdelibs-bin kdelibs5-data kdelibs5-plugins kdoctools konsole
kubuntu-debug-installer libattica0.4 libcanberra-pulse libdlrestrictions1
libkactivities-bin libkactivities-models1 libkactivities6
libkatepartinterfaces4 libkcmutils4 libkde3support4 libkdeclarative5
libkdecore5 libkdesu5 libkdeui5 libkdewebkit5 libkdnssd4 libkemoticons4
libkfile4 libkhtml5 libkidletime4 libkio5 libkjsapi4 libkjsembed4
libkmediaplayer4 libknewstuff3-4 libknotifyconfig4 libkntlm4 libkonq-common
libkonq5-templates libkonq5abi1 libkparts4 libkpty4 libkrosscore4
libktexteditor4 libkxmlrpcclient4 libnepomuk4 libnepomukcore4abi1
libnepomukquery4a libnepomukutils4 libntrack-qt4-1 libntrack0 libphonon4
libplasma3 libpolkit-qt-1-1 libpoppler-qt4-4 libqapt2 libqapt2-runtime
libqt4-qt3support libsolid4 libsoprano4 libssh-4 libstreamanalyzer0
libstreams0 libthreadweaver4 libvirtodbc0 nepomuk-core nepomuk-core-data
ntrack-module-libnl-0 oxygen-icon-theme phonon phonon-backend-gstreamer
plasma-scriptengine-javascript qapt-batch shared-desktop-ontologies
soprano-daemon virtuoso-minimal virtuoso-opensource-6.1-bin
virtuoso-opensource-6.1-common

Ok I just tried restoring on my main system PM4 and it seemed to work fine so why should it work on one version of PM4 and not another ?

Many thanks

Graeme

same version of timeshift ?

dpkg -l | grep timeshift

I installed it in both systems from the same ppa

graeme@Linux1 ~ $ dpkg -l | grep timeshift
ii  timeshift                                     1.3.2-0~74~ubuntu13.04.1                 i386         A system restore utility for Linux
graeme@Linux1 ~ $ 

on the system that worked … what’s the output from:

echo $TERM

and

update-alternatives --display x-terminal-emulator

and

dpkg -l | grep xterm

Are both systems Peppermint 4 ? … are they both up to date ?

Does timeshift write a log anywhere, so we can possibly see what it ran ?

graeme@Linux1 ~ $ echo $TERM
xterm
graeme@Linux1 ~ $ 
graeme@Linux1 ~ $ update-alternatives --display x-terminal-emulator
x-terminal-emulator - auto mode
  link currently points to /usr/bin/lxterminal
/usr/bin/gnome-terminal.wrapper - priority 40
  slave x-terminal-emulator.1.gz: /usr/share/man/man1/gnome-terminal.1.gz
/usr/bin/koi8rxterm - priority 20
  slave x-terminal-emulator.1.gz: /usr/share/man/man1/koi8rxterm.1.gz
/usr/bin/lxterm - priority 30
  slave x-terminal-emulator.1.gz: /usr/share/man/man1/lxterm.1.gz
/usr/bin/lxterminal - priority 40
  slave x-terminal-emulator.1.gz: /usr/share/man/man1/lxterminal.1.gz
/usr/bin/uxterm - priority 20
  slave x-terminal-emulator.1.gz: /usr/share/man/man1/uxterm.1.gz
/usr/bin/xterm - priority 20
  slave x-terminal-emulator.1.gz: /usr/share/man/man1/xterm.1.gz
Current 'best' version is '/usr/bin/gnome-terminal.wrapper'.
graeme@Linux1 ~ $ 
graeme@Linux1 ~ $ dpkg -l | grep xterm
ii  lxterminal                                    0.1.11-4ubuntu3                          i386         LXDE terminal emulator
ii  xterm                                         278-1ubuntu2                             i386         X terminal emulator
graeme@Linux1 ~ $ 
Are both systems Peppermint 4 ? .. are they both up to date ?

They’re both PM4 but the testing version was a fresh install from the first release it did a big update this morning but I’m not sure if I’ve tried restoring since, I’ll have to log into the testing system to try again

Does timeshift write a log anywhere, so we can possibly see what it ran ?

I’m not sure I have read through the developers website but I can’t remember reading anything about a log

are the xterm and timeshift versions the same on both machines ?

dpkg -l | grep xterm

and

dpkg -l | grep timeshift

They may have updated timeshift with a fixed version between you running it on the broken machine, and running it on the one that worked.

Linux-Testing

graeme@Linux-Testing ~ $ dpkg -l | grep xterm
ii  lxterminal                           0.1.11-4ubuntu3                          i386         LXDE terminal emulator
ii  xterm                                278-1ubuntu2                             i386         X terminal emulator
graeme@Linux-Testing ~ $ dpkg -l | grep timeshift
ii  timeshift                            1.3.2-0~74~ubuntu13.04.1                 i386         A system restore utility for Linux
graeme@Linux-Testing ~ $ 

Linux1

graeme@Linux1 ~ $ dpkg -l | grep xterm
ii  lxterminal                                    0.1.11-4ubuntu3                          i386         LXDE terminal emulator
ii  xterm                                         278-1ubuntu2                             i386         X terminal emulator
graeme@Linux1 ~ $ dpkg -l | grep timeshift
ii  timeshift                                     1.3.2-0~74~ubuntu13.04.1                 i386         A system restore utility for Linux
graeme@Linux1 ~ $