Forums

Resolved
0 votes
Hi,

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
Sunday, March 19 2017, 08:11 PM
Share this post:

Accepted Answer

Tuesday, March 21 2017, 02:30 AM - #Permalink
Resolved
0 votes
Filed a bug tracker here...look OK? If so, we'll get an update out shortly.

B
The reply is currently minimized Show
Responses (11)
  • Accepted Answer

    Monday, March 20 2017, 01:31 AM - #Permalink
    Resolved
    0 votes
    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...
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 20 2017, 01:50 PM - #Permalink
    Resolved
    0 votes
    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
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 20 2017, 05:39 PM - #Permalink
    Resolved
    0 votes
    Hello Ben,

    Please let me know what you need to help.

    /etc/clearos/upstream_proxy.conf

    server =
    port =
    username =
    password =


    file permission : 0600
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 20 2017, 05:41 PM - #Permalink
    Resolved
    0 votes
    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.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 20 2017, 05:53 PM - #Permalink
    Resolved
    0 votes
    Thanks...who owns that file, root or 'webconfig'?

    B
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 20 2017, 05:59 PM - #Permalink
    Resolved
    0 votes
    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
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 20 2017, 06:17 PM - #Permalink
    Resolved
    0 votes
    Ben Chambers wrote:

    Thanks...who owns that file, root or 'webconfig'?

    B

    Root
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 20 2017, 06:33 PM - #Permalink
    Resolved
    0 votes
    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
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 20 2017, 06:49 PM - #Permalink
    Resolved
    0 votes
    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
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 20 2017, 06:54 PM - #Permalink
    Resolved
    0 votes
    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
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 20 2017, 07:10 PM - #Permalink
    Resolved
    0 votes
    Ben,

    I see now only the following in the log

    Mar 20 20:02:02 pdebrabander proxy2db: Processed 2277 proxy log lines - 602 records added.

    The other errors are dissapeared :-)

    I've changed line 402 and 442 to :

    $file = new File(self::FILE_CONFIG, TRUE);
    The reply is currently minimized Show
Your Reply