Issue 786 - post-update problems when pushing to repository (indefero)

83 views
Skip to first unread message

no-r...@ceondo.com

unread,
Feb 21, 2012, 5:31:04 AM2/21/12
to indefero...@googlegroups.com
Hello,

A new issue has been created and assigned
to you:

786 - post-update problems when pushing to repository
Project: Indefero
Status: New
Reported by: Steddy Smit
Labels:
Type:Defect
Priority:Medium

Description:

I recently installed v1.2 of indefero on ubuntu and ran into a problem when pushing (using git) to the repository.

The push went fine, but I saw the following:

error: cannot run hooks/post-update: No such file or directory

It turned out that I did not have 'at' installed on my server which was causing the error when the post-update script was run. Installing it (apt-get install at) fixed the problem.

I don't know if indefero could detect this or whether the install docs could be updated.

--
Issue: http://projects.ceondo.com/p/indefero/issues/786/


no-r...@ceondo.com

unread,
Feb 21, 2012, 3:43:10 PM2/21/12
to indefero...@googlegroups.com
Hello,

The following issue has been updated:

786 - Check for `at' command during installation / document `at' usage


Project: Indefero
Status: New
Reported by: Steddy Smit

URL: http://projects.ceondo.com/p/indefero/issues/786/
Labels:
Priority:Medium
Type:Enhancement

Comments (last first):

# By Thomas Keller, Feb 21, 2012:

Definitely both.

Labels: Type:Enhancement -Type:Defect
Summary: Check for `at' command during installation / document `at' usage
Relations: is related to 211

# By Steddy Smit, Feb 21, 2012:

no-r...@ceondo.com

unread,
May 1, 2013, 5:47:22 PM5/1/13
to indefero...@googlegroups.com
Hello,

The following issue has been updated:

786 - Check for `at' command during installation / document `at' usage
Project: Indefero
Status: New
Reported by: Steddy Smit
URL: http://projects.ceondo.com/p/indefero/issues/786/
Labels:
Priority:Medium
Type:Enhancement

Comments (last first):

# By Andrew Aikman, May 1, 2013:

I had exactly the same issue with Ubuntu 10.04: "error: cannot run hooks/post-update: No such file or directory". Installing "at" fixed this.

I am now trying to set up indefero on ubuntu 12.04, I have followed the instructions and double checked them against my working install of 10.04.

I am getting the error when pushing: "error: cannot run hooks/post-update: No such file or directory". "at" is installed, the actual changes are saved to the repository but the database / timeline are not updated. I can create a new project fine, I can clone fine, I can pull fine, it is just the final part of pushing. I have never got the local-git-daemon to work but this never worked on my previous install (10.04). I have looked through the scripts to try and get to the bottom of this but no luck so far.

I will post my findings if I solve.

# By Thomas Keller, Feb 21, 2012:

Definitely both.

Labels: Type:Enhancement -Type:Defect
Summary: Check for `at' command during installation / document `at' usage
Relations: is related to 211

# By Steddy Smit, Feb 21, 2012:

no-r...@ceondo.com

unread,
May 1, 2013, 5:49:06 PM5/1/13
to indefero...@googlegroups.com
Hello,

The following issue has been updated:

786 - Check for `at' command during installation / document `at' usage
Project: Indefero
Status: New
Reported by: Steddy Smit
URL: http://projects.ceondo.com/p/indefero/issues/786/
Labels:
Priority:Medium
Type:Enhancement

Comments (last first):

# By Andrew Aikman, May 1, 2013:

^ i am using Indefero version 1.3.3

# By Andrew Aikman, May 1, 2013:

I had exactly the same issue with Ubuntu 10.04: "error: cannot run hooks/post-update: No such file or directory". Installing "at" fixed this.

I am now trying to set up indefero on ubuntu 12.04, I have followed the instructions and double checked them against my working install of 10.04.

I am getting the error when pushing: "error: cannot run hooks/post-update: No such file or directory". "at" is installed, the actual changes are saved to the repository but the database / timeline are not updated. I can create a new project fine, I can clone fine, I can pull fine, it is just the final part of pushing. I have never got the local-git-daemon to work but this never worked on my previous install (10.04). I have looked through the scripts to try and get to the bottom of this but no luck so far.

I will post my findings if I solve.

# By Thomas Keller, Feb 21, 2012:

Definitely both.

Labels: Type:Enhancement -Type:Defect
Summary: Check for `at' command during installation / document `at' usage
Relations: is related to 211

# By Steddy Smit, Feb 21, 2012:

no-r...@ceondo.com

unread,
May 13, 2013, 3:52:50 PM5/13/13
to indefero...@googlegroups.com
Hello,

The following issue has been updated:

786 - Check for `at' command during installation / document `at' usage
Project: Indefero
Status: New
Reported by: Steddy Smit
URL: http://projects.ceondo.com/p/indefero/issues/786/
Labels:
Priority:Medium
Type:Enhancement

Comments (last first):

# By Keith Constable, May 13, 2013:

Andrew, try adding "www-data" to /etc/at.allow.

# By Andrew Aikman, May 1, 2013:

^ i am using Indefero version 1.3.3

# By Andrew Aikman, May 1, 2013:

I had exactly the same issue with Ubuntu 10.04: "error: cannot run hooks/post-update: No such file or directory". Installing "at" fixed this.

I am now trying to set up indefero on ubuntu 12.04, I have followed the instructions and double checked them against my working install of 10.04.

I am getting the error when pushing: "error: cannot run hooks/post-update: No such file or directory". "at" is installed, the actual changes are saved to the repository but the database / timeline are not updated. I can create a new project fine, I can clone fine, I can pull fine, it is just the final part of pushing. I have never got the local-git-daemon to work but this never worked on my previous install (10.04). I have looked through the scripts to try and get to the bottom of this but no luck so far.

I will post my findings if I solve.

# By Thomas Keller, Feb 21, 2012:

Definitely both.

Labels: Type:Enhancement -Type:Defect
Summary: Check for `at' command during installation / document `at' usage
Relations: is related to 211

# By Steddy Smit, Feb 21, 2012:

no-r...@ceondo.com

unread,
May 14, 2013, 4:32:09 PM5/14/13
to indefero...@googlegroups.com
Hello,

The following issue has been updated:

786 - Check for `at' command during installation / document `at' usage
Project: Indefero
Status: New
Reported by: Steddy Smit
URL: http://projects.ceondo.com/p/indefero/issues/786/
Labels:
Priority:Medium
Type:Enhancement

Comments (last first):

# By Andrew Aikman, May 14, 2013:

Hi Keith, www-data existed in the at.deny file, i removed it and created an at.allow file including the www-data line with the same mod and grp settings as the deny file. I have indefero configured to use www-data. I restarted the server to be sure that at picked up the changes. Still no luck.

I have a feeling it is permissions on something too, but the error message doesn't give me any real indication as to where the issue is. I have used grep to try and find where in Indefero the message is output to give me a better idea of the script that throws the error, but no luck with that either.

Thank you for your response.

# By Keith Constable, May 13, 2013:

Andrew, try adding "www-data" to /etc/at.allow.

# By Andrew Aikman, May 1, 2013:

^ i am using Indefero version 1.3.3

# By Andrew Aikman, May 1, 2013:

I had exactly the same issue with Ubuntu 10.04: "error: cannot run hooks/post-update: No such file or directory". Installing "at" fixed this.

I am now trying to set up indefero on ubuntu 12.04, I have followed the instructions and double checked them against my working install of 10.04.

I am getting the error when pushing: "error: cannot run hooks/post-update: No such file or directory". "at" is installed, the actual changes are saved to the repository but the database / timeline are not updated. I can create a new project fine, I can clone fine, I can pull fine, it is just the final part of pushing. I have never got the local-git-daemon to work but this never worked on my previous install (10.04). I have looked through the scripts to try and get to the bottom of this but no luck so far.

I will post my findings if I solve.

# By Thomas Keller, Feb 21, 2012:

Definitely both.

Labels: Type:Enhancement -Type:Defect
Summary: Check for `at' command during installation / document `at' usage
Relations: is related to 211

# By Steddy Smit, Feb 21, 2012:

no-r...@ceondo.com

unread,
May 15, 2013, 7:35:01 AM5/15/13
to indefero...@googlegroups.com
Hello,

The following issue has been updated:

786 - Check for `at' command during installation / document `at' usage
Project: Indefero
Status: New
Reported by: Steddy Smit
URL: http://projects.ceondo.com/p/indefero/issues/786/
Labels:
Priority:Medium
Type:Enhancement

Comments (last first):

# By Steddy Smit, May 15, 2013:

Hi Andrew

I can't remember excatly what I did to identify the problem, but I think I did the following:

Edit the following file in your indefero installation:

indefero/scripts/git-post-update

At the bottom you should see a line that looks like:

echo php $PHP_POST_UPDATE $FULL_GIT_DIR | at now > /dev/null 2>&1

replace it with echo php $PHP_POST_UPDATE $FULL_GIT_DIR | at now

i.e. remove the redirect to /dev/null

Do the push again, hopefully you'll get some more useful debug.

# By Andrew Aikman, May 14, 2013:

Hi Keith, www-data existed in the at.deny file, i removed it and created an at.allow file including the www-data line with the same mod and grp settings as the deny file. I have indefero configured to use www-data. I restarted the server to be sure that at picked up the changes. Still no luck.

I have a feeling it is permissions on something too, but the error message doesn't give me any real indication as to where the issue is. I have used grep to try and find where in Indefero the message is output to give me a better idea of the script that throws the error, but no luck with that either.

Thank you for your response.

# By Keith Constable, May 13, 2013:

Andrew, try adding "www-data" to /etc/at.allow.

# By Andrew Aikman, May 1, 2013:

^ i am using Indefero version 1.3.3

# By Andrew Aikman, May 1, 2013:

I had exactly the same issue with Ubuntu 10.04: "error: cannot run hooks/post-update: No such file or directory". Installing "at" fixed this.

I am now trying to set up indefero on ubuntu 12.04, I have followed the instructions and double checked them against my working install of 10.04.

I am getting the error when pushing: "error: cannot run hooks/post-update: No such file or directory". "at" is installed, the actual changes are saved to the repository but the database / timeline are not updated. I can create a new project fine, I can clone fine, I can pull fine, it is just the final part of pushing. I have never got the local-git-daemon to work but this never worked on my previous install (10.04). I have looked through the scripts to try and get to the bottom of this but no luck so far.

I will post my findings if I solve.

# By Thomas Keller, Feb 21, 2012:

Definitely both.

Labels: Type:Enhancement -Type:Defect
Summary: Check for `at' command during installation / document `at' usage
Relations: is related to 211

# By Steddy Smit, Feb 21, 2012:

Reply all
Reply to author
Forward
0 new messages