scriptburn/git-auto-deploy

suddenly I'm having a 404 error in /webhook

galdazbiz opened this issue · 1 comments

It's very weird, I'm using bitbucket, everything was working perfectly and I don't think I touched anything, but obviously something happened. maybe a change of ips?

The landing with loging its ok, just the webhook is with issues

Log:
2018/04/05 23:25:51 [error] 1471#1471: *1306 open() "/home/forge/myweb.com/public/webhook" failed (2: No such file or directory), client: 104.192.142.193, server: myweb.com, request: "POST /webhook HTTP/1.1", host: "myweb.com"
2018/04/05 23:25:59 [error] 1471#1471: *1306 FastCGI sent in stderr: "PHP message: 1522970751.8685-/home/forge/myweb.com/vendor/scriptburn/db-version-update/src/UpdateDb.php@maybeUpdate():119-->
PHP message: Db already uptodate 2 >= 2" while reading response header from upstream, client: 104.192.142.193, server: myweb.com, request: "POST /webhook HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.1-fpm.sock:", host: "myweb.com"

Any clue?

apparently the ips have changed https://confluence.atlassian.com/bitbucket/manage-webhooks-735643732.html#Managewebhooks-trigger_webhookTriggeringwebhooks

So I've added the new IP and still error 404 from bitbucket
app/src/Services/BitBucketService.php