-
-
Notifications
You must be signed in to change notification settings - Fork 505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Netbird doesn't work with GitHub Actions and setup-key #2828
Comments
@RomanKrasavtsev It might be caused by an async attempt to connect between peers. Can you try using the following steps with the action: jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Netbird Connect
id: netbird
uses: Alemiz112/netbird-connect@v1
with:
setup-key: ${{ secrets.NB_SETUP_KEY_PROD }}
hostname: ${{ env.CONNECT_HOSTNAME }}
management-url: ${{ env.CONNECT_MANAGEMENT_URL }}
- name: print netbird logs
run: sudo cat /var/log/netbird/client.log
- name: Wait for Netbird to connect to management
shell: bash
timeout-minutes: 1
run: |
while [ -z "$(ping -c 1 ${{ env.SERVER }} | grep '64 bytes from')" ]; do
echo "Waiting for Netbird to connect..."
netbird status --filter-by-names ${{ env.SERVER }}
sleep 1
done |
Hi @mlsmaycon, thank you for your help. Unfortunately, it still doesn't work, we tried to increase timeout up to 2 minutes.
GitHub Action output:
What's interesting is I can see that it's online in the admin panel: |
@RomanKrasavtsev can you run the test again, but this time please add the following environment variable to the workflow:
Then, share the output of the status command and the logs with us. |
Describe the problem
Netbird doesn't work with GitHub Actions and setup-key, but it worked until 29.10.2024.
Now we are getting the error:
ssh: connect to host x.x.x.x port 22: No route to host
GitHub Action Workflow:
However, we can connect to the server from our laptops and we can see other peers.
Netbird status output on the server:
To Reproduce
Expected behavior
The connection to the server should be established.
Are you using NetBird Cloud?
Yes, we are using NetBird Cloud.
NetBird version
NetBird status -dA output:
The text was updated successfully, but these errors were encountered: