#Migrate Umami to Railway

131 messages · Page 1 of 1 (latest)

knotty wagon
#

I need some help to migrate umami from pikapods to railway @muted minnow

slow fogBOT
#

Project ID: N/A

knotty wagon
muted minnow
#

👋

#

you have access to adminer on pikapods, so export the database from there, and then we will go from there

knotty wagon
#

I don't know where that dump function is

#

If this function exist it should be easier

muted minnow
#

within umami's ui?

knotty wagon
#

No idea

#

That's all I was told

muted minnow
#

dig around in it

#

i cant find anything, i think they meant database dump/restore

knotty wagon
muted minnow
#

yeah where gonna have to do a database export and import

knotty wagon
#

Ok

muted minnow
#

so export the database from adminer

knotty wagon
#

This is it

#

Use/drop+create/create?

muted minnow
#

yeah why not

#

its an export, its not like you can break stuff, if you do you just deploy a new umami template

knotty wagon
#

I used the create option

#

In the file it says it's a dump

muted minnow
#

this is what i used

knotty wagon
muted minnow
#

you got your gzip file in hand?

knotty wagon
#

yep

muted minnow
#

okay deploy that umami template i linked you, or do you want me to send it again?

knotty wagon
#

is it not just one?

muted minnow
knotty wagon
#

Ok

muted minnow
#

the one in your screenshot deploys with postgres, we dont want that

knotty wagon
#

It asks me to config things

muted minnow
#

yeah just click config and save

knotty wagon
#

REady

muted minnow
#

okay let me get caught up, im doing this all myself too

knotty wagon
#

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.

muted minnow
#

fair enough

knotty wagon
#

Talk on Monday

muted minnow
#

sounds good

knotty wagon
#

Hola

#

Back to business

knotty wagon
#

How was your weekend?

muted minnow
#

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?

knotty wagon
#

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 🙂

muted minnow
#

yeah that makes sense, good idea

#

in preparation for this I have created a Adminer template for railway, go ahead and deploy that into your current project

#

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

knotty wagon
#

ok

#

Let me know

muted minnow
#

we back

knotty wagon
#

Cool I'm here

muted minnow
#

we want to remove umami's active deployment

knotty wagon
#

Sorry I went to lunch break

muted minnow
#

no worries

#

perfect, open adminer and login to the mysql database

Server -> mysql.railway.internal:3306
Username -> MYSQLUSER
Password -> MYSQLPASSWORD
Database -> MYSQLDATABASE

#

you would need to use the values of those environment variables

knotty wagon
#

and where are those?

muted minnow
#

in the variables tab on the mysql service

knotty wagon
#

ah yeah

#

I'm in

muted minnow
#

click import

#

import, top left

knotty wagon
#

yes

muted minnow
#

then choose your gzip dump, and click execute

#

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

muted minnow
#

yours says zero, but click it anyway

#

might have done the export from pikapods wrong, show me the settings you used to do that export please

#

what is the size of your gziped file?

knotty wagon
#

Just downloaded again and see I ripped the filename off of .sql

muted minnow
#

try to import that into the railway database again

knotty wagon
#

Don't we need to clean the database off of the first import first?

muted minnow
#

shouldn't need to

knotty wagon
#

ok

#

Negative

muted minnow
#

show me the same thing in adminer for pikapods

#

would you be interested in sending me that gzip file? (in dms)

knotty wagon
#

Done

muted minnow
#

looking

#

okay, i think i see whats happening, within railway's adminer
select p16699 from the DB dropdown in the top left

#

then once selected on that database, do this

#

then you can select the railway database again then check if the data is all there

knotty wagon
#

That was it

muted minnow
#

sweet, log out of adminer, then go and redeploy umami

knotty wagon
#

Shouldn't we deleted the Database: p16699 ?

muted minnow
#

sure you can drop the tables in there

knotty wagon
#

Done

muted minnow
#

log into umami

#

same username and password you used on the pikapods umami app

knotty wagon
#

I'm in Sir

muted minnow
#

everything look good?

knotty wagon
#

Yep

#

Is it the same tracking code or do I have to change it?

muted minnow
#

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)

knotty wagon
#

Ok

#

Only difference I see is where the js code sits

#

now it sits on railway

#

So I just rapleced the tracking code

muted minnow
#

the tracking code changed?

knotty wagon
#

data-website-id="08d74cce-a55f-410d-a294-15433f5a1f93" is the same

muted minnow
#

you arent going to use a custom domain for that?

knotty wagon
#

Yes

muted minnow
#

alright then you can just change it back when you do that

knotty wagon
#

ok

#

Thank you!

#

Will be back in about an hour

muted minnow
#

can i mark this as solved?

knotty wagon
#

Yes

#

I'm not getting hits

muted minnow
#

are there any console errors when you visit a site that reports to umami?

knotty wagon
#

Not sure what you mean

muted minnow
#

well when you visit your website that you have reporting to umami, are you seeing any console errors?

knotty wagon
#

where would I see that?

muted minnow
#

in the browsers console logs (dev tools)

knotty wagon
muted minnow
#

i am seeing data being sent to umami

knotty wagon
#

Me too

muted minnow
#

maybe the website id did change?

knotty wagon
#

It recorded your visit

#

Perhaps there was just no one visiting haha

muted minnow
#

well problem solved

#

all good with umami now?

knotty wagon
#

Yes sir

#

All good

#

Thank you!!!