CHOIX
By:
CHOIX

Socket.io + Node.js with Dokku

March 11, 2015 2.3k views
Node.js Dokku

The Chat example from socket.io with node.js works perfektly on localhost.

I pushed the project with dokku to digitalocean and I'm getting:

http://chat.crowdselfie.com/socket.io/?EIO=3&transport=polling&t=1426020731332-31
Request Method:GET
Status Code:404 Not Found
During pushing with git I had this message:

remote: runtime: panic before malloc heap initialized
remote: fatal error: runtime: cannot allocate heap metadata
To dokku@crowdselfie.com:chat
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'dokku@crowdselfie.com:chat'
edit:

Tried this Tutorial: http://blog.parkermoore.de/2013/12/21/fixing-memory-issues-in-dokku-hosted-on-digitalocean-512mb-droplet/

now I have a 502 Bad Gateway.

chat.crowdselfie.com

1 comment
  • It's sounds like your running out of memory. I've seen something similar when I was running dokku on a 512MB droplet—when the container was being built it would run out of memory. Try it on a 1GB droplet instead.

1 Answer

This question was answered by @milkmedia:

It's sounds like your running out of memory. I've seen something similar when I was running dokku on a 512MB droplet—when the container was being built it would run out of memory. Try it on a 1GB droplet instead.

View the original comment

Have another answer? Share your knowledge.