Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Blog
  • Questions
  • Learning
    • E-learning Courses
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Tutorials
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • DataMiner Insights
      • Security
      • Integration Studio
      • System Architecture
      • DataMiner Releases & Updates
      • DataMiner Apps
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

DMA using wrong IP address to reach ElasticSearch DB when using ‘localhost’

Solved1.05K views23rd June 2022Elastic
0
Bing Herng Chong [SLC] [DevOps Advocate]1.06K 22nd June 2022 0 Comments

Hi, an issue is observed with DataMiner not being able to reach Elastic based upon the following configuration in DB.xml:

<DataBase active="true" search="true" type="Elasticsearch">
<DBServer>localhost</DBServer>
<UID></UID>
<PWD>{AAAAAAAA-1111-2222-BBBB-CCCCCCCCCCCC}</PWD>
</DataBase>

We do not have DBConfiguration.xml set up.
This is observed on DMA running DMA10.1.0.0-11319-CU11 in standalone mode.

Additional context:

DataMiner was able to communicate with Elastic when it was first installed. However upon a DMA restart, the DMA was no longer able to communicate with Elastic.

SLDBConnection.txt reported the following error:

2022/06/21 15:35:32.967|SLDBConnection|ConnectionComposing|INF|0|1|Elasticsearch.Net.ElasticsearchClientException: Failed sniffing cluster state.. Call: unknown resource ---> Elasticsearch.Net.PipelineException: Failed sniffing cluster state. ---> Elasticsearch.Net.PipelineException: An error occurred trying to read the response from the specified node. ---> System.Net.WebException: Unable to connect to the remote server ---> 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 192.168.1.65:9200

However the localhost IP address of the server is a different IP address in the range 172.16.x.y.

I did notice that 192.168.1.65 did appear in the Agent page of Cube.

An attempt to fix the issue was done by deleting that entry and restarting the DMA. However the same behavior is observed in SLDBConnection.txt. It is still trying to reach Elastic at 192.168.1.65:9200.

Note that Elastic is responding when we attempt to reach localhost:9200 via a web-browser or via the 172.16.x.y:9022.

Any advise on what can be done to ensure that DMA is correctly resolving 'localhost' to the right IP address and not picking up the other IP address?

Bing Herng Chong [SLC] [DevOps Advocate] Selected answer as best 23rd June 2022

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Michiel Saelen [SLC] [DevOps Enabler]5.63K Posted 22nd June 2022 6 Comments

Hi Bing,

It seems that the IP address of your DMA was changed. This can happen when you have DHCP configured (not a static IP for the server). If you would want to change the IP of your agent, you need to follow the steps as indicated on our documentation page: Changing the IP of a DMA | DataMiner Docs

Kind regards,

Bing Herng Chong [SLC] [DevOps Advocate] Selected answer as best 23rd June 2022
Bing Herng Chong [SLC] [DevOps Advocate] commented 22nd June 2022

Hi Michiel, thanks for your observations. So in other words, the fix to this problem is to lock the DMA server down to a static IP address or have DHCP assign the same IP address to the DMA server?

I’m just thinking that just following the instructions in ‘Changing the IP of a DMA’ won’t permanently fix the issue as subsequent restart of the VM would lead to potentially a new IP address resulting in having to repeat the instructions again.

Bing Herng Chong [SLC] [DevOps Advocate] commented 22nd June 2022

Hi Michiel, it appears that only elasticsearch.yml hardcoded an IP address. Would specifying localhost or 127.0.0.1 make the DMA continue to work across IP address changes?

Michiel Saelen [SLC] [DevOps Enabler] commented 22nd June 2022

Hi Bing,

There are also options to use DNS records in your configuration (elastic, Cassandra and DataMiner), this way you are not stuck to a certain IP. In case your IP(s) would change the DNS records need to be updated of course and could be that a DMA restart is required.

Michiel Saelen [SLC] [DevOps Enabler] commented 22nd June 2022

Not an expert on Elastic, but I would assume it is possible to configure 127.0.0.1 or localhost. This would mean then that you can only access the DB from the machine itself of course.

Gellynck Jens [SLC] commented 22nd June 2022

I can confirm it’s possible to use localhost or 127.0.0.1 for the Elastic IP.

Show 1 more comments
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas

Recent questions

Redundancy Groups and Alarming – Duplicate Alarms 0 Answers | 0 Votes
Correlation Engine: “Test rule” doesn’t result in a hit, despite functional rule 1 Answer | 3 Votes
When using the Setter = true attribute, will the copy action always be executed first? 1 Answer | 3 Votes

Question Tags

adl2099 (115) alarm (62) Alarm Console (82) alarms (100) alarm template (83) Automation (223) automation scipt (111) Automation script (167) backup (71) Cassandra (180) Connector (109) Correlation (69) Correlation rule (52) Cube (150) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (140) driver (65) DVE (56) Elastic (83) Elasticsearch (115) elements (80) Failover (104) GQI (159) HTTP (76) IDP (74) LCA (152) low code app (166) low code apps (93) lowcodeapps (75) MySQL (53) protocol (203) QAction (83) security (88) SNMP (86) SRM (337) table (54) trending (87) upgrade (62) Visio (539) Visual Overview (345)
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin