Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

Cannot connect to Send running in Docker: connection reset by peer #498

Closed
andreipoe opened this issue Aug 10, 2017 · 3 comments
Closed

Comments

@andreipoe
Copy link

Hello,

Trying to use the Docker image for Send, I cannot connect to it:

> curl localhost:1443
curl: (56) Recv failure: Connection reset by peer

These are the logs of the container:

> docker logs send_web_1
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info lifecycle [email protected]~prestart: [email protected]
npm info lifecycle [email protected]~start: [email protected]

> [email protected] start /app
> node server/server

FirefoxSend.CRITICAL: uncaughtException Error: Cannot find module '../public/version.json'
    at Function.Module._resolveFilename (module.js:485:15)
    at Function.Module._load (module.js:437:25)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/app/server/server.js:12:17)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Function.Module.runMain (module.js:605:10)
    at startup (bootstrap_node.js:158:16)
    at bootstrap_node.js:575:3

I've tried master, v1.1.0 and v1.0.4, and none of them seem to work. Every time, I've removed the old Docker image and built from scratch with docker-compose build. Is there any additional step I need to take when setting up that might not be documented?

I'm happy to collect and provide further information if that helps.

Thanks!

@dannycoates
Copy link
Contributor

the circle.yml file gives a hint (but we need better instructions for building with docker in the readme) that you need to run npm run build before building the container.

On my local machine I do npm run build then docker-compose up

@andreipoe
Copy link
Author

Thanks! Is this not done as part of the Docker build by choice?

@dannycoates
Copy link
Contributor

Is this not done as part of the Docker build by choice?

Yes, we end up with a smaller docker image this way

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants