Skip to content
This repository was archived by the owner on Aug 15, 2022. It is now read-only.
This repository was archived by the owner on Aug 15, 2022. It is now read-only.

KD install with 502 response #11490

Open
Open

Description

@ahshum

Expected Behavior

Follow the guide at KD docs, and should be able to use vagrant provider.

Current Behavior

At the end of the kd installation, I got
Error: error installing "Koding account": Starting new session failed. Want: 200 Got: 502
with
export KONTROLURL=http://xxxx.com/kontrol/kite; curl -sL https://sandbox.kodi.ng/c/d/kd | bash -s 4bbe0593

the same happens even with the port 8090 appended to the KONTROLURL
export KONTROLURL=http://xxx.com:8090/kontrol/kite; curl -sL https://sandbox.kodi.ng/c/d/kd | bash -s 4bbe0593

Steps to Reproduce (for bugs)

  1. follow the guide using Docker-compose
  2. login at http://xxx.com:8090/
  3. get the kd command from dashboard
  4. run it on another machine

Your Environment

  • Version used: latest (from docker)

Activity

  1. rjeczalik commented on Mar 26, 2018

    @rjeczalik
    Contributor

    This error Starting new session failed. Want: 200 Got: 502 usually means that public kite endpoint is not reachable. Kd must be able to reach $KONTROLURL, e.g.:

    $ export KONTROLURL=https://koding.com/kontrol/kite
    $ curl -sL $KONTROLURL
    Welcome to SockJS!
    
  2. ahshum commented on Mar 26, 2018

    @ahshum
    Author

    I have tried curl -sL $KONTROLURL on the kd installing machine and return with Welcome to SockJS!.

    Do the kite endpoint on my machine need to be accessible from the public world?

  3. rjeczalik commented on Mar 26, 2018

    @rjeczalik
    Contributor

    Do the kite endpoint on my machine need to be accessible from the public world?

    Yes. Usually you run koding backend in the cloud and use kd locally for development. Kd needs to talk to the koding backend. Even if you run everything on one host, public endpoint is needed for the cloud instances - each such instance is connected to koding via the agent talking to the public address of the backend.

    I have tried curl -sL $KONTROLURL on the kd installing machine and return with Welcome to SockJS!.

    Could you try again, this time export KD_DEBUG=1 and see if there's anything usefull in kd.log / klient.log files - you should be able to find them in /var/log.

  4. ahshum commented on Mar 26, 2018

    @ahshum
    Author

    The log mentions the 502 with one line only.

    The backend is public with port 8090. Should I give a try using port 80 for the backend service?

  5. rjeczalik commented on Mar 26, 2018

    @rjeczalik
    Contributor

    502 comes from kd trying to connect to $KONTROLURL. If the endpoint is reachable with curl, but not with kd, then something is wrong and understanding the problem would require more information.

    I could try to debug the problem myself when I find spare time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions