# First steps with nodejs tutorial

**URL:** <https://community.fly.io/t/first-steps-with-nodejs-tutorial/4715>\
**Category:** Questions / Help\
**Tags:** docs\
**Created:** [April 12, 2022, 6:48pm UTC](https://community.fly.io/t/first-steps-with-nodejs-tutorial/4715 "2022-04-12T18:48:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![OCH](https://avatars.discourse-cdn.com/v4/letter/o/a88e57/32.png) [@OCH](https://community.fly.io/u/OCH)\
**Post date:** [April 12, 2022, 6:48pm UTC](https://community.fly.io/t/first-steps-with-nodejs-tutorial/4715/1 "2022-04-12T18:48:50Z")

</div>

Hi there,

I’m just starting with [Fly.io](http://Fly.io) and I already hit a wall that I can’t seem to be able to figure out.  
Followed the hands-on [tutorial](https://fly.io/docs/hands-on/start/) with no problem and was able to get the `hellofly` app running.

Now I’m trying to follow along the nodejs [tutorial](https://fly.io/docs/getting-started/node/) and it is always failing deployment.

```auto
$ flyctl launch
An existing fly.toml file was found for app hellonode1
App is not running, deploy...
Deploying hellonode1
==> Validating app configuration
--> Validating app configuration done
Services
TCP 80/443 ⇢ 8080
Error failed building options: failed probing "personal": context deadline exceeded

```

or

```auto
$ flyctl --app hellonode1 deploy .
==> Verifying app config
--> Verified app config
==> Building image
Error failed to fetch an image or build from source: failed building options: failed probing "personal": context deadline exceeded

```

or

```auto
$ flyctl deploy --remote-only
==> Verifying app config
--> Verified app config
==> Building image
Error failed to fetch an image or build from source: failed building options: failed probing "personal": context deadline exceeded

```

I’m pretty lost here. It shouldn’t be this hard to get the basic `hellonode` nodejs app running.

---

<div class="post-metadata">

**Author:** ![OCH](https://avatars.discourse-cdn.com/v4/letter/o/a88e57/32.png) [@OCH](https://community.fly.io/u/OCH)\
**Post date:** [April 12, 2022, 7:10pm UTC](https://community.fly.io/t/first-steps-with-nodejs-tutorial/4715/2 "2022-04-12T19:10:10Z")

</div>

@jsierles I noticed you are online on github, and I’ve seen you answer several node related questions on the forum. Perhaps you could clarify this for me? Thank you!

---

<div class="post-metadata">

**Author:** ![jsierles](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jsierles/32/595_2.png) [@jsierles](https://community.fly.io/u/jsierles)\
**Post date:** [April 12, 2022, 7:14pm UTC](https://community.fly.io/t/first-steps-with-nodejs-tutorial/4715/3 "2022-04-12T19:14:11Z")

</div>

Hey - this means you’ve having an issue connecting to your Fly organization over Wireguard. Sometimes this is caused by VPNs. If you’re using a VPN, can you try disabling it and running the command again?

---

<div class="post-metadata">

**Author:** ![OCH](https://avatars.discourse-cdn.com/v4/letter/o/a88e57/32.png) [@OCH](https://community.fly.io/u/OCH)\
**Post date:** [April 12, 2022, 7:33pm UTC](https://community.fly.io/t/first-steps-with-nodejs-tutorial/4715/4 "2022-04-12T19:33:52Z")

</div>

Hi @jsierles no VPN, I’m just on regular university network.  
If I end up having to require IT for an exception to allow `flyctl` to work, how should I approach it, or what exactly do I need to ask for them to allow?

---

<div class="post-metadata">

**Author:** ![jsierles](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jsierles/32/595_2.png) [@jsierles](https://community.fly.io/u/jsierles)\
**Post date:** [April 13, 2022, 12:32pm UTC](https://community.fly.io/t/first-steps-with-nodejs-tutorial/4715/5 "2022-04-13T12:32:24Z")

</div>

The reason this may fail is because `flyctl` uses UDP to connect to Wireguard. However, the latest prerelease of `flyctl` has an option to connect using websockets over port 443, which should not require intervention from your IT team. Can you try it out?

Install the prerelease:

`curl -L https://fly.io/install.sh | sh -s pre`

Then:

```auto
fly wireguard websockets enable
fly deploy

```

---

<div class="post-metadata">

**Author:** ![OCH](https://avatars.discourse-cdn.com/v4/letter/o/a88e57/32.png) [@OCH](https://community.fly.io/u/OCH)\
**Post date:** [April 13, 2022, 1:53pm UTC](https://community.fly.io/t/first-steps-with-nodejs-tutorial/4715/6 "2022-04-13T13:53:37Z")

</div>

Hi @jsierles

Ok, that makes sense.

I’m current not under university network and it worked! Thanks.  
(I will let you know when I am back to uni network if it fails again).

Even in non-uni network I was having trouble getting the builder to do its thing. It was stuck, and I reported it on another thread [here](https://community.fly.io/t/remote-builder-stuck/4718). However this new version you shared with me here, fixed that as well.

Now my problem is that I can’t reach the deployed app via UDP. I am working on a project that listens to incoming UDP messages. How can I make sure that fly has UDP ports open? I am already telling the app to listen to port: `process.env.PORT`

Could you still help me with this? 🙂

---

<div class="post-metadata">

**Author:** ![jsierles](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jsierles/32/595_2.png) [@jsierles](https://community.fly.io/u/jsierles)\
**Post date:** [April 13, 2022, 2:02pm UTC](https://community.fly.io/t/first-steps-with-nodejs-tutorial/4715/7 "2022-04-13T14:02:15Z")

</div>

Glad to hear it works! This guide should help you: [Running Fly.io Apps On UDP and TCP](https://fly.io/docs/app-guides/udp-and-tcp)

---

<div class="post-metadata">

**Author:** ![OCH](https://avatars.discourse-cdn.com/v4/letter/o/a88e57/32.png) [@OCH](https://community.fly.io/u/OCH)\
**Post date:** [April 14, 2022, 10:53pm UTC](https://community.fly.io/t/first-steps-with-nodejs-tutorial/4715/8 "2022-04-14T22:53:54Z")

</div>

@jsierles  
Thank you so much for that helpful link!

Question. Today I started seeing:

```auto
Update available 0.0.320-pre-1 -> v0.0.320.
Run "flyctl version update" to upgrade.

```

is it safe to update? will it keep using the websockets (is it the new default?) or do i have do still run `fly wireguard websockets enable` ?
