OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

Fix s3 bucket reference

Open chuckbutkus opened this issue 1 year ago • 5 comments

The FILE_STORE_PATH is always set and if S3 is the FILE_STORE type then FILE_STORE_PATH will have the S3 bucket name. There is no need for a separate S3 bucket variable.

chuckbutkus avatar Dec 27 '24 16:12 chuckbutkus

Hmm it feels weird to reuse FILE_STORE_PATH for a bucket name. Is there another way to fix the issue here?

rbren avatar Dec 27 '24 16:12 rbren

If we rename the setting, it affects user installations, it invalidates what they set. I'm not sure about this, sorry. It's alleviated by the fact that docker app users only use it since recently, but on the other hand it broke, and it would break again. 🤔

It seems with this solution, we still use a AWS_S3_BUCKET var, and a FILE_STORE_BUCKET var as well?

enyst avatar Dec 29 '24 03:12 enyst

TBH I don't think anyone is using ~~this~~ the S3 integration, and I'm ok with breaking changes in 0.x. We'll document it in the changelog

@chuckbutkus can you fill out the normal PR template so we have a changelog entry?

rbren avatar Dec 30 '24 14:12 rbren

Oh actually I do think FILE_STORE_PATH is used frequently--that'd be good to keep backward-compat

rbren avatar Dec 30 '24 14:12 rbren

@chuckbutkus is this still something we want to pursue?

mamoodi avatar Jan 14 '25 14:01 mamoodi

@mamoodi, yes, these changes are needed for OH to work on AWS. I just didn't get a chance to test them before I was pulled in another direction. I'm back on the AWS deploy now so I'll be testing shortly.

chuckbutkus avatar Jan 16 '25 03:01 chuckbutkus

@mamoodi @rbren, I've created a new PR for these changes (https://github.com/All-Hands-AI/OpenHands/pull/6299) as this one was far enough behind the main branch that merging in main was causing problems. I'll close this one.

chuckbutkus avatar Jan 16 '25 04:01 chuckbutkus

These changes have been moved to: https://github.com/All-Hands-AI/OpenHands/pull/6299

chuckbutkus avatar Jan 16 '25 04:01 chuckbutkus