R
Railway•11mo ago
barnabynagy

Migrate Umami to Railway

I need some help to migrate umami from pikapods to railway @Brody
122 Replies
Percy
Percy•11mo ago
Project ID: N/A
barnabynagy
barnabynagyOP•11mo ago
N/A
Brody
Brody•11mo ago
👋 you have access to adminer on pikapods, so export the database from there, and then we will go from there
barnabynagy
barnabynagyOP•11mo ago
Posted on umami server
No description
barnabynagy
barnabynagyOP•11mo ago
I don't know where that dump function is If this function exist it should be easier
Brody
Brody•11mo ago
within umami's ui?
barnabynagy
barnabynagyOP•11mo ago
No idea That's all I was told
Brody
Brody•11mo ago
dig around in it i cant find anything, i think they meant database dump/restore
barnabynagy
barnabynagyOP•11mo ago
GitHub
Data Export and Import · umami-software umami · Discussion #2159
Data Export and Import At present, my umami is running on a server through docker. I want to migrate it to vercel + supabase, but I have not found the function of data import and export. If there i...
Brody
Brody•11mo ago
yeah where gonna have to do a database export and import
barnabynagy
barnabynagyOP•11mo ago
Ok
barnabynagy
barnabynagyOP•11mo ago
What do I choose here?
No description
Brody
Brody•11mo ago
so export the database from adminer
barnabynagy
barnabynagyOP•11mo ago
This is it Use/drop+create/create?
Brody
Brody•11mo ago
yeah why not its an export, its not like you can break stuff, if you do you just deploy a new umami template
barnabynagy
barnabynagyOP•11mo ago
I used the create option In the file it says it's a dump
Brody
Brody•11mo ago
this is what i used
No description
barnabynagy
barnabynagyOP•11mo ago
Ok, done
Brody
Brody•11mo ago
you got your gzip file in hand?
barnabynagy
barnabynagyOP•11mo ago
yep
Brody
Brody•11mo ago
okay deploy that umami template i linked you, or do you want me to send it again?
barnabynagy
barnabynagyOP•11mo ago
is it not just one?
barnabynagy
barnabynagyOP•11mo ago
No description
Brody
Brody•11mo ago
i have not published this https://railway.app/template/ZiHXd_ you need to deploy it from this think
barnabynagy
barnabynagyOP•11mo ago
Ok
Brody
Brody•11mo ago
the one in your screenshot deploys with postgres, we dont want that
barnabynagy
barnabynagyOP•11mo ago
It asks me to config things
Brody
Brody•11mo ago
yeah just click config and save
barnabynagy
barnabynagyOP•11mo ago
REady
barnabynagy
barnabynagyOP•11mo ago
No description
Brody
Brody•11mo ago
okay let me get caught up, im doing this all myself too
barnabynagy
barnabynagyOP•11mo ago
Ok, I guess let's continue on Monday, I think my brain is dead for today and tomorrow I don't want to use the computer.
Brody
Brody•11mo ago
fair enough
barnabynagy
barnabynagyOP•11mo ago
Talk on Monday
Brody
Brody•11mo ago
sounds good
barnabynagy
barnabynagyOP•11mo ago
Hola Back to business How was your weekend?
Brody
Brody•11mo ago
just woke up, still only on phone for now, but where did we leave off? you had your database dump gzip file from adminer and now you have a new umami deploy on railway right?
barnabynagy
barnabynagyOP•11mo ago
Yes, I think I will do another dump just before I'm ready to import to make sure I have all the data But yeah, I'm ready for the next step 🙂
Brody
Brody•11mo ago
yeah that makes sense, good idea
barnabynagy
barnabynagyOP•11mo ago
No description
Brody
Brody•11mo ago
in preparation for this I have created a Adminer template for railway, go ahead and deploy that into your current project
barnabynagy
barnabynagyOP•11mo ago
Done
No description
Brody
Brody•11mo ago
and now I'd like to not be on a phone for the next steps, I should be on my computer in under 20 minutes, talk soon
barnabynagy
barnabynagyOP•11mo ago
ok Let me know
Brody
Brody•11mo ago
we back
barnabynagy
barnabynagyOP•11mo ago
Cool I'm here
Brody
Brody•11mo ago
we want to remove umami's active deployment
barnabynagy
barnabynagyOP•11mo ago
Sorry I went to lunch break
Brody
Brody•11mo ago
no worries
barnabynagy
barnabynagyOP•11mo ago
Done
No description
Brody
Brody•11mo ago
perfect, open adminer and login to the mysql database Server -> mysql.railway.internal:3306 Username -> MYSQLUSER Password -> MYSQLPASSWORD Database -> MYSQLDATABASE
barnabynagy
barnabynagyOP•11mo ago
No description
Brody
Brody•11mo ago
you would need to use the values of those environment variables
barnabynagy
barnabynagyOP•11mo ago
and where are those?
Brody
Brody•11mo ago
in the variables tab on the mysql service
barnabynagy
barnabynagyOP•11mo ago
ah yeah I'm in
Brody
Brody•11mo ago
click import
barnabynagy
barnabynagyOP•11mo ago
No description
Brody
Brody•11mo ago
import, top left
barnabynagy
barnabynagyOP•11mo ago
yes
Brody
Brody•11mo ago
then choose your gzip dump, and click execute
barnabynagy
barnabynagyOP•11mo ago
No description
Brody
Brody•11mo ago
okay now you can go back to the railway database (in adminer) and send a screenshot how many websites did you have in umami on pikapods
barnabynagy
barnabynagyOP•11mo ago
No description
barnabynagy
barnabynagyOP•11mo ago
1
Brody
Brody•11mo ago
yours says zero, but click it anyway
No description
barnabynagy
barnabynagyOP•11mo ago
No description
Brody
Brody•11mo ago
might have done the export from pikapods wrong, show me the settings you used to do that export please
barnabynagy
barnabynagyOP•11mo ago
No description
Brody
Brody•11mo ago
what is the size of your gziped file?
barnabynagy
barnabynagyOP•11mo ago
No description
barnabynagy
barnabynagyOP•11mo ago
Just downloaded again and see I ripped the filename off of .sql
barnabynagy
barnabynagyOP•11mo ago
This is newly downloaded one
No description
Brody
Brody•11mo ago
try to import that into the railway database again
barnabynagy
barnabynagyOP•11mo ago
Don't we need to clean the database off of the first import first?
Brody
Brody•11mo ago
shouldn't need to
barnabynagy
barnabynagyOP•11mo ago
ok Negative
barnabynagy
barnabynagyOP•11mo ago
No description
Brody
Brody•11mo ago
show me the same thing in adminer for pikapods
barnabynagy
barnabynagyOP•11mo ago
No description
Brody
Brody•11mo ago
would you be interested in sending me that gzip file? (in dms)
barnabynagy
barnabynagyOP•11mo ago
Done
Brody
Brody•11mo ago
looking okay, i think i see whats happening, within railway's adminer select p16699 from the DB dropdown in the top left
Brody
Brody•11mo ago
then once selected on that database, do this
No description
Brody
Brody•11mo ago
then you can select the railway database again then check if the data is all there
barnabynagy
barnabynagyOP•11mo ago
No description
barnabynagy
barnabynagyOP•11mo ago
That was it
Brody
Brody•11mo ago
sweet, log out of adminer, then go and redeploy umami
barnabynagy
barnabynagyOP•11mo ago
Shouldn't we deleted the Database: p16699 ?
Brody
Brody•11mo ago
sure you can drop the tables in there
barnabynagy
barnabynagyOP•11mo ago
Done
barnabynagy
barnabynagyOP•11mo ago
No description
Brody
Brody•11mo ago
log into umami same username and password you used on the pikapods umami app
barnabynagy
barnabynagyOP•11mo ago
I'm in Sir
Brody
Brody•11mo ago
everything look good?
barnabynagy
barnabynagyOP•11mo ago
Yep Is it the same tracking code or do I have to change it?
Brody
Brody•11mo ago
awsome tracking code should be the same, and i assume you plan on bringing over your custom domain too, so you really shouldnt need to change any site code if my understanding is correct (i could be wrong)
barnabynagy
barnabynagyOP•11mo ago
Ok Only difference I see is where the js code sits <script async src="https://umami-production-9cc6.up.railway.app/script.js" data-website-id="08d74cce-a55f-410d-a294-15433f5a1f93"></script> now it sits on railway So I just rapleced the tracking code
Brody
Brody•11mo ago
the tracking code changed?
barnabynagy
barnabynagyOP•11mo ago
just this: src="https://umami-production-9cc6.up.railway.app/script.js" data-website-id="08d74cce-a55f-410d-a294-15433f5a1f93" is the same
Brody
Brody•11mo ago
you arent going to use a custom domain for that?
barnabynagy
barnabynagyOP•11mo ago
Yes
Brody
Brody•11mo ago
alright then you can just change it back when you do that
barnabynagy
barnabynagyOP•11mo ago
ok Thank you! Will be back in about an hour
Brody
Brody•11mo ago
can i mark this as solved?
barnabynagy
barnabynagyOP•11mo ago
Yes I'm not getting hits
barnabynagy
barnabynagyOP•11mo ago
Since I changed the tracking code
No description
barnabynagy
barnabynagyOP•11mo ago
No description
Brody
Brody•11mo ago
are there any console errors when you visit a site that reports to umami?
barnabynagy
barnabynagyOP•11mo ago
Not sure what you mean
Brody
Brody•11mo ago
well when you visit your website that you have reporting to umami, are you seeing any console errors?
barnabynagy
barnabynagyOP•11mo ago
where would I see that?
Brody
Brody•11mo ago
in the browsers console logs (dev tools)
barnabynagy
barnabynagyOP•11mo ago
Barnaby Nagy
Barnaby Nagy
Barnaby Nagy is an Artist, Singer-Songwriter, Public Speaker, Author, Mentor, Hustler, Survivor - Barnabas Nagy
barnabynagy
barnabynagyOP•11mo ago
No description
Brody
Brody•11mo ago
i am seeing data being sent to umami
barnabynagy
barnabynagyOP•11mo ago
Me too
Brody
Brody•11mo ago
maybe the website id did change?
barnabynagy
barnabynagyOP•11mo ago
It recorded your visit Perhaps there was just no one visiting haha
Brody
Brody•11mo ago
well problem solved all good with umami now?
barnabynagy
barnabynagyOP•11mo ago
Yes sir All good Thank you!!!
Want results from more Discord servers?
Add your server