suer / redmine_bitbucketgit_hook

cloned from https://bitbucket.org/3100/redmine_bitbucketgit_hook
1 stars 2 forks source link

Internal error occurs. #1

Open tonbo opened 6 years ago

tonbo commented 6 years ago

Hello. When I access to the repo page in Redmine project, [404 The entry or revision was not found in the repository.] error come out.

And when I tried to access to http://(my IP)/redmine/bitbucketgit_hook The error is coming out.

Internal error An error occurred on the page you were trying to access. If you continue to experience problems please contact your Redmine administrator for assistance.

If you are the Redmine administrator, check your log files for details about the error.

I checked Bitbucket's Webhooks request, and there are 2 request and seem like all fine. So, I suppose, something wrong in plugin code or setting. Do you have any ideas?

I use redmine 3.4.4 in AWS ec2 env.

suer commented 6 years ago

It works in my Redmine 3.4.4 environment...

Please check that RAILS_ROOT/bitbucket_git_repositories and RAILS_ROOT/bitbucket_git_repositories/<OWNER>_<REPO_NAME>.git directories were created.

If you can find these directories, try minimal requests like

curl -XPOST "http://localhost:3000/bitbucketgit_hook" -d '{"repository": {"name":"<REPO_NAME>", "owner":"<OWNER>", "slag":"<REPO_NAME>"}}'

(Please replace REPO_NAME and OWNER)

Logs(logs/*.log) help you to find out what is wrong. You can find git commands were called like

git clone --mirror git@bitbucket.org:<OWNER>/<REPO_NAME>.git "<RAILS_ROOT>/bitbucket_git_repositories/<OWNER>-<REPO_NAME>.git"

Perhaps these git commands may have failed.