-
Notifications
You must be signed in to change notification settings - Fork 91
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
[Bug] Upgrade from 21.4.3-v1 to debian-master not possible #317
Comments
PG is 11.14? Strange, since the last version of PG on the pre 21.4.0-v5 tags was 12. Did you try to go into the 21.4.3-v1 container, stop gvm and do a pg_dumpall to get the sql dump file then try to import the sql dump file into the debian container? |
No, because postgresql won't start, so I can't do pg_restore. I try it with new running docker-compose without any data. |
OK, I start new empty docker-compose with debian, then stop all gvm services, and restore postgresql database from previous version. Start services. All tasks/reports/etc seems OK, but scan not working with error UPD: Copy /var/lib/gvm/gvmd/gnupg/ from previous GVM setup, now scan works fine |
Glad it works! Quick question, did you start the debian-master with the mounted volumes
or using
Thanks! |
I start like this
|
Thank you!
|
If you need to "downgrade" please read this: https://dba.stackexchange.com/questions/284260/how-to-prevent-pg-dump-from-generating-set-default-table-access-method-heap/284263#284263 There you get some Info how to do this - not very handy but works. |
Thanks for your reply! I build my own debian image based on yours, but with postgresql-13. |
Thats also good! |
Is it possible to add the fix of @enterdv to install postgresql-13 instead of version 11? I'm having the same problem when updating. |
Any Solutions now? |
Same issue here:
|
Not sure if this will help everyone or just me, but for
In my case I found there were incorrect permissions for the data directory:
Fixed by setting the permission |
Thanks for the suggestion, but my error has nothing to do with the permissions. The version of postgresql in the previous container was 13 and in the Debian version it is postgresql 11. |
You can now use the https://hub.docker.com/r/deineagenturug/gvm images, which are using the latest gvmd and components releases. It use POSTGRESQL 13. What are meaning the tags:
It can be used as direct replacement for the here provided image, with the same arguments on |
For further support, use https://github.com/DeineAgenturUG/greenbone-gvm-openvas-for-docker |
We have a "development" DB Upgrade tool for the migration from here to my Details you can read here: DeineAgenturUG/greenbone-gvm-openvas-for-docker#16 (comment) Any feedback in the issue on my repo is welcome. |
Describe the bug
Upgrade from 21.4.3-v1 to debian-master not working. On alpine image PostgreSQL version 13. On Debian PostgreSQL version 11.14.
To Reproduce
Steps to reproduce the behavior:
PostgreSQL logs
Expected behavior
PostgreSQL running
Screenshots
NA
Host Device:
Image in use:
securecompliance/gvm:debian-master
The text was updated successfully, but these errors were encountered: