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

Worker no tofu token but not in correct session state #2378

Closed
acodemics opened this issue Aug 18, 2022 · 3 comments · Fixed by #2369
Closed

Worker no tofu token but not in correct session state #2378

acodemics opened this issue Aug 18, 2022 · 3 comments · Fixed by #2369
Assignees

Comments

@acodemics
Copy link

Hi everyone,

I recently upgraded our systems to Boundary 0.10.1 and now our worker shows these error messages when trying to access proxied services.

It seems like the first connection to a target works but the subsequent connections (e.g. downloading website resources fails).

image

Trying to download resources individually works.

{"id":"LFmO3Z1vwy","source":"https://hashicorp.com/boundary/bastion/worker","specversion":"1.0","type":"system","data":{"version":"v0.1","op":"worker.(Worker).startAuthRotationTicking","data":{"msg":"using kms worker authentication; pki auth rotation ticking not running"}},"datacontentype":"application/cloudevents","time":"2022-08-18T15:31:09.793865506Z"}
{"id":"SoNiJ9jLUf","source":"https://hashicorp.com/boundary/bastion/worker","specversion":"1.0","type":"system","data":{"version":"v0.1","op":"worker.(Worker).controllerDialerFunc","data":{"msg":"worker has successfully authenticated"}},"datacontentype":"application/cloudevents","time":"2022-08-18T15:31:09.8039452Z"}
{"id":"ENtVNtpwn5","source":"https://hashicorp.com/boundary/bastion/worker","specversion":"1.0","type":"system","data":{"version":"v0.1","op":"worker.(Worker).sendWorkerStatus","data":{"msg":"Upstreams after first status set to: [127.0.0.1:9201]"}},"datacontentype":"application/cloudevents","time":"2022-08-18T15:31:09.819869155Z"}
{"id":"CrbzT0lt1j","source":"https://hashicorp.com/boundary/bastion/worker","specversion":"1.0","type":"system","data":{"version":"v0.1","op":"worker.(Worker).handleProxy","data":{"msg":"session successfully activated","session_id":"s_UtyZ81jhuB"}},"datacontentype":"application/cloudevents","time":"2022-08-18T15:32:04.557635761Z"}
{"id":"YYapu81WI9","source":"https://hashicorp.com/boundary/bastion/worker","specversion":"1.0","type":"system","data":{"version":"v0.1","op":"worker.(Worker).handleProxy","data":{"connection_id":"sc_FdsiXEbIzy","msg":"connection successfully authorized","session_id":"s_UtyZ81jhuB"}},"datacontentype":"application/cloudevents","time":"2022-08-18T15:32:04.566216109Z"}
{"id":"1QOuifbL2Y","source":"https://hashicorp.com/boundary/bastion/worker","specversion":"1.0","type":"error","data":{"error":"no tofu token but not in correct session state","error_fields":{},"id":"e_mbGbXC3574","version":"v0.1","op":"worker.(Worker).handleProxy","info":{"session_id":"s_UtyZ81jhuB"}},"datacontentype":"application/cloudevents","time":"2022-08-18T15:32:05.908585813Z"}
{"id":"1YaRSw19WJ","source":"https://hashicorp.com/boundary/bastion/worker","specversion":"1.0","type":"error","data":{"error":"no tofu token but not in correct session state","error_fields":{},"id":"e_EwCNr4zJkD","version":"v0.1","op":"worker.(Worker).handleProxy","info":{"session_id":"s_UtyZ81jhuB"}},"datacontentype":"application/cloudevents","time":"2022-08-18T15:32:06.132326783Z"}
{"id":"ZANC6Mepry","source":"https://hashicorp.com/boundary/bastion/worker","specversion":"1.0","type":"error","data":{"error":"no tofu token but not in correct session state","error_fields":{},"id":"e_ViTjNziTSQ","version":"v0.1","op":"worker.(Worker).handleProxy","info":{"session_id":"s_UtyZ81jhuB"}},"datacontentype":"application/cloudevents","time":"2022-08-18T15:32:06.355358114Z"}
{"id":"Sv7mwm9DsC","source":"https://hashicorp.com/boundary/bastion/worker","specversion":"1.0","type":"error","data":{"error":"no tofu token but not in correct session state","error_fields":{},"id":"e_KmVZE05OID","version":"v0.1","op":"worker.(Worker).handleProxy","info":{"session_id":"s_UtyZ81jhuB"}},"datacontentype":"application/cloudevents","time":"2022-08-18T15:32:06.593064996Z"}
{"id":"hHFXdmHmdk","source":"https://hashicorp.com/boundary/bastion/worker","specversion":"1.0","type":"error","data":{"error":"no tofu token but not in correct session state","error_fields":{},"id":"e_zLZq4xWtvc","version":"v0.1","op":"worker.(Worker).handleProxy","info":{"session_id":"s_UtyZ81jhuB"}},"datacontentype":"application/cloudevents","time":"2022-08-18T15:32:06.818712054Z"}

We didn't change anything in our server or worker hcl files, in fact they pretty much follow exactly the example configuration files from the tutorial pages.

We run a single controller and a single worker and reverting back to 0.9.1 works as expected.

@irenarindos
Copy link
Collaborator

@acodemics thank you so much for reporting this! This looks like a match to #2362 and we are actively working on a fix.

@acodemics
Copy link
Author

Thanks for the quick response!

I saw that error and wasn't sure if it was the same as we are getting different logs. It's there if it helps at least :)

@irenarindos irenarindos self-assigned this Aug 18, 2022
@jefferai
Copy link
Member

Yep -- it's the same error, just what's written to observations vs. what's returned to the user!

Duplicate of #2362 -- closing as such!

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

Successfully merging a pull request may close this issue.

3 participants