upgrade Debian 11 to 12
-
Hello,
is it reasonable to consider updating Debian bullseye(11) => bookworm(12)
Is Fog supposed to work correctly after this update?
PHP, among other things, is upgraded to version 8Thanks for your answers
-
@plegrand You are using FOG 1.5.10 already, right?
-
@Sebastian-Roth
Yes, it seems that i’m using the 1.5.10 version
But my question was about the upgrade of the Debian distribution
Debian bullseye(11) => bookworm(12) -
So for the moment, no particular advice for upgrading from Debian Bullseye(11) to Debian Bookworm(12)?
-
@plegrand Since bookworm just was released the developers haven’t had a chance to fully vet the deployment. Unless you have a compelling reason to upgrade, I would hold off if this server is in your production environment. Sometimes walking on the bleeding edge, you could end up with red stuff all over the place.
With the FOG Project and it being summer, the developers are taking it easy for now to spend time with their families.
-
just some initial testing in my usual environment setup (using 1.5.10.5, location, task state & ldap plugin + FOG running in SSL):
only issues so far i’ve come across is with the ldap plugin (confirmed php8.2-ldap installed and php module enabled on bookworm):
Got error 'PHP message: PHP Warning: Undefined property: stdClass::$DN in /var/www/html/fog/lib/plugins/ldap/pages/ldapmanagementpage.class.php on line 114', referer: https://image-server.ad.wmas.nhs.uk/fog/management/index.php?node=ldap
changing line 114 from ‘searchDN’ => $LDAP->DN, to ‘searchDN’ => $LDAP->SearchDN, resolves this warning.
however getting http error 500 with same config that was working on bullseye (php7):
[Mon Jun 19 00:56:58.958186 2023] [proxy_fcgi:error] [pid 319012] [client 192.168.156.14:53122] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: ldap_unbind(): Argument #1 ($ldap) must be of type LDAP\\Connection, null given in /var/www/html/fog/lib/plugins/ldap/class/ldap.class.php:124\nStack trace:\n#0 /var/www/html/fog/lib/plugins/ldap/class/ldap.class.php(124): ldap_unbind()\n#1 /var/www/html/fog/lib/plugins/ldap/class/ldap.class.php(235): LDAP->__call()\n#2 /var/www/html/fog/lib/plugins/ldap/hooks/ldappluginhook.hook.php(126): LDAP->authLDAP()\n#3 /var/www/html/fog/lib/fog/hookmanager.class.php(86): LDAPPluginHook->checkAddUser()\n#4 /var/www/html/fog/lib/fog/user.class.php(139): HookManager->processEvent()\n#5 /var/www/html/fog/lib/fog/user.class.php(226): User->passwordValidate()\n#6 /var/www/html/fog/lib/fog/fogbase.class.php(2469): User->validatePw()\n#7 /var/www/html/fog/lib/pages/processlogin.class.php(151): FOGBase::attemptLogin()\n#8 /var/www/html/fog/management/index.php(31): ProcessLogin->processMainLogin()\n#9 {main}\n thrown in /var/www/html/fog/lib/plugins/ldap/class/ldap.class.php o...', referer: https://image-server/fog/management/index.php
-
@plegrand In the first months of 2023 I did some testing with Debian 12 Alpha. Installed fine if I remember correctly. Looks like @Lee-Rowlett does confirm.
Though as always I suggest you take a backup (snapshot) before going ahead and then give it a go. You have good chances of going without much of an issue.
@Lee-Rowlett said:
only issues so far i’ve come across is with the ldap plugin
Would you be so kind and open an issue report about this on github? This is not a specific issue with Debian 12 but probably due to a newer PHP version as you said.
-
@Sebastian-Roth Done I haven’t had chance to look into it any further but it’s the initial bind function that fails.
-
@Lee-Rowlett
So, does this mean that I’d better wait before updating my production server? -
@plegrand yes i would wait, i wouldn’t recommend updating your production server.
if you don’t rely on the LDAP plugin then everything else is functioning as it should but i still wouldn’t recommend it in a production environment.
-
@Lee-Rowlett said in upgrade Debian 11 to 12:
@plegrand yes i would wait, i wouldn’t recommend updating your production server.
if you don’t rely on the LDAP plugin then everything else is functioning as it should but i still wouldn’t recommend it in a production environment.
Would it be possible to tell me when it is reasonable to update, in this thread?
-
Hello,
I’m coming back to you regarding my initial request.
Has anyone of you tried to upgrade from Debian 11 (bullseye) to Debian 12 (bookworm) with FOG 1.5.10? -
@plegrand I have not had the time to test this myself but I can do so in about three weeks. The PHP issues with the LDAP plugin should be fixed in the dev-branch version (1.5.10.11).
-
@Sebastian-Roth
Hello, I’ll get back to you to know if, today, it’s possible to consider migrating our fog server from debian 11 bullseye to debian 12 bookworm (FOG 1.5.10).
Thank you in advance for your help. -
Hi, you can see here for my attempt :
https://forums.fogproject.org/topic/17083/installing-package-php-mysqlnd-failed/6?_=1701334310863&lang=fr -
I have just upgraded from Debian 11 to Debian 12.
No problems except this error in the apache logs:
[proxy:error] [pid 2033] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:9000 (127.0.0.1:9000) failed
and unable to access Fog.
I re-run “installfog.sh” and everything seems to be working correctly.
I don’t use LDAp so I don’t have any problems there.
Thanks -
@plegrand said in upgrade Debian 11 to 12:
127.0.0.1:9000
This is the communication port that apache talks to php-fpm (PHP Execution Engine). For some reason during the update php-fpm was not updated or failed to restart correctly.
Well done getting this resolved on your end.