R
Railway•10mo ago
barnabynagy

Migrate Serpbear to railway

I want to migrate serpbear to railway @Brody
82 Replies
Percy
Percy•10mo ago
Project ID: N/A
barnabynagy
barnabynagy•10mo ago
What's this?
No description
Fragly
Fragly•10mo 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•10mo 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
barnabynagy•10mo ago
N/A Do I just create serpbear from your template? same username and password as used on pikapods ?
Brody
Brody•10mo ago
lets slow down a bit do you have the sqlite database from your serpbear deploy on pikapods
barnabynagy
barnabynagy•10mo ago
Not sure Where do I get it?
Brody
Brody•10mo ago
can you grab it via sftp like you did for kuma
barnabynagy
barnabynagy•10mo ago
ok let me see
barnabynagy
barnabynagy•10mo ago
No description
Brody
Brody•10mo ago
grab all those files
barnabynagy
barnabynagy•10mo ago
Done
Brody
Brody•10mo 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
barnabynagy•10mo ago
ok let me know
Brody
Brody•10mo 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•10mo ago
No description
Brody
Brody•10mo ago
No description
barnabynagy
barnabynagy•10mo ago
I did All good
Brody
Brody•10mo ago
im not done lol sorry
barnabynagy
barnabynagy•10mo ago
ok
Brody
Brody•10mo ago
okay go ahead and deploy serpbear from the dashboard
barnabynagy
barnabynagy•10mo ago
with same username and password I have on pikapods?
barnabynagy
barnabynagy•10mo ago
No description
Brody
Brody•10mo ago
just put whatever, it doesnt matter tbh use the same username
barnabynagy
barnabynagy•10mo ago
ok
Brody
Brody•10mo ago
then deploy filebrowser into that project
barnabynagy
barnabynagy•10mo ago
No description
Brody
Brody•10mo ago
filebrowser?
barnabynagy
barnabynagy•10mo ago
No description
Brody
Brody•10mo ago
remove both services deployments
barnabynagy
barnabynagy•10mo ago
No description
Brody
Brody•10mo ago
delete the volume from filebrowser
barnabynagy
barnabynagy•10mo ago
No description
Brody
Brody•10mo ago
on filebrowser set USE_VOLUME_ROOT to 1 we remembered this time!
barnabynagy
barnabynagy•10mo ago
Yeah haha done
Brody
Brody•10mo ago
disconnect the volume from serpbear and mount it to filebrowser at /data
barnabynagy
barnabynagy•10mo ago
No description
Brody
Brody•10mo ago
redeploy filebrowser
barnabynagy
barnabynagy•10mo ago
Done
barnabynagy
barnabynagy•10mo ago
No description
Brody
Brody•10mo ago
did you delete any files yet
barnabynagy
barnabynagy•10mo ago
No
Brody
Brody•10mo ago
delete settings.json, then drop all the files you got from sftp on pikapods into that folder
barnabynagy
barnabynagy•10mo ago
into root?
Brody
Brody•10mo ago
yep!
barnabynagy
barnabynagy•10mo ago
done
Brody
Brody•10mo ago
screenshot?
barnabynagy
barnabynagy•10mo ago
No description
Brody
Brody•10mo 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
barnabynagy•10mo ago
No description
Brody
Brody•10mo ago
let me try to reproduce this
barnabynagy
barnabynagy•10mo ago
ok
Brody
Brody•10mo 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
barnabynagy•10mo ago
ok I'm in thanks
Brody
Brody•10mo ago
all looks good?
barnabynagy
barnabynagy•10mo ago
Yes
Brody
Brody•10mo ago
awsome
barnabynagy
barnabynagy•10mo ago
Bought you 2 more trains
Brody
Brody•10mo ago
thank you so much!
thomas
thomas•10mo 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•10mo ago
yep lol well not strictly with filebrowser, any filebrowser will do, but the methodology is going to be the same
thomas
thomas•10mo 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•10mo ago
that's true, but probably the best way would be to natively give the user sftp access to the volume
thomas
thomas•10mo 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•10mo ago
personally I'm down for native sftp volume access, but not ssh access
thomas
thomas•10mo 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•10mo 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•10mo 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•10mo 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•10mo ago
or SFTP or multiple instances with the same volume then you can attach whatever you want to it
maddsua
maddsua•10mo 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•10mo ago
I think something more generic like sftp would be best, also not reinventing the wheel
maddsua
maddsua•10mo ago
wait can rsync work over stfp?
Brody
Brody•10mo ago
not sure but rsync isn't really the intended usecase
maddsua
maddsua•10mo ago
ok that's fair
Brody
Brody•10mo ago
but keep in mind this is only volumes v1, we have yet to see volumes v2
maddsua
maddsua•10mo 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•10mo 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
barnabynagy•10mo 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•10mo 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•10mo 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