I have a Dolibarr V21.0.1 installed by Softaculous in a cPanel we hosting server.
I have required to the service provider administrator that clean the directory .cagefs in my cPanel server because is occupying more than 90% of my storage with temporal files. After the cleaning process of that directory of the PHP server my Dolibarr installation do not let me login and gives me the message “The security token has expired, so action has been cancelled. Please try again”
I reviewed the cPanel server and my domain has the 8.2 PHP version.
Any of you know what would be the cause of this error?
I don’t know if it must be solved by my cPanel server provider or is necessary to do anything in the Dolibarr installation?
One more thing… Configure your LOG module only for critical “ERR” events. It’s located in the “/documents/” directory. If it’s a large file, delete it.
As I´m not an expert in the PHP server configuration, I don’t know where must to be the session.save_path. This must be in the hidden folder .cagefs located in the Home of the cPanel server?
The error begins when this folder (Home/cagefs.) was cleaned of temporary files by the cPanel provider administrator.
Currently a temporary solution was to restore the .cagefs folder to a previous backup but, again this .cagefs is using more than 90% of the storage in the server. This folder is not in the dolibarr folder, this is located in the Home of my cPanel server.
I understand that the Home/cagefs. folder normaly have a process that cleans the temporary files that are not used more than 30 days but, I don’t want to request a cleaning process again and generate again the problem with the security token expired.
You will receive this error if the folder was completely deleted; this is an area where session logs are kept.
It needs to be recreated and authorized with 775, and defined as the owner group under your host name.
The solution I suggested was to keep these forum logs in a different location.
If the folder we mentioned exists and is empty, then you probably need to recreate the login credentials (for your host). Only your hosting provider with SSH access can do this.
If you won’t lose any data, simply replace the previous folder. The problem should be solved.
Another reason for the error you’re receiving is insufficient disk space. For example, if your system needs 10MB to run, you need at least 10MB for swap. If you’re creating a backup, this amount should be double that.
It needs to be investigated; I’m currently speculating based on probabilities. You should seek professional help..