Well done for spotting that one.
Some of the simple bugs are small details but harder to find.
The next stage of debugging would be switching on the nextract debug mode and sending me loads of files.
But you don't need that now.
Original Message:
Sent: Thu September 14, 2023 04:55 AM
From: Ganeshan Karmegam
Subject: nextract Plus not write to influxdb
Thank you Nigel for your support,
I have cross checked all influxdb host details and HMC details and those are all working well
I have disabled proxy setting (unset proxy details in the UNIX profile) . it is started to working well
Thanks for all support
Ganesh
------------------------------
Ganeshan Karmegam
Original Message:
Sent: Tue September 12, 2023 11:14 AM
From: Nigel Griffiths
Subject: nextract Plus not write to influxdb
The error messages state you have an invalid hostname for the InfluxDB server:
[Errno 8] Hostname and service name not provided or found
Or invalid user and password:
hmc.HMC(hmc_hostname, hmc_user, hmc_password)
Please recheck those details as passwd to nextract.
Cheers,
------------------------------
Nigel Griffiths
Original Message:
Sent: Mon September 11, 2023 08:20 AM
From: Ganeshan Karmegam
Subject: nextract Plus not write to influxdb
My env is on AIX; nextract_plus version 43 ( all version showing the below error), python 3.7.11, influx 1.8.4
Traceback (most recent call last):
File "/opt/freeware/lib/python3.7/site-packages/urllib3/connection.py", line 170, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/opt/freeware/lib/python3.7/site-packages/urllib3/util/connection.py", line 73, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/opt/freeware/lib64/python3.7/socket.py", line 752, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 8] Hostname and service name not provided or found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/freeware/lib/python3.7/site-packages/urllib3/connectionpool.py", line 696, in urlopen
self._prepare_proxy(conn)
File "/opt/freeware/lib/python3.7/site-packages/urllib3/connectionpool.py", line 964, in _prepare_proxy
conn.connect()
File "/opt/freeware/lib/python3.7/site-packages/urllib3/connection.py", line 353, in connect
conn = self._new_conn()
File "/opt/freeware/lib/python3.7/site-packages/urllib3/connection.py", line 182, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0xa0000000077dbc8>: Failed to establish a new connection: [Errno 8] Hostname and service name not provided or found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/freeware/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/opt/freeware/lib/python3.7/site-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/opt/freeware/lib/python3.7/site-packages/urllib3/util/retry.py", line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='hmcdrp4', port=12443): Max retries exceeded with url: /rest/api/web/Logon (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xa0000000077dbc8>: Failed to establish a new connection: [Errno 8] Hostname and service name not provided or found')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./newnextract_plus.py", line 99, in <module>
hmc = hmc.HMC(hmc_hostname, hmc_user, hmc_password)
File "/usr/lbin/hmc_pcm.py", line 23, in __init__
self.logon(hmc, user, pw)
File "/usr/lbin/hmc_pcm.py", line 112, in logon
ret = requests.put(logonUrl,data=logonPayload,headers=logonheaders,verify=False)
File "/opt/freeware/lib/python3.7/site-packages/requests/api.py", line 134, in put
return request('put', url, data=data, **kwargs)
File "/opt/freeware/lib/python3.7/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/opt/freeware/lib/python3.7/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/opt/freeware/lib/python3.7/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/opt/freeware/lib/python3.7/site-packages/requests/adapters.py", line 510, in send
raise ProxyError(e, request=request)
requests.exceptions.ProxyError: HTTPSConnectionPool(host='hmcdrp4', port=12443): Max retries exceeded with url: /rest/api/web/Logon (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xa0000000077dbc8>: Failed to establish a new connection: [Errno 8] Hostname and service name not provided or found')))
------------------------------
Ganeshan Karmegam
------------------------------