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

    Issue changing IP of storage node

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    2
    11
    293
    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.
    • K
      kylian001
      last edited by

      Hello,

      I am updating my fog server its IP address. I managed to update the IP everywhere except for in the storage node configuration. When I try to update the IP of the default member i get a error:

      Generic Error
      Internal Server Error

      I am running version 1.6.0-alpha.1352.

      Tom ElliottT K 3 Replies Last reply Reply Quote 0
      • K
        kylian001 @Tom Elliott
        last edited by kylian001

        @Tom-Elliott manage to get it working. I updated from php 7.2 to php 8.3 with the remi repo. After that installed the ssh2 module with “dnf install php-ssh2”

        dnf module reset php
        dnf module switch-to php:remi-8.3
        dnf module install php:remi-8.3
        dnf update
        dnf install php-ssh2
        
        Tom ElliottT 1 Reply Last reply Reply Quote 2
        • Tom ElliottT
          Tom Elliott @kylian001
          last edited by

          @kylian001 Please provide your php-fpm error logs.

          On redhat systems this is generally: /var/log/php-fpm/www-error.log otherwise it maybe the apache error logs.

          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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          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

          K 1 Reply Last reply Reply Quote 0
          • K
            kylian001 @Tom Elliott
            last edited by

            @Tom-Elliott This is what i am getting in the log file

            [08-Jul-2024 12:56:56 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function ssh2_connect() in /var/www/html/fog/lib/fog/fogssh.class.php:188
            Stack trace:
            #0 /var/www/html/fog/lib/pages/storagenodemanagement.page.php(1421): FOGSSH->connect()
            #1 /var/www/html/fog/lib/pages/storagenodemanagement.page.php(1631): StorageNodeManagement->storagenodeGeneralPost()
            #2 /var/www/html/fog/lib/fog/fogpagemanager.class.php(167): StorageNodeManagement->editPost()
            #3 /var/www/html/fog/management/index.php(53): FOGPageManager->render()
            #4 {main}
              thrown in /var/www/html/fog/lib/fog/fogssh.class.php on line 188
            
            Tom ElliottT 1 Reply Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott @kylian001
              last edited by

              @kylian001 You will need to add:

              php-pecl-ssh2 to our /opt/fog/.fogsettings packages= line.

              Please do so and re-run the installer.

              Or you can just add it to the packages line, but also just run:

              sudo dnf -y install php-pecl-ssh2 and you should be able to restart php-fpm: systemctl restart php-fpm

              This might help things.

              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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              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

              K 1 Reply Last reply Reply Quote 0
              • K
                kylian001 @Tom Elliott
                last edited by kylian001

                @Tom-Elliott Sorry for the late response.

                I tried installing php-ecl-ssh2 which is not available. But php83-php-pecl-ssh2 is available which i installed instead. But the result and the error is the same. I did re run the fog installer after installing and adding the php83-php-pecl-ssh2 to the package list.

                Is their any particular version I shut use instead? I just choice the newest one which might not be correct?

                [kylian@fogserver ~]$ sudo dnf search php-pecl-ssh2
                [sudo] password for kylian:
                Last metadata expiration check: 2:08:50 ago on Tue 09 Jul 2024 06:12:56 AM CEST.
                ============================================= Name Matched: php-pecl-ssh2 ==============================================php56-php-pecl-ssh2.x86_64 : Bindings for the libssh2 library
                php70-php-pecl-ssh2.x86_64 : Bindings for the libssh2 library
                php71-php-pecl-ssh2.x86_64 : Bindings for the libssh2 library
                php72-php-pecl-ssh2.x86_64 : Bindings for the libssh2 library
                php73-php-pecl-ssh2.x86_64 : Bindings for the libssh2 library
                php74-php-pecl-ssh2.x86_64 : Bindings for the libssh2 library
                php80-php-pecl-ssh2.x86_64 : Bindings for the libssh2 library
                php81-php-pecl-ssh2.x86_64 : Bindings for the libssh2 library
                php82-php-pecl-ssh2.x86_64 : Bindings for the libssh2 library
                php83-php-pecl-ssh2.x86_64 : Bindings for the libssh2 library
                

                Also tried php72-php-pecl-ssh2 as the php version on the system is PHP 7.2.24

                Tom ElliottT 1 Reply Last reply Reply Quote 0
                • Tom ElliottT
                  Tom Elliott @kylian001
                  last edited by

                  @kylian001 I am running blind it seems, but I don’t know what OS you’re running, or the version of PHP your FOG instance is using.
                  If you state yoru PHP version is 7.2, then the php72-php-pecl-ssh2 installation should’ve worked, but I’m unsure why you have so many options.

                  What I see when I run:

                  sudo dnf search php-pecl-ssh2
                  [sudo] password for telliott: 
                  Last metadata expiration check: 0:04:44 ago on Tue 09 Jul 2024 04:26:54 AM CDT.
                  ==================================================================================================== Name Exactly Matched: php-pecl-ssh2 =====================================================================================================
                  php-pecl-ssh2.x86_64 : Bindings for the libssh2 library
                  

                  I’m running Fedora 40 at this point.

                  I know at least one other person is using CentOS 7 and didn’t have issues. Pretty sure the other system is using CentOS 9 Stream and similar success.

                  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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                  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
                  • K
                    kylian001 @kylian001
                    last edited by

                    @kylian001 hey sorry i should have stated the system i am running.

                    Rocky Linux release 8.10 (Green Obsidian) x86_64
                    PHP 7.2.24 (cli) (built: Oct 22 2019 08:28:36) ( NTS ).

                    I will try some more things see if i can get the package to work properly.

                    Tom ElliottT 1 Reply Last reply Reply Quote 0
                    • Tom ElliottT
                      Tom Elliott @kylian001
                      last edited by

                      @kylian001 https://forums.rockylinux.org/t/php-ssh2-install/6923

                      Seems you might have success if you install libssh2-devel?

                      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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                      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

                      K 1 Reply Last reply Reply Quote 0
                      • K
                        kylian001 @Tom Elliott
                        last edited by kylian001

                        @Tom-Elliott manage to get it working. I updated from php 7.2 to php 8.3 with the remi repo. After that installed the ssh2 module with “dnf install php-ssh2”

                        dnf module reset php
                        dnf module switch-to php:remi-8.3
                        dnf module install php:remi-8.3
                        dnf update
                        dnf install php-ssh2
                        
                        Tom ElliottT 1 Reply Last reply Reply Quote 2
                        • Tom ElliottT
                          Tom Elliott @kylian001
                          last edited by

                          @kylian001 So you’re good to go now?

                          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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                          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
                          • K
                            kylian001 @kylian001
                            last edited by

                            @kylian001 Yeah I am thanks for the help. How do I mark this as solved?

                            1 Reply Last reply Reply Quote 0
                            • [[undefined-on, Tom ElliottT Tom Elliott, ]]
                            • 1 / 1
                            • First post
                              Last post

                            217

                            Online

                            12.0k

                            Users

                            17.3k

                            Topics

                            155.2k

                            Posts
                            Copyright © 2012-2024 FOG Project