etckeeper doesn't commit. Missing executable permissions on /etc/etckeeper/commit.d/50vcs-commit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
etckeeper (Ubuntu) |
Fix Released
|
High
|
Nobuto Murata | ||
Utopic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
* Impact:
the command fails to run on incorrect permission issue
* Test case
see "To reproduce the problem" section of the description
* Regression potential
that only changing permission of one file, just test that the command works
-------
Etckeeper doesn't work out of the box on Ubuntu 14.10
The command etckeeper commit fails without any output.
The problem is that the script 50vcs-commit doesn't have execution permissions.
Noticed in etckeeper at ubuntu 14.10
root@ulises2:
Description: Ubuntu 14.10
Release: 14.10
root@ulises2:
etckeeper:
Installed: 1.11ubuntu1
Candidate: 1.11ubuntu1
Version table:
*** 1.11ubuntu1 0
500 http://
100 /var/lib/
The root cause is that 50vcs-commit never gets executed because it lacks permissions:
root@ulises2:
total 40
drwxr-xr-x 2 root root 4096 Dec 15 13:55 .
drwxr-xr-x 12 root root 4096 Dec 15 13:55 ..
-rwxr-xr-x 1 root root 447 Jun 4 2014 10vcs-test
-rwxr-xr-x 1 root root 138 Jun 4 2014 30bzr-add
-rwxr-xr-x 1 root root 302 Jun 4 2014 30darcs-add
-rwxr-xr-x 1 root root 138 Jun 4 2014 30git-add
-rwxr-xr-x 1 root root 143 Jun 4 2014 30hg-addremove
-rw-r--r-- 1 root root 2822 Jun 4 2014 50vcs-commit
-rwxr-xr-x 1 root root 264 Jun 4 2014 99push
-rw-r--r-- 1 root root 193 Jun 4 2014 README
To reproduce the problem:
-------
Install etckeeper on Ubuntu 14.04. Nothing gets commited.
root@ulises2:
Creado un standalone tree (formaot: 2a)
adding .bzrignore
adding .etckeeper
adding .java
adding ConsoleKit
adding ImageMagick
adding Muttrc
[...]
root@ulises2:
unknown:
.bzrignore
.etckeeper
.java/
ConsoleKit/
ImageMagick/
Muttrc
[...]
root@ulises2:
root@ulises2:
added:
.bzrignore
.etckeeper
.java/
.java/
.java/
.java/
[...]
To fix the problem
-------
Give exectuable permissions to /etc/etckeeper/
chmod +x /etc/etckeeper/
etckeeper commit "initial revision"
etckeeper vcs log
-------
revno: 1
committer: hmontoliu <hmontoliu@ulises2>
branch nick: ulises2 /etc repository
timestamp: Mon 2014-12-15 14:09:54 +0100
message:
initial revision
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: etckeeper 1.11ubuntu1
ProcVersionSign
Uname: Linux 3.16.0-28-generic x86_64
NonfreeKernelMo
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Dec 15 13:59:32 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-10-16 (425 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Beta amd64 (20130925.1)
PackageArchitec
SourcePackage: etckeeper
UpgradeStatus: Upgraded to utopic on 2014-12-13 (1 days ago)
Related branches
- Sebastien Bacher: Approve
-
Diff: 15 lines (+7/-0)1 file modifieddebian/changelog (+7/-0)
Changed in etckeeper (Ubuntu): | |
importance: | Undecided → High |
tags: |
added: verification-failed removed: verification-needed |
Changed in etckeeper (Ubuntu Utopic): | |
status: | Fix Committed → Confirmed |
Status changed to 'Confirmed' because the bug affects multiple users.