[Bug 1402657] Re: etckeeper doesn't commit. Missing executable permissions on /etc/etckeeper/commit.d/50vcs-commit
Sebastien Bacher
seb128 at ubuntu.com
Mon Feb 16 09:13:06 UTC 2015
Uploaded the permission fix to vivid and utopic
** Description changed:
+ * 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 at ulises2:/etc/etckeeper# lsb_release -rd
Description: Ubuntu 14.10
Release: 14.10
root at ulises2:/etc/etckeeper# apt-cache policy etckeeper
etckeeper:
- Installed: 1.11ubuntu1
- Candidate: 1.11ubuntu1
- Version table:
- *** 1.11ubuntu1 0
- 500 http://archive.ubuntu.com/ubuntu/ utopic/main amd64 Packages
- 100 /var/lib/dpkg/status
+ Installed: 1.11ubuntu1
+ Candidate: 1.11ubuntu1
+ Version table:
+ *** 1.11ubuntu1 0
+ 500 http://archive.ubuntu.com/ubuntu/ utopic/main amd64 Packages
+ 100 /var/lib/dpkg/status
-
-
- The root cause is that 50vcs-commit never gets executed because it lacks permissions:
+ The root cause is that 50vcs-commit never gets executed because it lacks
+ permissions:
root at ulises2:/etc/etckeeper# ls -la /etc/etckeeper/commit.d/
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 at ulises2:/etc/etckeeper# etckeeper init
+ root at ulises2:/etc/etckeeper# etckeeper init
Creado un standalone tree (formaot: 2a)
adding .bzrignore
adding .etckeeper
adding .java
adding ConsoleKit
adding ImageMagick
adding Muttrc
[...]
- root at ulises2:/etc/etckeeper# etckeeper vcs status
+ root at ulises2:/etc/etckeeper# etckeeper vcs status
unknown:
- .bzrignore
- .etckeeper
- .java/
- ConsoleKit/
- ImageMagick/
- Muttrc
- [...]
+ .bzrignore
+ .etckeeper
+ .java/
+ ConsoleKit/
+ ImageMagick/
+ Muttrc
+ [...]
root at ulises2:/etc/etckeeper# etckeeper commit "initial revision"
- root at ulises2:/etc/etckeeper# etckeeper vcs status
+ root at ulises2:/etc/etckeeper# etckeeper vcs status
added:
- .bzrignore
- .etckeeper
- .java/
- .java/.systemPrefs/
- .java/.systemPrefs/.system.lock
- .java/.systemPrefs/.systemRootModFile
- [...]
-
-
+ .bzrignore
+ .etckeeper
+ .java/
+ .java/.systemPrefs/
+ .java/.systemPrefs/.system.lock
+ .java/.systemPrefs/.systemRootModFile
+ [...]
To fix the problem
--------------------------------------------
Give exectuable permissions to /etc/etckeeper/commit.d/50vcs-commit::
chmod +x /etc/etckeeper/commit.d/50vcs-commit
- etckeeper commit "initial revision"
- etckeeper vcs log
+ etckeeper commit "initial revision"
+ etckeeper vcs log
------------------------------------------------------------
revno: 1
committer: hmontoliu <hmontoliu at ulises2>
branch nick: ulises2 /etc repository
timestamp: Mon 2014-12-15 14:09:54 +0100
message:
- initial revision
+ initial revision
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: etckeeper 1.11ubuntu1
ProcVersionSignature: Ubuntu 3.16.0-28.37-generic 3.16.7-ckt1
Uname: Linux 3.16.0-28-generic x86_64
NonfreeKernelModules: wl
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)
PackageArchitecture: all
SourcePackage: etckeeper
UpgradeStatus: Upgraded to utopic on 2014-12-13 (1 days ago)
** Changed in: etckeeper (Ubuntu)
Status: Confirmed => Fix Committed
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to etckeeper in Ubuntu.
https://bugs.launchpad.net/bugs/1402657
Title:
etckeeper doesn't commit. Missing executable permissions on
/etc/etckeeper/commit.d/50vcs-commit
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/etckeeper/+bug/1402657/+subscriptions
More information about the Ubuntu-server-bugs
mailing list