Applicable to:
- Plesk Onyx for Linux
Symptoms
-
Roundcube version 1.2.7 is installed in Plesk on CentOS 7, Red Hat Enterprise Linux 7 or CloudLinux 7
-
Attached files are not sent with emails created in Roundcube
-
Errors in
/var/log/plesk-roundcube/errors
:CONFIG_TEXT: PHP Error: john.doe@example.com can't read /tmp/rcmAttmntY1cO51 (not in temp_dir) in /usr/share/psa-roundcube/plugins/filesystem_attachments/filesystem_attachments.php on line 216 (POST /roundcube/?_task=mail&_unlock=loading1510650728910&_lang=en_US&_framed=1&_action=send)
-
temp_dir
parameter is different in/usr/share/psa-roundcube/config/defaults.inc.php
and/usr/share/psa-roundcube/config/defaults.inc.php.rpmnew
:# grep -rin 'temp_dir' /usr/share/psa-roundcube/config/defaults* | grep var
/usr/share/psa-roundcube/config/defaults.inc.php:354:$config['temp_dir'] = '/var/tmp/plesk-roundcube/';
/usr/share/psa-roundcube/config/defaults.inc.php.rpmnew:388:$config['temp_dir'] = '/var/tmp/';
Cause
Plesk bug #PPPM-7470 fixed in:
- Plesk Onyx 17.0 on November 16th, 2017
- Plesk Onyx 17.5 on November 16th, 2017
Resolution
For Plesk Onyx 17.5 and 17.0, install the latest Plesk micro-updates.
If update is not possible for some reason, try the following
-
Connect to the server using SSH
-
Add the line to
/usr/share/psa-roundcube/config/config.inc.php
CONFIG_TEXT: $config['temp_dir'] = '/var/tmp/';
Comments
7 comments
I've upgraded to Onyx 17.5.3 MU #30 but issue still persists.
# plesk version
Product version: Plesk Onyx 17.5.3 Update #30
Update date: 2017/11/16 12:03
Build date: 2017/03/17 16:00
OS version: CentOS 7.4.1708
16-Nov-2017 11:10:55 +0000]: <a4aa6qq7> PHP Error: email@domain.org can't read /tmp/rcmAttmntUIDp0r (not in temp_dir) in /usr/share/psa-roundcube/plugins/filesystem_attachments/filesystem_attachments.php on line 216 (POST /?_task=mail&_unlock=loading1510830848525&_lang=es&_framed=1&_action=send)
Roundcube php.ini time is UTC but system time is CET.
Workaround works perfect!
Thank you.
Bug #PPPM-7470 have been fixed in Plesk Onyx 17.5.3 Update 30, Plesk Onyx 17.0.17 Update 41
Plesk Version 17.5.3 Update #42 - roundcube not able to send attachments. Workaround didn't helped.
@Firstserv Support
Hello!
The issue was not reproduced on a test server.
The investigation will be continued in a scope of ticket.
Tried temporary solution on Plesk 12, works like a charm.
Please sign in to leave a comment.