SOME projects "post-receive file missing"
Created by: jozefvaclavik
Hi guys,
I need some help. Big one! I updated to current master (because I need Notes API), at first i had to fight with dropped support for Sqlite3. I used Taps gem for that. Piece of cake. But, since then, all my repos are behaving strange. If I run rake status script, i get this message:
USER@SERVER: /opt/gitlabhq $ bundle exec rake gitlab:app:status RAILS_ENV=production
Starting diagnostics
config/database.yml............exists
config/gitlab.yml............exists
/home/git/repositories/............exists
/home/git/repositories/ is writable?............YES
Can clone gitolite-admin?............YES
Can git commit?............YES
UMASK for .gitolite.rc is 0007? ............YES
/home/git/.gitolite/hooks/common/post-receive exists? ............YES
Validating projects repositories:
* PROJECT_1.....post-receive file missing
* PROJECT_2.....post-receive file missing
* PROJECT_3.....post-receive file missing
* PROJECT_4.....post-receive file missing
* PROJECT_5.....post-receive file missing
* PROJECT_6.....post-receive file missing
* PROJECT_7.....post-receive file ok
* PROJECT_8.....post-receive file missing
* PROJECT_9.....post-receive file ok
* PROJECT_10.....post-receive file missing
* PROJECT_11.....post-receive file ok
* PROJECT_12.....post-receive file ok
Finished
The truth is, that all these files are there. Permissions are OK, links are OK. here are some ls -la from hooks folder:
-sh-4.1$ ls -la PROJECT_9.git/hooks/
total 52
drwxrwx---. 2 git git 4096 Dec 1 16:53 .
drwxrwx---. 7 git git 4096 Nov 27 12:54 ..
-rwxrwx---. 1 git git 452 Nov 11 11:40 applypatch-msg.sample
-rwxrwx---. 1 git git 896 Nov 11 11:40 commit-msg.sample
lrwxrwxrwx. 1 git git 48 Nov 11 11:40 gitolite-hooked -> /usr/share/gitolite/hooks/common/gitolite-hooked
lrwxrwxrwx. 1 git git 54 Nov 11 11:40 gl-pre-git.hub-sample -> /usr/share/gitolite/hooks/common/gl-pre-git.hub-sample
-rwxrwx---. 1 git git 160 Nov 11 11:40 post-commit.sample
lrwxrwxrwx. 1 git git 45 Dec 1 16:53 post-receive -> /home/git/.gitolite/hooks/common/post-receive
lrwxrwxrwx. 1 git git 56 Nov 11 11:40 post-receive.mirrorpush -> /usr/share/gitolite/hooks/common/post-receive.mirrorpush
-rwxrwx---. 1 git git 548 Nov 11 11:40 post-receive.sample
-rwxrwx---. 1 git git 189 Nov 11 11:40 post-update.sample
-rwxrwx---. 1 git git 398 Nov 11 11:40 pre-applypatch.sample
-rwxrwx---. 1 git git 1578 Nov 11 11:40 pre-commit.sample
-rwxrwx---. 1 git git 1239 Nov 11 11:40 prepare-commit-msg.sample
-rwxrwx---. 1 git git 4951 Nov 11 11:40 pre-rebase.sample
lrwxrwxrwx. 1 git git 39 Nov 13 11:14 update -> /home/git/.gitolite/hooks/common/update
-rwxrwx---. 1 git git 3611 Nov 11 11:40 update.sample
-sh-4.1$ ls -la PROJECT_11.git/hooks/
total 52
drwxrwx---. 2 git git 4096 Dec 1 16:53 .
drwxrwx---. 7 git git 4096 Nov 27 12:54 ..
-rwxrwx---. 1 git git 452 Nov 25 16:49 applypatch-msg.sample
-rwxrwx---. 1 git git 896 Nov 25 16:49 commit-msg.sample
-rwxrwx---. 1 git git 160 Nov 25 16:49 post-commit.sample
lrwxrwxrwx. 1 git git 45 Dec 1 16:53 post-receive -> /home/git/.gitolite/hooks/common/post-receive
-rwxrwx---. 1 git git 548 Nov 25 16:49 post-receive.sample
-rwxrwx---. 1 git git 189 Nov 25 16:49 post-update.sample
-rwxrwx---. 1 git git 398 Nov 25 16:49 pre-applypatch.sample
-rwxrwx---. 1 git git 1578 Nov 25 16:49 pre-commit.sample
-rwxrwx---. 1 git git 1239 Nov 25 16:49 prepare-commit-msg.sample
-rwxrwx---. 1 git git 4951 Nov 25 16:49 pre-rebase.sample
lrwxrwxrwx. 1 git git 39 Nov 25 16:49 update -> /home/git/.gitolite/hooks/common/update
-rwxrwx---. 1 git git 3611 Nov 25 16:49 update.sample
-sh-4.1$ ls -la PROJECT_1.git/hooks/
total 52
drwxrwx---. 2 git git 4096 Dec 1 16:52 .
drwxrwx---. 7 git git 4096 Nov 27 12:54 ..
-rwxrwx---. 1 git git 452 Sep 28 08:57 applypatch-msg.sample
-rwxrwx---. 1 git git 896 Sep 28 08:57 commit-msg.sample
lrwxrwxrwx. 1 git git 48 Sep 28 08:57 gitolite-hooked -> /usr/share/gitolite/hooks/common/gitolite-hooked
lrwxrwxrwx. 1 git git 54 Sep 28 08:57 gl-pre-git.hub-sample -> /usr/share/gitolite/hooks/common/gl-pre-git.hub-sample
-rwxrwx---. 1 git git 160 Sep 28 08:57 post-commit.sample
lrwxrwxrwx. 1 git git 45 Dec 1 16:52 post-receive -> /home/git/.gitolite/hooks/common/post-receive
lrwxrwxrwx. 1 git git 56 Sep 28 08:57 post-receive.mirrorpush -> /usr/share/gitolite/hooks/common/post-receive.mirrorpush
-rwxrwx---. 1 git git 548 Sep 28 08:57 post-receive.sample
-rwxrwx---. 1 git git 189 Sep 28 08:57 post-update.sample
-rwxrwx---. 1 git git 398 Sep 28 08:57 pre-applypatch.sample
-rwxrwx---. 1 git git 1578 Sep 28 08:57 pre-commit.sample
-rwxrwx---. 1 git git 1239 Sep 28 08:57 prepare-commit-msg.sample
-rwxrwx---. 1 git git 4951 Sep 28 08:57 pre-rebase.sample
lrwxrwxrwx. 1 git git 39 Nov 13 11:14 update -> /home/git/.gitolite/hooks/common/update
-rwxrwx---. 1 git git 3611 Sep 28 08:57 update.sample
-sh-4.1$ ls -la PROJECT_2.git/hooks/
total 52
drwxrwx---. 2 git git 4096 Dec 1 16:52 .
drwxrwx---. 7 git git 4096 Nov 27 12:54 ..
-rwxrwx---. 1 git git 452 Sep 28 09:26 applypatch-msg.sample
-rwxrwx---. 1 git git 896 Sep 28 09:26 commit-msg.sample
lrwxrwxrwx. 1 git git 48 Sep 28 09:26 gitolite-hooked -> /usr/share/gitolite/hooks/common/gitolite-hooked
lrwxrwxrwx. 1 git git 54 Sep 28 09:26 gl-pre-git.hub-sample -> /usr/share/gitolite/hooks/common/gl-pre-git.hub-sample
-rwxrwx---. 1 git git 160 Sep 28 09:26 post-commit.sample
lrwxrwxrwx. 1 git git 45 Dec 1 16:52 post-receive -> /home/git/.gitolite/hooks/common/post-receive
lrwxrwxrwx. 1 git git 56 Sep 28 09:26 post-receive.mirrorpush -> /usr/share/gitolite/hooks/common/post-receive.mirrorpush
-rwxrwx---. 1 git git 548 Sep 28 09:26 post-receive.sample
-rwxrwx---. 1 git git 189 Sep 28 09:26 post-update.sample
-rwxrwx---. 1 git git 398 Sep 28 09:26 pre-applypatch.sample
-rwxrwx---. 1 git git 1578 Sep 28 09:26 pre-commit.sample
-rwxrwx---. 1 git git 1239 Sep 28 09:26 prepare-commit-msg.sample
-rwxrwx---. 1 git git 4951 Sep 28 09:26 pre-rebase.sample
lrwxrwxrwx. 1 git git 39 Nov 13 11:14 update -> /home/git/.gitolite/hooks/common/update
-rwxrwx---. 1 git git 3611 Sep 28 09:26 update.sample
I can clone/fetch/pull/push without any problems from these repos. The real problem comes with Gitlab. Projects where it writes that hooks are missing, are acting like empty projects for Gitlab. Also no commits are displayed in dashboard.
I copied current post-receive hook from gitlab, i recreated links to hooks, i used script to create links mentioned in migration from 3.0 to 3.1, i also recreated links manually. gitlab status still says that its missing. I switched back to sqlite db, same issue, so it cant be database related.
Any ideas? Suggestions?