Hi all! Since upgrading to 12.x, I noticed that the server takes an unusually long time (5+ minutes) to perform any action related to domains⊠what could it be? How can I debug this?
My gut says that there is some obsolete configuration somewhere that is slowing things down.
Thanks for the great work. It went smoothly, I only had to update SearxNG âon footâ, then it worked again.
I admit, I was a little scared because it affected my production system and because I wasnât sure that my Hubzilla installation would come through unscathed (especially since I didnât install it as an app, but manually in a My_Webapp).
$ sudo yunohost tools migrations run --accept-disclaimer
Info: Running migration 0027_migrate_to_bookwormâŠ
Info: Starting migration to BookwormâŠ
Info: Patching the sources.lists fileâŠ
error: Cannot find a question for postgresql-common/obsolete-major
Info: Applying patch to workaround conflict issueâŠ
Info: Starting main upgradeâŠ
Info: Downloading...
Error: Migration 0027_migrate_to_bookworm did not complete, aborting. Error: Failed to run command 'aptitude full-upgrade cron rspamd- luajit- libluajit-5.1-2- --show-why -o APT::Force-LoopBreak=1 -o Dpkg::Options::='--force-confold''
Info: The operation 'Run migrations' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20241115-170853-tools_migrations_migrate_forward' to get help
Si à la main en SSH tu fais sudo aptitude full-upgrade cron rspamd- luajit- libluajit-5.1-2- --show-why -o APT::Force-LoopBreak=1 -o Dpkg::Options::='--force-confold', ça raconte quoi ?
I think that may be related to the pydantic system which adds some overhead ⊠(I assume you are on an ARM board ?) Iâm not sure thereâs anything to fix/improve on your side, itâs purely something in the code that we need to ideally optimize somehow
Hello,
The migration fails on my (old) BananaPi for no obvious reason.
root@pihole:~# yunohost tools migrations run migrate_to_bookworm --accept-disclaimer
Error: Failed to read info for cachet : Invalid version: '2.3.18~ynh1'
Info: Running migration 0027_migrate_to_bookwormâŠ
Info: Starting migration to BookwormâŠ
Info: Patching the sources.lists fileâŠ
Warning: W: http://apt.armbian.com/dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
chattr: Operation not supported while reading flags on /etc/resolv.conf
Info: Applying patch to workaround conflict issueâŠ
Info: Starting main upgradeâŠ
Error: Migration 0027_migrate_to_bookworm did not complete, aborting. Error: Something went wrong during the main upgrade, the system appears to still be on Debian Bullseye.
Info: The operation 'Run migrations' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20241116-153722-tools_migrations_migrate_forward' to get help
Migration returned 500 internal server error (nginx).
Just clicked ok, user interface were still working, went back in migration and there were 2 pending:
A python rebuild stuff related to ihatemoney app. Didnât pass but logs told me which command i had to use un CLI, so now itâs ok (force upgrade).
The term and licence agreement.
After that I ran a diagnostic, and it returned a default in a conf file, apparently modified. But prior to migration no file were modified, all were compliant whith recommandation. As log indicated, I forced regen conf in CLI.
I did a reboot of the server as a Tourette Windows user.
For the record for Olinuxino (an open-source ARM board) owners, one cannot migrate directly to Yunohost 12 due to the lack of support of Bookworm from Olimex Debian repository:
WARNING - E: The repository 'http://repository.olimex.com bookworm Release' does not have a Release file.
WARNING - W: Failed to fetch http://repository.olimex.com/dists/bookworm/Release: 404 Not Found
However moving away /etc/apt/sources.list.d/olimex.list allow to perform the migration (duration around 1h45). At least for tests purpose as you wonât receive updates for the kernel etc. afterwards. Stay tuned here : Bookworm upgrade availability soon ?
Error: Migration 0029_postgresql_13_to_15 did not complete, aborting. Error: Failed to run command 'LC_ALL=C pg_upgradecluster -m upgrade 13 main -v 15'.
with
Checking for presence of required libraries fatal
Your installation references loadable libraries that are missing from the
new installation. You can add these libraries to the new installation,
or remove the functions using them from the old installation. A list of
problem libraries is in the file:
/var/lib/postgresql/15/main/pg_upgrade_output.d/20241117T012119.742/loadable_libraries.txt
Failure, exiting
of course this file didnât exist on my system, as well.
Hello, thank you for the upgrade, for the record I ran into trouble: a 500 error on the webadmin, I waited a little and then I rebooted, and then I got 403 when trying to access my server on my browser.
The fix was simply to install yunohost-portal by hand with apt and everything seems to work now!
Info: [###################.] > 99.9% Processing libgdk-pixbuf-2.0-0
Info: [####################] > 100.0% Done
Success! Configuration updated for 'nsswitch'
Info: Cleaning up cache and packages not useful anymoreâŠ
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Info: Starting YunoHost core upgradeâŠ
Info: Downloading...
Info: [....................] > 0.0% Installing python3-all
Info: [....................] > 3.1% Installing lua-rex-pcre2
Info: [#...................] > 6.2% Installing lua-basexx
Info: [#...................] > 9.3% Installing lua-luaossl
Info: [##..................] > 12.4% Installing lua-logging
Info: [###.................] > 15.5% Installing lua-cjson
Info: [###.................] > 18.6% Installing ssowat
Info: [####................] > 21.7% Installing python3-jwt
Info: [####................] > 24.8% Installing python3-passlib
Info: [#####...............] > 27.9% Installing python3-magic
Info: [######..............] > 31.0% Installing python3-typing-extensions
Info: [######..............] > 34.1% Installing python3-pydantic
Info: [#######.............] > 37.2% Installing python3-email-validator
Info: [########............] > 40.3% Installing libmilter1.0.1
Info: [########............] > 43.4% Installing opendkim
Info: [#########...........] > 46.5% Installing openresolv
Info: [#########...........] > 48.1% Installing moulinette
Info: [##########..........] > 51.2% Installing resolvconf
Info: [##########..........] > 53.4% Installing yunohost
Warning: Killed
Warning: E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 1278000 (dpkg)
Warning: E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
Warning: W: Could not lock the cache file; this usually means that dpkg or another apt tool is already installing packages. Opening in read-only mode; any changes you make to the states of packages will NOT be preserved!
Warning: E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 1278000 (dpkg)
Warning: E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
Error: Migration 0027_migrate_to_bookworm did not complete, aborting. Error: Failed to run command 'aptitude unhold baikal-ynh-deps jirafeau-ynh-deps nextcloud-ynh-deps shellinabox-ynh-deps snappymail-ynh-deps transmission-ynh-deps'
Info: The operation 'Run migrations' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20241117-145259-tools_migrations_migrate_forward' to get help
Actually, I am not. I am using a quite beefy VPS (6 cores, 16 GB RAM)âŠ
Could you help me analyse the performance in general, so that maybe we can pinpoint the process with the most overhead?
Hmmmm well first would you have an example of some operation that takes an unexpected amount of time, ideally from the command line ? Naively I would run this command with --debug and that may allow to have a more precise idea of where the issue lies
(Congratz on the italian translation btw, itâs live now !)