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

399 views
Skip to first unread message

Pradeep Kumar Kanagaraj

unread,
Sep 17, 2014, 3:37:46 AM9/17/14
to tot...@googlegroups.com
I couldn't able to run my on on heroku. I am getting the following error, please guide me.

logs:

2014-09-17T07:13:20.352274+00:00 heroku[web.1]: Starting process with command `node index.js`
2014-09-17T07:13:21.177382+00:00 app[web.1]: http://127.0.0.1:55910/
2014-09-17T07:13:30.999527+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=murmuring-chamber-6565.herokuapp.com request_id=9bf404ed-917a-4bc3-83f1-6543f2016059 fwd="54.91.86.244" dyno= connect= service= status=503 bytes=
2014-09-17T07:13:42.542397+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=murmuring-chamber-6565.herokuapp.com request_id=0eacf27b-af3d-4805-86a3-41b1004759e1 fwd="121.243.120.234" dyno= connect= service= status=503 bytes=
2014-09-17T07:14:20.589984+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2014-09-17T07:14:20.590200+00:00 heroku[web.1]: Stopping process with SIGKILL
2014-09-17T07:14:21.195846+00:00 heroku[web.1]: Process exited with status 137
2014-09-17T07:14:31.926055+00:00 heroku[web.1]: State changed from starting to crashed
2014-09-17T07:14:36.527245+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=murmuring-chamber-6565.herokuapp.com request_id=37141a15-b092-4839-916e-4b4ad252b617 fwd="121.243.120.234" dyno= connect= service= status=503 bytes=

index.js File

var framework = require('partial.js');

var http = require('http');
var os = require('os');

var index = process.argv.indexOf('backup');
if (index !== -1) {
    framework.backup(function(err, path) {
        console.log('Backup: ' + (err ? err.toString() : path));
    });
    return;
}

index = process.argv.indexOf('restore');
if (index !== -1) {
    var restore = process.argv[index + 1] || '';
    framework.restore(restore, function(err, path) {
        console.log('Restore: ' + (err ? err.toString() : path));
    });
    return;
}

var port = process.env.PORT || 5000;
var debug = os.platform() !== 'freebsd';

framework.run(http, debug, port);

if (debug)
    console.log("http://127.0.0.1:{0}/".format(port));



Peter Širka

unread,
Sep 25, 2014, 5:25:27 PM9/25/14
to tot...@googlegroups.com
Hi Pradeep Kumar Kanagaraj,
partial.js is deprecated, you must use total.js - www.totaljs.com and here is Heroku example: https://github.com/totaljs/examples/tree/master/heroku.

Thanks.
Reply all
Reply to author
Forward
0 new messages