cBackup / main

Releases, documentation and issue tracker
http://cbackup.me
GNU Affero General Public License v3.0
30 stars 17 forks source link

Missed RPM dependency #44

Open around84 opened 4 years ago

around84 commented 4 years ago

When installing the RPM package, the php-xml is not install. After trying to connect via SSH/telnet to node, the application terminates with error

2019-12-05 13:44:53 [10.11.1.131][ADMIN][lqs2u39hoeuhl2pgma97di2gev][error][Error] Error: Call to undefined functio
n phpseclib\Net\utf8_decode() in /opt/cbackup/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php:3360
Stack trace:
#0 /opt/cbackup/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php(3304): phpseclib\Net\SSH2->_filter('\r\n=============...',
false)
#1 /opt/cbackup/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php(2277): phpseclib\Net\SSH2->_get_binary_packet()
#2 /opt/cbackup/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php(2125): phpseclib\Net\SSH2->_login_helper('around', 'VeRySeCuRePaSsWoRd')
#3 [internal function]: phpseclib\Net\SSH2->_login('around', 'VeRySeCuRePaSsWoRd')
#4 /opt/cbackup/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php(2098): call_user_func_array(Array, Array)
#5 /opt/cbackup/models/CredentialTest.php(224): phpseclib\Net\SSH2->login('around', 'VeRySeCuRePaSsWoRd')
#6 /opt/cbackup/modules/network/controllers/CredentialController.php(347): app\models\CredentialTest->run()
#7 [internal function]: app\modules\network\controllers\CredentialController->actionAjaxTest()
#8 /opt/cbackup/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#9 /opt/cbackup/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#10 /opt/cbackup/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('ajax-test', Array)
#11 /opt/cbackup/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('network/credent...', Array)
#12 /opt/cbackup/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request))
#13 /opt/cbackup/web/index.php(38): yii\base\Application->run()
#14 {main}
2019-12-05 13:44:53 [10.11.1.131][ADMIN][lqs2u39hoeuhl2pgma97di2gev][info][application] $_GET = [
    'r' => 'network/credential/ajax-test'
]

$_POST = [
    '_csrf' => 'BrapfKFPaST4tGgEqZ353v2zeGrq2x8wMQVf3WJVbetJ4NBO8y4DXc-ZHmPY2I6ctoodX7uvelhiaDCHJD88nQ=='
    'Credential' => [
        'name' => 'Volga_telnet'
        'enable_password' => ''
        'telnet_login' => 'around'
        'telnet_password' => 'VeRySeCuRePaSsWoRd'
        'ssh_login' => 'around'
        'ssh_password' => 'VeRySeCuRePaSsWoRd'
        'snmp_read' => 'public'
        'snmp_set' => ''
        'snmp_version' => '1'
        'snmp_encryption' => ''
        'port_telnet' => '23'
        'port_ssh' => '22'
        'port_snmp' => '161'
    ]
    'login_prompt' => ''
    'password_prompt' => ''
    'main_prompt' => ''
    'enable_prompt' => ''
    'enable_success' => ''
    'ip' => '10.11.0.2'
]

The issue is solved after yum install php-xml