Committed migration file does not trigger issue creation
When a migration file is committed to the VCS, VCS will send a webhook event to Bytebase. There are two error categories:
- Bytebase has received webhook events
- Bytebase has not received any webhook event
Bytebase has received webhook events
In this case, if you visit your project overview page, you should find an activity event suggesting Bytebase has received the webhook event. However, the committed file doesn't match the configured path.
- Forget the extension
- Case mismatch
- Directory mismatch
Bytebase has not received any webhook event
In this case, you should visit the VCS project page and check the webhook event history. Some common mistakes:
Make sure to configure a proper External URL.
Make sure that configured URL is network accessible from VCS.
Failed to create webhook xxx, status code: 422 for GitLab
So if your Bytebase instance resides in the same private network as your GitLab instance, you will need to enable "Allow requests to the local network from web hooks and services" first.
"Change Data in VCS" , "Alter Schema in VCS" button does not direct to the configured self-hosted GitLab instance
Please make sure you are configuring the GitLab external_url correctly, the host:port must exactly matches the one accessed by Bytebase. It's called
external_url because that's how external systems like Bytebase reaches the GitLab instance.
A common mistake is user misconfigures the port when using port forwarding. e.g. GitLab is running on port 7890, while it's exposed to the public on port 7891. In such case the
external_url should be
https://example.com:7891 instead of
OAuth CORS error with old GitLab version
When using old GitLab version (e.g. 9.4.0) to setup VCS integration, you may encounter OAuth error like this one:
This is a common problem in the old GitLab verison:
Verify the problem
Open your browser devtool with
F12, check the
Network section. If the latest token request with
CORS error status, we can be certain that it's the
/oauth/token api CORS error inside GitLab.
We cannot change GitLab source code to add the
Access-Control-Allow-Origin: * to
/oauth/token response header, but can use Nginx as a reverse proxy for GitLab (the other proxy service works the similar way).
CORS solution with Nginx
add_header codes directive to the base path location block of your Nginx GitLab configuration file.
Run the following command to reload your updated config file.
Afterwards, try the GitLab setup again.