changing hostname and IP

153 views
Skip to first unread message

Dana Miller

unread,
Nov 16, 2018, 8:57:11 AM11/16/18
to AtoM Users
After changing the hostname and IP address of the server I am receiving the following error Elasticsearch error: Elastica\Exception\Connection\HttpException

I have restarted elastic search and ran the following command
 curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'
{
  "cluster_name" : "elasticsearch",
  "status" : "green",
  "timed_out" : false,
  "number_of_nodes" : 2,
  "number_of_data_nodes" : 2,
  "active_primary_shards" : 254,
  "active_shards" : 508,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 0,
  "delayed_unassigned_shards" : 0,
  "number_of_pending_tasks" : 0,
  "number_of_in_flight_fetch" : 0
Is there someplace in elastic search that could be looking at old hostname

David Hume

unread,
Nov 19, 2018, 9:25:36 PM11/19/18
to AtoM Users

Hi Dana,

Sounds like your AtoM installation all on one server then, is that correct?

It is possible the old IP or hostname could be referenced in say /etc/elasticsearch/elasticsearch.yml, but most likely not (usually commented out).

If you cd to your atom home directory, have a look at the file apps/qubit/config/search.yml (or perhaps it is in just config/search.yml), see if any host references there are to something other than localhost or 127.0.0.1 - if you see your old information there, change it and let me know.

Then also while you're there, run the command

sudo -u www-data php symfony cc

(assumes www-data owns the files in that directory, if 'ls -alF' shows a file user of nginx use that instead for instance).


Thanks,

    Dave Hume, Artefactual Systems Administrator
Reply all
Reply to author
Forward
0 new messages