Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kolide cannot re-register after registration is autoremoved after inactivity #1848

Open
tomaspinho opened this issue Sep 3, 2024 · 0 comments

Comments

@tomaspinho
Copy link

tomaspinho commented Sep 3, 2024

I came back from extended leave this week and both my devices have been removed from Kolide due to my company's Device Autoremoval settings. On both machines (Ubuntu 24.04), the Kolide agent is unable to re-register and complete uninstallation is required to be able to register again as a new device. The UI Menu Bar icon shows "All Good", but the "View Details..." page gets stuck on "Identifying current device".

Providing logs below:

{"time":"2024-09-03T09:41:54.497051084Z","level":"INFO","source":{"function":"github.com/kolide/launcher/ee/agent/flags.(*FlagController).overrideFlag","file":"/home/runner/work/launcher/launcher/ee/agent/flags/flag_controller.go","line":134},"msg":"overriding flag","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","component":"flag_controller","key":"control_request_interval","value":5000000000,"duration":60000000000}
{"time":"2024-09-03T09:41:55.831107476Z","level":"INFO","source":{"function":"github.com/kolide/launcher/ee/localserver.New.(*localServer).requestLoggingHandler.func6.1","file":"/home/runner/work/launcher/launcher/ee/localserver/logging-handler.go","line":24},"msg":"request log","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","component":"localserver","path":"/v1/cmd","method":"OPTIONS","status":200,"took":5014}
{"time":"2024-09-03T09:41:55.832857665Z","level":"DEBUG","source":{"function":"github.com/kolide/launcher/ee/localserver.New.(*kryptoEcMiddleware).Wrap.func3","file":"/home/runner/work/launcher/launcher/ee/localserver/krypto-ec-middleware.go","line":155},"msg":"failed to extract box from request","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","keytype":"ec","err":"unmarshalling request body to json: EOF","path":"/v1/cmd","query_params":"box=","span_id":"f620e2a1de136e5e","trace_id":"cd88f307933d9b07af5693063a21d0c5","trace_sampled":false}
{"time":"2024-09-03T09:41:55.832930647Z","level":"INFO","source":{"function":"github.com/kolide/launcher/ee/localserver.New.(*localServer).requestLoggingHandler.func6.1","file":"/home/runner/work/launcher/launcher/ee/localserver/logging-handler.go","line":24},"msg":"request log","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","component":"localserver","path":"/v1/cmd","method":"GET","status":401,"took":115092}
{"time":"2024-09-03T09:41:55.910480927Z","level":"WARN","source":{"function":"github.com/kolide/launcher/ee/control.(*ControlService).requestIntervalChanged","file":"/home/runner/work/launcher/launcher/ee/control/control.go","line":217},"msg":"failed to fetch data from control server. Not fatal, moving on","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","component":"control","err":"getting subsystems map: could not get signature header from hardware keys: could not sign challenge: signing timed out after 4 attempts, last error: signing data: loading signer handle: loading signer handle: parameter 1, error code 0x15 : structure is the wrong size"}
{"time":"2024-09-03T09:41:55.910547142Z","level":"DEBUG","source":{"function":"github.com/kolide/launcher/ee/control.(*ControlService).requestIntervalChanged","file":"/home/runner/work/launcher/launcher/ee/control/control.go","line":224},"msg":"accelerating control service request interval","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","component":"control","new_interval":"5s","old_interval":"1m0s"}
{"time":"2024-09-03T09:41:56.268069914Z","level":"INFO","source":{"function":"github.com/kolide/launcher/ee/localserver.New.(*localServer).requestLoggingHandler.func6.1","file":"/home/runner/work/launcher/launcher/ee/localserver/logging-handler.go","line":24},"msg":"request log","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","component":"localserver","path":"/v1/cmd","method":"OPTIONS","status":200,"took":4068}
{"time":"2024-09-03T09:41:56.270447346Z","level":"DEBUG","source":{"function":"github.com/kolide/launcher/ee/localserver.New.(*kryptoEcMiddleware).Wrap.func3","file":"/home/runner/work/launcher/launcher/ee/localserver/krypto-ec-middleware.go","line":155},"msg":"failed to extract box from request","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","keytype":"ec","err":"unmarshalling request body to json: EOF","path":"/v1/cmd","query_params":"box=","span_id":"aa4198aef84c49b0","trace_id":"924865d922717479ee6dc7e1f6cdef39","trace_sampled":false}
{"time":"2024-09-03T09:41:56.270491027Z","level":"INFO","source":{"function":"github.com/kolide/launcher/ee/localserver.New.(*localServer).requestLoggingHandler.func6.1","file":"/home/runner/work/launcher/launcher/ee/localserver/logging-handler.go","line":24},"msg":"request log","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","component":"localserver","path":"/v1/cmd","method":"GET","status":401,"took":66523}
{"time":"2024-09-03T09:41:56.273610187Z","level":"INFO","source":{"function":"github.com/kolide/launcher/ee/localserver.New.(*localServer).requestLoggingHandler.func6.1","file":"/home/runner/work/launcher/launcher/ee/localserver/logging-handler.go","line":24},"msg":"request log","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","component":"localserver","path":"/v1/cmd","method":"OPTIONS","status":200,"took":3107}
{"time":"2024-09-03T09:41:56.274918324Z","level":"DEBUG","source":{"function":"github.com/kolide/launcher/ee/localserver.New.(*kryptoEcMiddleware).Wrap.func3","file":"/home/runner/work/launcher/launcher/ee/localserver/krypto-ec-middleware.go","line":251},"msg":"origin matches allowlist","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","keytype":"ec","origin":"https://app.kolide.com","span_id":"90f87ff50c8acaa5","trace_id":"b7383097b9c29de82b473de450e0dbc5","kolide_session_id":"73e7a003-2dc6-4dcf-82ef-759dcc101f83","trace_sampled":false}
{"time":"2024-09-03T09:41:56.274942931Z","level":"DEBUG","source":{"function":"github.com/kolide/launcher/ee/localserver.New.(*kryptoEcMiddleware).Wrap.func3","file":"/home/runner/work/launcher/launcher/ee/localserver/krypto-ec-middleware.go","line":302},"msg":"successful challenge, proxying","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","keytype":"ec","span_id":"90f87ff50c8acaa5","trace_id":"b7383097b9c29de82b473de450e0dbc5","kolide_session_id":"73e7a003-2dc6-4dcf-82ef-759dcc101f83","trace_sampled":false}
{"time":"2024-09-03T09:41:56.508937545Z","level":"INFO","source":{"function":"github.com/kolide/launcher/ee/localserver.New.(*localServer).requestLoggingHandler.func6.1","file":"/home/runner/work/launcher/launcher/ee/localserver/logging-handler.go","line":24},"msg":"request log","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","component":"localserver","path":"/v1/cmd","method":"OPTIONS","status":200,"took":5167}
{"time":"2024-09-03T09:41:56.509990486Z","level":"DEBUG","source":{"function":"github.com/kolide/launcher/ee/localserver.New.(*kryptoEcMiddleware).Wrap.func3","file":"/home/runner/work/launcher/launcher/ee/localserver/krypto-ec-middleware.go","line":251},"msg":"origin matches allowlist","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","keytype":"ec","origin":"https://app.kolide.com","span_id":"060163a2eec228f2","trace_id":"00e3c64c1c59a9ceb6211a632203ff03","kolide_session_id":"73e7a003-2dc6-4dcf-82ef-759dcc101f83","trace_sampled":false}
{"time":"2024-09-03T09:41:56.510014497Z","level":"DEBUG","source":{"function":"github.com/kolide/launcher/ee/localserver.New.(*kryptoEcMiddleware).Wrap.func3","file":"/home/runner/work/launcher/launcher/ee/localserver/krypto-ec-middleware.go","line":302},"msg":"successful challenge, proxying","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","keytype":"ec","span_id":"060163a2eec228f2","trace_id":"00e3c64c1c59a9ceb6211a632203ff03","kolide_session_id":"73e7a003-2dc6-4dcf-82ef-759dcc101f83","trace_sampled":false}
{"time":"2024-09-03T09:41:57.874581987Z","level":"INFO","source":{"function":"github.com/kolide/launcher/ee/localserver.New.(*localServer).requestLoggingHandler.func6.1","file":"/home/runner/work/launcher/launcher/ee/localserver/logging-handler.go","line":24},"msg":"request log","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","component":"localserver","path":"/v1/cmd","method":"GET","status":200,"took":1599801906}
{"time":"2024-09-03T09:41:58.592091094Z","level":"INFO","source":{"function":"github.com/kolide/launcher/ee/localserver.New.(*localServer).requestLoggingHandler.func6.1","file":"/home/runner/work/launcher/launcher/ee/localserver/logging-handler.go","line":24},"msg":"request log","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","component":"localserver","path":"/v1/cmd","method":"OPTIONS","status":200,"took":4102}
{"time":"2024-09-03T09:41:58.593229715Z","level":"DEBUG","source":{"function":"github.com/kolide/launcher/ee/localserver.New.(*kryptoEcMiddleware).Wrap.func3","file":"/home/runner/work/launcher/launcher/ee/localserver/krypto-ec-middleware.go","line":155},"msg":"failed to extract box from request","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","keytype":"ec","err":"unmarshalling request body to json: EOF","path":"/v1/cmd","query_params":"box=","span_id":"096c27641cf83a0e","trace_id":"d5080943953d079686cad4e4a37f03e7","trace_sampled":false}
{"time":"2024-09-03T09:41:58.593285863Z","level":"INFO","source":{"function":"github.com/kolide/launcher/ee/localserver.New.(*localServer).requestLoggingHandler.func6.1","file":"/home/runner/work/launcher/launcher/ee/localserver/logging-handler.go","line":24},"msg":"request log","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","component":"localserver","path":"/v1/cmd","method":"GET","status":401,"took":80101}
{"time":"2024-09-03T09:41:58.71471273Z","level":"DEBUG","source":{"function":"github.com/kolide/launcher/ee/localserver.(*kryptoEcMiddleware).sendCallback","file":"/home/runner/work/launcher/launcher/ee/localserver/krypto-ec-middleware.go","line":136},"msg":"finished callback","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","keytype":"ec","response_status":"204 No Content","kolide_session_id":"73e7a003-2dc6-4dcf-82ef-759dcc101f83"}
{"time":"2024-09-03T09:41:58.775308717Z","level":"INFO","source":{"function":"github.com/kolide/launcher/ee/localserver.New.(*localServer).requestLoggingHandler.func6.1","file":"/home/runner/work/launcher/launcher/ee/localserver/logging-handler.go","line":24},"msg":"request log","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","component":"localserver","path":"/v1/cmd","method":"OPTIONS","status":200,"took":4029}
{"time":"2024-09-03T09:41:58.776512724Z","level":"DEBUG","source":{"function":"github.com/kolide/launcher/ee/localserver.New.(*kryptoEcMiddleware).Wrap.func3","file":"/home/runner/work/launcher/launcher/ee/localserver/krypto-ec-middleware.go","line":251},"msg":"origin matches allowlist","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","keytype":"ec","origin":"https://app.kolide.com","span_id":"e091e303e8ee567b","trace_id":"976ad1986e2549bcaf5a04e74208225a","kolide_session_id":"73e7a003-2dc6-4dcf-82ef-759dcc101f83","trace_sampled":false}
{"time":"2024-09-03T09:41:58.776558969Z","level":"DEBUG","source":{"function":"github.com/kolide/launcher/ee/localserver.New.(*kryptoEcMiddleware).Wrap.func3","file":"/home/runner/work/launcher/launcher/ee/localserver/krypto-ec-middleware.go","line":302},"msg":"successful challenge, proxying","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","keytype":"ec","span_id":"e091e303e8ee567b","trace_id":"976ad1986e2549bcaf5a04e74208225a","kolide_session_id":"73e7a003-2dc6-4dcf-82ef-759dcc101f83","trace_sampled":false}
{"time":"2024-09-03T09:41:58.830790107Z","level":"INFO","source":{"function":"github.com/kolide/launcher/ee/localserver.New.(*localServer).requestLoggingHandler.func6.1","file":"/home/runner/work/launcher/launcher/ee/localserver/logging-handler.go","line":24},"msg":"request log","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","component":"localserver","path":"/v1/cmd","method":"GET","status":200,"took":2320949351}
{"time":"2024-09-03T09:41:58.965024996Z","level":"DEBUG","source":{"function":"github.com/kolide/launcher/ee/localserver.(*kryptoEcMiddleware).sendCallback","file":"/home/runner/work/launcher/launcher/ee/localserver/krypto-ec-middleware.go","line":136},"msg":"finished callback","launcher_run_id":"01J6VKF35ND11M4MANNKMYCY1Q","keytype":"ec","response_status":"204 No Content","kolide_session_id":"73e7a003-2dc6-4dcf-82ef-759dcc101f83"}

I've also uploaded a flare:

time=2024-09-03T09:43:57.412Z level=INFO source=/home/runner/work/launcher/launcher/cmd/launcher/flare.go:103 msg="flare creation complete" launcher_run_id=01J6VM9TTN41BJP2VXVC3BJKB1 status="flare uploaded successfully" file=2024/09/03/01J6VM9V9ER6B6RB9RT7PMH0H2.zip

PS: I use the Brave browser but shields are down for all of Kolide. It was working before also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant