Hi,
i'm having every 5 minutes the following errors in my system.loh, which i can not indentify
Is somebody having a clue where to search
i'm having every 5 minutes the following errors in my system.loh, which i can not indentify
Mar 19 21:03:38 pdebrabander engine: exception: error: /usr/clearos/apps/base/libraries/Shell.php (224): Command execution failed.
Mar 19 21:03:38 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/base/libraries/File.php (434): execute
Mar 19 21:03:38 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/base/libraries/File.php (228): get_size
Mar 19 21:03:38 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Proxy.php (407): get_contents_as_array
Mar 19 21:03:38 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Proxy.php (166): _load_config
Mar 19 21:03:38 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/base/libraries/Shell.php (180): get_server
Mar 19 21:03:38 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Iface.php (609): execute
Mar 19 21:03:38 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Iface.php (430): get_link_status
Mar 19 21:03:38 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Iface_Manager.php (543): get_info
Mar 19 21:03:38 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Iface_Manager.php (236): _get_interface_details
Mar 19 21:03:38 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Iface_Manager.php (621): get_interface_details
Mar 19 21:03:38 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Iface_Manager.php (270): _get_most_trusted
Mar 19 21:03:38 pdebrabander engine: exception: debug backtrace: /usr/sbin/network (80): get_most_trusted_ips
Is somebody having a clue where to search
Share this post:
Responses (11)
-
Accepted Answer
Just a wild guess based on the type of ClearOS apps the php errors are coming from - and your other post re. Intel NICs.
It would seem you have an unused NIC - is it possible that the errors are coming as a result of the app(s) trying to get the details for the unused NIC?
Consolidating use to the DUAL NIC and removing the then surplus CT might, just might, stop these errors... another test if you unused NIC is not configured would be to configure it as a LAN interface with a different sub-net to what you are using. It will complain there is no link - but a chance it also might stop the errors...
Other than that - no idea. I don't haven't the time to trawl through that much php to give a better idea of what is going wong... -
Accepted Answer
The upstream proxy theme is being tested/resurrected and I know some work was being done late in the final ISO game...I'll bet it has something to do with that feature.
Mar 19 21:03:38 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Proxy.php (407): get_contents_as_array
@Patrick - I'd be interested to track it down...could you pose the contents of your:
/etc/clearos/upstream_proxy.conf
file to help us track it down?
Thanks,
Ben -
Accepted Answer
-
Accepted Answer
Tony Ellis wrote:
Just a wild guess based on the type of ClearOS apps the php errors are coming from - and your other post re. Intel NICs.
It would seem you have an unused NIC - is it possible that the errors are coming as a result of the app(s) trying to get the details for the unused NIC?
Consolidating use to the DUAL NIC and removing the then surplus CT might, just might, stop these errors... another test if you unused NIC is not configured would be to configure it as a LAN interface with a different sub-net to what you are using. It will complain there is no link - but a chance it also might stop the errors...
Other than that - no idea. I don't haven't the time to trawl through that much php to give a better idea of what is going wong...
Good guess Tony, But the CT NIC is removed from the system.
Other point: it was there for over 1 year and no messages in the log. And that is strange to my opinion
On the DUAL NIC, the second was configured as HOTLAN but was not connected. Now i've made this my external connection and remove the CT NIC. -
Accepted Answer
I see from here, it's root. So, I think the fix would be to file:
/usr/clearos/apps/network/libraries/Proxy.php
Line 402:
Old
$file = new File(self::FILE_CONFIG);
New
$file = new File(self::FILE_CONFIG, TRUE);
Let us know if that quietens the logs a wee bit.
B -
Accepted Answer
-
Accepted Answer
Ben,
No luck
Mar 20 19:21:20 pdebrabander engine: exception: error: /usr/clearos/apps/base/libraries/Shell.php (224): Command execution failed.
Mar 20 19:21:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/base/libraries/File.php (434): execute
Mar 20 19:21:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/base/libraries/File.php (228): get_size
Mar 20 19:21:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Proxy.php (407): get_contents_as_array
Mar 20 19:21:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Proxy.php (166): _load_config
Mar 20 19:21:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/base/libraries/Shell.php (180): get_server
Mar 20 19:21:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Iface.php (609): execute
Mar 20 19:21:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Iface.php (430): get_link_status
Mar 20 19:21:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Iface_Manager.php (543): get_info
Mar 20 19:21:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Iface_Manager.php (236): _get_interface_details
Mar 20 19:21:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Iface_Manager.php (621): get_interface_details
Mar 20 19:21:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Iface_Manager.php (270): _get_most_trusted
Mar 20 19:21:20 pdebrabander engine: exception: debug backtrace: /usr/sbin/network (80): get_most_trusted_ips
Mar 20 19:26:20 pdebrabander engine: exception: error: /usr/clearos/apps/base/libraries/Shell.php (224): Command execution failed.
Mar 20 19:26:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/base/libraries/File.php (434): execute
Mar 20 19:26:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/base/libraries/File.php (228): get_size
Mar 20 19:26:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Proxy.php (407): get_contents_as_array
Mar 20 19:26:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Proxy.php (166): _load_config
Mar 20 19:26:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/base/libraries/Shell.php (180): get_server
Mar 20 19:26:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Iface.php (900): execute
Mar 20 19:26:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Iface.php (436): get_speed
Mar 20 19:26:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Iface_Manager.php (543): get_info
Mar 20 19:26:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Iface_Manager.php (236): _get_interface_details
Mar 20 19:26:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Iface_Manager.php (621): get_interface_details
Mar 20 19:26:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Iface_Manager.php (270): _get_most_trusted
Mar 20 19:26:20 pdebrabander engine: exception: debug backtrace: /usr/sbin/network (80): get_most_trusted_ips
Mar 20 19:31:20 pdebrabander engine: exception: error: /usr/clearos/apps/base/libraries/Shell.php (224): Command execution failed.
Mar 20 19:31:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/base/libraries/File.php (434): execute
Mar 20 19:31:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/base/libraries/File.php (228): get_size
Mar 20 19:31:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Proxy.php (407): get_contents_as_array
Mar 20 19:31:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Proxy.php (166): _load_config
Mar 20 19:31:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/base/libraries/Shell.php (180): get_server
Mar 20 19:31:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Iface.php (609): execute
Mar 20 19:31:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Iface.php (430): get_link_status
Mar 20 19:31:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Iface_Manager.php (543): get_info
Mar 20 19:31:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Iface_Manager.php (236): _get_interface_details
Mar 20 19:31:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Iface_Manager.php (621): get_interface_details
Mar 20 19:31:20 pdebrabander engine: exception: debug backtrace: /usr/clearos/apps/network/libraries/Iface_Manager.php (270): _get_most_trusted
Mar 20 19:31:20 pdebrabander engine: exception: debug backtrace: /usr/sbin/network (80): get_most_trusted_ips -
Accepted Answer
-
Accepted Answer
Ben Chambers wrote:
There's two references of:
$file = new File(self::FILE_CONFIG);
You sure you didn't get the wrong one (both should have the superuser "TRUE" flag, actually).
B
I've change only line 402. The other is line 442
Now also change line 442 to :
$file = new File(self::FILE_CONFIG, TRUE);
Line 442 did not have "TRUE" flag -
Accepted Answer
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »