R
Railway•10mo ago
barnabynagy

Migrate Umami to Railway

I need some help to migrate umami from pikapods to railway @Brody
122 Replies
Percy
Percy•10mo ago
Project ID: N/A
barnabynagy
barnabynagy•10mo ago
N/A
Brody
Brody•10mo ago
👋 you have access to adminer on pikapods, so export the database from there, and then we will go from there
barnabynagy
barnabynagy•10mo ago
Posted on umami server
No description
barnabynagy
barnabynagy•10mo ago
I don't know where that dump function is If this function exist it should be easier
Brody
Brody•10mo ago
within umami's ui?
barnabynagy
barnabynagy•10mo ago
No idea That's all I was told
Brody
Brody•10mo ago
dig around in it i cant find anything, i think they meant database dump/restore
barnabynagy
barnabynagy•10mo 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•10mo ago
yeah where gonna have to do a database export and import
barnabynagy
barnabynagy•10mo ago
Ok
barnabynagy
barnabynagy•10mo ago
What do I choose here?
No description
Brody
Brody•10mo ago
so export the database from adminer
barnabynagy
barnabynagy•10mo ago
This is it Use/drop+create/create?
Brody
Brody•10mo 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
barnabynagy•10mo ago
I used the create option In the file it says it's a dump
Brody
Brody•10mo ago
this is what i used
No description
barnabynagy
barnabynagy•10mo ago
Ok, done
Brody
Brody•10mo ago
you got your gzip file in hand?
barnabynagy
barnabynagy•10mo ago
yep
Brody
Brody•10mo ago
okay deploy that umami template i linked you, or do you want me to send it again?
barnabynagy
barnabynagy•10mo ago
is it not just one?
barnabynagy
barnabynagy•10mo ago
No description
Brody
Brody•10mo ago
i have not published this https://railway.app/template/ZiHXd_ you need to deploy it from this think
barnabynagy
barnabynagy•10mo ago
Ok
Brody
Brody•10mo ago
the one in your screenshot deploys with postgres, we dont want that
barnabynagy
barnabynagy•10mo ago
It asks me to config things
Brody
Brody•10mo ago
yeah just click config and save
barnabynagy
barnabynagy•10mo ago
REady
barnabynagy
barnabynagy•10mo ago
No description
Brody
Brody•10mo ago
okay let me get caught up, im doing this all myself too
barnabynagy
barnabynagy•10mo 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•10mo ago
fair enough
barnabynagy
barnabynagy•10mo ago
Talk on Monday
Brody
Brody•10mo ago
sounds good
barnabynagy
barnabynagy•10mo ago
Hola Back to business How was your weekend?
Brody
Brody•10mo 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
barnabynagy•10mo 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•10mo ago
yeah that makes sense, good idea
barnabynagy
barnabynagy•10mo ago
No description
Brody
Brody•10mo ago
in preparation for this I have created a Adminer template for railway, go ahead and deploy that into your current project
barnabynagy
barnabynagy•10mo ago
Done
No description
Brody
Brody•10mo 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
barnabynagy•10mo ago
ok Let me know
Brody
Brody•10mo ago
we back
barnabynagy
barnabynagy•10mo ago
Cool I'm here
Brody
Brody•10mo ago
we want to remove umami's active deployment
barnabynagy
barnabynagy•10mo ago
Sorry I went to lunch break
Brody
Brody•10mo ago
no worries
barnabynagy
barnabynagy•10mo ago
Done
No description
Brody
Brody•10mo ago
perfect, open adminer and login to the mysql database Server -> mysql.railway.internal:3306 Username -> MYSQLUSER Password -> MYSQLPASSWORD Database -> MYSQLDATABASE
barnabynagy
barnabynagy•10mo ago
No description
Brody
Brody•10mo ago
you would need to use the values of those environment variables
barnabynagy
barnabynagy•10mo ago
and where are those?
Brody
Brody•10mo ago
in the variables tab on the mysql service
barnabynagy
barnabynagy•10mo ago
ah yeah I'm in
Brody
Brody•10mo ago
click import
barnabynagy
barnabynagy•10mo ago
No description
Brody
Brody•10mo ago
import, top left
barnabynagy
barnabynagy•10mo ago
yes
Brody
Brody•10mo ago
then choose your gzip dump, and click execute
barnabynagy
barnabynagy•10mo ago
No description
Brody
Brody•10mo 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
barnabynagy•10mo ago
No description
barnabynagy
barnabynagy•10mo ago
1
Brody
Brody•10mo ago
yours says zero, but click it anyway
No description
barnabynagy
barnabynagy•10mo ago
No description
Brody
Brody•10mo ago
might have done the export from pikapods wrong, show me the settings you used to do that export please
barnabynagy
barnabynagy•10mo ago
No description
Brody
Brody•10mo ago
what is the size of your gziped file?
barnabynagy
barnabynagy•10mo ago
No description
barnabynagy
barnabynagy•10mo ago
Just downloaded again and see I ripped the filename off of .sql
barnabynagy
barnabynagy•10mo ago
This is newly downloaded one
No description
Brody
Brody•10mo ago
try to import that into the railway database again
barnabynagy
barnabynagy•10mo ago
Don't we need to clean the database off of the first import first?
Brody
Brody•10mo ago
shouldn't need to
barnabynagy
barnabynagy•10mo ago
ok Negative
barnabynagy
barnabynagy•10mo ago
No description
Brody
Brody•10mo ago
show me the same thing in adminer for pikapods
barnabynagy
barnabynagy•10mo ago
No description
Brody
Brody•10mo ago
would you be interested in sending me that gzip file? (in dms)
barnabynagy
barnabynagy•10mo ago
Done
Brody
Brody•10mo 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•10mo ago
then once selected on that database, do this
No description
Brody
Brody•10mo ago
then you can select the railway database again then check if the data is all there
barnabynagy
barnabynagy•10mo ago
No description
barnabynagy
barnabynagy•10mo ago
That was it
Brody
Brody•10mo ago
sweet, log out of adminer, then go and redeploy umami
barnabynagy
barnabynagy•10mo ago
Shouldn't we deleted the Database: p16699 ?
Brody
Brody•10mo ago
sure you can drop the tables in there
barnabynagy
barnabynagy•10mo ago
Done
barnabynagy
barnabynagy•10mo ago
No description
Brody
Brody•10mo ago
log into umami same username and password you used on the pikapods umami app
barnabynagy
barnabynagy•10mo ago
I'm in Sir
Brody
Brody•10mo ago
everything look good?
barnabynagy
barnabynagy•10mo ago
Yep Is it the same tracking code or do I have to change it?
Brody
Brody•10mo 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
barnabynagy•10mo 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•10mo ago
the tracking code changed?
barnabynagy
barnabynagy•10mo 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•10mo ago
you arent going to use a custom domain for that?
barnabynagy
barnabynagy•10mo ago
Yes
Brody
Brody•10mo ago
alright then you can just change it back when you do that
barnabynagy
barnabynagy•10mo ago
ok Thank you! Will be back in about an hour
Brody
Brody•10mo ago
can i mark this as solved?
barnabynagy
barnabynagy•10mo ago
Yes I'm not getting hits
barnabynagy
barnabynagy•10mo ago
Since I changed the tracking code
No description
barnabynagy
barnabynagy•10mo ago
No description
Brody
Brody•10mo ago
are there any console errors when you visit a site that reports to umami?
barnabynagy
barnabynagy•10mo ago
Not sure what you mean
Brody
Brody•10mo ago
well when you visit your website that you have reporting to umami, are you seeing any console errors?
barnabynagy
barnabynagy•10mo ago
where would I see that?
Brody
Brody•10mo ago
in the browsers console logs (dev tools)
barnabynagy
barnabynagy•10mo ago
Barnaby Nagy
Barnaby Nagy
Barnaby Nagy is an Artist, Singer-Songwriter, Public Speaker, Author, Mentor, Hustler, Survivor - Barnabas Nagy
barnabynagy
barnabynagy•10mo ago
No description
Brody
Brody•10mo ago
i am seeing data being sent to umami
barnabynagy
barnabynagy•10mo ago
Me too
Brody
Brody•10mo ago
maybe the website id did change?
barnabynagy
barnabynagy•10mo ago
It recorded your visit Perhaps there was just no one visiting haha
Brody
Brody•10mo ago
well problem solved all good with umami now?
barnabynagy
barnabynagy•10mo ago
Yes sir All good Thank you!!!
Want results from more Discord servers?
Add your server