umami deployment fails since migration of railway

Hi there, I hope you can help me. I am not too well with backend (database, docker, etc) programming, so please bear with me. Last year I successfully installed Umami in my Railway following a tutorial (I think it was even from Umami). For that I forked the Umami Github repo and then added that to Railway. All worked perfectly fine until recently where I had to migrate Railway. There was the email that forced users to do so. Now I always get the deployment error: "Deployment Failed during build process" Part of the Error log is this
38 Replies
Percy
Percy5mo ago
Project ID: f69ed491-9de6-4489-bd1f-1e0b106b6c4f
mark2mark
mark2mark5mo ago
Project ID: f69ed491-9de6-4489-bd1f-1e0b106b6c4f
mark2mark
mark2mark5mo ago
here is the complete log:
Brody
Brody5mo ago
getting you up to date would be a very involved process and would honestly be quite challenging to work through over text with someone who is not well versed in this kind of thing, so instead, if you want to add me to your project I would be happy to do my best to get you up and running again.
mark2mark
mark2mark5mo ago
amazing. Thanks for the offer. How could I do that, to add you there?
Brody
Brody5mo ago
you would want to add me as a project member with edit permissions, my email is brodyover@gmail.com
mark2mark
mark2mark5mo ago
thanks a lot. Will do in the morning if that’s okay 🙏
Brody
Brody5mo ago
good with me just checking back in, did you still need help on this?
mark2mark
mark2mark5mo ago
Hi Brody, thanks for checking back. I will try to set it up from scratch first now, instead of attempting to fix the broken setup. I started to hesitate to invite other users into my account, nothing personal, just because I am not too versatile with how railway works.
Brody
Brody5mo ago
fair enough, keep in mind deploying from scratch will start you off with a brand new umami install without any of your domains or analytics
mark2mark
mark2mark5mo ago
Thanks. I am trying to add it in my same environment, where I got my postgres database, thought i can couple that to the new deployment.
Brody
Brody5mo ago
that could further complicate things
mark2mark
mark2mark5mo ago
yeah, I already said goodbye to my former analytics. This railway-umami-github setup is kinda sketchy and unstable, I find. there are no good tutorials out there and the guide from the umami page changes frequently
Brody
Brody5mo ago
i agree, thats why i own the template now, so that it can deploy from an image
mark2mark
mark2mark5mo ago
which template?
Brody
Brody5mo ago
umami
mark2mark
mark2mark5mo ago
ah currently I am getting an always crashing deployment, even in a fresh install from the Github fork in a new project ... starting to think about ditching umami. it worked so well the first time i set everything up.
Brody
Brody5mo ago
my offer to fix that is still open you would want to deploy the template though, not your github repo
mark2mark
mark2mark5mo ago
I see. Thanks for your kind offer, I really appreciate it. But I am not so comfortable with inviting people I don’t know into it. the github repo is a fork from umami, and the guide from umami claims that this is a way (even the "easiest".)
Brody
Brody5mo ago
it is far from easiest, that is very outdated, please deploy the umami template, you can throw away the github repo when I say umami template, do you know what that means?
mark2mark
mark2mark5mo ago
no, don’t know which template you refer to exactly 🙂
Brody
Brody5mo ago
oh, then you really are trying to deploy umami the hard way, just deploy this https://railway.app/template/umami-analytics
mark2mark
mark2mark5mo ago
Oh, will try it out now and dig through the process. Thank you so much for all your help and also for staying with me here (I am trying to fix Umami in my after hours between work and sleep, so my responding is a little delayed). Much appreciate your time!
Brody
Brody5mo ago
happy to help there shouldn't be much of a process with that template, just a few clicks and you will have a fully working umami service!
mark2mark
mark2mark5mo ago
true, looks like it. I was reading your instructions, where it says: "log in and change the default password", where would that be? when i open the public networking url, it says "Nothing here yet" umami-production-....up.railway.app oh wait now I get the login ... for the postgres database, the following variables are yet unset: PGHOST PGPORT is that supposed to be like that?
Brody
Brody5mo ago
yes it's supposed to be like that, please read the templates overview reason being, railways proxy takes about a minute to register the routes for newly added domains
mark2mark
mark2mark5mo ago
yeah, I read it. there is nothing stated about these 2 🙂 I see. I’ll check later then, if the data arrives. so far generally it looks good 🙂 clean and tidy Umami interface One more question, not needing the full description, just curios if it is possible at all to merge the data from my former postgres db into this one?
Brody
Brody5mo ago
that's is true, but the notes state that the database is not publicly exposed, so that means the variables used to connect to the database publicly are going of course be empty yeah very possible, you would need to dump the old database and restore it to your new database
mark2mark
mark2mark5mo ago
I see, makes sense. (didn’t know what the vars are for, now I know. thanks a lot) Many many thanks, Brody!
Brody
Brody5mo ago
happy to help
mark2mark
mark2mark5mo ago
Much much appreciated! 🫶 will report back how it goes, expecting to wait a little until I can see myself as the one live visitor in umami 😄
Brody
Brody5mo ago
sounds good!
mark2mark
mark2mark5mo ago
how long does it usually take until I can see some action in Umami, when I am clicking around on the specified domain, after having deployed from your template?
mark2mark
mark2mark5mo ago
when I check the data for the database, it still shows this
No description
mark2mark
mark2mark5mo ago
but they are all configured already from your template
Brody
Brody5mo ago
they are not configured by the template, please do not use the data tab are you sure your frontend is sending analytics to the new umami deployment?
mark2mark
mark2mark5mo ago
ah, I think I oversaw that bit. oh dear. sorry for my sillyness That was it. Updated the tracking code and now it works again. Thank you so so much for your help and this nice template. Will dig into dumping my old db and trying to get that into the new one soon. I really appreciate your help, Brody! Have a nice weekend.
Brody
Brody5mo ago
happy to help, have a nice weekend as well!