mirror of
https://github.com/therootcompany/greenlock-express.js.git
synced 2025-02-23 13:18:04 +00:00
Port 80 already in use (EC2) #14
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
I'm trying to setup a Greenlock project on an EC2 linux instance and I'm getting the error that the address 0.0.0.0:80 is already in use.
I ran the comands
and followed step by step the quick start until the command:
sudo setcap 'cap_net_bind_service=+ep' $(which node)
and when I try to run
npm start
ornpm start -- --staging
the following error apears:I think that maybe a have to run the greenlock service on another port but I'm not sure that's the right approach.
Could you help me or just point me on the right direction? thanks
The instance probably has something running on port 80 - like Apache or whatnot.
EC2 is very complicated. It’s intended for seasoned DevOps with many years of AWS experience. And the instances can go down at any time.
I’d recommend starting out with something easy and reliable like Digital Ocean (or Vultr, OVH, or Scaleway).
Search for “lsof tcp port 80” and you’ll find the command you need to figure out what’s taking port 80.
I’m not at my computer right now to find it, but I’ll put it in the docs later.
Thanks for the reply. Apache was running on that port, I changed apache's port and got the Greenlock app to run but another error occur:
Sorry for the basic questions, I'm still new at this and didn't found any docs for trying to debug this error on my own (I think you are still developing it) but if there is something that I could look at can you tell me Where it's?
About the alternatives for EC2 I will look into it but for now I'm using AWS for its free tier
thanks
I didn't see your reply.
See https://stackoverflow.com/questions/40182121/error-getaddrinfo-eai-again
Your DNS isn't set up, or the EC2 has weird DNS / NAT rules that are causing DNS resolution to fail.