Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
5 tasks done
lordk911 opened this issue Feb 27, 2025 · 3 comments
Closed
5 tasks done

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

lordk911 opened this issue Feb 27, 2025 · 3 comments
Labels
outdated version smaller than 0.13.2 pendding Need more information to proceed

Comments

@lordk911
Copy link

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

@crazywoola crazywoola added the outdated version smaller than 0.13.2 label Feb 27, 2025
@dosubot dosubot bot added the 🐞 bug Something isn't working label Feb 27, 2025
@crazywoola
Copy link
Member

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

Copy link

dosubot bot commented 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

@crazywoola crazywoola added pendding Need more information to proceed and removed 🐞 bug Something isn't working labels Feb 27, 2025
@lordk911
Copy link
Author

The acckey is expired

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
outdated version smaller than 0.13.2 pendding Need more information to proceed
Projects
None yet
Development

No branches or pull requests

2 participants