• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

upgrade Debian 11 to 12

Scheduled Pinned Locked Moved
General
5
17
2.8k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    plegrand
    last edited by Jun 14, 2023, 2:24 PM

    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 8

    Thanks for your answers

    P 1 Reply Last reply Sep 5, 2023, 12:39 PM Reply Quote 1
    • S
      Sebastian Roth Moderator
      last edited by Jun 14, 2023, 3:51 PM

      @plegrand You are using FOG 1.5.10 already, right?

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      1 Reply Last reply Reply Quote 0
      • P
        plegrand
        last edited by plegrand Jun 15, 2023, 7:06 AM Jun 15, 2023, 7:47 AM

        @Sebastian-Roth
        Yes, it seems that i’m using the 1.5.10 version
        9685fa9a-1ca4-4a14-bf84-33a09fd3524d-image.png

        But my question was about the upgrade of the Debian distribution
        Debian bullseye(11) => bookworm(12)

        1 Reply Last reply Reply Quote 0
        • P
          plegrand
          last edited by Jun 16, 2023, 12:10 PM

          So for the moment, no particular advice for upgrading from Debian Bullseye(11) to Debian Bookworm(12)?

          G 1 Reply Last reply Jun 18, 2023, 12:35 AM Reply Quote 0
          • G
            george1421 Moderator @plegrand
            last edited by Jun 18, 2023, 12:35 AM

            @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.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

            1 Reply Last reply Reply Quote 0
            • L
              Lee Rowlett Developer
              last edited by Jun 19, 2023, 12:18 AM

              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
              
              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by Jul 2, 2023, 6:03 AM

                @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.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                L 1 Reply Last reply Jul 7, 2023, 9:11 PM Reply Quote 0
                • L
                  Lee Rowlett Developer @Sebastian Roth
                  last edited by Lee Rowlett Jul 7, 2023, 3:13 PM Jul 7, 2023, 9:11 PM

                  @Sebastian-Roth Done 👍 I haven’t had chance to look into it any further but it’s the initial bind function that fails.

                  https://www.php.net/manual/en/doc.changelog.php

                  P 1 Reply Last reply Jul 10, 2023, 2:45 PM Reply Quote 1
                  • P
                    plegrand @Lee Rowlett
                    last edited by Jul 10, 2023, 2:45 PM

                    @Lee-Rowlett
                    So, does this mean that I’d better wait before updating my production server?

                    L 1 Reply Last reply Jul 12, 2023, 11:25 AM Reply Quote 0
                    • L
                      Lee Rowlett Developer @plegrand
                      last edited by Jul 12, 2023, 11:25 AM

                      @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.

                      P 1 Reply Last reply Jul 13, 2023, 9:00 AM Reply Quote 0
                      • P
                        plegrand @Lee Rowlett
                        last edited by Jul 13, 2023, 9:00 AM

                        @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?

                        1 Reply Last reply Reply Quote 0
                        • P
                          plegrand @plegrand
                          last edited by Sep 5, 2023, 12:39 PM

                          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?

                          1 Reply Last reply Reply Quote 0
                          • S
                            Sebastian Roth Moderator
                            last edited by Sebastian Roth Sep 16, 2023, 11:41 PM Sep 17, 2023, 5:40 AM

                            @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).

                            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                            P 1 Reply Last reply Nov 23, 2023, 7:19 AM Reply Quote 0
                            • P
                              plegrand @Sebastian Roth
                              last edited by Nov 23, 2023, 7:19 AM

                              @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.

                              1 Reply Last reply Reply Quote 0
                              • I
                                infotc
                                last edited by Nov 30, 2023, 8:54 AM

                                Hi, you can see here for my attempt :
                                https://forums.fogproject.org/topic/17083/installing-package-php-mysqlnd-failed/6?_=1701334310863&lang=fr

                                1 Reply Last reply Reply Quote 0
                                • P
                                  plegrand
                                  last edited by Jun 18, 2024, 1:13 PM

                                  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

                                  G 1 Reply Last reply Jun 18, 2024, 1:28 PM Reply Quote 0
                                  • G
                                    george1421 Moderator @plegrand
                                    last edited by Jun 18, 2024, 1:28 PM

                                    @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.

                                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                    1 Reply Last reply Reply Quote 0
                                    • 1 / 1
                                    • First post
                                      Last post

                                    161

                                    Online

                                    12.0k

                                    Users

                                    17.3k

                                    Topics

                                    155.2k

                                    Posts
                                    Copyright © 2012-2024 FOG Project