Jonathan Ober
10/06/2023, 2:36 PMOct 6 10:23:10 osq-fleet01 fleet: {"component":"http","err":"authentication error: invalid node key: YXTtp4zxXQUlbjtvSkLRj3qWhSMs1TY7","level":"info","path":"/api/v1/osquery/distributed/read","ts":"2023-10-06T14:23:10.089866852Z","uuid":"f17d3370-20c5-4986-a7bc-75829fa434ee"}
is there a cause for this? I looked through logs pre upgrade and am not seeing this appearKathy Satterlee
10/06/2023, 3:47 PMlast_erolled_time keeps updating for a host/hosts, that should help us narrow down where those errors are coming from.
select hostname, node_key, last_enrolled_at, hostname, uuid, computer_name from hosts order by last_enrolled_at desc limit 50;Jonathan Ober
10/06/2023, 4:35 PMJonathan Ober
10/06/2023, 4:37 PMKathy Satterlee
10/06/2023, 4:47 PMJonathan Ober
10/06/2023, 4:48 PMJonathan Ober
10/06/2023, 4:48 PMKathy Satterlee
10/06/2023, 4:49 PMJonathan Ober
10/06/2023, 4:50 PMJonathan Ober
10/06/2023, 5:45 PMFailed enrollment request with timeout errors trying to reach my main fleet server on port 8080 on most of the devices that return from that query. i verified the port isnt blockedKathy Satterlee
10/06/2023, 5:46 PMJonathan Ober
10/06/2023, 5:48 PMKathy Satterlee
10/06/2023, 7:52 PMJonathan Ober
10/06/2023, 8:01 PMKathy Satterlee
10/06/2023, 8:17 PM--verbose
--tls_dump
Then let things run for a but and check out the osquery logs at /var/log/osquery/?Jonathan Ober
10/09/2023, 8:18 PMI1009 16:06:41.822561 872296 tls.cpp:255] TLS/HTTPS POST request to URI: <https://myosquery.url:8080/api/v1/osquery/enroll>
I1009 16:06:42.678791 872296 tls.cpp:255] TLS/HTTPS POST request to URI: <https://myosquery.url.edu:8080/api/v1/osquery/distributed/read>
(actual URL replaced with myosquery.url)
I also made a test ubuntu 22.04 system this morning and it has yet to report into fleet. when i check the service's status i don't see any failed enrollment token messages either in the systemd status command or the osquery.INFO log. when the VM get provisioned, it currently goes out with 5.5.1 so i updated to 5.9 and that didnt make a difference. i saw this morning it was seemingly running queries so not really sure why it isnt appearing
i can try this on other linux systems if you'd like and see if i get different results. we have mac systems that are appearing in that query but i dont have immediate access to them right now to try anythingKathy Satterlee
10/09/2023, 8:20 PMJonathan Ober
10/09/2023, 8:20 PME1009 14:59:33.011750 509038 glog_logger.cpp:26] deb_packages: Failed to open the dpkg database: InvalidAdminDirPath (admindir='/var/lib/dpkg')