pfBng Widget error, 3.2.0_5 (not devel)
-
Good day, all! I upgraded to 23.05.1 when it was available. Recently I've noticed the error below in the Dashboard. I'm running python in both Unbound and pfBng. I've reloaded all many times, un/reinstalled, tried moving /var and /tmp to ramdisk and back. I know it's probably in the logs somewhere but I can't find anything. Any chance it's just cosmetic?
-
@provels said in pfBng Widget error, 3.2.0_5 (not devel):
I can't find anything
Have you tried to delete /var/log/pfblockerng/py_error.log ?
-
@fireodo No, but I'll try. It's zero byte anyway.
-
@provels said in pfBng Widget error, 3.2.0_5 (not devel):
No, but I'll try. It's zero byte anyway.
In this case it has to be something else ...
-
@fireodo Sledgehammer. Deleted all logs and downloaded feeds. Reloading now.
-
@provels said in pfBng Widget error, 3.2.0_5 (not devel):
@fireodo Sledgehammer. Deleted all logs and downloaded feeds. Reloading now.
Did not help. Weird. You may be on to something with the py_error.log.
Deleted the logs one by one and finally the py log threw a php error. Will continue.
Fatal error: Uncaught TypeError: ftruncate(): Argument #1 ($stream) must be of type resource, bool given in /usr/local/www/pfblockerng/pfblockerng_log.php:313 Stack trace: #0 /usr/local/www/pfblockerng/pfblockerng_log.php(313): ftruncate(false, 0) #1 {main} thrown in /usr/local/www/pfblockerng/pfblockerng_log.php on line 313 PHP ERROR: Type: 1, File: /usr/local/www/pfblockerng/pfblockerng_log.php, Line: 313, Message: Uncaught TypeError: ftruncate(): Argument #1 ($stream) must be of type resource, bool given in /usr/local/www/pfblockerng/pfblockerng_log.php:313 Stack trace: #0 /usr/local/www/pfblockerng/pfblockerng_log.php(313): ftruncate(false, 0) #1 {main} thrown
-
Yeah, something with the logs. I had knocked the pfB logs down to 100 entries and had no issues. Raised them to the default 20K and caught the error. Back to 100, it's fine. Oh well, I guess I'm good.
Thanks for reading! -
@provels said in pfBng Widget error, 3.2.0_5 (not devel):
Raised them to the default 20K and caught the error. Back to 100, it's fine. Oh well, I guess I'm good.
Are you using a RamDisk or is your space limited in some way? Anyway glad that you resolved the issue ...
-
@fireodo No real limitations. I have 16GB RAM and a 64GB SSD. Tried both disk and 4GB ramdisk with 20K entries (which is listed as default) and had the error. It's really a killer box (i7) for a single user.
-
@provels said in pfBng Widget error, 3.2.0_5 (not devel):
Tried both disk and 4GB ramdisk with 20K entries (which is listed as default) and had the error.
Very strange - I have a tiny box (compared to yours) and now problems with standard settings ...
-
@fireodo If I may ask, when you look at your pfB log file config, is the box filled as 20,000 or 20000 (without comma)? I was trying to find where these numbers are saved, but not yet found. I was wondering if the comma had anything to do with it, but don't change anything on my account. I can't even load 1,000 successfully.
-
@provels said in pfBng Widget error, 3.2.0_5 (not devel):
is the box filled as 20,000 or 20000 (without comma)?
With comma: "20,000"
-
@fireodo Thanks for that. Guess I'll just stick to 100 here. Maybe a crush and rebuild would help but probably not that important in my tiny environment. Thanks again.
-
-
Just updating this. Turned out to be a bad SmartTV blocklist causing the error.