Nextcloud behind proxy, unable to update

Hi,
I am new to nextcloud.
My NC is installed on a LXC Proxmox container, behind my company’s proxy.
I have configured the system for the proxy, so I am able to update the debian operating system, install applications on the NC and finally nextcloud can detect the availability of a new version.
however is not able to update to the latest version.

I tried running an NC update from the shell:

root@dcpssc:/var/www/html/nextcloud/updater# su -s /bin/bash www-data -c "php updater.phar -vvv"

Box Requirements Checker
========================

> Using PHP 8.2.28
> PHP is using the following php.ini file:
  /etc/php/8.2/cli/php.ini

> Checking Box requirements:
  ✔ The package "psr/container" requires the version ">=7.4.0" or greater.
  ✔ The package "symfony/console" requires the version ">=7.2.5" or greater.
  ✔ The package "symfony/deprecation-contracts" requires the version ">=7.1" or greater.
  ✔ The package "symfony/polyfill-ctype" requires the version ">=7.1" or greater.
  ✔ The package "symfony/polyfill-intl-grapheme" requires the version ">=7.1" or greater.
  ✔ The package "symfony/polyfill-intl-normalizer" requires the version ">=7.1" or greater.
  ✔ The package "symfony/polyfill-mbstring" requires the version ">=7.1" or greater.
  ✔ The package "symfony/polyfill-php73" requires the version ">=7.1" or greater.
  ✔ The package "symfony/polyfill-php80" requires the version ">=7.1" or greater.
  ✔ The package "symfony/service-contracts" requires the version ">=7.2.5" or greater.
  ✔ The package "symfony/string" requires the version ">=7.2.5" or greater.


 [OK] Your system is ready to run the application.


Nextcloud Updater - version: v30.0.2rc1-9-ge6d305f

Current version is 31.0.5.

In Updater.php line 497:

  [Exception]
  Could not do request to updater server: CONNECT tunnel failed, response 407


Exception trace:
  at phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php:497
 NC\Updater\Updater->getUpdateServerResponse() at phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php:112
 NC\Updater\Updater->checkForUpdate() at phar:///var/www/html/nextcloud/updater/updater.phar/lib/UpdateCommand.php:136
 NC\Updater\UpdateCommand->execute() at phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Command/Command.php:298
 Symfony\Component\Console\Command\Command->run() at phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php:1040
 Symfony\Component\Console\Application->doRunCommand() at phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php:301
 Symfony\Component\Console\Application->doRun() at phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at phar:///var/www/html/nextcloud/updater/updater.phar/updater.php:17
 require() at /var/www/html/nextcloud/updater/updater.phar:14

update [--no-backup] [--no-upgrade]

could someone help me?
thanks

Hello @bdl77,

welcome to the Nextcloud community! :handshake:
please review How to configure a outbound Proxy for nextcloud docker container

Hi, thaks for your answer.

I configured it for proxy, infact i can upgrade the OS, I can install NC apps, I can use commans such as

curl -O https://download.nextcloud.com/server/releases/latest.zip
or
wget https://download.nextcloud.com/server/releases/latest.zip

But I’m unable to update NC from web interface or from shell by occ command

another look at the log

407 usually means “authorization required” which is likely impossible to use fr the server - remove proxy auth.

Configured how? Using Nextcloud’s proxy parameter?

Can you post your config as requested in the support template?

Anything unusual, such as your userproxypwd being specified in a second *.config.php?

See Configuration Parameters — Nextcloud latest Administration Manual latest documentation