Missing home config for anachron and root

Bug #1357961 reported by Julius Beckmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
backintime (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When using the "BackInTime (root)" Application with XUbuntu 14.04, the automatic backup via udev/anachron did not work.

After some investigation i found out anachron could not run backintime because such errors:
"WARNING: Not configured" and
"The application is not configured !"

In the End there was such a line missing in the anachron file, to run correctly under root account:

```
XDG_CONFIG_HOME=/root/.config/
```

I am using
```
$ backintime --version
Back In Time
Version: 1.0.34
```

Tags: anachron udev
Revision history for this message
Germar (germar) wrote :

This is because 'gksu' is missing in Ubuntus official repository dependencies. Take a look at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=735122

You can either install gksu manually with 'sudo apt-get install gksu' or use our PPA with 'sudo add-apt-repository ppa:bit-team/stable && sudo apt-get update && sudo apt-get dist-upgrade'

You might have to move your config after this from ~/.config/backintime/config to /root/.config/backintime/config and change ownership to root.

affects: backintime → backintime (Ubuntu)
Changed in backintime (Ubuntu):
status: New → Confirmed
Revision history for this message
Julius Beckmann (z-ubuntuone-t) wrote :

I dont think this is because of missing gksu, because i had it installed beforehand.

For clearance: I always started and used backintime as root, never as my own uer.

Revision history for this message
Germar (germar) wrote :

What kind of dialog does pop up to ask for your sudo password? Is it a Terminal window or a graphical dialog?

Where is your config located at the moment? ~/.config/backintime or /root/.config/backintime ?

Official repository uses 'su-to-root' to start backintime as root. This will fallback to sudo if it doesn't find gksudo. But sudo doesn't change HOME environ where gksudo does.

Revision history for this message
Julius Beckmann (z-ubuntuone-t) wrote :

There is no dialog at all. Config has always been at `/root/.config/backintime`.

I had some thins changed on my system that i changed back:
- Disabled non-password sudo for my user, tried again with no difference.
- Recreated the umodified udev and anacron files.

The issue i reported seem to be "handmade" by myself trying to recreate the anacron flow.
My current working fix for my issue is a "sleep 10;" in the anacron file, because my external 3.5" is quite slow and needs some time to start and mount.

```
Aug 17 21:09:20 julius-T420 kernel: [20831.062381] sd 4:0:0:0: [sdb] Attached SCSI disk
Aug 17 21:09:21 julius-T420 anacron[32421]: Anacron 2.3 started on 2014-08-17
Aug 17 21:09:21 julius-T420 anacron[32421]: Will run job `1_Hauptprofil' in 0 min.
Aug 17 21:09:21 julius-T420 anacron[32421]: Jobs will be executed sequentially
Aug 17 21:09:21 julius-T420 anacron[32421]: Job `1_Hauptprofil' started
Aug 17 21:09:21 julius-T420 backintime (root): INFO: Lock
Aug 17 21:09:21 julius-T420 backintime (root): INFO: on process begins
Aug 17 21:09:21 julius-T420 backintime (root): INFO: Profile_id: 1
Aug 17 21:09:21 julius-T420 backintime (root): WARNING: Can't find snapshots folder !
Aug 17 21:09:23 julius-T420 kernel: [20833.204354] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
Aug 17 21:09:23 julius-T420 kernel: [20833.246993] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
Aug 17 21:09:23 julius-T420 udisksd[4699]: Mounted /dev/sdb1 at /media/julius/BACKUP-2TB on behalf of uid 1000
Aug 17 21:09:23 julius-T420 backintime (root): INFO: Unlock
Aug 17 21:09:23 julius-T420 anacron[32421]: Job `1_Hauptprofil' terminated
Aug 17 21:09:23 julius-T420 anacron[32421]: Normal exit (1 job run)
Aug 17 21:12:43 julius-T420 udisksd[4699]: Cleaning up mount point /media/julius/BACKUP-2TB (device 8:17 is not mounted)
Aug 17 21:12:43 julius-T420 udisksd[4699]: Unmounted /dev/sdb1 on behalf of uid 1000
Aug 17 21:12:47 julius-T420 kernel: [21037.138398] ata5: exception Emask 0x10 SAct 0x0 SErr 0x4090000 action 0xe frozen
```

Revision history for this message
Germar (germar) wrote :

Glad to hear that you could fix it. I'm aware of anacron starting to soon. There is already bug #1332979 with a patch. But I'm also about to ditch anacron completely and integrate it's function into BIT. Didn't decide yet.

Would you agree to mark this bug as duplicate of bug #1332979?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.