Error wordpress - "file.png has failed to upload. Missing a temporary folder.
Hi dears
I'm having problems uploading files on wordpress.
When collecting logs with the command:
tail -f /etc/apache2/logs/error_log
It seems to me that it's something with file permissions in the /tmp folder.
logs:
[Mon Oct 11 15:43:04.210050 2021] [access_compat:error] [pid 30622] [client 104.131.60.249:56142] AH01797: client denied by server configuration: /home/irpp/public_html/xmlrpc.php
Failed to start up concurrent users module!
[Mon Oct 11 15:43:04.314329 2021] [cgi:error] [pid 27400] [client 177.55.50.106:50766] AH01215: PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0: /usr/local/cpanel/cgi-sys/ea-php74, referer:
-
If I run the script, I get the return with a possible problem because of an error: Read-only file system: Cpanel::Exception::TempFileCreateError/(XID vjwusz) The system failed to create the temporary file "/var/tmp/31269._USR_LOCAL_CPANEL_SCRIPTS_SECURETMP__.tmp.21b31aaf" because of an error: Read-only file system at /usr/local/cpanel/Cpanel/Rand.pm line 103. Cpanel::Rand::get_tmp_file_by_name("/var/tmp/31269._USR_LOCAL_CPANEL_SCRIPTS_SECURETMP__", "tmp", 1, 0) called at /usr/local/cpanel/Cpanel/TempFile.pm line 243 Cpanel::TempFile::_dir_or_file(Cpanel::TempFile=HASH(0xb7fbc8), 1) called at /usr/local/cpanel/Cpanel/TempFile.pm line 86 Cpanel::TempFile::dir(Cpanel::TempFile=HASH(0xb7fbc8)) called at /usr/local/cpanel/scripts/securetmp line 492 main::test_loopback_device("/dev/loop1") called at /usr/local/cpanel/scripts/securetmp line 509 main::check_loop_device() called at /usr/local/cpanel/scripts/securetmp line 69 if i run chmod 1777 /tmp: chmod: changing permissions of "/tmp": Read-only file system In this case, the hosting provider is us, but we are facing this difficulty. Any other ideas what we can do? 0 -
At this point it sounds like you'll need to try a reboot of the machine. 0 -
reboot worked, thanks cPRex! alt="Google (Android 11)">https://images.emojiterra.com/google/noto-emoji/unicode-13.1/128px/1f996.png
0 -
RAWR......I mean.................I'm glad that worked well! 0
Please sign in to leave a comment.
Comments
5 comments