R
Railway•11mo ago
barnabynagy

Migrate Serpbear to railway

I want to migrate serpbear to railway @Brody
82 Replies
Percy
Percy•11mo ago
Project ID: N/A
barnabynagy
barnabynagyOP•11mo ago
What's this?
No description
Fragly
Fragly•11mo ago
it's a message from percy asking you to provide your project id, you can get the project id from your url when you visit a project, it'll be something like railway.app/project/PROJECT_ID also #🛂|readme #5
Brody
Brody•11mo ago
fragly it's fine lol I thought you read help threads a project id is a unique ID that every railway project gets, and provides a way for the team to look into your project if you are having issues with the platform, you are just asking for help, so you can just send n/a
barnabynagy
barnabynagyOP•11mo ago
N/A Do I just create serpbear from your template? same username and password as used on pikapods ?
Brody
Brody•11mo ago
lets slow down a bit do you have the sqlite database from your serpbear deploy on pikapods
barnabynagy
barnabynagyOP•11mo ago
Not sure Where do I get it?
Brody
Brody•11mo ago
can you grab it via sftp like you did for kuma
barnabynagy
barnabynagyOP•11mo ago
ok let me see
barnabynagy
barnabynagyOP•11mo ago
No description
Brody
Brody•11mo ago
grab all those files
barnabynagy
barnabynagyOP•11mo ago
Done
Brody
Brody•11mo ago
okay now please give me a few minutes to get my dashboard cleaned up, go so many random project i dont know whats going on
barnabynagy
barnabynagyOP•11mo ago
ok let me know
Brody
Brody•11mo ago
might be a good time for you to go through your projects and name the projects accordingly and delete anything that isnt in use
Brody
Brody•11mo ago
No description
Brody
Brody•11mo ago
No description
barnabynagy
barnabynagyOP•11mo ago
I did All good
Brody
Brody•11mo ago
im not done lol sorry
barnabynagy
barnabynagyOP•11mo ago
ok
Brody
Brody•11mo ago
okay go ahead and deploy serpbear from the dashboard
barnabynagy
barnabynagyOP•11mo ago
with same username and password I have on pikapods?
barnabynagy
barnabynagyOP•11mo ago
No description
Brody
Brody•11mo ago
just put whatever, it doesnt matter tbh use the same username
barnabynagy
barnabynagyOP•11mo ago
ok
Brody
Brody•11mo ago
then deploy filebrowser into that project
barnabynagy
barnabynagyOP•11mo ago
No description
Brody
Brody•11mo ago
filebrowser?
barnabynagy
barnabynagyOP•11mo ago
No description
Brody
Brody•11mo ago
remove both services deployments
barnabynagy
barnabynagyOP•11mo ago
No description
Brody
Brody•11mo ago
delete the volume from filebrowser
barnabynagy
barnabynagyOP•11mo ago
No description
Brody
Brody•11mo ago
on filebrowser set USE_VOLUME_ROOT to 1 we remembered this time!
barnabynagy
barnabynagyOP•11mo ago
Yeah haha done
Brody
Brody•11mo ago
disconnect the volume from serpbear and mount it to filebrowser at /data
barnabynagy
barnabynagyOP•11mo ago
No description
Brody
Brody•11mo ago
redeploy filebrowser
barnabynagy
barnabynagyOP•11mo ago
Done
barnabynagy
barnabynagyOP•11mo ago
No description
Brody
Brody•11mo ago
did you delete any files yet
barnabynagy
barnabynagyOP•11mo ago
No
Brody
Brody•11mo ago
delete settings.json, then drop all the files you got from sftp on pikapods into that folder
barnabynagy
barnabynagyOP•11mo ago
into root?
Brody
Brody•11mo ago
yep!
barnabynagy
barnabynagyOP•11mo ago
done
Brody
Brody•11mo ago
screenshot?
barnabynagy
barnabynagyOP•11mo ago
No description
Brody
Brody•11mo ago
looks good remove the filebrowser deployment. disconnect its volume mount the volume to serpbear at /app/data redeploy serpbear wait for a minute login to serpbear with the same credentials you used on pikapods serpbear
barnabynagy
barnabynagyOP•11mo ago
No description
Brody
Brody•11mo ago
let me try to reproduce this
barnabynagy
barnabynagyOP•11mo ago
ok
Brody
Brody•11mo ago
okay im so sorry, the username / password is not saved in the sqlite database, you need to use the username / password you set in the variables
barnabynagy
barnabynagyOP•11mo ago
ok I'm in thanks
Brody
Brody•11mo ago
all looks good?
barnabynagy
barnabynagyOP•11mo ago
Yes
Brody
Brody•11mo ago
awsome
barnabynagy
barnabynagyOP•11mo ago
Bought you 2 more trains
Brody
Brody•11mo ago
thank you so much!
thomas
thomas•11mo ago
I am ashamed this is needed. I can't say I will fix this but is this truly the only way to load files onto a volume?
Brody
Brody•11mo ago
yep lol well not strictly with filebrowser, any filebrowser will do, but the methodology is going to be the same
thomas
thomas•11mo ago
yeah, that's what I thought, if we allowed you to ssh into the service I guess you could install sftp in the docker image and use that with any sftp client. Or something built into the UI These are my ideas and not a roadmap for railway*
Brody
Brody•11mo ago
that's true, but probably the best way would be to natively give the user sftp access to the volume
thomas
thomas•11mo ago
True rather than relying on every template maintainer to keep an up-to-date version of sftp still, that would be like wrapping any deployment in a meta deployment to accomplish that. Then you could flip a switch and expose ssh and sftp creds in the vars of the service. Interesting idea. I will post it to the public roadmap and we can see if people want it.
Brody
Brody•11mo ago
personally I'm down for native sftp volume access, but not ssh access
thomas
thomas•11mo ago
Switches for both then? but sftp without ssh is just purposely restricted ssh. Personally, I think if you use public and private keys. There is nothing wrong with public-facing SSH.
Brody
Brody•11mo ago
personally I don't like the idea of ssh at all, switched or not containers are empherial after all, ssh'ing into the container goes against that for the most part
thomas
thomas•11mo ago
The idea would be to create a tool to access your volume. But I get your meaning, I think we would make this a very much turn on this switch when all else fails. if ssh is ever offered at all, there are reasons to avoid it.
maddsua
maddsua•11mo ago
my 50 cents but isn't it easier to just make a microservice to access volumes data over https? just basic CRUD, something like cloudflare does for accessing r2 from workers or add an S3 API to thonkthonkthonk
Attacler/Bart
Attacler/Bart•11mo ago
or SFTP or multiple instances with the same volume then you can attach whatever you want to it
maddsua
maddsua•11mo ago
no actually adding an S3 api would be the best way to solve it I think no need to reinvent the wheel and it's pretty easy to use
Brody
Brody•11mo ago
I think something more generic like sftp would be best, also not reinventing the wheel
maddsua
maddsua•11mo ago
wait can rsync work over stfp?
Brody
Brody•11mo ago
not sure but rsync isn't really the intended usecase
maddsua
maddsua•11mo ago
ok that's fair
Brody
Brody•11mo ago
but keep in mind this is only volumes v1, we have yet to see volumes v2
maddsua
maddsua•11mo ago
yeah if v2 will allow for connecting to multiple services at the same time - problem solved can have that s3 as much as I want
Brody
Brody•11mo ago
that definitely makes it easier and less of a dance, but without native direct volume access it would still feel like a bit of a hack
barnabynagy
barnabynagyOP•11mo ago
Is there an automatic backup on railway or do I have to do manual backups? Is ghost and other templates update automatically to their latest versions or do I have to do it manually or how does it work?
Fragly
Fragly•11mo ago
Railway doesn't have managed databases, so you'll have to perform manual backups if they deploy from image:latest then they'll always be updated to the latest image just check where they deploy from
Brody
Brody•11mo ago
slight correction. if they deploy from image:latest then they'll always be updated to the latest image upon re-deploying the service just check where they deploy from
Want results from more Discord servers?
Add your server