New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heroku and HapiJs Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch #3927

breitembach opened this Issue Feb 10, 2019 · 0 comments


None yet
2 participants
Copy link

breitembach commented Feb 10, 2019

Server running at: http://a72189ea-1d65-4cab-9d05-3d5bf763cb61:45051
2019-02-10T23:38:00.155732+00:00 app[web.1]: Connection with database succeeded.
2019-02-10T23:38:57.316375+00:00 app[web.1]: Error waiting for process to terminate: No child processes
2019-02-10T23:38:57.393481+00:00 heroku[web.1]: State changed from starting to crashed
2019-02-10T23:38:57.297326+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2019-02-10T23:38:57.297427+00:00 heroku[web.1]: Stopping process with SIGKILL
2019-02-10T23:38:57.378104+00:00 heroku[web.1]: Process exited with status 22


  "name": "Fish",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "yarn test",
    "dev": "NODE_ENV=development nodemon server.js",
    "start": "node server.js",
    "deploy": "git add . && git commit -m 'deploy automatitly' && git push heroku master"

  "license": "ISC",
  "dependencies": {
    "boom": "^7.3.0",
    "hapi": "^18.1.0",
    "hapi-server-session": "^4.3.1",
    "hapi-swagger": "^9.3.1",
    "inert": "^5.1.2",
    "joi": "^14.3.1",
    "mongoose": "^5.4.11",
    "rest-hapi": "^1.3.3",
    "vision": "^5.4.4"
  "devDependencies": {
    "nodemon": "^1.18.10"
  "engines": {
    "node": "~8.11.4",
    "npm": "5.6.0"

The Server.js

'use strict';

// Create a server with a host and port
const server=Hapi.server({
    port:process.env | 8000

// Add the route
  handler:function(request,h) {

      return'hello world';

// Start the server
const start =  async function() {

  try {
      await server.start();
  catch (err) {

  console.log('Server running at:',;


Dont Working

@hueniverse hueniverse self-assigned this Feb 11, 2019

@hueniverse hueniverse closed this Feb 11, 2019

@hapijs hapijs locked and limited conversation to collaborators Feb 11, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.