No response after VPN connection established

Bitrise Build Issue Report template

Description of the issue

We have a custom VPN step witch enables VPN via Strongswan.
After the VPN connection is successfully established, no other step is executed from the workflow.
The build logs are empty after the VPN step finishes.

Environment:

Where did the issue happen?
If on Bitrise.io: which stack?
Xcode 10.1.x, on macOS 10.13 (High Sierra)

Which build Step causes the issue and which version of the step?
Git Clone v4.0.14
or possibly our custom step:
VPN Script strongswan 1.1.5

Reproducibility

  • Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) :
    YES
  • _Does a rebuild without caches help?:
    NO CACHE STEPS BEING USED YET
  • Does the issue happen sporadically, or every time? :
    EVERY TIME
  • Does upgrading the build Step to the latest version help? :
    NO
  • When did the issue start? :
    AFTER VPN STARTED WORKING

Local reproduction

Can it be reproduced on your own Mac/PC by following our local debug guide? Please follow at least the first section (“Testing with a full clean git clone”) to make sure to test the state of the code what bitrise.io will get when it does a git clone in the clean environment! If possible please note which sections you tried.

No, it cannot be reproduced on the Mac but the VPN script required changes to work locally as commands like wget were not available.

Build log

Please copy paste the build’s bitrise.io URL here (or if the issue happens somewhere else then the full logs), or if you can’t share the url / log here then send the url or full log through a private channel (e.g. email - Contact us ), with a link to the related Discuss issue.

Latest build:
Downloadable logs are not available yet as I think there is some other issue going on

Older build with downloadable logs:

https://app.bitrise.io/api/build/e4489117ca784019/logs.json?&download=log

Thank you,
Mukund

Hello there!

we checked it out and are suspicious that the agent throw away the connection. did you rebuild since? is it working or does the issue still persists continuously?

Hi,

Yes, I just did a rebuild and still had no luck:

I am really confused as the logs have no other info after the VPN step succeeds but, the process seems to run for 10-12 mins and gets aborted automatically.

I have enabled dev access to this project if required.

Below is a log snippet from our VPN server. It shows the bitrise client successfully connecting to the VPN server but, then not doing anything after that and hence getting disconnected.

Mar 5 20:28:37 20[IKE] <labuservpn|16877> retransmit 5 of request with message ID 3
Mar 5 20:28:37 20[NET] <labuservpn|16877> sending packet: from 10.209.183.43[4500] to 208.52.166.154[60381] (80 bytes)
Mar 5 20:28:57 15[IKE] <labuservpn|16877> sending keep alive to 208.52.166.154[60381]
Mar 5 20:29:17 12[IKE] <labuservpn|16877> sending keep alive to 208.52.166.154[60381]
Mar 5 20:29:37 44[IKE] <labuservpn|16877> sending keep alive to 208.52.166.154[60381]
Mar 5 20:29:52 32[IKE] <labuservpn|16877> giving up after 5 retransmits
Mar 5 20:29:54 32[CFG] <labuservpn|16877> lease 192.168.33.72 by ‘mukund.agarwal’ went offline

Is it please possible to check why the next step in the workflow is not executed on the Bitrise client and also why there is nothing in the logs after that.

Thank you,
Mukund

Hi,

Can someone please help us in debugging with this issue?

I have added a simple ping script after the VPN step and that seems to get executed correctly. The workflow still gets stuck after this step and it seems git clone step is never executed and the build is aborted after some time.


| (2) Test ping script                                                         |
+------------------------------------------------------------------------------+
| id: script                                                                   |
| version: 1.1.5                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: bash                                                                |
| time: 2019-03-11T04:36:23-07:00                                              |
+------------------------------------------------------------------------------+
|                                                                              |
==> Start
==> Switching to working directory: /Users/vagrant/git
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=120 time=0.963 ms
--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.963/0.963/0.963/0.000 ms
==> Script finished with exit code: 0
|                                                                              |
+---+---------------------------------------------------------------+----------+
| ✓ | Test ping script                 

Latest build: https://app.bitrise.io/build/aee0325ea50eeaca

Thank you,
Mukund

Hy, so the trick here is you have to whitelist *.bitrise.io, the dataflow from the vpn to bitrise, so the build machine can poll the vpn server

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.