# Forge-tunnel with node 18 does not work

**URL:** <https://community.developer.atlassian.com/t/forge-tunnel-with-node-18-does-not-work/73349>\
**Category:** Forge Platform and Tools\
**Tags:** forge-tunnel, docker\
**Created:** [September 30, 2023, 6:11am UTC](https://community.developer.atlassian.com/t/forge-tunnel-with-node-18-does-not-work/73349 "2023-09-30T06:11:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ppasler](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/ppasler/32/49174_2.png) [@ppasler](https://community.developer.atlassian.com/u/ppasler)\
**Post date:** [September 30, 2023, 6:11am UTC](https://community.developer.atlassian.com/t/forge-tunnel-with-node-18-does-not-work/73349/1 "2023-09-30T06:11:54Z")

</div>

Hi there,

as recommended in the [Forge changelog](https://developer.atlassian.com/platform/forge/changelog/#CHANGE-1151), I’ve update my node version to 18.x

```auto
ppasler:~$ npm --version
9.8.1
ppasler:~$ node --version
v18.18.0

```

This works find for building and deploying (`forge deploy`)

But I can’t start the `forge-tunnel`

```auto
ppasler:~$ FORGE_DEV_TUNNEL=true forge tunnel --ngrok-config ngrok.yml --verbose

...

=== Bundling code...

✔ Functions bundled.

=== Snapshotting functions...

```

and then it breaks up, without any error message.

Here’s my setup (linux)

```auto
ppasler:~$ npm -g list
/home/ppasler/.nvm/versions/node/v18.18.0/lib
├── @forge/cli@6.18.0
├── @forge/sandbox-tunnel@3.3.0
├── corepack@0.15.3
└── npm@9.8.1

```

Running it again with node 16 works…

Any thoughts what’s wrong?

---

<div class="post-metadata">

**Author:** ![DominikNarozynski](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@DominikNarozynski](https://community.developer.atlassian.com/u/DominikNarozynski)\
**Post date:** [October 1, 2023, 7:02am UTC](https://community.developer.atlassian.com/t/forge-tunnel-with-node-18-does-not-work/73349/2 "2023-10-01T07:02:30Z")

</div>

I’ve same problem… If I can find a way to do this, I will help you 🙂

and the option works for you: `forge tunnel --debug` ?

Because it keeps throwing me an error that port 8000 is busy if I want to debug. Or else… If this option works for you, how did you configure it ?

---

<div class="post-metadata">

**Author:** ![AlexeyKotlyarov](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/alexeykotlyarov/32/45643_2.png) [@AlexeyKotlyarov](https://community.developer.atlassian.com/u/AlexeyKotlyarov)\
**Post date:** [October 2, 2023, 12:44am UTC](https://community.developer.atlassian.com/t/forge-tunnel-with-node-18-does-not-work/73349/3 "2023-10-02T00:44:59Z")

</div>

Hello,

The `FORGE_DEV_TUNNEL` environment variable is only useful for the team developing Forge here at Atlassian. It is not required for `--ngrok-config` to work. Can you please remove the environment variable override and try again?

Also, we’ve had a report that `ngrok.yml` specified as a relative path doesn’t work properly. We’re working on it and the fix should be in the next Forge CLI release, but meanwhile if you have problems please specify it using an absolute path.

---

<div class="post-metadata">

**Author:** ![ppasler](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/ppasler/32/49174_2.png) [@ppasler](https://community.developer.atlassian.com/u/ppasler)\
**Post date:** [October 2, 2023, 4:40am UTC](https://community.developer.atlassian.com/t/forge-tunnel-with-node-18-does-not-work/73349/4 "2023-10-02T04:40:51Z")

</div>

Hi @AlexeyKotlyarov ,

thanks for answer. The point here is, that running the same command in a Node 16 environment works as expected (no Docker tunnel and no 2h ngrok time limit).

I assume the problem is the Node 18 environment.

Cheers,  
paul

---

<div class="post-metadata">

**Author:** ![AlexeyKotlyarov](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/alexeykotlyarov/32/45643_2.png) [@AlexeyKotlyarov](https://community.developer.atlassian.com/u/AlexeyKotlyarov)\
**Post date:** [October 2, 2023, 5:03am UTC](https://community.developer.atlassian.com/t/forge-tunnel-with-node-18-does-not-work/73349/5 "2023-10-02T05:03:52Z")

</div>

I’m sorry, but the “no-Docker tunnel” (I’m assuming from [Quick tip: Tunneling without Docker (useful for Apple Silicon / M1)](https://community.developer.atlassian.com/t/quick-tip-tunneling-without-docker-useful-for-apple-silicon-m1/51789)), specifically `FORGE_DEV_TUNNEL`, isn’t officially supported.

We are aware of some crashes in it (including on Node 16, maybe you were lucky there) - you can try disabling the snapshotting as a workaround, but that still comes with no warranty.

We are working on simplifying the tunnel experience (no Docker required) as part of the [Native Node.js runtime](https://developer.atlassian.com/platform/forge/runtime-reference/native-nodejs-runtime/) which is currently in EAP - you might want to give that a try if Docker tunnel gives you problems.

---

<div class="post-metadata">

**Author:** ![ppasler](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/ppasler/32/49174_2.png) [@ppasler](https://community.developer.atlassian.com/u/ppasler)\
**Post date:** [October 2, 2023, 5:24am UTC](https://community.developer.atlassian.com/t/forge-tunnel-with-node-18-does-not-work/73349/6 "2023-10-02T05:24:43Z")

</div>

@AlexeyKotlyarov I understand, that this setting is not officially supported. But I couldn’t experience any crashed with Node 16.

Does the tunnel work with Node 18 for you?

I will try disabling snapshotting.

---

<div class="post-metadata">

**Author:** ![AlexeyKotlyarov](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/alexeykotlyarov/32/45643_2.png) [@AlexeyKotlyarov](https://community.developer.atlassian.com/u/AlexeyKotlyarov)\
**Post date:** [October 2, 2023, 5:47am UTC](https://community.developer.atlassian.com/t/forge-tunnel-with-node-18-does-not-work/73349/7 "2023-10-02T05:47:13Z")

</div>

Unfortunately I have the same experience on one of my test apps, the no-Docker option only works on Node 18 if I disable snapshotting.

---

<div class="post-metadata">

**Author:** ![ppasler](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/ppasler/32/49174_2.png) [@ppasler](https://community.developer.atlassian.com/u/ppasler)\
**Post date:** [October 2, 2023, 5:51am UTC](https://community.developer.atlassian.com/t/forge-tunnel-with-node-18-does-not-work/73349/8 "2023-10-02T05:51:41Z")

</div>

Great, thank you. So if you disable snapshotting, it works for you in Node 18?

---

<div class="post-metadata">

**Author:** ![AlexeyKotlyarov](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/alexeykotlyarov/32/45643_2.png) [@AlexeyKotlyarov](https://community.developer.atlassian.com/u/AlexeyKotlyarov)\
**Post date:** [October 2, 2023, 6:02am UTC](https://community.developer.atlassian.com/t/forge-tunnel-with-node-18-does-not-work/73349/9 "2023-10-02T06:02:56Z")

</div>

Yes, it does. (There are also instructions in the post linked above to only disable snapshotting in the tunnel, YMMV.)
