Cannot connect to GMT Server?

I installed GMT6.1 with bundle installer for macOS. I uninstalled and reinstalled it with homebrew. When I run scripts, I always get this error.

gmt [ERROR]: Read error first record in file /Users/y.okur/.gmt/server/gmt_data_server.txt

It seems gmt_data_server.txt file is empty. Scripts that don’t require internet connection runs ok. However when I run scripts with @earth_relief_10m for example, it doesn’t download required files.

Script:

> #!/bin/bash
> # Image plot of Anatartica topography
> 
> gmt begin antartica-image png
>     gmt basemap -RAQ -JS0/-90/15c -Baf
>     gmt grdimage @earth_relief_10m -I+d -Cgray
>     gmt colorbar
> gmt end show

Error:

gmt [ERROR]: Read error first record in file /Users/y.okur/.gmt/server/gmt_data_server.txt
gmt [ERROR]: Read error first record in file /Users/y.okur/.gmt/server/gmt_data_server.txt
gmt [ERROR]: Read error first record in file /Users/y.okur/.gmt/server/gmt_data_server.txt
grdimage [NOTICE]:   -> Download cache file: @earth_relief_10m
grdimage [ERROR]: Libcurl Error: HTTP response code said error
grdimage [WARNING]: You can turn remote file download off by setting GMT_AUTO_DOWNLOAD off.
grdimage [ERROR]: File /Users/y.okur/.gmt/cache/earth_relief_10m was not found
grdimage [ERROR]: Cannot find file /Users/y.okur/.gmt/cache/earth_relief_10m
grdimage [ERROR]: File /Users/y.okur/.gmt/cache/earth_relief_10m was not found
grdimage [ERROR]: Cannot find file /Users/y.okur/.gmt/cache/earth_relief_10m
grdimage [ERROR]: File /Users/y.okur/.gmt/cache/earth_relief_10m not found
[Session gmt (0)]: Error returned from GMT API: GMT_FILE_NOT_FOUND (16)
gmt [ERROR]: Read error first record in file /Users/y.okur/.gmt/server/gmt_data_server.txt

I think I have found the solution. Even though I uninstalled gmt with brew uninstall gmt , there was .gmt folder in home directory. Deleting .gmt and reinstalling gmt with brew install gmt solved my problem.

The GMT server in Hawaii was actually down for a while, see also https://github.com/GenericMappingTools/gmtserver-admin/issues/23#issuecomment-664622823. It should be back up now though.