GitLab Web Host Error "Hook Execution Error"

I have a vbox with a virtual host running a website that I can access through the host. This website is located in the gitlab repository, which runs on the local server.

I wanted to configure the webhook so that when I clicked on the host it would pull in the vbox.

I already have a php script at http://192.168.1.1/webhook.phpand I tested it with curl and it works fine. But when I enter this URL as the web hosting URL into the gitlab project and check it, it shows the error "Hook execution failed."

I also tried:

  • setting up a webhook with http://requestb.in/ URL and work.

  • running the website on a virtual host on the host computer (not on vbox), but it does not work.

  • enter the url in the browser manually http://192.168.1.1/webhook.phpor localhost/webhook.php(not on vbox) and it runs the script.

+4
source share
1 answer

This may not be relevant anymore, but it can help anyone who encounters this problem.

The problem is that your local MASCHIN IP (192.168.1.1) is only available for your local network. Therefore, the gitlab server cannot connect to your machine. You need to place it anywhere, for example, on a web server that can be accessed anywhere on the Internet. Otherwise it will not work!

0
source

All Articles