delta-rs icon indicating copy to clipboard operation
delta-rs copied to clipboard

S3 object store always returns IMDS warnings

Open ion-elgreco opened this issue 1 year ago • 4 comments

When using the S3 Object store, it will still try to use the IMDS provider by default, only when setting an environment variable AWS_EC2_METADATA_DISABLED, it's not throwing the warnings anymore.

[2024-04-24T07:55:28Z WARN  aws_config::imds::region] failed to load region from IMDS err=failed to load IMDS session token: dispatch failure: io error: error trying to connect: tcp connect error: No route to host (os error 113): tcp connect error: No route to host (os error 113): No route to host (os error 113) (FailedToLoadToken(FailedToLoadToken { source: DispatchFailure(DispatchFailure { source: ConnectorError { kind: Io, source: hyper::Error(Connect, ConnectError("tcp connect error", Os { code: 113, kind: HostUnreachable, message: "No route to host" })), connection: Unknown } }) }))
[2024-04-24T07:55:29Z WARN  aws_config::imds::region] failed to load region from IMDS err=failed to load IMDS session token: dispatch failure: timeout: error trying to connect: HTTP connect timeout occurred after 1s: HTTP connect timeout occurred after 1s: timed out (FailedToLoadToken(FailedToLoadToken { source: DispatchFailure(DispatchFailure { source: ConnectorError { kind: Timeout, source: hyper::Error(Connect, HttpTimeoutError { kind: "HTTP connect", duration: 1s }), connection: Unknown } }) }))

@mightyshazam created an issue, so we can track this

ion-elgreco avatar Apr 28 '24 12:04 ion-elgreco

@ion-elgreco I assume this is manifesting when using the S3 backend outside of the AWS environment?

rtyler avatar May 07 '24 14:05 rtyler

@ion-elgreco I assume this is manifesting when using the S3 backend outside of the AWS environment?

Yup! With custom S3 endpoints

ion-elgreco avatar May 07 '24 14:05 ion-elgreco

@rtyler actually, also with just aws S3. Forgot that I was seeing that when @mightyshazam and I were chatting about it

ion-elgreco avatar May 07 '24 14:05 ion-elgreco

We were debugging it over Slack. We were both running the same code via command line and notebooks, but I wasn't seeing the error while Ion was. Ion's coworkers were also seeing it. We even accounted for potentially different environment variables, but that had no effect. I need more sample data to reproduce it.

mightyshazam avatar May 07 '24 14:05 mightyshazam