You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
Please do not modify this template :) and fill in all the required fields.
Dify version
0.10.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
2025-02-27 09:55:04,189.189 ERROR [Dummy-76] [app.py:838] - Exception on /console/api/workspaces/current/default-model [GET]
Traceback (most recent call last):
File "/app/api/.venv/lib/python3.10/site-packages/flask/app.py", line 880, in full_dispatch_request
rv = self.dispatch_request()
File "/app/api/.venv/lib/python3.10/site-packages/flask/app.py", line 865, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
File "/app/api/.venv/lib/python3.10/site-packages/flask_restful/__init__.py", line 489, in wrapper
resp = resource(*args, **kwargs)
File "/app/api/.venv/lib/python3.10/site-packages/flask/views.py", line 110, in view
return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return]
File "/app/api/.venv/lib/python3.10/site-packages/flask_restful/__init__.py", line 604, in dispatch_request
resp = meth(*args, **kwargs)
File "/app/api/controllers/console/setup.py", line 65, in decorated
return view(*args, **kwargs)
File "/app/api/libs/login.py", line 92, in decorated_view
return current_app.ensure_sync(func)(*args, **kwargs)
File "/app/api/controllers/console/wraps.py", line 22, in decorated
return view(*args, **kwargs)
File "/app/api/controllers/console/workspace/models.py", line 37, in get
default_model_entity = model_provider_service.get_default_model_of_model_type(
File "/app/api/services/model_provider_service.py", line 376, in get_default_model_of_model_type
result = self.provider_manager.get_default_model(tenant_id=tenant_id, model_type=model_type_enum)
File "/app/api/core/provider_manager.py", line 238, in get_default_model
provider_configurations = self.get_configurations(tenant_id)
File "/app/api/core/provider_manager.py", line 131, in get_configurations
custom_configuration = self._to_custom_configuration(
File "/app/api/core/provider_manager.py", line 632, in _to_custom_configuration
self.decoding_rsa_key, self.decoding_cipher_rsa = encrypter.get_decrypt_decoding(tenant_id)
File "/app/api/core/helper/encrypter.py", line 35, in get_decrypt_decoding
return rsa.get_decrypt_decoding(tenant_id)
File "/app/api/libs/rsa.py", line 55, in get_decrypt_decoding
private_key = storage.load(filepath)
File "/app/api/extensions/ext_storage.py", line 84, in load
raise e
File "/app/api/extensions/ext_storage.py", line 81, in load
return self.load_once(filename)
File "/app/api/extensions/ext_storage.py", line 91, in load_once
raise e
File "/app/api/extensions/ext_storage.py", line 88, in load_once
return self.storage_runner.load_once(filename)
File "/app/api/extensions/storage/aws_s3_storage.py", line 56, in load_once
data = self.client.get_object(Bucket=self.bucket_name, Key=filename)["Body"].read()
File "/app/api/.venv/lib/python3.10/site-packages/botocore/client.py", line 569, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/app/api/.venv/lib/python3.10/site-packages/botocore/client.py", line 1023, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidAccessKeyId) when calling the GetObject operation: The Access Key Id you provided does not exist in our records.
I don't know what was wrong.
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
The text was updated successfully, but these errors were encountered:
The error message "The Access Key Id you provided does not exist in our records" indicates that the AWS S3 client is using an invalid or incorrect Access Key Id for authentication. Here are some steps you can take to resolve this issue:
Verify AWS Credentials: Ensure that the S3_ACCESS_KEY and S3_SECRET_KEY in your configuration are correct. These should match the credentials provided by AWS for your account.
Check Configuration: Make sure that the dify_config module is correctly set up to use these credentials. If S3_USE_AWS_MANAGED_IAM is set to False, the aws_access_key_id and aws_secret_access_key should be explicitly provided in the configuration [1].
Environment Variables: If you are using environment variables to set these credentials, double-check that they are correctly set and accessible by the application.
IAM Permissions: Ensure that the IAM user associated with the Access Key Id has the necessary permissions to access the S3 bucket.
AWS Region and Endpoint: Verify that the S3_REGION and S3_ENDPOINT are correctly configured to match the region and endpoint of your S3 bucket.
Check for Typos: Double-check for any typos or incorrect values in the configuration files or environment variables.
By following these steps, you should be able to identify and correct the issue with the Access Key Id. If the problem persists, consider regenerating the AWS credentials and updating your configuration accordingly.
Self Checks
Dify version
0.10.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
I don't know what was wrong.
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
The text was updated successfully, but these errors were encountered: