Issue changing IP of storage node
-
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 ErrorI am running version 1.6.0-alpha.1352.
-
@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
-
@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. -
@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
-
@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.
-
@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
-
@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.
-
@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.
-
@kylian001 https://forums.rockylinux.org/t/php-ssh2-install/6923
Seems you might have success if you install libssh2-devel?
-
@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
-
@kylian001 So you’re good to go now?
-
@kylian001 Yeah I am thanks for the help. How do I mark this as solved?
-