Hostingpid1: an open port was not detected – Need public API

Problem description

When I try to deploy I get an error

hostingpid1: an open port was not detected

I am deploying a reserved VM server – and it needs to be a public server to deal with inbound API requests.

I can’t access the networking tab (think it might be the root cause of the error)

This is our production repo and so I’m blocked from making important changes as it will not deploy.

I’ve made no changes to anything that is related to ports / networking with the recent changes – just business logic.

Expected behavior

I should be able to deploy

Actual behavior

It does not deploy

Steps to reproduce

Repo is called Leasehold (private)
Click Deploy

2024-02-29T12:10:25Z info: Deployment: 0e8f0e68-a5d8-4e5b-a887-ef9ef4a4c10c
2024-02-29T12:10:25Z info: Build: 369dc2a7-c125-4ba9-aafa-dd1bec0dae65
2024-02-29T12:10:25Z info: Connecting to builder
2024-02-29T12:10:27Z info: Builder connected
2024-02-29T12:10:27Z info: Installing packages
2024-02-29T12:10:27Z info: Skipping Build as no Build command set
2024-02-29T12:10:27Z info: Pushing pid1 binary layer...
2024-02-29T12:10:29Z info: Created pid1 binary layer
2024-02-29T12:10:31Z info: Skipping Python layer creation
2024-02-29T12:10:31Z info: Skipping Node layer creation
2024-02-29T12:10:31Z info: Pushing hosting layer...
2024-02-29T12:10:31Z info: Pushing Repl layer...
2024-02-29T12:10:31Z info: Retrieved cached nix layer
2024-02-29T12:10:31Z info: Created hosting layer
2024-02-29T12:10:25Z info: Deployment: 0e8f0e68-a5d8-4e5b-a887-ef9ef4a4c10c
2024-02-29T12:10:25Z info: Build: 369dc2a7-c125-4ba9-aafa-dd1bec0dae65
2024-02-29T12:10:25Z info: Connecting to builder
2024-02-29T12:10:27Z info: Builder connected
2024-02-29T12:10:27Z info: Installing packages
2024-02-29T12:10:27Z info: Skipping Build as no Build command set
2024-02-29T12:10:27Z info: Pushing pid1 binary layer...
2024-02-29T12:10:29Z info: Created pid1 binary layer
2024-02-29T12:10:31Z info: Skipping Python layer creation
2024-02-29T12:10:31Z info: Skipping Node layer creation
2024-02-29T12:10:31Z info: Pushing hosting layer...
2024-02-29T12:10:31Z info: Pushing Repl layer...
2024-02-29T12:10:31Z info: Retrieved cached nix layer
2024-02-29T12:10:31Z info: Created hosting layer
2024-02-29T12:11:57Z info: Created Repl layer
2024-02-29T12:11:57Z info: Pushing Repl (cache) layer...
2024-02-29T12:11:59Z info: Created Repl (cache) layer
2024-02-29T12:12:00Z info: Pushed image manifest
2024-02-29T12:12:00Z info: Pushed soci index manifest
2024-02-29T12:12:08Z info: Creating virtual machine
2024-02-29T12:12:24Z info: Virtual machine created
2024-02-29T12:12:24Z info: Waiting for deployment to be ready
starting up user application
hostingpid1: an open port was not detected

Browser

Firefox

OS

Mac OSX

Device if mobile

N/A

Plan

Paid

If I clone the repo and then deploy it on a brand new project it works – so something weird is happening.

Hey, @jwasinski!
Are you selecting Reserved VM > Web Server or Reserved VM > Background Worker?

2 Likes