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

rds: Cannot invoke software.amazon.rds.common.logging.RequestLogger.log because requestLogger is null #33420

Closed
1 task
daviddphillips opened this issue Feb 12, 2025 · 3 comments
Labels
@aws-cdk/aws-rds Related to Amazon Relational Database bug This issue is a bug. effort/medium Medium work item – several days of effort p3 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@daviddphillips
Copy link

daviddphillips commented Feb 12, 2025

Describe the bug

I am adding a Parameter Group to a DatabaseCluster, and when applying the update via CloudFormation, it returns this error consistently:

XXXX | 11:27:10 AM | CREATE_FAILED | AWS::RDS::DBClusterParameterGroup | XXXX-paramGroup (XXXparamGroup0D48FB1E) Resource handler returned message: "Cannot invoke "software.amazon.rds.common.logging.RequestLogger.log(String, String)" because "this.requestLogger" is null" (RequestToken: 0df7d926-3387-b835-eb02-afc2e4d412a6, HandlerErrorCode: InternalFailure)

❌ XXXX failed: Error: The stack named XXX failed to deploy: UPDATE_ROLLBACK_COMPLETE: Resource handler returned message: "Cannot invoke "software.amazon.rds.common.logging.RequestLogger.log(String, String)" because "this.requestLogger" is null" (RequestToken: 0df7d926-3387-b835-eb02-afc2e4d412a6, HandlerErrorCode: InternalFailure)

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Version

No response

Expected Behavior

I expect this change to be applied without error

Current Behavior

Fails to deploy stack

Reproduction Steps

.

Possible Solution

This Class/Method is not part of the client side CDK, but somewhere within AWS infrastructure:

software.amazon.rds.common.logging.RequestLogger.log(String, String)

Additional Information/Context

No response

CDK CLI Version

2.178.1

Framework Version

No response

Node.js Version

22

OS

Linux

Language

Java

Language Version

Java21

Other information

No response

@daviddphillips daviddphillips added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Feb 12, 2025
@github-actions github-actions bot added the @aws-cdk/aws-rds Related to Amazon Relational Database label Feb 12, 2025
@daviddphillips daviddphillips changed the title cdk-rds: Cannot invoke "software.amazon.rds.common.logging.RequestLogger.log(String, String)" because "this.requestLogger" is null cdk-rds: Cannot invoke software.amazon.rds.common.logging.RequestLogger.log because requestLogger is null Feb 12, 2025
@pahud
Copy link
Contributor

pahud commented Feb 12, 2025

Hi,

Can you share your Reproduction Steps with code snippets?

@pahud pahud added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. p3 effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Feb 12, 2025
@pahud pahud changed the title cdk-rds: Cannot invoke software.amazon.rds.common.logging.RequestLogger.log because requestLogger is null rds: Cannot invoke software.amazon.rds.common.logging.RequestLogger.log because requestLogger is null Feb 12, 2025
@daviddphillips
Copy link
Author

I previously had a DatabaseCluster deployed, and am now adding this ParameterGroup:

IClusterEngine e = DatabaseClusterEngine.auroraMysql(AuroraMysqlClusterEngineProps.builder()
                .version(AuroraMysqlEngineVersion.VER_3_08_0)
                .build());

        var pg = ParameterGroup.Builder.create(this, n("paramGroup"))
                .name(n("ParamGroup"))
                .parameters(Map.of("require_seccure_transport", "ON"))
                .engine(e)
                .build();

DatabaseCluster.Builder.create(this, "dbcluster"))
                .parameterGroup(pg)
                .engine(e)
                 ....

I saw the mistake when I pasted it here... the name of the parameter is incorrect:
require_seccure_transport

Copy link

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
@aws-cdk/aws-rds Related to Amazon Relational Database bug This issue is a bug. effort/medium Medium work item – several days of effort p3 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Projects
None yet
Development

No branches or pull requests

2 participants