Troubleshoot GitLab Duo Workflow
- Tier: Ultimate
- Offering: GitLab.com
- Status: Private beta
This feature is a private beta and is not intended for customer usage outside of initial design partners. We expect major changes to this feature.
General guidance
If you encounter issues, ensure that you have:
- The latest version of the GitLab Workflow extension for VS Code.
- A project that meets the prerequisites.
- The repository open in VS Code.
- The branch checked out.
For details on these steps, see the prerequisites and how to connect to your repository.
View debugging logs
You can troubleshoot some issues by viewing debugging logs.
- Open local debugging logs:
- On macOS: Cmd + ,
- On Windows and Linux: Ctrl + ,
- Search for the setting GitLab: Debug and enable it.
- Open the language server logs:
- In VS Code, select View > Output.
- In the output panel at the bottom, in the upper-right corner, select GitLab Workflow or GitLab Language Server from the list.
- Review for errors, warnings, connection issues, or authentication problems.
Network issues
Your network might block the connection to the Workflow service, for example, by using a firewall. The network must let HTTP/2 traffic through to the service.
To confirm that you can connect to the Workflow service:
- In Google Chrome or Firefox, open Developer Tools and select the Network tab.
- Right-click the column headers to show the Protocol column.
- In the address bar, enter
https://duo-workflow.runway.gitlab.net/DuoWorkflow/ExecuteWorkflow
. - Ensure the request was successful and the Protocol column includes
h2
in Chrome orHTTP/2
in Firefox.
If the request fails, your network might be blocking the connection.
Docker setup
If you encounter issues with your Docker setup for Workflow, try the following steps.
Restart your container manager. For example, if you use Colima,
colima restart
.Pull the base Docker image:
docker pull registry.gitlab.com/gitlab-org/duo-workflow/default-docker-image/workflow-generic-image:v0.0.4
For permission issues, ensure your operating system user has the necessary Docker permissions.
Verify that Docker has internet connectivity by executing the command
docker image pull redhat/ubi8
. If this does not work, the DNS configuration of Colima might be at fault. Edit the DNS setting in~/.colima/default/colima.yaml
todns: [1.1.1.1]
and then restart Colima withcolima restart
.Check the executor logs:
- Use
docker ps -a | grep duo-workflow
to get the list of Workflow containers and their ids. - Use
docker logs <container_id>
to view the logs for the specific container.
- Use
IDE configuration
You can try several things to ensure your repository is properly configured and connected.
View the project in the GitLab Workflow extension
Start by ensuring the correct project is selected in the GitLab Workflow extension for VS Code.
- In VS Code, on the left sidebar, select GitLab Workflow ( ).
- Ensure the project is listed and selected.
If an error message appears next to the project name, select it to reveal what needs to be updated.
For example, you might have multiple repositories and need to select one, or there might be no repositories at all.
No Git repository
If your workspace doesn’t have a Git repository initialized, you must create a new one:
- On the left sidebar, select Source Control ( ).
- Select Initialize Repository.
When the repository is initialized, you should see the name in the Source Control view.
Git repository with no GitLab remote
You might have a Git repository but it’s not properly connected to GitLab.
- On the left sidebar, select Source Control ( ).
- On the Source Control label, right-click and select Repositories.
- Next to your repository, select the ellipsis ( ), then Remote > Add Remote.
- Enter your GitLab project URL.
- Select the newly added remote as your upstream.
Multiple GitLab remotes
Your repository might have multiple GitLab remotes configured. To select the correct one:
- On the left sidebar, select Source Control ( ).
- On the status bar, select the current remote name.
- From the list, select the appropriate GitLab remote.
- Ensure the selected remote belongs to a group namespace in GitLab.
Multiple GitLab projects
If your VS Code workspace contains multiple GitLab projects, you might want to close all the projects you’re not using.
To close projects:
- On the left sidebar, select Source Control ( ).
- Ensure repositories are shown: on the Source Control label, right-click and select Repositories.
- Right-click the repository you want to close and select Close Repository.
Project not in a group namespace
GitLab Duo Workflow requires that projects belong to a group namespace.
To determine the namespace your project is in, look at the URL.
If necessary, you can transfer your project to a group namespace.
Still having issues?
Contact your GitLab administrator for assistance.
Docs
Edit this page to fix an error or add an improvement in a merge request.
Create an issue to suggest an improvement to this page.
Product
Create an issue if there's something you don't like about this feature.
Propose functionality by submitting a feature request.
Feature availability and product trials
View pricing to see all GitLab tiers and features, or to upgrade.
Try GitLab for free with access to all features for 30 days.
Get help
If you didn't find what you were looking for, search the docs.
If you want help with something specific and could use community support, post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab subscription).
Request support