Alikarami
Alikarami
RRunPod
Created by Alikarami on 3/24/2024 in #⚡|serverless
S3 ENV does not work as described in the Runpod Documention
but get the error locally. so i don't get it
37 replies
RRunPod
Created by Alikarami on 3/24/2024 in #⚡|serverless
S3 ENV does not work as described in the Runpod Documention
an interesting thing i found out now is that when i enter a wrong input to generate a validation error. I don't get a validation error but exactly the same behavior.
37 replies
RRunPod
Created by Alikarami on 3/24/2024 in #⚡|serverless
S3 ENV does not work as described in the Runpod Documention
and this is how i call the start.sh:
# Docker container start script
COPY --chmod=755 start_standalone.sh /start.sh

# Start the container
ENTRYPOINT /start.sh
# Docker container start script
COPY --chmod=755 start_standalone.sh /start.sh

# Start the container
ENTRYPOINT /start.sh
37 replies
RRunPod
Created by Alikarami on 3/24/2024 in #⚡|serverless
S3 ENV does not work as described in the Runpod Documention
i have this in my start.sh
export BUCKET_ENDPOINT_URL
export AWS_S3_REGION
export AWS_S3_ACCESS_KEY_ID
export AWS_S3_SECRET_ACCESS_KEY
export AWS_S3_BUCKET_NAME
export BUCKET_ENDPOINT_URL
export BUCKET_ACCESS_KEY_ID
export BUCKET_SECRET_ACCESS_KEY
export BUCKET_ENDPOINT_URL
export AWS_S3_REGION
export AWS_S3_ACCESS_KEY_ID
export AWS_S3_SECRET_ACCESS_KEY
export AWS_S3_BUCKET_NAME
export BUCKET_ENDPOINT_URL
export BUCKET_ACCESS_KEY_ID
export BUCKET_SECRET_ACCESS_KEY
37 replies
RRunPod
Created by Alikarami on 3/24/2024 in #⚡|serverless
S3 ENV does not work as described in the Runpod Documention
INFO | https://XXXX.s3.eu-central-1.amazonaws.com/ | env1
INFO | https://XXXX.s3.eu-central-1.amazonaws.com/ | env2
INFO | https://XXXX.s3.eu-central-1.amazonaws.com/ | env1
INFO | https://XXXX.s3.eu-central-1.amazonaws.com/ | env2
37 replies
RRunPod
Created by Alikarami on 3/24/2024 in #⚡|serverless
S3 ENV does not work as described in the Runpod Documention
also fyi, it work local on my machine python3 -u rp_handler.py --rp_serve_api
37 replies
RRunPod
Created by Alikarami on 3/24/2024 in #⚡|serverless
S3 ENV does not work as described in the Runpod Documention
still env1 and env2 empty
37 replies
RRunPod
Created by Alikarami on 3/24/2024 in #⚡|serverless
S3 ENV does not work as described in the Runpod Documention
No description
37 replies
RRunPod
Created by Alikarami on 3/24/2024 in #⚡|serverless
S3 ENV does not work as described in the Runpod Documention
so i tested but the problem is still there
37 replies
RRunPod
Created by Alikarami on 3/24/2024 in #⚡|serverless
S3 ENV does not work as described in the Runpod Documention
ok i test it now, yes i always increment the tag 👍
37 replies
RRunPod
Created by Alikarami on 3/24/2024 in #⚡|serverless
S3 ENV does not work as described in the Runpod Documention
its a fork from your runpod-worker-inswapper 😄 so yes its from start-standalon.sh
37 replies
RRunPod
Created by Alikarami on 3/24/2024 in #⚡|serverless
S3 ENV does not work as described in the Runpod Documention
source_image_path = rp_download.download_files_from_urls(
event["id"], [source_image_link]
)[0]
source_image_path = rp_download.download_files_from_urls(
event["id"], [source_image_link]
)[0]
37 replies
RRunPod
Created by Alikarami on 3/24/2024 in #⚡|serverless
S3 ENV does not work as described in the Runpod Documention
yes exactly, unfortunately we needed boto because we generated a presigned url with accesskey, then we used rp-download to download it.
def generate_presigned_url(bucket_name, object_key, expiration=3600):
try:
s3_client = boto3.client('s3', aws_access_key_id=aws_access_key_id, aws_secret_access_key=aws_secret_access_key, region_name=aws_region)
response = s3_client.generate_presigned_url('get_object',
Params={'Bucket': bucket_name,
'Key': object_key},
ExpiresIn=expiration)
except ClientError as e:
logger.info("Error generating presigned URL: ", e)
return {
"error": str(e),
"output": traceback.format_exc(),
"refresh_worker": True,
}
return response
def generate_presigned_url(bucket_name, object_key, expiration=3600):
try:
s3_client = boto3.client('s3', aws_access_key_id=aws_access_key_id, aws_secret_access_key=aws_secret_access_key, region_name=aws_region)
response = s3_client.generate_presigned_url('get_object',
Params={'Bucket': bucket_name,
'Key': object_key},
ExpiresIn=expiration)
except ClientError as e:
logger.info("Error generating presigned URL: ", e)
return {
"error": str(e),
"output": traceback.format_exc(),
"refresh_worker": True,
}
return response
37 replies
RRunPod
Created by Alikarami on 3/24/2024 in #⚡|serverless
S3 ENV does not work as described in the Runpod Documention
i sent you the rp-handler.py, so bascially i need to download first a image from s3 and im doing that with boto3. Boto need the env and thats why its failed
37 replies
RRunPod
Created by Alikarami on 3/24/2024 in #⚡|serverless
S3 ENV does not work as described in the Runpod Documention
but you can see down there my env's are empty and rest of code will not work
37 replies
RRunPod
Created by Alikarami on 3/24/2024 in #⚡|serverless
S3 ENV does not work as described in the Runpod Documention
so basically Bad Request 400
37 replies
RRunPod
Created by Alikarami on 3/24/2024 in #⚡|serverless
S3 ENV does not work as described in the Runpod Documention
No description
37 replies
RRunPod
Created by Alikarami on 3/24/2024 in #⚡|serverless
S3 ENV does not work as described in the Runpod Documention
no python
37 replies
RRunPod
Created by Alikarami on 3/24/2024 in #⚡|serverless
S3 ENV does not work as described in the Runpod Documention
logger.info("env1", os.environ["BUCKET_ENDPOINT_URL"])
logger.info("env1", os.environ["BUCKET_ENDPOINT_URL"])
37 replies
RRunPod
Created by Alikarami on 3/24/2024 in #⚡|serverless
S3 ENV does not work as described in the Runpod Documention
I have not defined it in handler, I have only defined it in template before deploy. i only wrote this logger for testing to see if it works. but it is empty string
37 replies