Skip to content
This repository has been archived by the owner on Nov 17, 2019. It is now read-only.

Failed to execute action hook 'build' #1

Open
puertajulian opened this issue Feb 19, 2016 · 19 comments
Open

Failed to execute action hook 'build' #1

puertajulian opened this issue Feb 19, 2016 · 19 comments

Comments

@puertajulian
Copy link

Hello, I'm trying to install this but I'm getting the following error eveytime.

remote: OCA-OCB-fc48508/setup/win32/win32_service.py
remote: OCA-OCB-fc48508/setup/win32/win32_setup.py
remote: rm: cannot remove `/var/lib/openshift/AAAA//OCA-OCB*': No such file or directory
remote: rm: cannot remove `/var/lib/openshift/AAAA//app-root/data/odoo-repo/doc': No such file or directory
remote: rm: cannot remove `/var/lib/openshift/AAAA//app-root/data/odoo-repo/setup': No such file or directory
remote: An error occurred executing 'gear postreceive' (exit code: 1)
remote: Error message: CLIENT_ERROR: Failed to execute action hook 'build' for AAAA application myodoo
remote:
remote: For more details about the problem, try running the command again with the '--trace' option.
To ssh://[email protected]/~/git/myodoo.git/
   b40c6f2..0bd02d8  master -> master
@Avasz
Copy link

Avasz commented Apr 30, 2016

Same problem! :(
Did yo ufind the solution?

@fatfantasma
Copy link

I also have the same problem.
Any solution?

@anon-hello
Copy link

same problem...

@fatfantasma
Copy link

Make sure the action hook file has the execute permission set.

@doreviateam
Copy link

Same problem ;(

@skkulkarni
Copy link

Same issue.
I am doing from linux and have also done
git update-index --chmod=+x .openshift/action_hooks/*

Please help I am a newbie

@fatfantasma
Copy link

Did you do a git commit after?

@fatfantasma
Copy link

Also a push to Openshift?

@skkulkarni
Copy link

Yes, I have done that. Tried again with no luck.
Here are the commands I issued
rhc app create myodoo python-2.7 postgresql-9.2
cd myodoo
git remote add upstream -m master https://github.com/dreispt/openshift-odoo-quickstart.git
git pull -s recursive -X theirs upstream master
git update-index --chmod=+x .openshift/action_hooks/*
git commit
git push

@fatfantasma
Copy link

Are you getting an error or is the execution bit just not set on the action hooks? Ssh or acp into your app and check the execution bits on the action hooks.

@fatfantasma
Copy link

Looking at it more I do t think you are pushing back to Openshift. You need to add your Openshift project as a remote and merge it.

git merge openshift/master -s recursive -X ours

Then commit and push to openshift

@skkulkarni
Copy link

When I try merge it says
Already up-to-date.

Following is the error I see when I push

remote: OCA-OCB-c45c137/setup/win32/win32_service.py remote: OCA-OCB-c45c137/setup/win32/win32_setup.py remote: ln: creating symbolic link/var/lib/openshift/57d376220c1e664380000084//app-root/data/odoo-repo': File exists
remote: rm: cannot remove /var/lib/openshift/57d376220c1e664380000084//OCA-OCB*': No such file or directory remote: rm: cannot remove/var/lib/openshift/57d376220c1e664380000084//app-root/data/odoo-repo/doc': No such file or directory
remote: rm: cannot remove /var/lib/openshift/57d376220c1e664380000084//app-root/data/odoo-repo/setup': No such file or directory remote: An error occurred executing 'gear postreceive' (exit code: 1) remote: Error message: CLIENT_ERROR: Failed to execute action hook 'build' for 57d376220c1e664380000084 application myodoo remote: remote: For more details about the problem, try running the command again with the '--trace' option.

If I ssh in to the openshift and see the permissions this is what I see

[myodoo-sudarshankk.rhcloud.com 57d376220c1e664380000084]\> ls -l ./app-root/runtime/repo/.openshift/action_hooks/ total 12 -rwx------. 1 57d376220c1e664380000084 57d376220c1e664380000084 1168 Sep 10 09:43 build -rwx------. 1 57d376220c1e664380000084 57d376220c1e664380000084 942 Sep 10 09:43 deploy -rw-------. 1 57d376220c1e664380000084 57d376220c1e664380000084 138 Sep 10 09:43 README.md

@fatfantasma
Copy link

Looking at it more I do t think you are pushing back to Openshift. You need to add your Openshift project as a remote and merge it.

git merge openshift/master -s recursive -X ours

Then commit and push to openshift

@fatfantasma
Copy link

The execution bit is being set correctly. I suggest you open a Stack Overflow question with the Openshift tag so we don't junk up this repo issues. We can address there.

@dreispt
Copy link
Owner

dreispt commented Sep 10, 2016

Hi, I'm not able to do work on this project right now, but I'll be glad to merge PRs with improvements of fixes. Thanks for understanding.

Regarding the discussion here, I think they're on topic and I don't see any issue on them being made here.

@skkulkarni
Copy link

fatfantasma has it ever worked for you? If yes can you give me the command to clone working branch? Thanks for helping.

@fatfantasma
Copy link

It has always worked for me. Openshift just can't find your file or directory. Your error is

remote: rm: cannot remove /var/lib/openshift/57d376220c1e664380000084//OCA-OCB*': No such file or directory remote: rm: cannot remove/var/lib/openshift/57d376220c1e664380000084//app-root/data/odoo-repo/doc': No such file or directory
remote: rm: cannot remove /var/lib/openshift/57d376220c1e664380000084//app-root/data/odoo-repo/setup': No such file or directory remote: An error occurred executing 'gear postreceive' (exit code: 1)

@thethakuri
Copy link

thethakuri commented Oct 27, 2016

Did anybody actually got this to work ? I get following errors:

remote: error: six 1.7.3 is installed but six>=1.9 is required by set(['mock'])
remote: An error occurred executing 'gear postreceive' (exit code: 1)
remote: Error message: CLIENT_ERROR: Failed to execute action hook 'build' for 5812010289f5cf40dd00004a application openerp

@thethakuri
Copy link

git merge openshift/master -s recursive -X ours gives me following error not something we can merge

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants