praxis icon indicating copy to clipboard operation
praxis copied to clipboard

Unable to start CX 'getsockopt: connection refused'

Open RedaBenh opened this issue 7 years ago • 8 comments

I follow the commands to install and start cx to test the new ALB feature. but i'm unable to run cx command, i re-install cx but and try again but i get the same issue!

MBP-de-Reda-001% cx apps create praxis-site
creating praxis-site: ERROR: Post https://localhost:5443/apps?: dial tcp [::1]:5443: getsockopt: connection refused
MBP-de-Reda-001% cx apps
ERROR: Get https://localhost:5443/apps?: dial tcp [::1]:5443: getsockopt: connection refused
MBP-de-Reda-001% cx services
Get https://localhost:5443/apps/praxis-site/services?: dial tcp [::1]:5443: getsockopt: connection refused
MBP-de-Reda-001% cx start web
Get https://localhost:5443/apps/praxis-site?: dial tcp [::1]:5443: getsockopt: connection refused
MBP-de-Reda-001% cx build
Get https://localhost:5443/apps/praxis-site?: dial tcp [::1]:5443: getsockopt: connection refused
MBP-de-Reda-001% cx apps create praxis
creating praxis: ERROR: Post https://localhost:5443/apps?: dial tcp [::1]:5443: getsockopt: connection refused

RedaBenh avatar Jun 14 '17 18:06 RedaBenh

+1

alemazz avatar Jun 15 '17 07:06 alemazz

Any solution ? Thanks

rwina36 avatar Jun 16 '17 08:06 rwina36

@rwina36 solved launching docker daemon

alemazz avatar Jun 16 '17 12:06 alemazz

thanks @alemazz for your answer.

The docker deamon is already running !

I thing it's something related to mac os x. i will make the same test on ubuntu.


MBP-de-Reda-001% cx apps create praxis-site
creating praxis-site: ERROR: Post https://localhost:5443/apps?: dial tcp [::1]:5443: getsockopt: connection refused
MBP-de-Reda-001% docker ps -a              
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                     PORTS               NAMES
7ae9593924cc        77c8dcea9ee3        "/bin/sh -c 'bundle i"   9 weeks ago         Exited (1) 9 weeks ago                         reverent_almeida
2ee75c5e238c        816c0b3fbc47        "/bin/sh -c 'apt-get "   9 weeks ago         Exited (100) 9 weeks ago                       gloomy_heyrovsky

Any other idea ? Thanks

RedaBenh avatar Jun 17 '17 12:06 RedaBenh

I make an new try to install CX. I take an other macbook pro. 1- i install docker and run daemon 2- i install cx same issue:

MBP-de-Reda-001:tests redabenh$ cx apps create praxis-site
creating praxis-site: ERROR: Post https://localhost:5443/apps?: dial tcp [::1]:5443: getsockopt: connection refused
MBP-de-Reda-001:tests redabenh$ cx apps
ERROR: Get https://localhost:5443/apps?: dial tcp [::1]:5443: getsockopt: connection refused

RedaBenh avatar Jun 17 '17 12:06 RedaBenh

Hi, I try to install CX on Ubuntu but i get an other error (see #241) I cannot test Praxis in 3 environment (mac os x, ubuntu). May be some steps are missing on the Getting Started with Convox Praxis

Thanks for your help

RedaBenh avatar Jun 17 '17 20:06 RedaBenh

+1

mateusz-fiolka avatar Aug 11 '17 11:08 mateusz-fiolka

Starts working when I do cx rack start, but I'm not sure I should be doing this manually. It's not in the getting started guide .. maybe it should be working automatically in background?

mateusz-fiolka avatar Aug 22 '17 13:08 mateusz-fiolka