S3 database backup upload failure

Project ID: 23ed6b6a-6136-418a-97cc-5a45a9a559ba Using the template here (https://github.com/railwayapp-templates/postgres-s3-backups), I suppose I have the environment variables messed up. The job works great until the upload. I get the following error:
postgres.railway.internal:5432 - accepting connections
pg_dump (PostgreSQL) 16.3
NodeJS Version: v20.11.1
Backup cron scheduled...
Initiating DB backup...
Dumping DB to file...
container event container died
Backup archive file is valid
Backup filesize: 62.84 MB
DB dumped to file...
Uploading backup to S3...
Using custom endpoint: https://[REDACTED].up.railway.app:443

Error while running backup: Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: Host: [REDACTED].up.railway.app. is not in the cert's altnames: DNS:*.up.railway.app
postgres.railway.internal:5432 - accepting connections
pg_dump (PostgreSQL) 16.3
NodeJS Version: v20.11.1
Backup cron scheduled...
Initiating DB backup...
Dumping DB to file...
container event container died
Backup archive file is valid
Backup filesize: 62.84 MB
DB dumped to file...
Uploading backup to S3...
Using custom endpoint: https://[REDACTED].up.railway.app:443

Error while running backup: Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: Host: [REDACTED].up.railway.app. is not in the cert's altnames: DNS:*.up.railway.app
Any ideas? I can share env vars if needed. I am uploading over S3 protocol to a MinIO bucket hosted in the same Railway project
5 Replies
Percy
Percy5mo ago
Project ID: 23ed6b6a-6136-418a-97cc-5a45a9a559ba
Brody
Brody5mo ago
why is the custom endpoint a *.up.railway.app domain?
bc 🐧🪺
bc 🐧🪺OP5mo ago
The bucket is hosted there, automatically from using the MinIO template. bucket-....up.railway.app
Brody
Brody5mo ago
you should be using the private network
bc 🐧🪺
bc 🐧🪺OP5mo ago
Okay, I switched AWS_S3_ENDPOINT to use the private endpoint and will give it a shot
Want results from more Discord servers?
Add your server