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

Python may have been removed during reprovisioning #2598

Open
davepullig opened this issue Apr 13, 2022 · 6 comments
Open

Python may have been removed during reprovisioning #2598

davepullig opened this issue Apr 13, 2022 · 6 comments
Labels

Comments

@davepullig
Copy link

davepullig commented Apr 13, 2022

Scrolling back, at one point when testing patches to fix #2593 it looks like Python was flagged as no longer required and then removed by apt.

   default: Calculating upgrade...
    default: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    default:  * Registering apt packages to install
    default:  ▷ Running register_apt_packages hook
    default:  ✔ Finished register_apt_packages hook in 0s
    default:  * Main packages check and install.
    default:  * Checking for apt packages to remove.
    default:  * Removing 2 apt packages: 'mysql-common
    default:  * Cleaning up dpkg lock file
    default:  * Removing apt-get packages...
    default: Reading package lists...
    default: Building dependency tree...
    default: Reading state information...
    default: The following packages were automatically installed and are no longer required:
    default:   galera-4 libaio1 libdbi-perl libpython-stdlib libpython2.7-minimal
    default:   libpython2.7-stdlib python python-minimal python2.7 python2.7-minimal socat
    default: Use 'sudo apt autoremove' to remove them.
    default: The following packages will be REMOVED:
    default:   libmariadb3 mariadb-client-10.5 mariadb-client-core-10.5 mariadb-common
    default:   mariadb-server mariadb-server-10.5 mariadb-server-core-10.5 mysql-common
    default:   nodejs
    default: 0 upgraded, 0 newly installed, 9 to remove and 0 not upgraded.
    default: After this operation, 275 MB disk space will be freed.
(Reading database ... 113272 files and directories currently installed.)
    default: Removing mariadb-server (1:10.5.15+maria~bionic) ...
    default: Removing mariadb-server-10.5 (1:10.5.15+maria~bionic) ...
    default: Removing mariadb-client-10.5 (1:10.5.15+maria~bionic) ...
    default: Removing mariadb-client-core-10.5 (1:10.5.15+maria~bionic) ...
    default: Removing libmariadb3:amd64 (1:10.5.15+maria~bionic) ...
    default: Removing mariadb-server-core-10.5 (1:10.5.15+maria~bionic) ...
    default: dpkg: warning: while removing mariadb-server-core-10.5, directory '/usr/share/mysql' not empty so not removed
    default: Removing mariadb-common (1:10.5.15+maria~bionic) ...
    default: Removing mysql-common (1:10.5.15+maria~bionic) ...
    default: Removing nodejs (14.19.1-1nodesource1) ...
    default: dpkg: warning: while removing nodejs, directory '/usr/lib/node_modules' not empty so not removed
    default: Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
    default: Processing triggers for libc-bin (2.27-3ubuntu1.5) ...
    default:  * Removing unnecessary apt packages...
    default: Reading package lists...
    default: Building dependency tree...
    default: Reading state information...
    default: The following packages will be REMOVED:
    default:   galera-4 libaio1 libdbi-perl libpython-stdlib libpython2.7-minimal
    default:   libpython2.7-stdlib python python-minimal python2.7 python2.7-minimal socat
    default: 0 upgraded, 0 newly installed, 11 to remove and 0 not upgraded.
    default: After this operation, 62.9 MB disk space will be freed.
(Reading database ... 107977 files and directories currently installed.)
    default: Removing galera-4 (26.4.11-bionic) ...
    default: Removing libaio1:amd64 (0.3.110-5ubuntu0.1) ...
    default: Removing libdbi-perl (1.640-1ubuntu0.3) ...
    default: Removing python (2.7.15~rc1-1) ...
    default: Removing libpython-stdlib:amd64 (2.7.15~rc1-1) ...
    default: Removing python2.7 (2.7.17-1~18.04ubuntu1.7) ...
    default: Removing libpython2.7-stdlib:amd64 (2.7.17-1~18.04ubuntu1.7) ...
    default: Removing python-minimal (2.7.15~rc1-1) ...
    default: Removing python2.7-minimal (2.7.17-1~18.04ubuntu1.7) ...
    default: Removing libpython2.7-minimal:amd64 (2.7.17-1~18.04ubuntu1.7) ...
    default: Removing socat (1.7.3.2-2ubuntu2) ...
    default: Processing triggers for libc-bin (2.27-3ubuntu1.5) ...
    default: Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
    default: Processing triggers for mime-support (3.60ubuntu1) ...
    default:  * Cleaning apt caches...
    default:  * Checking for apt packages to install.
    default:  * Cleaning up dpkg lock file
    default:  * Updating apt keys

I've deleted my previous comment; inexplicably, Python wasn't installed on the VM - no idea what happened there but I can't see that it was due to these changes.

Provisioning is now working as it should do.

can you raise an issue for that? If you have any provisioning output from the terminal backscroll that'd be great otherwise a description of how you discovered it will do

Originally posted by @tomjn in #2593 (comment)

@Mte90
Copy link
Member

Mte90 commented Apr 13, 2022

It is normal... python2 is removed and not supported anymore so maybe you weren't uploading VVV since a lot.

@tomjn
Copy link
Member

tomjn commented Apr 13, 2022

could this be related to the mysql-common package we were removing? I don't know why MariaDB 10.5 is being removed but I remember this was a side effect of that package being uninstalled which we didn't want. If so then we fixed this in #2592 a few hours ago!

@tomjn tomjn added the type:bug label Apr 13, 2022
@Mte90
Copy link
Member

Mte90 commented Apr 13, 2022

https://github.com/Varying-Vagrant-Vagrants/VVV/blob/c223b806827339e5da11c86546eba83432438344/provision/core/vvv/provision.sh#L7-9 about python 2

We don't know what was the VVV version when this error was generated, so my hypotesis is that was an old version didn't updated since a while.

GitHub
An open source Vagrant configuration for developing with WordPress - VVV/provision.sh at c223b80 · Varying-Vagrant-Vagrants/VVV

@davepullig
Copy link
Author

I think this was the develop branch at ~12:00, but annoyingly the terminal buffer runs out just before that provision starts.

@davepullig davepullig changed the title Python maybe have been removed during reprovisioning Python may have been removed during reprovisioning Apr 13, 2022
@tomjn
Copy link
Member

tomjn commented Sep 10, 2022

Wondering if this is still happening, I haven't encountered this issue but now that 3.10.1 is released we should retest

@Mte90
Copy link
Member

Mte90 commented Sep 11, 2022

I destroyed the VM multiple times since this ticket and I never saw that problem.

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

No branches or pull requests

3 participants