Report this

What is the reason for this report?

Can't upload files since droplet rebuilt

Posted on August 10, 2019

Hi,

Yesterday I need to do some test with a droplet that has installed a CRM running on PHP, Apache, MariaDB; so I made a snapshot, test and after the test I rebuild the droplet to the snapshot taken before.

Since the rebuilt I can’t upload any file images, CSV, etc., to the CRM. I see some errors like:

[Sat Aug 10 11:16:52.241907 2019] [php7:warn] [pid 9454] [client 123.45.123.45:30463] PHP Warning:  unlink(upload/import/dupes_1.csv): Permission denied in /var/www/html/crm/include/UploadStream.php on line 301, referer: http://crm.domain.com/crm/index.php?module=Import&action=Step1&import_module=INV_Inventory&return_module=INV_Inventory&return_action=index
[Sat Aug 10 11:16:52.241989 2019] [php7:warn] [pid 9454] [client 123.45.123.45:30463] PHP Warning:  unlink(upload/import/dupesdisplay_1.csv): Permission denied in /var/www/html/crm/include/UploadStream.php on line 301, referer: http://crm.domain.com/crm/index.php?module=Import&action=Step1&import_module=INV_Inventory&return_module=INV_Inventory&return_action=index
[Sat Aug 10 11:16:52.242010 2019] [php7:warn] [pid 9454] [client 123.45.123.45:30463] PHP Warning:  unlink(upload/import/errorrecords_1.csv): Permission denied in /var/www/html/crm/include/UploadStream.php on line 301, referer: http://crm.domain.com/crm/index.php?module=Import&action=Step1&import_module=INV_Inventory&return_module=INV_Inventory&return_action=index
[Sat Aug 10 11:16:52.242027 2019] [php7:warn] [pid 9454] [client 123.45.123.45:30463] PHP Warning:  unlink(upload/import/errorrecordsonly_1.csv): Permission denied in /var/www/html/crm/include/UploadStream.php on line 301, referer: http://crm.domain.com/crm/index.php?module=Import&action=Step1&import_module=INV_Inventory&return_module=INV_Inventory&return_action=index
[Sat Aug 10 11:16:52.242044 2019] [php7:warn] [pid 9454] [client 123.45.123.45:30463] PHP Warning:  unlink(upload/import/status_1.csv): Permission denied in /var/www/html/crm/include/UploadStream.php on line 301, referer: http://crm.domain.com/crm/index.php?module=Import&action=Step1&import_module=INV_Inventory&return_module=INV_Inventory&return_action=index

Obviously I’ve checked file permissions and they are 775 or 755 as the CRM vendor request and the user Apache is the owner of all the directory and files on Apache root directory, I’ve also tried using 777 with no luck. There are space on disk too.

Does anybody knows what may be happening?

Thanks for your help.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi Bobby,

Thanks for your interest on my question. These are the permissions

[root@crm ~]# ll -h /var/www/html/crm/ | grep upload drwxrwxr-x. 5 apache apache 68K Aug 9 00:21 upload [root@crm ~]#

Thanks.

David

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.