EW does not create mseed files, getaddrinfo error: Name or service not known.

14 views
Skip to first unread message

h...@chalmers.se

unread,
Mar 11, 2026, 7:00:27 PM (4 days ago) Mar 11
to Earthworm Community Forum
EW 7.10 on Linux 10.04 64 bit with a Q330HR and the task to make mseeds for internal use at our department only (Chalmers University of Technology / Onala Space Observatory / Gravimetry lab). 

The Q330HR gets registered, the IP number is correct.
q3302ew.d:IPAddress             192.168.0.101

But there is a problem with the connection ew2mseed tries to establish.
In ew2mseed.d, from what I understand, the WaveServer line is to provide the IP number of the server that
makes tankfiles and wave_ring files. Tankfiles etc. are duly made 1)
In ew2mseed
 ew2mseed.d:WaveServer 192.168.0.111 16022
 wave_serverV.d:WaveServer 192.168.0.111 16022

Port 16022 is the obstacle. The IP is not admonished, 192.168.0.111 is the local host.

We also have ports 16000: and 18000
 ew2ringserver.d: RSAddress      192.168.0.111:16000     # address of destination ringserver
 ringserver.d:DataLinkPort 16000
 ringserver.d:SeedLinkPort 18000

An error note is written to the log every 20 seconds.
The notes are such:
20260311_UTC_21:15:07 setuptcpclient_ew()- getaddrinfo error: Name or service not known
20260311_UTC_21:15:07 wsAppendMenu nfiguration:16022 : Could not get a connection.
20260311_UTC_21:15:07 processWsAppendMenu: menu is empty, retrying to connect to servers...
20260311_UTC_21:15:27 setuptcpclient_ew()- getaddrinfo error: Name or service not known


In the ten years with the same computer but Linux Mint and EW 7.8 I haven't seen this problem not once. 
Copies of the config files, logs, and a screen dump of startstop worth a few minutes are here:
https://barre.oso.chalmers.se/hgs/4EW-group/

After installing and old and a recent ringserver I now have two executables and four libmseed.a  
-rw-rw-r-- 1 hgs hgs 2688640 2026-03-11 22:19:28 CET ./ringserver-4.2.2/libmseed/libmseed.a
-rw-rw-r-- 1 hgs hgs  518570 2026-03-11 21:56:41 CET ./ringserver-2015.188/libmseed/libmseed.a
-rw-rw-r-- 1 hgs hgs  520604 2026-03-11 20:57:05 CET /home/hgs/earthworm/lib/libmseed.a
-rw-rw-r-- 1 hgs hgs  520604 2026-03-11 20:57:05 CET /home/hgs/earthworm/src/libsrc/util/libmseed/libmseed.a

The getaddrinfo error does not depend on the ringserver.
The most recent startstop was with ringserver-4.2.2 executable copied into ~/earthworm/bin/ 2)

ls -l ~/earthworm/bin/ringserver
-rwxrwxr-x 1 hgs hgs 6297136 2026-03-11 22:20:24 CET /home/hgs/earthworm/bin/ringserver

All other executables have been compiled with EW's libmseed.a
And I had recompiled all EW src (.o, lib*.a, and all ELF's in this bin/) before making ringserver-4.2.2

Question remains what code is missing that causes the problem.
In EW? In ringserver? In linux gnu /usr/lib or kernel /lib?

Footnotes: 1) 2) in https://barre.oso.chalmers.se/hgs/4EW-group/footnotes.txt

h...@chalmers.se

unread,
Mar 13, 2026, 8:12:40 PM (2 days ago) Mar 13
to Earthworm Community Forum
I think I got a little closer.  setuptcpclient_ew()- getaddrinfo error: Name or service not known
It's in ew2mseed. And it seems complicated. 
processWsAppendMenu ... configuration - I'm lost there. I noticed the release_notes.v7.10.html  (Library changes socket_ew parse_ip_address). How can I make a controlled test of setupclient_ew , the arguments it gets in ew2mseed and how to find the arguments for success?

If I only knew what service it would expect to exist and provide an address.
Seems 127.0.0.1 would be the right address since communication is within the same machine.
Thus, the question might refer to systemd-resolve /etc/hosts  /etc/nsswitch.conf  /etc/services  
What would be the necessary service to show up in /etc/services? 

A DNS shouldn't become involved. In /etc/hosts we have first: 
hosts:          files mdns4_minimal [NOTFOUND=return] dns myhostname

In  /run/systemd/resolve/resolv.conf  our Internet DNS:
nameserver 129.16.1.53
nameserver 129.16.2.53
nothing concerning 192.168.0. - as it should be. 

There is also nmxptool that may be the alternative to the standard Linux IP network services. Everything stays on the local machine or is sent from the Q330HR over 192.168.0. In the previous installation, nmxptool was not on the list of processes run under startstop. Is it useful when, as in our case, data is not exchanged with remove wave server?  

Attached ifconfig output. 
I hope the solution is very simple. 
/HGS

ifconfig.txt

h...@chalmers.se

unread,
Mar 13, 2026, 8:14:34 PM (2 days ago) Mar 13
to Earthworm Community Forum
Correction: with remove wave server => with a remote wave server

h...@chalmers.se

unread,
Mar 14, 2026, 7:30:00 AM (yesterday) Mar 14
to Earthworm Community Forum
A slightly stained yet working solution.

modules.html says, ew2mseed is a standalone module...
The module's doc hasn't changed for a decade.
The module's code has: getaddrinfo

... which seems to be a shaky passage along the ally.
There are ample postings on Linux software Q&A Internet pages, e.g.
https://jvns.ca/blog/2022/02/23/getaddrinfo-is-kind-of-weird/
Risk being, different Linux distros and versions might include different code or
dependencies on /etc network config files. And the configs, while maintaining
perfect network connections both official global and on localhost, seem
sensitive as to how and what services on localhost are started in the EW software.

This is my wormhole bypass:
I copied EW Version 7.8 module from a backup into ~/bin/ew2mseed.x
I hashed the Process and Class/Priority lines out from startstop.d

$ cd ~/earthworm/run; startstop &; sleep 10; ew2mseed.x &
will become a bash source script. kill -KILL %<job#> is necessary to stop it after
pau outside or quit inside startstop
 
$ touch params/ew2mseed_1.lock
doesn't appear essential. The mseeds are made:

$ ls -lt --time-style="+%Y-%m-%d %H:%M:%S %Z" ~/earthworm/mseedfiles/SG/OSO/ | head -5
total 21791244
-rw-rw-r-- 1 hgs hgs   253440 2026-03-14 11:30:01 CET OSO.SG.SG.HGN.2026.073
-rw-rw-r-- 1 hgs hgs   238080 2026-03-14 11:29:51 CET OSO.SG.SG.HGE.2026.073
-rw-rw-r-- 1 hgs hgs   229888 2026-03-14 11:29:51 CET OSO.SG.SG.HGZ.2026.073
-rw-rw-r-- 1 hgs hgs   135680 2026-03-14 11:29:13 CET OSO.SG.SG.BGN.2026.073

$ echo "BINGO!"

Suggestion: Let users optionally build a version of  ew2mseed without polling IP numbers on localhost.
Renew doc, "If getaddrinfo cannot find a (which?) service..."
D'accord?
/HGS

Larry Baker

unread,
12:43 AM (11 hours ago) 12:43 AM
to Hans-Georg Scherneck, Larry Baker, earthwo...@googlegroups.com
HGS,

It has been many years since I have worked with Earthworm.  I have never worked with EW V10.  Perhaps other EW users have had experience similar to yours and can offer what they think is the problem.

Can you please post your simplest startstop_unix.d file and the .d and .desc files for the modules you launch?  Then I can try to replicate it in my environment as best as possible.

I am busy with a project I must complete first.  That will take a few more days.  Then I can try to replicate your failure(s).
--
--
You received this message because you are subscribed to the Google
Groups "Earthworm Community Forum" group.
 
To post to this group, send an email to earthwo...@googlegroups.com
 
To unsubscribe from this group, send an email to
earthworm_for...@googlegroups.com
 
For more options, visit this group at
http://groups.google.com/group/earthworm_forum?hl=en

---
You received this message because you are subscribed to the Google Groups "Earthworm Community Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to earthworm_for...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/earthworm_forum/b28dfbb7-9e12-4e5f-b69d-3b9978aedab7n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages