Skip to main content

Error wordpress - "file.png” has failed to upload. Missing a temporary folder.

Comments

5 comments

  • cPRex Jurassic Moderator
    Hey there! From that output, it looks like /tmp has went read-only. Can you try running this on the machine? chmod 1777 /tmp
    to see if that resolves the issue? If not, you can try running the securetmp script as outlined here:
    -1
  • renato.figueiredo
    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
  • cPRex Jurassic Moderator
    At this point it sounds like you'll need to try a reboot of the machine.
    0
  • renato.figueiredo
    reboot worked, thanks cPRex! alt="Google (Android 11)">https://images.emojiterra.com/google/noto-emoji/unicode-13.1/128px/1f996.png
    0
  • cPRex Jurassic Moderator
    RAWR......I mean.................I'm glad that worked well!
    0

Please sign in to leave a comment.