Unable to connect to hostname or port in Immerse after fresh install in ubuntu 16.04


#1

I have compile the code from the mapd-core git repository in ubuntu 16.04 with two nvidia p100 gpu.
After installation, the immerse window could be load in browser, but could not login. When log in, the hint is: Unable to connect to host or port.

I could use mapdql query the sample table.

  1. nvidia-smi
    %E5%9B%BE%E7%89%87

  2. mapd.conf
    port = 9091
    http-port = 9090
    data = “/data/mapd/data”
    null-div-by-zero = true

[web]
port = 9092
frontend = “/usr/local/frontend”

  1. log/mapd_server.INFO
    Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
    I0510 09:51:05.675184 97467 MapDServer.cpp:518] MapD started with data directory at ‘/data/mapd/data’
    I0510 09:51:05.675405 97467 MapDServer.cpp:525] Watchdog is set to 1
    I0510 09:51:05.675420 97467 MapDServer.cpp:526] Dynamic Watchdog is set to 0
    I0510 09:51:05.675426 97467 MapDServer.cpp:530] Debug Timer is set to 0
    I0510 09:51:05.675434 97467 MapDServer.cpp:552] cuda block size 0
    I0510 09:51:05.675444 97467 MapDServer.cpp:553] cuda grid size 0
    I0510 09:51:05.675451 97467 MapDServer.cpp:554] calcite JVM max memory 1024
    I0510 09:51:05.675456 97467 MapDServer.cpp:555] MapD Server Port 9091
    I0510 09:51:05.675463 97467 MapDServer.cpp:556] MapD Calcite Port 9093
    I0510 09:51:05.675500 97467 MapDHandler.cpp:146] MapD Server 3.7.0dev-20180509-f207b08
    I0510 09:51:07.283797 97467 CudaMgr.cpp:127] Using 2 Gpus.
    I0510 09:51:07.283902 97467 DataMgr.cpp:120] cpuSlabSize is 4096M
    I0510 09:51:07.283938 97467 DataMgr.cpp:122] reserved GPU memory is 128M includes render buffer allocation
    I0510 09:51:07.283955 97467 DataMgr.cpp:132] gpuSlabSize is 2048M
    I0510 09:51:07.283963 97467 DataMgr.cpp:132] gpuSlabSize is 2048M
    I0510 09:51:07.284142 97467 FileMgr.cpp:173] Completed Reading table’s file metadata, Elapsed time : 0ms Epoch: 0 files read: 0 table location: ‘/data/mapd/data/mapd_data/table_0_0/’
    I0510 09:51:07.284212 97467 Calcite.cpp:178] Creating Calcite Handler, Calcite Port is 9093 base data dir is /data/mapd/data
    I0510 09:51:07.284240 97467 Calcite.cpp:113] Running calcite server as a daemon
    I0510 09:51:07.607251 97467 Calcite.cpp:142] Calcite server start took 300 ms
    I0510 09:51:07.607281 97467 Calcite.cpp:143] ping took 18 ms
    I0510 09:51:07.615083 97467 Calcite.cpp:319] …
    I0510 09:51:07.616613 97467 MapDHandler.cpp:195] Started in GPU mode

  2. log/mapd_server.ERROR
    Log file created at: 2018/05/10 09:51:04
    Running on machine: ius16
    Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
    F0510 09:51:04.361237 97454 MapDHandler.cpp:988] Check failed: false

  3. I start mapd with systemd:
    sudo systemctl start mapd_server
    sudo systemctl start mapd_web_server

Anything I should check for this problem?


#2

ferom the output of nvidia-smi looks like the mapd server is not running, but i guess you taken before the start of server.

i think immerse by default try to connect to localhost; have you used the the server default (localhost) with mapdql too?


#3

Yes, the nvidia-smi output is captured before mapd start.

I have tried forward the server 9092 port to localhost (via ssh), but get same result :disappointed_relieved: .


#4

the map server listen on ports 9091 and 9090; 9092 is the immerse port and it’s already working.

are you getting thois error?

this is immerse that try to connectto mapd_server and fail; afik the connection is on localhost


#5

Thanks. It is the same error here.
Maybe the problem is caused by network (ipv6), I found the netstat result is,
netstat -peanut | grep :909

tcp 0 0 0.0.0.0:9090 0.0.0.0:* LISTEN 1000 40672 18205/mapd_server
tcp 0 0 0.0.0.0:9091 0.0.0.0:* LISTEN 1000 21296 18205/mapd_server
tcp 0 0 0.0.0.0:9093 0.0.0.0:* LISTEN 1000 34618 18609/-Xmx1024m
tcp6 0 0 :::9092 :::* LISTEN 1000 23388 17064/mapd_web_serv

The mapd_web_server only listen on tcp6, not on tcp.
Any hints on this problem?

Regards.


#6

maybe this is the problem

i have mapd installed on ubuntu and the output of netstat is the following

tcp6       0      0 :::9090                 :::*                    LISTEN      1001       41083       4242/mapd_server
tcp6       0      0 :::9091                 :::*                    LISTEN      1001       42322       4242/mapd_server
tcp6       0      0 :::9092                 :::*                    LISTEN      1001       40192       4254/mapd_web_serve
tcp6       0      0 :::9093                 :::*                    LISTEN      1001       39398       4296/-Xmx1024m

everything is on tcp6; anyway when i connect from internet the mapd webserver connects to mapd_server in tcp v4

tcp        0      0 127.0.0.1:37680         127.0.0.1:9090          ESTABLISHED 1001       39473       4254/mapd_web_serve
tcp6       0      0 :::9090                 :::*                    LISTEN      1001       41083       4242/mapd_server
tcp6       0      0 :::9091                 :::*                    LISTEN      1001       42322       4242/mapd_server
tcp6       0      0 :::9092                 :::*                    LISTEN      1001       40192       4254/mapd_web_serve
tcp6       0      0 :::9093                 :::*                    LISTEN      1001       39398       4296/-Xmx1024m
tcp6       0      0 192.168.1.10:9092       5.152.240.49:34138      ESTABLISHED 1001       40219       4254/mapd_web_serve
tcp6       0      0 192.168.1.10:9092       5.152.240.49:34530      ESTABLISHED 1001       41087       4254/mapd_web_serve
tcp6       0      0 127.0.0.1:9090          127.0.0.1:37680         ESTABLISHED 1001       39474       4242/mapd_server
tcp6       0      0 192.168.1.10:9092       5.152.240.49:34550      ESTABLISHED 1001       42344       4254/mapd_web_serve
tcp6       0      0 192.168.1.10:9092       5.152.240.49:34134      ESTABLISHED 1001       42335       4254/mapd_web_serve
tcp6       0      0 192.168.1.10:9092       5.152.240.49:34140      ESTABLISHED 1001       42337       4254/mapd_web_serve

you should do a netstat while immerse is trying to connect with mapd server