Skip to main content

File manager editor fails to Save

Comments

24 comments

  • quietFinn
    I suspect that error is caused by ModSecurity Do you have root access, or just cPanel?
    0
  • Wil Colón
    I have WHM/root access.
    0
  • quietFinn
    Search for your IP address in WHM Home / Security Center / ModSecurity Tools and see if anything shows up.
    0
  • Wil Colón
    Thanks for the try! The hits list is empty.
    0
  • Wil Colón
    Crap! Uploads are also hitting HTTP error 403. See attached. I'm in it deep now :eek:
    0
  • quietFinn
    I'd think that is caused by PHP's upload_max_filesize and/or post_max_siz setting.
    0
  • Wil Colón
    Not in this case, though. I was only trying to upload a file less than 100KB. The PHP settings are: post_max_size => 8M => 8M upload_max_filesize => 3M => 3M
    0
  • quietFinn
    Maybe you see something useful in /usr/local/cpanel/logs/error_log
    0
  • Wil Colón
    Good thought. Looking at the times when I was experiencing the problem, all I see is a repetition (see below) of what looks like normal stuff: [2023-09-23 07:45:02 -0400] info [cpsrvd] version 11.110.0.10 online ==> cpsrvd 11.110.0.10 started ==> cpsrvd: loading security policy....Done ==> cpsrvd: Setting up SSL support ... Done ==> cpsrvd: transferred port bindings: 10,11,12,3,4,5,6,7,8,9 ==> cpsrvd: bound to ports [2023-09-23 07:50:09 -0400] info [cpsrvd] version 11.110.0.10 online ==> cpsrvd 11.110.0.10 started ==> cpsrvd: loading security policy....Done ==> cpsrvd: Setting up SSL support ... Done ==> cpsrvd: transferred port bindings: 10,11,12,3,4,5,6,7,8,9 ==> cpsrvd: bound to ports [2023-09-23 07:54:23 -0400] info [cpsrvd] version 11.110.0.10 online ==> cpsrvd 11.110.0.10 started ==> cpsrvd: loading security policy....Done ==> cpsrvd: Setting up SSL support ... Done ==> cpsrvd: transferred port bindings: 10,11,12,3,4,5,6,7,8,9 ==> cpsrvd: bound to ports [2023-09-23 07:57:25 -0400] info [cpsrvd] version 11.110.0.10 online ==> cpsrvd 11.110.0.10 started ==> cpsrvd: loading security policy....Done ==> cpsrvd: Setting up SSL support ... Done ==> cpsrvd: transferred port bindings: 10,11,12,3,4,5,6,7,8,9 ==> cpsrvd: bound to ports [2023-09-23 08:05:09 -0400] info [cpsrvd] version 11.110.0.10 online ==> cpsrvd 11.110.0.10 started ==> cpsrvd: loading security policy....Done ==> cpsrvd: Setting up SSL support ... Done ==> cpsrvd: transferred port bindings: 10,11,12,3,4,5,6,7,8,9 ==> cpsrvd: bound to ports [2023-09-23 08:07:13 -0400] info [cpsrvd] version 11.110.0.10 online ==> cpsrvd 11.110.0.10 started ==> cpsrvd: loading security policy....Done ==> cpsrvd: Setting up SSL support ... Done ==> cpsrvd: transferred port bindings: 10,11,12,3,4,5,6,7,8,9 ==> cpsrvd: bound to ports
    0
  • Wil Colón
    To get a cleaner view, I'll post late today any error log entries directly after a failure to save and a failure to update.
    0
  • Wil Colón
    Monitored error_log while replicating both failure modes - unable to save from the editor and unable to upload from the file manager. Neither case added any lines to the log. For grins I tried to Go to a non-existent directory and that was caught in the log.
    0
  • Wil Colón
    Since it looks like this server has gotten corrupted somehow, a potential follow-up is to accelerate the move from CentOS to AlmaLinux. Elevate won't work because of dependence on software that's not PHP 8 ready, according to phan. In order to set up a separate server to test with alternative software, I've followed up on the recommendation from
    0
  • quietFinn
    Can you create & save any file as that cPanel user, in command line?
    0
  • Wil Colón
    Yes, the command line (Terminal tool) is unaffected for both WHM and cPanel users. The cPanel user even resorted to vim for some critical tweaks and it worked, it's just painful beyond all reason.
    0
  • quietFinn
    Did you try: /scripts/upcp --force
    0
  • Wil Colón
    Did you try: /scripts/upcp --force

    Glad you asked! I've been hesitant to try that because I'm on cPanel 110.0.10. If the --force pushes the server to cPanel versions that presume Elevation, that'd be a huge problem! Are you certain that command will reinstall 110.0.10?
    0
  • quietFinn
    problem! Are you certain that command will reinstall 110.0.10?

    Yes, it will install the version you have selected in WHM / Home / Server Configuration / Update Preferences So apparently you have LTS there.
    0
  • Wil Colón
    The update completed successfully but the problem persists :confused:
    0
  • cPRex Jurassic Moderator
    It's definitely time to put in a ticket, as something seems wrong with the system.
    0
  • Wil Colón
    Will do. For completeness, adding the recent realization that phpMyAdmin is hitting the same 403 error when trying to edit a field in the database. See attached.
    0
  • Wil Colón
    Ticket #95128598
    0
  • cPRex Jurassic Moderator
    Thanks for that - I'm following along with that ticket now.
    0
  • Wil Colón
    Tech support suggested I access the server directly instead of through a Cloudflare proxy. That cleared the issue. I suspect Cloudflare changed something in their service that triggered my challenges.
    0
  • cPRex Jurassic Moderator
    I'm glad that's all it was, and not something with cPanel!
    0

Please sign in to leave a comment.