Assistance Required with Strapi Backup Plugin Configuration
aronaldo9
HOBBYOP

a year ago

Hello,

I am experiencing issues with configuring the backup plugin for my Strapi project hosted on Railway. Despite having set the necessary environment variables in my .env file, I am receiving an "undefined" error for the AWS_REGION variable when the backup plugin attempts to use it.

Here are the relevant details:

I have confirmed that AWSREGION, AWSACCESSKEYID, and AWSACCESSSECRET are correctly defined in my environment variables.
The following log confirms that the AWS_REGION variable is available during execution:

Variables de entorno disponibles: { AWSREGION=eu-west-1 AWSBUCKETNAME=joyeriarosant-strapi, etc } My plugins.js configuration for the backup plugin is as follows: javascript Copiar código backup: { enabled: true, config: { storageService: "aws-s3", awsAccessKeyId: env("AWSACCESSKEYID"),
awsSecretAccessKey: env("AWSACCESSSECRET"),
awsRegion: env("AWSREGION"), awsS3Bucket: env("AWSBUCKETNAME"), cronSchedule: env("BACKUPCRON", "0 0 * * *"),
retentionDays: env("BACKUPRETENTIONDAYS", 7),
},
},
I have also added logs to verify that the environment variables are being loaded correctly, but I still encounter the error.

Could you please assist me in troubleshooting this issue? Thank you!

Best regards,
Aaron

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Closed

9 Replies

a year ago

You have not deployed the changes.

Attachments


aronaldo9
HOBBYOP

a year ago

Hi Railway Support Team,

Thank you for your response regarding the deployment issue I’m facing.

I have made sure to configure the necessary AWS environment variables (AWS_ACCESS_KEY_ID, AWS_ACCESS_SECRET, AWS_REGION, AWS_BUCKET_NAME, etc.) in Railway. However, despite my efforts, I'm still encountering errors related to these variables during deployment.

I noticed that the new values for AWS_BUCKET_NAME and AWS_REGION show as filled under "new value" but are empty under "current value." This suggests that while I've attempted to recreate them to resolve the issue, the deployment is still not recognizing these variables correctly.

I would appreciate any guidance on how to ensure these variables are deployed correctly or if there are any additional steps I should take.

Thank you for your assistance!

Best regards,
Aaron

Attachments


a year ago

Again, you have not deployed the changes, may I ask what is preventing you from deploying the changes?


aronaldo9
HOBBYOP

a year ago

Thank you for your assistance. I have attempted to deploy the changes, but I am encountering the following error in the logs:

Error regarding backup config: “undefined“ is not a valid strapi-plugin-backup config “awsRegion“ value.

It seems that the awsRegion variable is being recognized as undefined during the deployment, which is preventing the Strapi server from starting properly. I have checked my plugins.js configuration, and I believe the environment variables are set correctly.

Could you please provide guidance on how I can resolve this issue and successfully deploy the changes?

Thank you for your help.

Best regards,
Aaron


a year ago

Again, you have not deployed the changes, please go ahead and do that.


aronaldo9
HOBBYOP

a year ago

Hello,

Thank you for your continued assistance. I would like to clarify my situation regarding the deployment issue.

I have attempted to deploy the changes multiple times, but the deployment fails due to the following error in the logs:
Error regarding backup config: “undefined“ is not a valid strapi-plugin-backup config “awsRegion“ value.

This indicates that the awsRegion variable is not being recognized correctly during the deployment process, preventing the Strapi server from starting properly. I have checked my plugins.js file and my environment variables to ensure they are set correctly, but the issue persists.

Since I have been unable to connect both PostgreSQL and MySQL databases for storing my Strapi API data, I am relying on the backup plugin as a workaround to ensure my data is saved securely.

Could you please provide specific guidance on how I can resolve the error related to the awsRegion variable? Your help would be greatly appreciated, as I am eager to get my project up and running.

Thank you very much for your support.

Best regards,
Aaron


a year ago

I'm not really sure why you are saying you have deployed the changes when I can see you have not, please help me to understand why you have not deployed the changes, yet continue to say that you have.


aronaldo9
HOBBYOP

a year ago

Thank you for your response. I apologize for any confusion regarding the deployment status.

To clarify, I have attempted to deploy the changes multiple times, but each time the deployment fails due to an error related to the awsRegion variable not being defined properly in my backup plugin configuration. This error prevents the Strapi server from starting, which is why I believe I have not been able to successfully deploy the changes.

I would greatly appreciate your guidance on how to resolve this issue. If there are specific steps you recommend to ensure the changes are deployed correctly, please let me know.

Thank you for your assistance.

Best regards,
Aaron


a year ago

Going to close this out as you are continually sending AI generated responses instead of taking into account what I'm saying.

Please re-open when you are ready to write to us yourself.


Status changed to Closed brody over 1 year ago


Loading...