Bug #15194
openPHP Fatal error in easyrule CLI
0%
Description
Running "easyrule block wan 1.0.152.114" via ssh caused an error.
It looks like it's a problem in backup_config().
It's actually a permissions error; easyrule needs to be run as root.
Possible fixes:
1. chmod 700 /usr/local/bin/easyrule
2. Add a check to the PHP to report permissions errors.
Files
Updated by Marcos M 11 months ago
- Category changed from Unknown to PHP Interpreter
- Status changed from New to Incomplete
I was not able to reproduce this. The error points to an issue writing the backup cache:
$bakout = fopen(g_get('cf_conf_path') . '/backup/backup.cache', "w"); fwrite($bakout, serialize($backupcache)); fclose($bakout);
This could mean there's some issue related to the filesystem (e.g. full disk).
Updated by David Johnston 11 months ago
To clarify, I ran easyrule as a regular user, and the account didn't have permissions to write to the backup cache.
Updated by Kris Phillips 11 months ago
David Johnston wrote in #note-2:
To clarify, I ran easyrule as a regular user, and the account didn't have permissions to write to the backup cache.
David,
So, to clarify, if you test this with the local admin user its' fine but if you try this with any other user it is not? Were the users that you're testing with a part of the admins group?