SFTP Deploy not work

Hi
if i deploy to my server with sftp i get the error:
Fatal error: Uncaught TypeError: extract(): Argument
#1 ($array) must be of type array, bool given in /opt/NetMake/v9-php81/wwwroot/scriptcase/devel/lib/third/phpseclib1.0.5/Net/SSH2.php:1429

With FTP everything works fine. Does someone have this problem? What could it be?

I use Ubuntu 22.04 with the latest updates in Ubuntu and Scritpcase. Nothing else installed on this machine.
Thank’s and best regards
Steve

I don’t know, but I usually deploy locally, test, and then use a decent FTP client to upload my deployed environment. It allows me to test as if the application is in production, and by using a dedicated FTP client I can upload any way I want, and uploading goes much faster.

Hi Aducom
Thanks for your answer. I have been searching for errors and suspect that the phpseclib1.05 being used is not compatible with php8.1. Maybe the will update it to the current LTS Version 3.0 ! Is there a way to make ticket without support subscription?
Best regards
Steve

There is a bug section on this forum. Unfortunately, there is no way to find out if Netmake picks it up or not.

Hi
i found someone who has this problem also:
https://forum.scriptcase.com.br/t/resolvido-erro-ao-tenta-publicar-atualizacoes/32618/11

But he solved it by install an older Ubuntu version :frowning: That’s not a solution for me. I will double post this to the bugs section.
Thanks for your reply and have a nice day.
Steve

hey, i also got this error. did you find any solution on it.
Please do let me know.

Thanks,
Pranav

Deploy locally, then use FileZilla. Way faster and no issues.

I upgraded to a new Ubuntu Development server for Scriptcase and I too am getting this error and unable to use SFTP for deploying.
My previous Ubuntu 20.04 server works fine for it, but now with the new one I think perhaps something is missing. Its Ubuntu 24.04.
Deploying locally then filezilla is not a solution… its a workaround and makes my development a LOT slower than direct SFTP deployment… as its a local server on my intranet.
Anyone have another suggestion?

Thanks!

Hi
try to use Port 2222 instead of 22. It seems, that Ubuntu 22.04 uses Port 2222 for SFTP.

Thanks for the suggestion… but that isn’t the issue.
I am getting this error when I try to deploy using SFTP.
This is only from my new development Ubuntu 24.04 server that I built just for scriptcase. My existing Ubuntu 20.04 server is working fine… I am thinking it might have something to do with a dependency that is missing perhaps.

Fatal error : Uncaught TypeError: extract(): Argument #1 ($array) must be of type array, bool given in /opt/Scriptcase/v9-php81/wwwroot/scriptcase/devel/lib/third/phpseclib1.0.5/Net/SSH2.php:1429 Stack trace: #0 /opt/Scriptcase/v9-php81/wwwroot/scriptcase/devel/lib/third/phpseclib1.0.5/Net/SSH2.php(1429): extract(false) #1 /opt/Scriptcase/v9-php81/wwwroot/scriptcase/devel/lib/third/phpseclib1.0.5/Net/SSH2.php(1132): Net_SSH2->_key_exchange(’\x14nq\x02\x92\x80\x84\xD4D\x13\xF6\xE8\x9Dg\xB6…’) #2 /opt/Scriptcase/v9-php81/wwwroot/scriptcase/devel/lib/third/phpseclib1.0.5/Net/SSH2.php(1981): Net_SSH2->_connect() #3 /opt/Scriptcase/v9-php81/wwwroot/scriptcase/devel/lib/third/phpseclib1.0.5/Net/SFTP.php(445): Net_SSH2->_login(‘atr’, ‘atr2323’) #4 /opt/Scriptcase/v9-php81/wwwroot/scriptcase/devel/class/page/nmPagePublishWizard.class.php(579): Net_SFTP->login(‘atr’, ‘atr2323’) #5 /opt/Scriptcase/v9-php81/wwwroot/scriptcase/devel/class/page/nmPagePublishWizard.class.php(2900): nmPagePublishWizard->MakePublish(Array) #6 /opt/Scriptcase/v9-php81/wwwroot/scriptcase/devel/class/page/nmPagePublishWizard.class.php(2420): nmPagePublishWizard->DisplayForm() #7 /opt/Scriptcase/v9-php81/wwwroot/scriptcase/devel/class/page/nmPage.class.php(2471): nmPagePublishWizard->DisplayContent() #8 /opt/Scriptcase/v9-php81/wwwroot/scriptcase/devel/class/page/nmSite.class.php(96): nmPage->Display() #9 /opt/Scriptcase/v9-php81/wwwroot/scriptcase/devel/lib/php/base_ini.inc.php(1681): nmSite->Run() #10 /opt/Scriptcase/v9-php81/wwwroot/scriptcase/devel/lib/php/base_ini.inc.php(2): sg_load(‘68ABBE04C7C5024…’) #11 /opt/Scriptcase/v9-php81/wwwroot/scriptcase/devel/iface/publishwizard.php(25): include_once(’/opt/Scriptcase…’) #12 /opt/Scriptcase/v9-php81/wwwroot/scriptcase/devel/iface/publishwizard.php(2): sg_load(‘BD8D7EBFC7C5120…’) #13 {main} thrown in /opt/Scriptcase/v9-php81/wwwroot/scriptcase/devel/lib/third/phpseclib1.0.5/Net/SSH2.php on line 1429

can you compare the php modules between your 20.04 and 24.04? like you mentioned, maybe missing dependency.

I’m also curious which php version are you using for 24.04. I’m on 22.04 still and php 8.1, on the fence about upgrading to 24.04 due to possible issue like the one you’re having.

Scriptcase Support sent me some updates to address this issue and its working now!

are you able to share those updates? is it for the server or scriptcase? Thank you.