#No data - red error 'collectors' - unauthorized

1 messages · Page 1 of 1 (latest)

torpid glacier
#

Hi all,
We recieve an 'collectors' error in red when changing password and no data showing.
Logs for harvest2: nabox-harvest2 | 2024-11-05T11:28:41Z ERR poller/poller.go:1277 > Failed to negotiateAPI error="auth failed => 401 Unauthorized errNum="" statusCode="401"" Poller=fi100300 collector=Zapi
Checked password and roles, all seem good.

Running NaBox 3.5.4 and Harvest 24.08

We have several systems behaving this way.
Deleting and adding the system seems to work, but deletes the history,,,,

Any help?

timber anvil
#

@torpid glacier Could you try below curl if that works. Pls note to replace USER,PASSWORD,HOST as needed in it.

curl --connect-timeout 30 --user USER:PASSWORD --insecure --data-ascii '<?xml version="1.0" encoding="UTF-8"?>
<netapp xmlns="http://www.netapp.com/filer/admin" version="1.130">
  <system-get-version/>
</netapp>' -H "Content-Type: text/xml" 'https://HOST/servlets/netapp.servlets.admin.XMLrequest_filer'
torpid glacier
#

Response:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE netapp SYSTEM 'file:/etc/netapp_gx.dtd'>
<netapp version='1.221' xmlns='http://www.netapp.com/filer/admin'>
<results status="passed"><build-timestamp>1703031899</build-timestamp><is-clustered>true</is-clustered><version>NetApp Release 9.12.1P10: Wed Dec 20 00:24:59 UTC 2023</version><version-tuple><system-version-tuple><generation>9</generation><major>12</major><minor>1</minor></system-version-tuple></version-tuple></results></netapp>

timber anvil
#

Thanks. It means that credentials are good. Have you tried restarting pollers in NABox?

torpid glacier
#

Yes, and rebooted the VM

#

nabox-harvest2 | 2024-11-05T13:09:02Z ERR poller/poller.go:1277 > Failed to negotiateAPI error="auth failed => 401 Unauthorized errNum="" statusCode="401"" Poller=fi100300 collector=ZapiPerf
nabox-harvest2 | 2024-11-05T13:09:22Z WRN poller/poller.go:756 > abort collector error="connection error => auth failed => 401 Unauthorized errNum="" statusCode="401"" Poller=fi100300 collector=Zapi object=QosPolicyAdaptive
nabox-harvest2 | 2024-11-05T13:09:42Z WRN poller/poller.go:756 > abort collector error="connection error => auth failed => 401 Unauthorized errNum="" statusCode="401"" Poller=fi100300 collector=Zapi object=QosWorkload

#

Current logs

timber anvil
#

Does some of the objects work for fi100300?

torpid glacier
#

Created a new role, assigned to the user, restarted the harvest server, no change.

timber anvil
rain coral
#

Thanks for the logs. The first failure is when Harvest tries to use the provided credentials to get the version of ONTAP from the cluster. ONTAP returns a 401 Unauthorized when Harvest does that. Are you sure the username and credentials are correct? Can you ssh into nabox and double check that the username/password are correct for poller fi100300 by running this cat /opt/harvest2-conf/harvest.yml

When you ran the curl command that Rahul provided above, did you use the same username and password as shown by the cat command?

torpid glacier
#

Currently checking!

torpid glacier
#

We had some issues with automation and user creation, all passwords were changed... All resolved now

#

My apologies