Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading from v22 to v24 #298

Closed
markdesilva opened this issue Sep 17, 2024 · 8 comments
Closed

Upgrading from v22 to v24 #298

markdesilva opened this issue Sep 17, 2024 · 8 comments

Comments

@markdesilva
Copy link

Hi there, been away for too long.

Just noted my scan engines are outdated. Can I just pull the new version and it migrates my dbs or I have to export and import all over again?

Any news on the separation of SSL certs, feeds and databases as I mentioned I was working on here #211 (comment) ?

Thank you!

@immauss
Copy link
Owner

immauss commented Sep 18, 2024

Man ... I've had your thread on my todo list for a while ....

I have implemented some bits to reduce time for feed updates. Not a separate volume, but the startup checks the age of existing feeds (assuming you are starting with a previously used volume attached) and updates the feeds from the latest on the image, which should be less than a week old.

Now ... you "Should" be able to just update the image and go. Database migration should be handled smoothly.

However, if you haven't updated in a year, then YMMV . . . .

PLEASE PLEASE PLEASE make a backup of your data volume before trying just in case something goes wrong. If it does go wrong, please let me know. I've not done any testing with a migration from that far back. . . .

If it does work out, please let me know too. :)

Thanks,
Scott

@immauss
Copy link
Owner

immauss commented Sep 18, 2024

Oh ... and I think adding
GSAD_ARGS=${GSAD_ARGS:-blank}
was inspired by your post ....
-Scott

@immauss
Copy link
Owner

immauss commented Sep 18, 2024

Close too early ...
That should allow you do what you wanted to do with the certs without rebuilding the image

-Scott

@markdesilva
Copy link
Author

Thanks Scott! Will backup and pull the latest and then play around with it and let you know how it goes.

Cheers!

@markdesilva
Copy link
Author

markdesilva commented Sep 19, 2024

Stopped and removed the old container (my dbs are separated so no issues). Did some clean up with prune and pulled the latest. Started it up and the logs said "Migrate databases if necessary" and stayed that way for about 20 mins, after that everything started up as normal. All my scans, reports, etc all intact!

Only issue I have now, is the new branding completely messes up my phone screen. Anyway for me to go back to the old branding login page at least until I can upgrade my phone to something bigger? If not it's ok, I guess I can live with it. Just have to incessantly scroll to log in.

Btw, saw your interviews on YouTube from last year, interesting stuff man! That call back to how you fixed a colleague's laptop and suddenly got labelled the IT guru and you just ran with it - brought a smile to my face!

Cheers!

@immauss
Copy link
Owner

immauss commented Sep 19, 2024

Thanks!

Glad it worked well.

And ... which interview ? There are a few out there now. But yeah ... and it was actually in the days before everyone had a laptop, so it was just her home computer....... One of the best decisions I've ever made.

I'll have to look for a way to make the login a little more phone friendly. Wasn't something I had even considered during dev.

Thanks,
Scott

@immauss immauss closed this as completed Sep 19, 2024
@markdesilva
Copy link
Author

markdesilva commented Sep 19, 2024

And ... which interview ? There are a few out there now. But yeah ... and it was actually in the days before everyone had a laptop, so it was just her home computer....... One of the best decisions I've ever made.

It was the virtual ciso one and the infosec wrap up.

I'll have to look for a way to make the login a little more phone friendly. Wasn't something I had even considered during dev.

I use this to cater for the mobile devices when I do my dev, light weight - https://mobiledetect.net/

@markdesilva
Copy link
Author

Stopped and removed the old container (my dbs are separated so no issues). Did some clean up with prune and pulled the latest. Started it up and the logs said "Migrate databases if necessary" and stayed that way for about 20 mins, after that everything started up as normal. All my scans, reports, etc all intact!

Just realized from the logs that after the db migrated the container crashed with the error:

chgrp: cannot dereference '/var/run/ospd/ospd.sock': No such file or directory

But the container restarted and it was fine after. (I have --restart always set).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants