Opened 6 years ago

Closed 5 years ago

#7524 closed Bug/Something is broken (fixed)

after roundcube upgrade mx1 users cannot attach files

Reported by: Owned by:
Priority: Urgent Component: Tech
Keywords: mx1 roundcube-upgrade Cc: geaedicion@…, flapina@…
Sensitive: no


Jamie, hi System responds after choosing the file: "an error occurred!. File upload failed." Could this be a permissions error? Thanks a lot for help Enrique

Change History (6)

comment:1 Changed 6 years ago by

  • Owner set to
  • Status changed from new to assigned

comment:2 Changed 6 years ago by

Jamie. It looks like there is the same kind of issue when trying to save drafts. Thanks again.

comment:3 Changed 6 years ago by

Thanks for the report.

I checked /etc/apache2/sites-enabled/vhcs2.conf, searching for "webmail" to find out what file is the apache error log. That told me that the file in use is: /var/log/apache2/users/

I then scanned that file. I found this error:

Fri Jul 05 03:34:02 2013] [error] [client] PHP Warning:  Error writing to log file /var/www/virtual/; Please check permissions in /var/www/virtual/ on line 1057, referer:

Which I don't think is the cause of this problem, but I changed the group and permissions on /var/www/virtual/ anyway to avoid this in the future:

chgrp www-data/var/www/virtual/
chmod 775 /var/www/virtual/

Then I found the error that was more informative:

[Fri Jul 05 03:34:50 2013] [error] [client] PHP Warning:  move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: open_basedir restriction in effect. File(/tmp/rcmAttmntFdrEbN) is not within the allowed path(s): (/var/www/virtual/ in /var/www/virtual/ on line 59, referer:

It seems as though there is an open_basedir restriction in place. I resolved the problem by adding the following configuration item to config/

$rcmail_config['temp_dir'] = '/var/www/virtual/';

I also cleaned up that directory, which had tmp files that were many years old, with:

0 mx1:/var/www/virtual/ find . -mtime +30 -exec rm '{}' \;
0 mx1:/var/www/virtual/

Can you try again?

comment:4 Changed 5 years ago by

Hey Enrique & Jamie,

Is there an update on this?


comment:5 Changed 5 years ago by

  • Resolution set to fixed
  • Status changed from assigned to feedback

I think this is done so setting to feedback state. Please re-open if we still can't attach files.

comment:6 Changed 5 years ago by automatic

  • Status changed from feedback to closed

No news is good news (we hope)! Given the lack of feedback, we think this ticket can be closed.

Please login to add comments to this ticket.

Note: See TracTickets for help on using tickets.