• 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.
    • george1421G
      george1421 Moderator @plegrand
      last edited by

      @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
      • Lee RowlettL
        Lee Rowlett Developer
        last edited by

        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

          @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

          Lee RowlettL 1 Reply Last reply Reply Quote 0
          • Lee RowlettL
            Lee Rowlett Developer @Sebastian Roth
            last edited by Lee Rowlett

            @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 Reply Quote 1
            • P
              plegrand @Lee Rowlett
              last edited by

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

              Lee RowlettL 1 Reply Last reply Reply Quote 0
              • Lee RowlettL
                Lee Rowlett Developer @plegrand
                last edited by

                @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 Reply Quote 0
                • P
                  plegrand @Lee Rowlett
                  last edited by

                  @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

                    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

                      @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 Reply Quote 0
                      • P
                        plegrand @Sebastian Roth
                        last edited by

                        @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

                          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

                            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

                            george1421G 1 Reply Last reply Reply Quote 0
                            • george1421G
                              george1421 Moderator @plegrand
                              last edited by

                              @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

                              210

                              Online

                              12.0k

                              Users

                              17.3k

                              Topics

                              155.2k

                              Posts
                              Copyright © 2012-2024 FOG Project