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
Project ID:
f69ed491-9de6-4489-bd1f-1e0b106b6c4f
Project ID: f69ed491-9de6-4489-bd1f-1e0b106b6c4f
here is the complete log:
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.
amazing. Thanks for the offer. How could I do that, to add you there?
you would want to add me as a project member with edit permissions, my email is [email protected]
thanks a lot. Will do in the morning if that’s okay 🙏
good with me
just checking back in, did you still need help on this?
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.
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
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.
that could further complicate things
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
i agree, thats why i own the template now, so that it can deploy from an image
which template?
umami
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.
my offer to fix that is still open
you would want to deploy the template though, not your github repo
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".)
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?
no, don’t know which template you refer to exactly 🙂
oh, then you really are trying to deploy umami the hard way, just deploy this
https://railway.app/template/umami-analytics
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!
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!
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?
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
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?
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
I see, makes sense. (didn’t know what the vars are for, now I know. thanks a lot)
Many many thanks, Brody!
happy to help
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 😄
sounds good!
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?
when I check the data for the database, it still shows this
but they are all configured already from your template
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?
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.
happy to help, have a nice weekend as well!