Skip to main content

File manager editor fails to Save

Comments

24 comments

  • User Avatar
    quietFinn
    I suspect that error is caused by ModSecurity Do you have root access, or just cPanel?
    0
  • User Avatar
    Wil Colón
    I have WHM/root access.
    0
  • User Avatar
    quietFinn
    Search for your IP address in WHM Home / Security Center / ModSecurity Tools and see if anything shows up.
    0
  • User Avatar
    Wil Colón
    Thanks for the try! The hits list is empty.
    0
  • User Avatar
    Wil Colón
    Crap! Uploads are also hitting HTTP error 403. See attached. I'm in it deep now :eek:
    0
  • User Avatar
    quietFinn
    I'd think that is caused by PHP's upload_max_filesize and/or post_max_siz setting.
    0
  • User Avatar
    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
  • User Avatar
    quietFinn
    Maybe you see something useful in /usr/local/cpanel/logs/error_log
    0
  • User Avatar
    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
  • User Avatar
    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
  • User Avatar
    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
  • User Avatar
    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
  • User Avatar
    quietFinn
    Can you create & save any file as that cPanel user, in command line?
    0
  • User Avatar
    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
  • User Avatar
    quietFinn
    Did you try: /scripts/upcp --force
    0
  • User Avatar
    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
  • User Avatar
    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
  • User Avatar
    Wil Colón
    The update completed successfully but the problem persists :confused:
    0
  • User Avatar
    cPRex Jurassic Moderator
    It's definitely time to put in a ticket, as something seems wrong with the system.
    0
  • User Avatar
    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
  • User Avatar
    Wil Colón
    Ticket #95128598
    0
  • User Avatar
    cPRex Jurassic Moderator
    Thanks for that - I'm following along with that ticket now.
    0
  • User Avatar
    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
  • User Avatar
    cPRex Jurassic Moderator
    I'm glad that's all it was, and not something with cPanel!
    0

Please sign in to leave a comment.