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

YunoHost 11.3: Bullseye -> Bookworm migration #1911

Merged
merged 2 commits into from
Oct 31, 2024
Merged

Conversation

Salamandar
Copy link
Contributor

@Salamandar Salamandar commented Jul 16, 2024

cf YunoHost/issues#2050

Notes to test migration on a fresh VPS

Install a testing environment

## Install YunoHost
curl https://install.yunohost.org | bash -s -- -a
# Drink coffee
yunohost tools postinstall -d bullseye-bookworm-migration.test -u camille -F Camille -p Yunohost
# Sip more coffee

## Install your favorite apps, for example:
# Nextcloud (PHP+mysql)
yunohost app install nextcloud --args "domain=bullseye-bookworm-migration.test&path=/cloud&admin=camille&init_main_permission=visitors&user_home=true&system_addressbook_exposed=yes"
# Wekan (Nodejs + mongodb) 
yunohost app install wekan --args "domain=bullseye-bookworm-migration.test&path=/wekan&admin=camille&init_main_permission=visitors"
# Terraforming mars (nodejs+postgresql) Actually requires a few GB of RAM to npm build ? :|
# yunohost app install terraforming-mars --args "domain=bullseye-bookworm-migration.test&path=/tfm&init_main_permission=visitors"
# Coin (Python + postgresql)
yunohost domain add coin.bullseye-bookworm-migration.test
yunohost app install coin --args "domain=coin.bullseye-bookworm-migration.test&admin=camille&[email protected]&isp_name=YunoHost&isp_site=yunohost.org"

Run the actual migration

## Requirements for the migration
# Gotta make sure we get to unstable, because only unstable packages of yunohost 12.x are available now
sed -i 's/stable/stable testing unstable/g' /etc/apt/sources.list.d/yunohost.list
apt update
apt full-upgrade

# Manual apply of this pr
mv /usr/lib/python3/dist-packages/yunohost/migrations/0027_migrate_to_bookworm.py.disabled /usr/lib/python3/dist-packages/yunohost/migrations/0027_migrate_to_bookworm.py

# Validate the migration is there
yunohost tools migrations list --pending

# Run the migration from the command line (OR restart yunohost-api and run the migration from the webadmin?)
yunohost tools migrations run --accept-disclaimer --debug

# Here be dragons

@Salamandar
Copy link
Contributor Author

Salamandar commented Jul 16, 2024

Seems to be taking a huge time (4.5 minutes) on

/usr/bin/yunohost domain list --features mail_in mail_out --output-as json

But running yunohost domain list is pretty fast.

@Salamandar
Copy link
Contributor Author

Looks like migration of Tandoor is completely broken.

Info: Updating apt...
Warning: E: Packages need to be removed but remove is disabled.
Warning: The following packages have unmet dependencies:
Warning:  libldap2-dev : Depends: libldap-dev but it is not going to be installed
Warning:  libpq-dev : Depends: libpq5 (= 15.7-0+deb12u1) but 16.3-1.pgdg110+1 is to be installed
Warning: Unable to install dependencies

@alexAubin alexAubin changed the title Draft: Migration to Bookworm (replay of #1759) Bullseye->Bookworm migration Oct 22, 2024
@Salamandar Salamandar changed the title Bullseye->Bookworm migration yunohost 11.3: Bullseye->Bookworm migration Oct 29, 2024
@Salamandar Salamandar changed the base branch from dev to bullseye October 29, 2024 23:13
@Salamandar Salamandar changed the title yunohost 11.3: Bullseye->Bookworm migration YunoHost 11.3: Bullseye->Bookworm migration Oct 29, 2024
@Salamandar Salamandar changed the title YunoHost 11.3: Bullseye->Bookworm migration YunoHost 11.3: Bullseye -> Bookworm migration Oct 29, 2024
@alexAubin alexAubin merged commit c72a2ef into bullseye Oct 31, 2024
2 of 3 checks passed
@alexAubin alexAubin deleted the migrate-to-bookworm branch October 31, 2024 12:50
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

Successfully merging this pull request may close these issues.

2 participants