File manager editor fails to Save
Edits are not saving and the error messages are not helping. I've checked owner, group and permissions for the files and containing folders, all are correct. The error message upon hitting Save is "Your login session has expired." Except it has not, the session remains able to perform any function except Save. Besides, the error happens even when attempting the edit and Save immediately upon login. The error popup offers OK and Cancel buttons, on Cancel it pops another dialogue saying "HTTP ERROR 403: Forbidden." See attachments.
CentOS v7.9.2009 STANDARD hyper-v
cPanel Version 110.0.10
-
I suspect that error is caused by ModSecurity Do you have root access, or just cPanel? 0 -
I have WHM/root access. 0 -
Search for your IP address in WHM Home / Security Center / ModSecurity Tools and see if anything shows up. 0 -
Thanks for the try! The hits list is empty. 0 -
Crap! Uploads are also hitting HTTP error 403. See attached. I'm in it deep now :eek: 0 -
I'd think that is caused by PHP's upload_max_filesize and/or post_max_siz setting. 0 -
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 -
Maybe you see something useful in /usr/local/cpanel/logs/error_log 0 -
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 -
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 -
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 -
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 -
Can you create & save any file as that cPanel user, in command line? 0 -
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 -
Did you try: /scripts/upcp --force 0 -
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 -
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 -
The update completed successfully but the problem persists :confused: 0 -
It's definitely time to put in a ticket, as something seems wrong with the system. 0 -
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 -
Ticket #95128598 0 -
Thanks for that - I'm following along with that ticket now. 0 -
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 -
I'm glad that's all it was, and not something with cPanel! 0
Please sign in to leave a comment.
Comments
24 comments