Endpoint update failure

Hi,

I am wondering if somebody can point me in the right direction on how to solve this problem.

I am trying to update a freePBX 16 install. I am unable to download the endpoint module. All I get is a curl error on the terminal:

fwconsole ma upgradeall

Downloading…
91533160/95215199 [==========================>-] 96%
In cURL.php line 443:

cURL error 18: transfer closed with 3681895 bytes remaining to read

or if I do it from the web page I get:

Requests_Exception

cURL error 18: transfer closed with 4961831 bytes remaining to read
else {
$this->headers .= $response;
}

    if (curl_errno($this->handle)) {
        $error = sprintf(
            'cURL error %s: %s',
            curl_errno($this->handle),
            curl_error($this->handle)
        );
        throw new Requests_Exception($error, 'curlerror', $this->handle);
    }
    $this->info = curl_getinfo($this->handle);

    $options['hooks']->dispatch('curl.after_request', array(&$this->headers, &$this->info));
    return $this->headers;
}

I also tried a new install of freePBX 17 on debian 12, I basically get the same error:

Signature Invalid
Refreshing endpoint
Starting module download from https://mirror.freepbx.org/modules/packages/endpoint/8.2/endpoint-17.0.1.71.tgz.gpg
Processing
Downloading…
85431136/94923261 [=========================>–] 90% 9 secs
In Curl.php line 490:

[WpOrg\Requests\Exception]
cURL error 18: transfer closed with 3336381 bytes remaining to read

Exception trace:
at /var/www/html/admin/libraries/Composer/vendor/rmccue/requests/src/Transport/Curl.php:490
WpOrg\Requests\Transport\Curl->process_response() at /var/www/html/admin/libraries/Composer/vendor/rmccue/requests/src/Transport/Curl.php:219
WpOrg\Requests\Transport\Curl->request() at /var/www/html/admin/libraries/Composer/vendor/rmccue/requests/src/Requests.php:469
WpOrg\Requests\Requests::request() at /var/www/html/admin/libraries/Composer/vendor/rmccue/requests/src/Session.php:232
WpOrg\Requests\Session->request() at /var/www/html/admin/libraries/Composer/vendor/rmccue/requests/src/Session.php:159
WpOrg\Requests\Session->get() at /var/www/html/admin/libraries/modulefunctions.class.php:1746
module_functions->handledownload() at /var/www/html/admin/libraries/Console/Moduleadmin.class.php:459
FreePBX\Console\Command\Moduleadmin->doRemoteDownload() at /var/www/html/admin/libraries/Console/Moduleadmin.class.php:1874
FreePBX\Console\Command\Moduleadmin->doInstallByModuleAndVersion() at /var/www/html/admin/libraries/Console/Moduleadmin.class.php:1303
FreePBX\Console\Command\Moduleadmin->refreshsignatures() at /var/www/html/admin/libraries/Console/Moduleadmin.class.php:1787
FreePBX\Console\Command\Moduleadmin->handleArgs() at /var/www/html/admin/libraries/Console/Moduleadmin.class.php:236
FreePBX\Console\Command\Moduleadmin->execute() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Command/Command.php:312
Symfony\Component\Console\Command\Command->run() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:1022
Symfony\Component\Console\Application->doRunCommand() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:314
Symfony\Component\Console\Application->doRun() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:168
Symfony\Component\Console\Application->run() at /var/lib/asterisk/bin/fwconsole:163

moduleadmin [-f|–force] [-d|–debug] [–edge] [–ignorecache] [–stable] [–color] [–skipchown] [-e|–autoenable] [–skipdisabled] [–snapshot SNAPSHOT] [–format FORMAT] [-R|–repo REPO] [-t|–tag TAG] [–skipbreakingcheck] [–sendemail] [–onlystdout] [–] […]

try wget https://mirror.freepbx.org/modules/packages/endpoint/8.2/endpoint-17.0.1.71.tgz.gpg see what happens

Hi,

Output

# wget https://mirror.freepbx.org/modules/packages/endpoint/8.2/endpoint-17.0.1.71.tgz.gpg
--2024-07-15 19:22:05--  https://mirror.freepbx.org/modules/packages/endpoint/8.2/endpoint-17.0.1.71.tgz.gpg
Resolving mirror.freepbx.org (mirror.freepbx.org)... 172.67.42.223, 104.22.49.127, 104.22.48.127
Connecting to mirror.freepbx.org (mirror.freepbx.org)|172.67.42.223|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 94923261 (91M) [application/octet-stream]
Saving to: ‘endpoint-17.0.1.71.tgz.gpg’

endpoint-17.0.1.71. 100%[===================>]  90.53M  12.7MB/s    in 7.4s

2024-07-15 19:22:13 (12.3 MB/s) - ‘endpoint-17.0.1.71.tgz.gpg’ saved [94923261/94923261]

So this is probably some weird timeout… at this point you can just

fwconsole ma install endpoint-17.0.1.71.tgz.gpg

Hi I just tried that and I got this error back:

Unable to install module endpoint-17.0.1.71.tgz.gpg:

  • Cannot find module
    Updating Hooks…Done
    Chowning directories…Done

Hi @dlucas

an you please try with below ?

fwconsole ma downloadinstall endpoint --tag=17.0.1.71 

Here is the console output as requested

fwconsole ma downloadinstall endpoint --tag=17.0.1.71 --verbose
No repos specified, using: [standard] from last GUI settings

Starting module download from https://mirror.freepbx.org/modules/packages/endpoint/8.2/endpoint-17.0.1.71.tgz.gpg
Processing
Downloading…
85431648/94923261 [=========================>–] 90% 6 secs
In Curl.php line 490:

[WpOrg\Requests\Exception]
cURL error 18: transfer closed with 2521605 bytes remaining to read

Exception trace:
at /var/www/html/admin/libraries/Composer/vendor/rmccue/requests/src/Transport/Curl.php:490
WpOrg\Requests\Transport\Curl->process_response() at /var/www/html/admin/libraries/Composer/vendor/rmccue/requests/src/Transport/Curl.php:219
WpOrg\Requests\Transport\Curl->request() at /var/www/html/admin/libraries/Composer/vendor/rmccue/requests/src/Requests.php:469
WpOrg\Requests\Requests::request() at /var/www/html/admin/libraries/Composer/vendor/rmccue/requests/src/Session.php:232
WpOrg\Requests\Session->request() at /var/www/html/admin/libraries/Composer/vendor/rmccue/requests/src/Session.php:159
WpOrg\Requests\Session->get() at /var/www/html/admin/libraries/modulefunctions.class.php:1746
module_functions->handledownload() at /var/www/html/admin/libraries/Console/Moduleadmin.class.php:459
FreePBX\Console\Command\Moduleadmin->doRemoteDownload() at /var/www/html/admin/libraries/Console/Moduleadmin.class.php:499
FreePBX\Console\Command\Moduleadmin->doDownload() at /var/www/html/admin/libraries/Console/Moduleadmin.class.php:1582
FreePBX\Console\Command\Moduleadmin->handleArgs() at /var/www/html/admin/libraries/Console/Moduleadmin.class.php:236
FreePBX\Console\Command\Moduleadmin->execute() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Command/Command.php:312
Symfony\Component\Console\Command\Command->run() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:1022
Symfony\Component\Console\Application->doRunCommand() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:314
Symfony\Component\Console\Application->doRun() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:168
Symfony\Component\Console\Application->run() at /var/lib/asterisk/bin/fwconsole:163

Also the CRC from Sha256sum of the endpoint-17.0.1.71.tgz.gpg file is

4c569f595f10ef4f66c877eb291b20cdecf0c08664680464743cf9d8f36fce03 endpoint-17.0.1.71.tgz.gpg

looks like its failing to download the module properly, endpoint module is big in size as compared to other modules.

May be try below please -

fwconsole ma downloadinstall http://mirror1.freepbx.org/modules/packages/endpoint/8.2/endpoint-17.0.1.73.tgz

Hi That worked!

fwconsole ma downloadinstall http://mirror1.freepbx.org/modules/packages/endpoint/8.2/endpoint-17.0.1.73.tgz
No repos specified, using: [standard] from last GUI settings

Starting module download from http://mirror1.freepbx.org/modules/packages/endpoint/8.2/endpoint-17.0.1.73.tgz
Processing
Downloading…
94711232/94711232 [============================] 100%
Finished downloading
Extracting…Done
Module http://mirror1.freepbx.org/modules/packages/endpoint/8.2/endpoint-17.0.1.73.tgz successfully downloaded
Create symlink…Done
Checking database tables…Done
Migrating tables as required…Done
Checking Settings and Defaults…Done
Generating Configs…Done
Downloading Firmware…Done (Background)
updating Logout phones config…(Background)Generating CSS…Done
Module endpoint version 17.0.1.73 successfully installed
Updating Hooks…Done
Chowning directories…Done

How do I complete the Freepbx 17 install since that was were the install script exited with errors?

Ok I tried a fwconsole ma refreshsignatures --verbose and this time I get

Signature Invalid
Refreshing faxpro
Starting module download from https://mirror.freepbx.org/modules/packages/faxpro/8.2/faxpro-17.0.1.16.tgz.gpg
Processing
Downloading…
11895352/16992885 [===================>--------] 70% 2 secs
In Curl.php line 490:

[WpOrg\Requests\Exception]
cURL error 18: transfer closed with 4765069 bytes remaining to read

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.