KX Community

Find answers, ask questions, and connect with our KX Community around the world.

Home Forums kdb+ setup kx/kdb instance in a new linux server/machine

  • setup kx/kdb instance in a new linux server/machine

    Posted by renbright on August 15, 2023 at 12:00 am

    I have deployed KX/KDB software to a new linux server with lisence. q session could be launched and works.

    But I cannot make connection from an external server (e.g. my local machine via #C and JAVA) to the new KDB server. Is there any steps missing?

     

    error:

    A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 10.106.4.131:6144'
    renbright replied 2 months, 1 week ago 2 Members · 6 Replies
  • 6 Replies
  • rocuinneagain

    Member
    August 16, 2023 at 12:00 am
    1. Is it possible you have some firewall/networking rules blocking remote access?
    2. Can you open  10.106.4.131:6144 in your browser?
    3. Can you try something other than kdb? .i.e python3 -m http.server 6144 and connect your browser.
  • renbright

    Member
    August 23, 2023 at 12:00 am

    thanks for your reply:

    1. they are internal hosts and do not have firewall/networking issue. my local PC can ping the IP

    2.  cannot open 10.106.4.131:6144  in the browser

    3.  From an existing qconnection to hopen this one, I have error like ‘hop. OS reports: No route to host’

    4. if using kx.c kdbclient3 = new kx.c(“nyblrhirsd01”, 6154, Environment.UserName + “:mypassword”),

    System.Net.Sockets.SocketException: ‘A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 10.106.4.131:6154’

     

    Any suggest?

  • rocuinneagain

    Member
    August 23, 2023 at 12:00 am

    For 3. the suggestion is to test in a browser. A q connection to the python server would fail as the protocols are different.

  • renbright

    Member
    August 23, 2023 at 12:00 am

    I copied 10.106.4.131:6154  in a brower,  but it shows me cannot reach the page

  • rocuinneagain

    Member
    August 23, 2023 at 12:00 am

    If python is running a server but your browser cannot connect it suggests an issue with the network settings and not kdb+. Are only certain ports open?

     

    If I can only use ssh port I often set up a port forward so I can connect on my machine

    https://linux.die.net/man/1/ssh#:~:text=%2DL%5Bbind_address%3A%5Dport%3Ahost%3Ahostport

     

    ssh -L 6154:localhost:6154 whateveryourusernameis@10.106.4.131

     

     

  • renbright

    Member
    August 23, 2023 at 12:00 am

    thanks for reply.

    1. from server side, I can see 6154 is running, which is open

    2. my #c code and the other good KDB server cannot make connection to the new server. my local PC can ping the new server

     

     

     

     

Log in to reply.