I’m developing in a fresh Linux environment and encountering issues when trying to use forge tunnel with my Jira ‘hello world’ app. The app deploys without any problems in development, but I run into trouble when starting the tunnel.
Here’s what happens:
➜ yomtvrapz forge tunnel
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.
Press Ctrl+C to cancel.
=== Running forge lint...
No issues found.
=== Bundling code...
✔ Functions bundled.
asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
main.js (303 KiB)
entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
main (303 KiB)
main.js
webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/
✔ Resources bundled.
Listening for requests...
After initiating the tunnel, when I try to refresh a Jira issue where the panel is supposed to display, the panel appears to be stuck in a ‘loading’ state and doesn’t render the contents. No activity appears on the console output of ‘forge tunnel’ either.
Here’s the relevant part of my manifest for reference (FWIW):
Additionally, I’ve confirmed that Ngrok is authenticating correctly since altering the token to an incorrect one prevents the tunnel from starting altogether.
I was also expecting to see some references to Docker in the output, as I thought forge tunnel utilized Docker. Is that not the case?
Any insights or advice would be greatly appreciated!
I was also expecting to see some references to Docker in the output, as I thought forge tunnel utilized Docker. Is that not the case?
This is no longer the case. As of Forge CLI version 9.0.0, all new Forge apps are deployed by default on the latest Forge runtime which doesn’t require Docker when running forge tunnel.
Hi @michael.march, this is strange, are you running forge tunnel on multiple terminals simultaneously? if are doing so, you can sometimes get into a bad state as terminating the forge tunnel command closes the tunnel for your app.
In terms of the references to Docker, the native Node runtime no longer utilizes Docker, as mentioned correctly in the earlier reply.
Yup, that’s true, but every time you exit forge tunnel it will attempt to close off all active tunnels for the app, even if the Ngrok tunnel fails to be established. Running multiple forge tunnel processes may cause conflicts.
Are you still running into this issue? does the issue occur for other apps?