The Access Key Id you provided does not exist in our records. #8701

Closed
opened 2026-02-21 18:27:06 -05:00 by yindo · 3 comments
Owner

Originally created by @lordk911 on GitHub (Feb 27, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • 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

Image

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

Originally created by @lordk911 on GitHub (Feb 27, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] 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 ![Image](https://github.com/user-attachments/assets/87fc5ed4-2958-4a99-86f7-676124d7a4fe) ``` 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_
yindo added the outdated label 2026-02-21 18:27:06 -05:00
yindo closed this issue 2026-02-21 18:27:06 -05:00
Author
Owner

@crazywoola commented on GitHub (Feb 27, 2025):

This 0.10.2 is an outdated version. I suggest you upgrading to the latest one.

@crazywoola commented on GitHub (Feb 27, 2025): This `0.10.2` is an outdated version. I suggest you upgrading to the latest one.
Author
Owner

@dosubot[bot] commented on GitHub (Feb 27, 2025):

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:

  1. 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.

  2. 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].

  3. Environment Variables: If you are using environment variables to set these credentials, double-check that they are correctly set and accessible by the application.

  4. IAM Permissions: Ensure that the IAM user associated with the Access Key Id has the necessary permissions to access the S3 bucket.

  5. 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.

  6. 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.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Feb 27, 2025): <!-- Answer --> 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: 1. **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. 2. **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 <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/extensions/storage/aws_s3_storage.py)</sup>. 3. **Environment Variables**: If you are using environment variables to set these credentials, double-check that they are correctly set and accessible by the application. 4. **IAM Permissions**: Ensure that the IAM user associated with the Access Key Id has the necessary permissions to access the S3 bucket. 5. **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. 6. **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. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/724eb002-09da-4f90-a67d-fd7ce16d2163?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/724eb002-09da-4f90-a67d-fd7ce16d2163?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/724eb002-09da-4f90-a67d-fd7ce16d2163?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/724eb002-09da-4f90-a67d-fd7ce16d2163?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/724eb002-09da-4f90-a67d-fd7ce16d2163?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/724eb002-09da-4f90-a67d-fd7ce16d2163?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/724eb002-09da-4f90-a67d-fd7ce16d2163?feedback_type=other)</sup>
Author
Owner

@lordk911 commented on GitHub (Feb 27, 2025):

The acckey is expired

@lordk911 commented on GitHub (Feb 27, 2025): The acckey is expired
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8701