Forge tunnel get stuck without any error

Hi Experts,

When we try to run the “forge tunnel --verbose“ it got stuck on terminal with no error. Could help me to resolve this error.

Could you help me resolve this issue.

Please find the few information about our setup:

I have attached error file here:

dchoukse@mypc:/mnt/d/git_repositories/abc-jira-forge/capacity/abc-jira-forge$ forge tunnel --verbose
▶️  GraphQL https://api.atlassian.com/graphql
Query:
        query forge_cli_getUserDetails {
          me {
            user {
              name
              accountStatus
              accountId
            }
          }
        }
Variables: {}
◀️  GraphQL
Request ID: 2e48f24a1fee48b4899540f8f0f1b420
Result: {
  "me": {
    "user": {
      "name": "Dipesh Chouksey",
      "accountStatus": "active",
      "accountId": "wrwrwrwrwr23535"
    }
  }
}
▶️  GraphQL https://api.atlassian.com/graphql
Query:
        query forge_cli_getUserDetails {
          me {
            user {
              name
              accountStatus
              accountId
            }
          }
        }
Variables: {}
◀️  GraphQL
Request ID: 751c24d432cc4516a91f8ae33c36354awerw
Result: {
  "me": {
    "user": {
      "name": "Dipesh Chouksey",
      "accountStatus": "active",
      "accountId": "712020:a89fhfgh2605b-7a64-4af9-95d0-9e528643dabf"
    }
  }
}
▶️  GraphQL https://api.atlassian.com/graphql
Query:
        query forge_cli_getUserDetails {
          me {
            user {
              name
              accountStatus
              accountId
            }
          }
        }
Variables: {}
◀️  GraphQL
Request ID: 8d667ab57d9048a3994086ete18cc620f0f
Result: {
  "me": {
    "user": {
      "name": "Dipesh Chouksey",
      "accountStatus": "active",
      "accountId": "712020:a892dfhh605b-7a64-4af9-95d0-9e528643dabf"
    }
  }
}
Tunnel redirects requests you make to your local machine. This occurs for any Atlassian site where your app is installed in the specific development environment. You will not see requests from other users.
Tunnel provider: Cloudflare
Press Ctrl+C to cancel.

▶️  GraphQL https://api.atlassian.com/graphql
Query:
      mutation forge_cli_setupApplicationTunnel($input: RegisterTunnelInput!) {
        registerTunnel(input: $input) {
          success
          errors {
            message
            extensions {
              errorType
              statusCode
            }
          }
          tunnelId
          tunnelToken
          tunnelUrl
        }
      }

Variables: {
  "input": {
    "appId": "ari:cloud:ecosystem::app/063caab5-ad41-40eb-b578-0fa74b236323",
    "environmentKey": "default"
  }
}
▶️  GraphQL https://api.atlassian.com/graphql
Query:
        query forge_cli_getUserDetails {
          me {
            user {
              name
              accountStatus
              accountId
            }
          }
        }
Variables: {}
◀️  GraphQL
Request ID: 8dae8d6494ec4d7c81dgfg934ffe92466a2a
Result: {
  "me": {
    "user": {
      "name": "Dipesh Chouksey",
      "accountStatus": "active",
      "accountId": "712020:4646a892605b-7a64-4af9-95d0-9e528643dabf"
    }
  }
}
◀️  GraphQL
Request ID: 3de899e96b7640ee95a3d0f46cc64e8f
Result: {
  "registerTunnel": {
    "success": true,
    "errors": null,
    "tunnelId": "7efe2831-9c19-dg-9528-a48f633411ff",
    "tunnelToken": "eyJhIjoiMWY2YzEyYTE2ZmNlMWM5OTFhNzM2NWEzYTk1ZTJlMGIiLCJ0IjoiN2VmZTI4MzEtOWMxOS00N2RiLTk1MjgtYTQ4ZjYzMzQxMWZmIiwicyI6ImNISnZaRjgzTVRJd01qQTZZVGc1TWpZd05XSXROMkUyTkMwMFlXWTVMVGsxWkRBdE9XVTFNamcyTkROa1lXSm1YMlZoWkRnM05HTmxMV1ExWWpRdE5HTTVOeTA1T1RkbUxUSTBNRFF5TkRjNE1qSmxaUT09In0=",
    "tunnelUrl": "https://7efe2831-9c19-47db-9528-a48f633411ff.tunnel.atlassian-dev.net"
  }
}


Could you help @BoZhang

Hi @dchouksey89 , the Forge tunnel is actually using Cloudflare now. Looking at your logs, it seems to be stuck on the step which brings up the Cloudflare tunnel locally. Are you able to see whether or not the Cloudflare process is running for you? If you see that the Cloudflare process is running, are you able to check traffic going out to Cloudflare isn’t being blocked by any firewall rules?

1 Like

Hi @BoZhang ,

Yes, It is using Cloudflare but it got stuck.

Any other step required to setup CloudFlare?

Any troubleshooting steps to check why it got stuck?

My forge setup is working in company network(VPN Zscaler) so any commands to troubleshoot?
My CLI version is 10.2.0

Hi @dchouksey89 ,
No setup is required for Cloudflare flow. Could you please check your firewall settings to ensure there are no blocked connections to Cloudflare? You can also attempt the same steps without using the VPN.

If that doesn’t help, could you please raise a support request on https://developer.atlassian.com/support?