cant deploy Postgres S3 Backup template

I left variables out of screenshot but all were filled in and I see no feedback of any error when clicking on 'save config'
78 Replies
Percy
Percy13mo ago
Project ID: 948196f9-27d3-44cd-bdd2-e50d7b67c7ef
dwaynemac
dwaynemac13mo ago
948196f9-27d3-44cd-bdd2-e50d7b67c7ef
Brody
Brody13mo ago
please link to the template
Brody
Brody13mo ago
I'm not even seeing a save config button, can you clear cache and try to open the template again?
dwaynemac
dwaynemac13mo ago
clear cache browser you mean? same thing is there a recommended backup template? i thought this was the "official"
Brody
Brody13mo ago
it is the official, there are plenty others that do just as good of a job though I just don't know why you are getting a different UI than me
dwaynemac
dwaynemac13mo ago
i didnt start through the template link
dwaynemac
dwaynemac13mo ago
i did it from the project UI.
No description
Brody
Brody13mo ago
I tried both ways too always got the same UI and never saw the save config button what browser?
dwaynemac
dwaynemac13mo ago
safari when installing from the template link i get a new project created that seems to have worked (at least started deploying)
Brody
Brody13mo ago
that's good
dwaynemac
dwaynemac13mo ago
i was adding it as a service inside another project
Brody
Brody13mo ago
I see
dwaynemac
dwaynemac13mo ago
how do i reference ${{Postgres.DATABASE_URL}} (of the project i wish to backup) if i deploy on a different project?
Brody
Brody13mo ago
you can't, it needs to be in the same let me see if I can reproduce, I haven't tried deploying it into an existing project
Brody
Brody13mo ago
save config, then click deploy
No description
dwaynemac
dwaynemac13mo ago
deploy button doesnt enable
Brody
Brody13mo ago
can you do a full video?
dwaynemac
dwaynemac13mo ago
i'll try mm, i cant doit without revealing credentials
Brody
Brody13mo ago
fair try a different browser?
dwaynemac
dwaynemac13mo ago
does a redline in a variable mean "validation error"?
Brody
Brody13mo ago
show me?
dwaynemac
dwaynemac13mo ago
same thing on Chrome
dwaynemac
dwaynemac13mo ago
red line seems to be a safari thing
Brody
Brody13mo ago
the only way I can get that button to not enable for me is if i don't fill out everything
dwaynemac
dwaynemac13mo ago
is this syntax correct? ${{Postgres.DATABASE_URL}}
Brody
Brody13mo ago
yes
dwaynemac
dwaynemac13mo ago
i tried a different templame, same problem.
Brody
Brody13mo ago
and you have filled out everything the template asks you for?
dwaynemac
dwaynemac13mo ago
here i'm supposed to put a fresh name, right? a new repo will be created on my github for each deploy of the template
No description
dwaynemac
dwaynemac13mo ago
yep oh, i think i found the problem
Brody
Brody13mo ago
I don't know what to tell you, I just can't reproduce this
dwaynemac
dwaynemac13mo ago
but i cant leave it blank i filled in some random data in there and the deploy button enabled
Brody
Brody13mo ago
does the deploy button appear if you did fill it out it is a required field, there is an asterisks
dwaynemac
dwaynemac13mo ago
dwaynemac
dwaynemac13mo ago
previous screenshot was of another template i was testing, this video is from the template linked previously.
Brody
Brody13mo ago
its a required field
dwaynemac
dwaynemac13mo ago
on the video it has no asterisk and the field's hint is ".. IF using ..."
Brody
Brody13mo ago
why does this have an asterisk lol
dwaynemac
dwaynemac13mo ago
it's not supposed to be required
dwaynemac
dwaynemac13mo ago
No description
dwaynemac
dwaynemac13mo ago
that was another template. deleted to avoid confussion
Brody
Brody13mo ago
ah okay this is a bug
dwaynemac
dwaynemac13mo ago
here is the full flow
Brody
Brody13mo ago
@fp non required variable is being treated as a required variable in the beta in-project template deploy flow
dwaynemac
dwaynemac13mo ago
thx
Brody
Brody13mo ago
sorry it took so long to raise, this was confusing me too
dwaynemac
dwaynemac13mo ago
no prob, thank you for the help
Brody
Brody13mo ago
thats a far better name for the problem than what i came up with
Faraz
Faraz13mo ago
I'd guess this will be picked up and fixed early next week.
dwaynemac
dwaynemac13mo ago
ok, thank you should I just try or will this post be updated when de bug is fixed?
Faraz
Faraz13mo ago
We assigned this yesterday but hasn't been picked up yet.
dwaynemac
dwaynemac13mo ago
ok! thx
Faraz
Faraz13mo ago
I'll drop a message here once this is fixed.
dwaynemac
dwaynemac13mo ago
great, i'll wait
jr
jr13mo ago
This is very confusing. Will be fixed tomorrow!
Sang Dang
Sang Dang13mo ago
I am facing exactly the same issue. 😢
ThallesComH
ThallesComH13mo ago
btw you can fill s3 endpoint yourself for now s3.<region>.amazonaws.com example: s3.us-east-1.amazonaws.com
Ayush
Ayush13mo ago
Funily enough i just encountered the same problem... What worked for me was to delete the BACKUP_CRON_SCHEDULE then hitting submit created the service... Weird
dwaynemac
dwaynemac13mo ago
for the time being i'm using: s3.${{AWS_S3_REGION}}.amazonaws.com this didnt work but what did work was AFTER deployment, simply deleting the variable
Faraz
Faraz13mo ago
The core issue here should be fixed now.
dwaynemac
dwaynemac13mo ago
thx
Marco
Marco12mo ago
Hey everyone 👋 I believe I'm encountering somewhat of a similar issue with the same template. When I fill anything in the AWS_S3_ENDPOINT variable, I get a greyed out "Deploy" button and nothing every happens. However, when I leave it blank, it becomes available. I tested this out on both Brave (with and without the blockers enabled) as well as Firefox, on a Linux machine. Let me know if there's anything else I can help you with, and thank you for your work!
No description
No description
Marco
Marco12mo ago
For anyone having the same issue, I believe you can keep this variable empty, create the deployment, cancel it right away, and set it up afterwards 😉
Sang Dang
Sang Dang12mo ago
if I remember correctly, railway dev fixed this issue that s3 endpoint is optional
Marco
Marco12mo ago
I understand that it is optional, but I need to fill it in as I'm using Scaleway S3 instead of Amazon S3; and the deployment of the template is not working when providing anything other than an empty value in that variable. I tested this a week ago, and 5 minutes ago; both had the issue 🙏
Sang Dang
Sang Dang12mo ago
thanks for explain, I'm not sure how the Scaleway S3 work, but this template uses aws SDK under the hood, so I guess I accept only AWS endpoint https://github.com/railwayapp-templates/postgres-s3-backups/blob/main/src/backup.ts
GitHub
postgres-s3-backups/src/backup.ts at main · railwayapp-templates/po...
A simple Node app to automatically backup PostgreSQL databases to an S3 bucket - railwayapp-templates/postgres-s3-backups
ThallesComH
ThallesComH12mo ago
No, it works with other S3 compatible storages, that's seems to be a Railway bug @Brody do you think it's a bug brody?
Brody
Brody12mo ago
I've only used it with cloudflare r2
Marco
Marco12mo ago
Can you reproduce it on your machines? I believe these would be the steps: - create a new service from inside the Railway project (not via "Deploy with Railway button), based on the template "postgresql S3 backups" - fill in all the fields with (fake) data Result: Filling anything in the AWS S3 ENDPOINT variable makes the "deploy" button unclickable Also, the save button doesn't do anything. Expected: The deploy button is available, and the "save config" button creates the service
Brody
Brody12mo ago
you can just leave beta via your account settings, then you'd be back on the old template deploy menu without this issue
Marco
Marco12mo ago
Oh I don't mind the bugs, just wanted to report it in case anyone has the same issue 😉
Brody
Brody12mo ago
my bad, this is definitely a known issue
Oren
Oren12mo ago
this is my slightly modified template https://github.com/orenaksakal/backup-cron-railway one time backup script which you can set to run through railway cronjob to run for cost optimization (almost 0 cost). Also you can name your backups like db name so its easier to distinguish if you hold multiple db backups at the same bucket
GitHub
GitHub - orenaksakal/backup-cron-railway
Contribute to orenaksakal/backup-cron-railway development by creating an account on GitHub.
dwaynemac
dwaynemac12mo ago
great! could you put required ENV vars in the readme?
Oren
Oren12mo ago
added @dwaynemac
Want results from more Discord servers?
Add your server