PHPMailer and FileManager error after update

Hi.
Today I updated HestiaCP from v1.5.15 to v1.6.10, using apt upgrade.
During the upgrade, errors occurred with the PHPMailer and FileManager packages.
Now I don’t have access to FileManager, Roundcube or PHPMyAdmin.

In the administration panel, I have two alerts:

Composer installation failed!
PHPMailer will not work without Composer.
Please try running the installer manually from a shell session:
v-add-sys-phpmailer

And

Composer installation failed!
The File Manager will not work without Composer.
Please try running the installer manually from a shell session:
v-add-sys-filemanager

When i run v-add-sys-phpmailer:
PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 692224 bytes) in /tmp/tmp.MywfcsXs9o on line 1375 Error: Composer install failed

Running v-add-sys-filemanager:
PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 692224 bytes) in /tmp/tmp.6bv4h8vgXJ on line 1375 Error: Composer install failed

I have been reading possible solutions in the forum, but so far none have worked for me.

Here is the upgrade log.

==============================================================================
Hestia Control Panel Software Update Log
==============================================================================

OPERATING SYSTEM:      Debian (11)
CURRENT VERSION:       1.5.15
NEW VERSION:           1.6.10
RELEASE BRANCH:        release
BUILD TYPE:            Production release

INSTALLER OPTIONS:
=============================================================================
Send email notification on upgrade complete:      true
Send installed log output to admin email:         false

=============================================================================
[ * ] Backing up existing templates and configuration files...
=============================================================================
[ ! ] Performing system health check before proceeding with installation...  
[ ! ] Adding missing variable to hestia.conf: API_SYSTEM ('0')
[ ! ] Duplicated keys found repair config
[ * ] Health check complete. Starting upgrade from 1.5.15 to 1.6.10...
=============================================================================

[ - ] Now applying patches and updates for version v1.6.0...
[ * ] Update exim4 config to support rate limits
[ * ] Add support for optional rejecting spam
[ * ] Enabling SMTP relay support...
[ * ] Enable Samassassin Cronjob
[ * ] Updating nginx configuration with changes to Cloudflare IP addresses
[ * ] Update phpMyAdmin server configuration

[ - ] Now applying patches and updates for version v1.6.1...
[ * ] Fixed an issue with rate limits and alias mail addresses
[ * ] Fixed an issue reject spam not working properly.

[ - ] Now applying patches and updates for version v1.6.10...

[ - ] Now applying patches and updates for version v1.6.2...

[ - ] Now applying patches and updates for version v1.6.3...
[ * ] Fix an issue with sending large attachments to Google / Gmail

[ - ] Now applying patches and updates for version v1.6.4...

[ - ] Now applying patches and updates for version v1.6.5...

[ - ] Now applying patches and updates for version v1.6.6...

[ - ] Now applying patches and updates for version v1.6.7...

[ - ] Now applying patches and updates for version v1.6.8...
[ * ] Create config roundcube logrotate file

[ - ] Now applying patches and updates for version v1.6.9...
[ ! ] Upgrading File Manager to version 7.8.2...
Error: Composer install failed
[ ! ] Upgrading Roundcube to version 1.6.0...
[ ! ] Upgrading PHPmailer to version 6.6.5...
Error: Composer install failed
[ * ] Upgrading phpMyAdmin to version 5.2.0...
=============================================================================
Installation tasks complete, performing clean-up...                          
=============================================================================
[ * ] Rebuilding user accounts and domains, this may take a few minutes...
      - admin...
      - sysadmin...
[ * ] Restarting services...
Error: ERROR: Restart of hestia failed.

=============================================================================
UPGRADE COMPLETE.

Could you guide me how to fix the errors?

Thanks in advance

Solved.

The value of the memory_limit directive in PHP was wrong.

After correcting the value of the directive, I ran the commands, this time without any error messages.

I already have access to RoundCube, File Manager and PHPMyAdmin.

1 Like

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