etckeeper init with git gives error

Bug #1039627 reported by Jan Groenewald
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
etckeeper (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

0 root@muizenberg:/etc/#vim /etc/etckeeper/ # choose VCS=git
0 root@muizenberg:/etc/#etckeeper init
chgrp: missing operand after `./ppp/resolv.conf'
Try `chgrp --help' for more information.
1 root@muizenberg:/etc/#cd
---
ApportVersion: 2.0.1-0ubuntu12
Architecture: amd64
CheckboxSubmission: c8d20e1496e2a757b41dff1eb1b24066
CheckboxSystem: 2a6f54df59af338184485e85cbcf0d32
DistroRelease: Ubuntu 12.04
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
Package: etckeeper 0.61ubuntu2
PackageArchitecture: all
ProcVersionSignature: Ubuntu 3.2.0-30.48-generic 3.2.27
Tags: precise running-unity
Uname: Linux 3.2.0-30-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: sudo
mtime.conffile..etc.etckeeper.etckeeper.conf: 2012-08-30T14:45:59.469524

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1039627/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
affects: ubuntu → etckeeper (Ubuntu)
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for submitting this bug. Could you please tell us which release you are on?

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

(Pasting the contents of /etc/lsb-release and the result of 'dpkg -l | grep etckeeper' would be good - thanks)

Changed in etckeeper (Ubuntu):
status: New → Incomplete
Revision history for this message
Jan Groenewald (jan-aims) wrote : Re: [Bug 1039627] Re: etckeeper init with git gives error

Hi

Ubuntu 12.04.1

Regards,
Jan

On 29 August 2012 22:56, Serge Hallyn <email address hidden> wrote:

> Thanks for submitting this bug. Could you please tell us which release
> you are on?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1039627
>
> Title:
> etckeeper init with git gives error
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/etckeeper/+bug/1039627/+subscriptions
>

--
  .~.
  /V\ Jan Groenewald
 /( )\ www.aims.ac.za
 ^^-^^

Revision history for this message
Jan Groenewald (jan-aims) wrote :

Hi

1 root@muizenberg:~/bin#lsb_release -d
Description: Ubuntu 12.04.1 LTS
0 root@muizenberg:~/bin#dpkg -l |grep etckeeper
ii etckeeper
0.61ubuntu2 store /etc in git, mercurial, bzr
or darcs
0 root@muizenberg:~/bin#

Regards,
Jan

On 29 August 2012 22:57, Serge Hallyn <email address hidden> wrote:

> (Pasting the contents of /etc/lsb-release and the result of 'dpkg -l |
> grep etckeeper' would be good - thanks)
>
> ** Changed in: etckeeper (Ubuntu)
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1039627
>
> Title:
> etckeeper init with git gives error
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/etckeeper/+bug/1039627/+subscriptions
>

--
  .~.
  /V\ Jan Groenewald
 /( )\ www.aims.ac.za
 ^^-^^

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Hi Jan, I'm unable to reproduce your issue on Ubuntu 12.04.1. I get:

(precise-amd64)root@clint-MacBookAir:/home/clint# etckeeper init
Initialized empty Git repository in /etc/.git/
(precise-amd64)root@clint-MacBookAir:/home/clint#

Could you run 'apport-collect 1039627' so we can see more about the affected system? Also, what language do you have (echo $LANG)?

Changed in etckeeper (Ubuntu):
status: Incomplete → New
status: New → Incomplete
Revision history for this message
Jan Groenewald (jan-aims) wrote : Dependencies.txt

apport information

tags: added: apport-collected precise running-unity
description: updated
Revision history for this message
Jan Groenewald (jan-aims) wrote : ProcEnviron.txt

apport information

Revision history for this message
Jan Groenewald (jan-aims) wrote : modified.conffile..etc.etckeeper.etckeeper.conf.txt

apport information

Revision history for this message
Jan Groenewald (jan-aims) wrote : Re: [Bug 1039627] Re: etckeeper init with git gives error

Hi Clint,

On 9 September 2012 22:39, Clint Byrum <email address hidden> wrote:

> Hi Jan, I'm unable to reproduce your issue on Ubuntu 12.04.1. I get:
>
> (precise-amd64)root@clint-MacBookAir:/home/clint# etckeeper init
> Initialized empty Git repository in /etc/.git/
> (precise-amd64)root@clint-MacBookAir:/home/clint#
>
> Could you run 'apport-collect 1039627' so we can see more about the
> affected system? Also, what language do you have (echo $LANG)?
>

Yes, I've run apport. $LANG is en_ZA.UTF-8.

Please let me know anything else you need.

Regards,
Jan
--
  .~.
  /V\ Jan Groenewald
 /( )\ www.aims.ac.za
 ^^-^^

Robie Basak (racb)
Changed in etckeeper (Ubuntu):
status: Incomplete → New
Revision history for this message
Robie Basak (racb) wrote :

Jan,

I'm also unable to reproduce your issue. I've tried with 0.61ubuntu2 with LANG=en_ZA.UTF-8.

Could you give us exact steps to reproduce on a fresh 12.04.1 system please? Have you tried a different system?

Changed in etckeeper (Ubuntu):
status: New → Incomplete
Revision history for this message
Andrew Gillard (lorddeath) wrote :

I see this same behaviour on two of my Ubuntu machines (one a VM, one a physical host). Given that they both report the chgrp error on different files, my initial suspicion is that the issue is related to the number of packages installed or the number of files/directories in /etc.

root@hex:/etc# etckeeper init
chgrp: missing operand after `./X11/app-defaults'
Try `chgrp --help' for more information.

root@sek:/etc# etckeeper init
chown: missing operand after `./smokeping/smokeping_secrets'
Try `chown --help' for more information.

However, a third (much more recently-installed) Ubuntu VM ran `etckeeper init` quite happily with no errors.

Responses to the details requested above:
root@sek:/etc# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.10
DISTRIB_CODENAME=quantal
DISTRIB_DESCRIPTION="Ubuntu 12.10"

root@hex:/etc# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.10
DISTRIB_CODENAME=quantal
DISTRIB_DESCRIPTION="Ubuntu 12.10"

root@sek:/etc# dpkg -l | grep etckeeper
ii etckeeper 0.61ubuntu2 all store /etc in git, mercurial, bzr or darcs

root@hex:/etc# dpkg -l | grep etckeeper
ii etckeeper 0.61ubuntu2 all store /etc in git, mercurial, bzr or darcs

$LANG on both machines is en_GB.UTF-8.

As for the machine on which etckeeper *IS* working, these are the details given for the same commands as above:

root@hat:/etc# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.10
DISTRIB_CODENAME=quantal
DISTRIB_DESCRIPTION="Ubuntu 12.10"

root@hat:/etc# dpkg -l | grep etckeeper
ii etckeeper 0.61ubuntu2 all store /etc in git, mercurial, bzr or darcs

$LANG is also en_GB.UTF-8.

Will run the apport-collect commands now...

Revision history for this message
Andrew Gillard (lorddeath) wrote : apport information

ApportVersion: 2.6.1-0ubuntu9
Architecture: amd64
DistroRelease: Ubuntu 12.10
InstallationDate: Installed on 2010-12-18 (757 days ago)
InstallationMedia: Ubuntu-Server 10.04 LTS "Lucid Lynx" - Release amd64 (20100427)
MarkForUpload: True
Package: etckeeper 0.61ubuntu2
PackageArchitecture: all
ProcEnviron:
 TERM=screen-bce
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 3.2.0-26.41-generic 3.2.19
Tags: quantal
Uname: Linux 3.2.0-26-generic x86_64
UpgradeStatus: Upgraded to quantal on 2012-10-21 (83 days ago)
UserGroups:

mtime.conffile..etc.etckeeper.etckeeper.conf: 2013-01-13T10:27:12.989709

tags: added: quantal
Revision history for this message
Andrew Gillard (lorddeath) wrote : Dependencies.txt

apport information

Revision history for this message
Andrew Gillard (lorddeath) wrote : modified.conffile..etc.etckeeper.etckeeper.conf.txt

apport information

Revision history for this message
Andrew Gillard (lorddeath) wrote : apport information

ApportVersion: 2.6.1-0ubuntu9
Architecture: amd64
DistroRelease: Ubuntu 12.10
InstallationDate: Installed on 2010-10-29 (806 days ago)
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
MarkForUpload: True
Package: etckeeper 0.61ubuntu2
PackageArchitecture: all
ProcEnviron:
 TERM=screen-bce
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 3.2.0-26.41-generic 3.2.19
Tags: quantal
Uname: Linux 3.2.0-26-generic x86_64
UpgradeStatus: Upgraded to quantal on 2012-11-21 (52 days ago)
UserGroups:

mtime.conffile..etc.etckeeper.etckeeper.conf: 2013-01-06T10:20:23.930060

Revision history for this message
Andrew Gillard (lorddeath) wrote : Dependencies.txt

apport information

Revision history for this message
Andrew Gillard (lorddeath) wrote : modified.conffile..etc.etckeeper.etckeeper.conf.txt

apport information

Revision history for this message
Andrew Gillard (lorddeath) wrote : apport information

ApportVersion: 2.6.1-0ubuntu9
Architecture: amd64
DistroRelease: Ubuntu 12.10
InstallationDate: Installed on 2012-06-09 (217 days ago)
InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Release amd64 (20120424.1)
MarkForUpload: True
Package: etckeeper 0.61ubuntu2
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_GB:en
 TERM=screen-bce
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 3.5.0-17.28-generic 3.5.5
Tags: quantal
Uname: Linux 3.5.0-17-generic x86_64
UpgradeStatus: Upgraded to quantal on 2012-10-19 (85 days ago)
UserGroups:

mtime.conffile..etc.etckeeper.etckeeper.conf: 2012-12-30T21:18:19.265648

Revision history for this message
Andrew Gillard (lorddeath) wrote : Dependencies.txt

apport information

Revision history for this message
Andrew Gillard (lorddeath) wrote : modified.conffile..etc.etckeeper.etckeeper.conf.txt

apport information

Revision history for this message
Andrew Gillard (lorddeath) wrote :

(Those last 3 comments were for the newer, functioning machine; the others were from the two problematic ones.)

Robie Basak (racb)
Changed in etckeeper (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
andrew.boag (red-5) wrote :

Hi all,

Found a work-around for this issue (I was seeing the same chgrp error messages)

There was already a file /etc/.etckeeper

I moved this to /etc/.etckeeper.old

Then repeated the "etckeeper init" command and hey presto :-)

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.