Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option to force http instead of https? #7

Open
celevra opened this issue May 6, 2016 · 1 comment
Open

option to force http instead of https? #7

celevra opened this issue May 6, 2016 · 1 comment

Comments

@celevra
Copy link

celevra commented May 6, 2016

Hi,

i've configured the registrator to use http:

[Unit]
Description=docker-etcd-registrator
Requires=docker.service etcd2.service
After=docker.service etcd2.service

[Service]
Restart=always
RestartSec=5s
TimeoutStartSec=120
TimeoutStopSec=25
EnvironmentFile=/etc/environment
Environment=CONTAINER=registrator
ExecStartPre=-/usr/bin/docker kill ${CONTAINER}
ExecStartPre=-/usr/bin/docker rm ${CONTAINER}
ExecStart=/bin/sh -c "   /usr/bin/docker run      --rm      --name=${CONTAINER}      --env HOSTNAME=%H      --env ETCD_ENDPOINTS=http://${COREOS_PRIVATE_IPV4}:2379      -v /var/run/docker.sock:/var/run/docker.sock      psitrax/docker-etcd-registrator"
ExecStop=/usr/bin/docker stop ${CONTAINER}

[X-Fleet]
Global=true

but it tries to connect with https:

core@core2 ~ $ systemctl status registrator.service
● registrator.service - docker-etcd-registrator
   Loaded: loaded (/run/fleet/units/registrator.service; linked-runtime; vendor preset: disabled)
   Active: active (running) since Fri 2016-05-06 07:30:22 CEST; 7s ago
  Process: 2070 ExecStartPre=/usr/bin/docker rm ${CONTAINER} (code=exited, status=1/FAILURE)
  Process: 2065 ExecStartPre=/usr/bin/docker kill ${CONTAINER} (code=exited, status=1/FAILURE)
 Main PID: 2076 (docker)
   Memory: 8.3M
      CPU: 62ms
   CGroup: /system.slice/registrator.service
           └─2076 /usr/bin/docker run --rm --name=registrator --env HOSTNAME=core2 --env ETCD_ENDPOINTS=http://192.168.0.2:2379 -v /var/run/docker.sock:/var/run/docker.sock psit...

May 06 07:30:23 core2 sh[2076]: errors:
May 06 07:30:23 core2 sh[2076]: [ { server: '192.168.0.2:2379',
May 06 07:30:23 core2 sh[2076]: httperror:
May 06 07:30:23 core2 sh[2076]: { [Error: write EPROTO 94189627537376:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl..._clnt.c:782:
May 06 07:30:23 core2 sh[2076]: ] code: 'EPROTO', errno: 'EPROTO', syscall: 'write' },
May 06 07:30:23 core2 sh[2076]: httpstatus: undefined,
May 06 07:30:23 core2 sh[2076]: httpbody: undefined,
May 06 07:30:23 core2 sh[2076]: response: undefined,
May 06 07:30:23 core2 sh[2076]: timestamp: Fri May 06 2016 05:30:23 GMT+0000 (UTC) } ],
May 06 07:30:23 core2 sh[2076]: retries: 0 }
Hint: Some lines were ellipsized, use -l to show in full.

is there a configuration switch?

@celevra
Copy link
Author

celevra commented May 6, 2016

#8

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

No branches or pull requests

1 participant