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
Percy14mo ago
Project ID: 948196f9-27d3-44cd-bdd2-e50d7b67c7ef
dwaynemac
dwaynemacOP14mo ago
948196f9-27d3-44cd-bdd2-e50d7b67c7ef
Brody
Brody14mo ago
please link to the template
Brody
Brody14mo ago
I'm not even seeing a save config button, can you clear cache and try to open the template again?
dwaynemac
dwaynemacOP14mo ago
clear cache browser you mean? same thing is there a recommended backup template? i thought this was the "official"
Brody
Brody14mo 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
dwaynemacOP14mo ago
i didnt start through the template link
dwaynemac
dwaynemacOP14mo ago
i did it from the project UI.
No description
Brody
Brody14mo ago
I tried both ways too always got the same UI and never saw the save config button what browser?
dwaynemac
dwaynemacOP14mo ago
safari when installing from the template link i get a new project created that seems to have worked (at least started deploying)
Brody
Brody14mo ago
that's good
dwaynemac
dwaynemacOP14mo ago
i was adding it as a service inside another project
Brody
Brody14mo ago
I see
dwaynemac
dwaynemacOP14mo ago
how do i reference ${{Postgres.DATABASE_URL}} (of the project i wish to backup) if i deploy on a different project?
Brody
Brody14mo 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
Brody14mo ago
save config, then click deploy
No description
dwaynemac
dwaynemacOP14mo ago
deploy button doesnt enable
Brody
Brody14mo ago
can you do a full video?
dwaynemac
dwaynemacOP14mo ago
i'll try mm, i cant doit without revealing credentials
Brody
Brody14mo ago
fair try a different browser?
dwaynemac
dwaynemacOP14mo ago
does a redline in a variable mean "validation error"?
Brody
Brody14mo ago
show me?
dwaynemac
dwaynemacOP14mo ago
same thing on Chrome
dwaynemac
dwaynemacOP14mo ago
red line seems to be a safari thing
Brody
Brody14mo ago
the only way I can get that button to not enable for me is if i don't fill out everything
dwaynemac
dwaynemacOP14mo ago
is this syntax correct? ${{Postgres.DATABASE_URL}}
Brody
Brody14mo ago
yes
dwaynemac
dwaynemacOP14mo ago
i tried a different templame, same problem.
Brody
Brody14mo ago
and you have filled out everything the template asks you for?
dwaynemac
dwaynemacOP14mo 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
dwaynemacOP14mo ago
yep oh, i think i found the problem
Brody
Brody14mo ago
I don't know what to tell you, I just can't reproduce this
dwaynemac
dwaynemacOP14mo ago
but i cant leave it blank i filled in some random data in there and the deploy button enabled
Brody
Brody14mo ago
does the deploy button appear if you did fill it out it is a required field, there is an asterisks
dwaynemac
dwaynemacOP14mo ago
dwaynemac
dwaynemacOP14mo ago
previous screenshot was of another template i was testing, this video is from the template linked previously.
Brody
Brody14mo ago
its a required field
dwaynemac
dwaynemacOP14mo ago
on the video it has no asterisk and the field's hint is ".. IF using ..."
Brody
Brody14mo ago
why does this have an asterisk lol
dwaynemac
dwaynemacOP14mo ago
it's not supposed to be required
dwaynemac
dwaynemacOP14mo ago
No description
dwaynemac
dwaynemacOP14mo ago
that was another template. deleted to avoid confussion
Brody
Brody14mo ago
ah okay this is a bug
dwaynemac
dwaynemacOP14mo ago
here is the full flow
Brody
Brody14mo ago
@fp non required variable is being treated as a required variable in the beta in-project template deploy flow
dwaynemac
dwaynemacOP14mo ago
thx
Brody
Brody14mo ago
sorry it took so long to raise, this was confusing me too
dwaynemac
dwaynemacOP14mo ago
no prob, thank you for the help
Brody
Brody14mo ago
thats a far better name for the problem than what i came up with
Faraz
Faraz14mo ago
I'd guess this will be picked up and fixed early next week.
dwaynemac
dwaynemacOP14mo ago
ok, thank you should I just try or will this post be updated when de bug is fixed?
Faraz
Faraz14mo ago
We assigned this yesterday but hasn't been picked up yet.
dwaynemac
dwaynemacOP14mo ago
ok! thx
Faraz
Faraz14mo ago
I'll drop a message here once this is fixed.
dwaynemac
dwaynemacOP14mo ago
great, i'll wait
jr
jr14mo ago
This is very confusing. Will be fixed tomorrow!
Sang Dang
Sang Dang14mo ago
I am facing exactly the same issue. 😢
ThallesComH
ThallesComH14mo ago
btw you can fill s3 endpoint yourself for now s3.<region>.amazonaws.com example: s3.us-east-1.amazonaws.com
Ayush
Ayush14mo 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
dwaynemacOP14mo 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
Faraz14mo ago
The core issue here should be fixed now.
dwaynemac
dwaynemacOP14mo ago
thx
Marco
Marco13mo 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
Marco13mo 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 Dang13mo ago
if I remember correctly, railway dev fixed this issue that s3 endpoint is optional
Marco
Marco13mo 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 Dang13mo 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
ThallesComH13mo 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
Brody13mo ago
I've only used it with cloudflare r2
Marco
Marco13mo 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
Brody13mo 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
Marco13mo ago
Oh I don't mind the bugs, just wanted to report it in case anyone has the same issue 😉
Brody
Brody13mo ago
my bad, this is definitely a known issue
Oren
Oren13mo 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
dwaynemacOP13mo ago
great! could you put required ENV vars in the readme?
Oren
Oren13mo ago
added @dwaynemac
Want results from more Discord servers?
Add your server