Connection refused


#1

I changed the mapd server’s data directory on the AWS MapD Enterprise Edition version and get a connection error:

mapdql -u mapd -p aws_instance_id_
Thrift: Mon Nov 27 17:56:30 2017 TSocket::open() connect() <Host: localhost Port: 9091>Connection refused
Thrift: Mon Nov 27 17:56:30 2017 TSocket::open() connect() <Host: localhost Port: 9091>Connection refused
terminate called after throwing an instance of 'apache::thrift::transport::TTransportException’
what(): connect() failed: Connection refused
Aborted

This was after:

  1. stopping both servers
  2. copying the contents of /raidStorage/prod/mapd-storage to the new location
  3. updating my bash_profile with the $MAPD_STORAGE variable
  4. updating the new version of mapd.conf with the new data directory
  5. starting the servers again
  6. initdb data_dir

What have I done wrong?

Thanks.


#2

Hi

You need to initdb the directory before restarting the server.

How are you running the MapD server.

Please check the mapd_server.INFO log for more info.

Regards


#3

Thanks. My evaluation period expired, so I started with a new server on which I installed MapD Community. I loaded some sample data successfully, created a new database and then some tables. When I tried to load some data, I got chucked out of mapd and have the same error as before.

I am using an AWS p3.16xlarge.
±----------------------------------------------------------------------------+
| NVIDIA-SMI 384.81 Driver Version: 384.81 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Tesla V100-SXM2… On | 00000000:00:17.0 Off | 0 |
| N/A 47C P0 57W / 300W | 428MiB / 16152MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 1 Tesla V100-SXM2… On | 00000000:00:18.0 Off | 0 |
| N/A 43C P0 57W / 300W | 428MiB / 16152MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 2 Tesla V100-SXM2… On | 00000000:00:19.0 Off | 0 |
| N/A 42C P0 54W / 300W | 428MiB / 16152MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 3 Tesla V100-SXM2… On | 00000000:00:1A.0 Off | 0 |
| N/A 46C P0 58W / 300W | 428MiB / 16152MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 4 Tesla V100-SXM2… On | 00000000:00:1B.0 Off | 0 |
| N/A 46C P0 59W / 300W | 428MiB / 16152MiB | 2% Default |
±------------------------------±---------------------±---------------------+
| 5 Tesla V100-SXM2… On | 00000000:00:1C.0 Off | 0 |
| N/A 42C P0 43W / 300W | 24MiB / 16152MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 6 Tesla V100-SXM2… On | 00000000:00:1D.0 Off | 0 |
| N/A 42C P0 43W / 300W | 10MiB / 16152MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 7 Tesla V100-SXM2… On | 00000000:00:1E.0 Off | 0 |
| N/A 46C P0 44W / 300W | 10MiB / 16152MiB | 0% Default |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 40574 C /opt/mapd/bin/mapd_server 418MiB |
| 1 40574 C /opt/mapd/bin/mapd_server 418MiB |
| 2 40574 C /opt/mapd/bin/mapd_server 418MiB |
| 3 40574 C /opt/mapd/bin/mapd_server 418MiB |
| 4 40574 C /opt/mapd/bin/mapd_server 418MiB |
| 5 40574 C /opt/mapd/bin/mapd_server 14MiB |
±----------------------------------------------------------------------------+

I have masses of error log files. All I can see so far is that data files cannot be located. I set the data directory to non default location when running install_mapd_systemd.sh.

Do you have any suggestions?

Thanks.


#4

Hi,

Please share the config file and the actual locations of where you placed your directories.

Please confirm you do not have permission errors between the user running the MapD services and the owner of the filesystem artifacts. Ideally these should all be the same user ‘mapd’

Please share a clean INFO log from when MapD attempts to start.

If using systemd to manage your services, please run sudo journalctl -u mapd_server and share the last few hundred lines.

We will need real information on your install to be able to help you troubleshoot.

regards