Hestia auto upgradeto 1.10.10 causes error upgrading Roundcube 1.7.7

Error upgrading Roundcube 1.7.7
[ * ] File Manager is up to date (7.16.9)...
[ ! ] Upgrading Roundcube to version 1.7.7...
pear/auth_sasl/
pear/console_getopt/
pear/mail_mime/
pear/mail_mime/README
pear/mail_mime/composer.json
pear/mail_mime/Mail/
pear/mail_mime/Mail/mime.php
pear/mail_mime/Mail/mimePart.php
pear/net_ldap2/
pear/net_sieve/
pear/net_sieve/Sieve.php
pear/net_sieve/composer.json
pear/net_sieve/phpstan.neon
pear/net_socket/
psr/
psr/event-dispatcher/
ralouphie/
roundcube/
roundcube/plugin-installer/
symfony/
symfony/polyfill-php85/
symfony/polyfill-php85/LICENSE
symfony/polyfill-php85/Php85.php
symfony/polyfill-php85/README.md
symfony/polyfill-php85/bootstrap.php
symfony/polyfill-php85/bootstrap80.php
symfony/polyfill-php85/composer.json
symfony/polyfill-php85/Resources/
symfony/polyfill-php85/Resources/stubs/
symfony/polyfill-php85/Resources/stubs/DelayedTargetValidation.php
symfony/polyfill-php85/Resources/stubs/NoDiscard.php
symfony/polyfill-php85/Resources/stubs/Filter/
symfony/polyfill-php85/Resources/stubs/Filter/FilterException.php
symfony/polyfill-php85/Resources/stubs/Filter/FilterFailedException.php
defaults.inc.php
index.php
CHANGELOG.md
README.md
index.php
installer.php
static.php
public_html/.htaccess.new
done.

NOTICE: New public_html/.htaccess file saved as public_html/.htaccess.new.

Running update script at target...
Executing database schema update.
Fatal error: Please check the Roundcube error log and/or server error logs for more information.
ERROR: Failed to execute command: cd /var/lib/roundcube && /usr/bin/php8.3 bin/update.sh --version=1.7.6 -y
[ ! ] Error upgrading Roundcube 1.7.7

Also, what is the necessity of .htaccess.new?

What’s the error shown in /var/log/roundcube/errors.log?

Haven’t had a chance to open laptop and check it.
Once am back from office, will check and update here.

Error log from /var/log/roundcube/errors.log

[25-Nov-2026 04:41:07 Asia/Kolkata] PHP Fatal error:  Uncaught Error: Call to undefined function system() in /var/lib/roundcube/program/include/rcmail_install.php:1058
Stack trace:
#0 /var/lib/roundcube/bin/update.sh(274): rcmail_install::vendor_dir_untouched()
#1 {main} thrown in /var/lib/roundcube/program/include/rcmail_install.php on line 1058

rcmail_install.php:1058

system('grep -q "generated by Roundcube" ' . escapeshellarg($target_dir . '/vendor/autoload.php') . ' 2>/dev/null', $exit_code);

Although when I check the version of webmail:
Roundcube Webmail 1.7.7

Also, I ran the post install command as suggested here: HestiaCP 1.10.5 to 1.10.6. Roundcube update failed - #2 by sahsanu

sudo bash /var/lib/dpkg/info/hestia.postinst

[ * ] Roundcube is up to date (1.7.7)...

I still do not understand this part. :up_arrow:

Moreover, does this impact/affect anything? :down_arrow:
[ * ] Replacing wildcard MySQL database grants with exact grants

Show me this output:

export phpver="$(v-list-default-php plain)"; echo "Default PHP is $phpver"; grep -E '^disable_functions' "/etc/php/$phpver/cli/php.ini"

Try to update Roundcube again:

sed -i 's/1\.7\.7/1.7.6/' /var/lib/roundcube/program/include/iniset.php
v-add-sys-roundcube

Check again /var/log/roundcube/errors.log and if you see the same error, do this:

cp /usr/local/hestia/bin/v-add-sys-roundcube /usr/local/hestia/bin/v-add-sys-roundcube.bak

Edit manually /usr/local/hestia/bin/v-add-sys-roundcube and just after Action section, add this:

php_ini_override="$(mktemp -d)" || fail "Cannot create a temporary directory"
trap 'rm -rf "$php_ini_override"' EXIT
echo "disable_functions =" > "$php_ini_override/zz-hestia-roundcube.ini"
export PHP_INI_SCAN_DIR="${PHP_INI_SCAN_DIR:-}:$php_ini_override"

It should look like this:

[...]
#----------------------------------------------------------#
#                       Action                             #
#----------------------------------------------------------#

php_ini_override="$(mktemp -d)" || fail "Cannot create a temporary directory"
trap 'rm -rf "$php_ini_override"' EXIT
echo "disable_functions =" > "$php_ini_override/zz-hestia-roundcube.ini"
export PHP_INI_SCAN_DIR="${PHP_INI_SCAN_DIR:-}:$php_ini_override"

if [[ "$UPDATE" == "no" ]]; then
        rm -rf "${RC_INSTALL_DIR:?}"
        rm -rf "${RC_CONFIG_DIR:?}"
[...]

Once done, repeat the update process and check if the system function error doesn’t appear anymore:

sed -i 's/1\.7\.7/1.7.6/' /var/lib/roundcube/program/include/iniset.php
v-add-sys-roundcube

That’s created automatically by Roundcube installer, you can ignore it.

It shouldn’t affect anything.

Default PHP is 8.3
disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,exec,system,passthru,shell_exec,proc_open,popen
  Upgrading from 1.7.6. Do you want to continue? (y/N)
  Copying files to target location..../
  installto.sh
  include/
  include/iniset.php
  public_html/.htaccess.new
  done.

  NOTICE: New public_html/.htaccess file saved as public_html/.htaccess.new.

  Running update script at target...
  Executing database schema update.
  Fatal error: Please check the Roundcube error log and/or server error logs for more information.
  ERROR: Failed to execute command: cd /var/lib/roundcube && /usr/bin/php8.3 bin/update.sh --version=1.7.6 -y
ERROR: installto.sh failed (Roundcube 1.7.6 -> 1.7.7)

Same error:

PHP Fatal error:  Uncaught Error: Call to undefined function system() in /var/lib/roundcube/program/include/rcmail_install.php:1058
Stack trace:
#0 /var/lib/roundcube/bin/update.sh(274): rcmail_install::vendor_dir_untouched()
#1 {main} thrown in /var/lib/roundcube/program/include/rcmail_install.php on line 1058
cp /usr/local/hestia/bin/v-add-sys-roundcube /usr/local/hestia/bin/v-add-sys-roundcube.bak
sed -i 's/1\.7\.7/1.7.6/' /var/lib/roundcube/program/include/iniset.php
v-add-sys-roundcube
Blank output

Then I checked the roundcube webmail version (Call for Testers: Roundcube 1.7-beta & Updated Mail Templates - #15 by nu01)
grep RCMAIL_VERSION /var/lib/roundcube/program/include/iniset.php | cut -d "'" -f 4
1.7.7
:clap:

Thanks, understood. :slight_smile:

Just that, it is so confusing. :frowning:

This PR fixes the issue: