Author Topic: Could not create directory  (Read 227 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Could not create directory
« on: October 08, 2024, 01:34:04 AM »
My VPS running on CWPpro version: 0.9.8.1187

I want to upgrade the plugin for WordPress, but after clicking upgrade I get the following error

Update failed: Could not create directory. /home/*/public_html/wp-content/upgrade/classic-editor.1.6.5

I checked the permissions on the /upgrade/ directory and it is 755, which should be fine!

In addition, before, I could upgrade the plugin normally, but recently I suddenly got such an error.

I checked the site's error logs again and found a number of error records as follows
AH01071: Got error 'PHP message: PHP Warning: file_put_contents(): only -1 of 78424 bytes written, possibly out of free disk space in /home/*/public_ html/wp-content/plugins/wp-cache/inc/cache.php on line 1226'


This seems to be running out of space, but my VPS has 160G and I'm only using 41G so far, what's wrong with this and how should I fix it?

Offline
*
Re: Could not create directory
« Reply #1 on: October 08, 2024, 02:09:46 AM »
Maybe the home partition is a separate partition to / ?

Offline
*
Re: Could not create directory
« Reply #2 on: October 08, 2024, 02:56:19 AM »
CentOS 7 Disk   ext4   162218 MB
512 MB Swap Image   swap   512 MB


Here is my VPS partition

Offline
*
Re: Could not create directory
« Reply #3 on: October 08, 2024, 03:14:10 AM »
Do
Code: [Select]
df -h and see what it says. The disk space may be over committed.

Offline
*
Re: Could not create directory
« Reply #4 on: October 08, 2024, 06:04:10 AM »
This command returns the following:

Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        3.9G     0  3.9G   0% /dev
tmpfs           3.9G     0  3.9G   0% /dev/shm
tmpfs           3.9G   17M  3.9G   1% /run
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/sda        157G   41G  109G  28% /
tmpfs           783M     0  783M   0% /run/user/0


Please check!

Offline
*
Re: Could not create directory
« Reply #5 on: October 08, 2024, 06:13:33 AM »
Space looks fine.

Under User Accounts
try Fix Permissions on that account.

Offline
*
Re: Could not create directory
« Reply #6 on: October 08, 2024, 06:23:44 AM »
I checked, and in the user account, its permissions are 755, which seems to be okay.

I create a directory through FileZilla, and it shows the following error

Status:   Retrieving directory listing of "/public_html/wp-content/upgrade"...
Status:   Directory listing of "/public_html/wp-content/upgrade" successful
Status:   Creating directory '/public_html/wp-content/upgrade/66'...
Command:   MKD 66
Response:   550 Can't create directory: Disk quota exceeded


FileZilla also shows that the disk space is exhausted.

Offline
*
Re: Could not create directory
« Reply #7 on: October 08, 2024, 06:29:58 AM »
Quote
FileZilla also shows that the disk space is exhausted.

I would contact your host and make sure everything is ok their end.

Offline
*
Re: Could not create directory
« Reply #8 on: October 08, 2024, 06:33:04 AM »
I found the problem, my VPS space is 160, but the space allocated to the current user is only 20G, how do I increase the space for the current user. In User Accounts-> List Accounts->Edit Account I didn't find the option to modify the disk space.

Offline
*
Re: Could not create directory
« Reply #9 on: October 08, 2024, 06:38:20 AM »
You will need to create or edit a Package (under Packages)  and assign it to the account.

Offline
*
Re: Could not create directory
« Reply #10 on: October 08, 2024, 06:58:27 AM »
Thanks, it's been fixed

Offline
*
Re: Could not create directory
« Reply #11 on: October 08, 2024, 07:31:45 AM »
Good to hear. :)