Hello,
Suddenly I’m unable to add attachment in round cube, I’m getting this error “file upload failed”
https://i.postimg.cc/NGdbnCQd/1617461552-449625-image.png
Hello,
Suddenly I’m unable to add attachment in round cube, I’m getting this error “file upload failed”
https://i.postimg.cc/NGdbnCQd/1617461552-449625-image.png
Hi @aida,
Show the perms of roundcube temp dir:
ls -ld /var/lib/roundcube/temp/
The perms should be 755
, owner hestiamail
and group www-data
:
chown -R hestiamail:www-data /var/lib/roundcube/
chmod 755 /var/lib/roundcube/temp
Hi Sahsanu,
Thank you for your help, this was the current permission
root@hcp:~# ls -ld /var/lib/roundcube/temp/
drwxr-xr-x 2 hestiamail www-data 4096 Sep 17 15:41 /var/lib/roundcube/temp/
Now after changing permission
drwxrwxr-x 2 hestiamail www-data 4096 Sep 17 15:41 /var/lib/roundcube/temp/
root@hcp:~#
I have restarted PHP and nginx and even restart the server, but still getting same error
The original perms were the right ones.
Did you try to upload a file with a minimal size (just a few KBs)?
Do you have enough free space?
df -h
You should also check log file: /var/log/roundcube/errors.log
Log file is empty, there were a lot of logs files
root@hcp:/var/log/roundcube# ls
errors.log session.log
errors.log.1 session.log.1
errors.log.2 session.log.2
errors.log.3 session.log.3
errors.log.4 session.log.4
errors.log.5 session.log.5
errors.log.6 session.log.6
imap.log smtp.log
imap.log.1 smtp.log.1
imap.log.2 smtp.log.2
imap.log.3 smtp.log.3
imap.log.4 smtp.log.4
imap.log.5 smtp.log.5
imap.log.6 smtp.log.6
root@hcp:/var/log/roundcube#
I have deleted them all, now I can able to upload files
If you deleted them and now you can upload files, I suppose the files had the wrong perms and roundcube couldn’t write to them.