Jump to content
Froxlor Forum
  • 0

unerwartetes Feedback vom cron (traffic-task)


rseffner

Question

Seit zwei, drei Tagen gibts Mail vom cron (traffic-task) in der Form:

[SETTING UP STORAGE -] {0} @ {0/s}
[SETTING UP STORAGE -] {0} @ {0/s}
[SETTING UP STORAGE -] {0} @ {0/s}
[SETTING UP STORAGE -] {0} @ {0/s}
[SETTING UP STORAGE -] {0} @ {0/s}
[SETTING UP STORAGE -] {0} @ {0/s}
[PARSING -] {11,268} @ {0/s}

Wo kommt das her, wie stelle ich das ab?

Der Task dazu:

/usr/bin/nice -n 5 /usr/bin/php -q /var/www/html/froxlor/bin/froxlor-cli froxlor:cron 'traffic' -q 1> /dev/null

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

Gerne testen, ich kam noch nicht dazu:

diff --git a/lib/Froxlor/Cron/Traffic/TrafficCron.php b/lib/Froxlor/Cron/Traffic/TrafficCron.php
index 421505e3..b764b0d3 100644
--- a/lib/Froxlor/Cron/Traffic/TrafficCron.php
+++ b/lib/Froxlor/Cron/Traffic/TrafficCron.php
@@ -618,7 +618,7 @@ class TrafficCron extends FroxlorCron
                        $format = Settings::Get('system.logfiles_type') == '2' ? 'VCOMBINED' : 'COMBINED';
                        $monthyear = $monthyear_arr['month'] . '/' . $monthyear_arr['year'];
                        $return_value = false;
-                       FileDir::safe_exec("grep '" . $monthyear . "' " . escapeshellarg($logfile) . " | goaccess " . $keep_params . " --db-path=" . escapeshellarg($outputdir) . " -o " . escapeshellarg($outputdir . '.tmp.json') . " -o " . escapeshellarg($outputdir . 'index.html') . " --html-report-title=" . escapeshellarg($caption) . " --log-format=" . $format . " - ", $return_value, ['|']);
+                       FileDir::safe_exec("grep '" . $monthyear . "' " . escapeshellarg($logfile) . " | goaccess " . $keep_params . " --db-path=" . escapeshellarg($outputdir) . " -o " . escapeshellarg($outputdir . '.tmp.json') . " -o " . escapeshellarg($outputdir . 'index.html') . " --html-report-title=" . escapeshellarg($caption) . " --log-format=" . $format . " --no-parsing-spinner --no-progress - ", $return_value, ['|']);

                        if (file_exists($outputdir . '.tmp.json')) {
                                // need jq here because of potentially LARGE json files

 

Link to comment
Share on other sites

  • 0

Hi,
tried this fix on froxlor v2.1.3-1 on Ubuntu v22 - output is reduced but we still see "Cleaning up resources..." and somehow additional warnings like this:

/usr/bin/php8.2 -q /var/www/html/froxlor/bin/froxlor-cli froxlor:cron 'traffic' -q 1> /dev/null
Cleaning up resources...
Cleaning up resources...
Cleaning up resources...
PHP Warning:  Undefined array key 2 in /var/www/html/froxlor/lib/Froxlor/Cron/Traffic/TrafficCron.php on line 168
Cleaning up resources...
Cleaning up resources...
PHP Warning:  Undefined array key 7 in /var/www/html/froxlor/lib/Froxlor/Cron/Traffic/TrafficCron.php on line 168
Cleaning up resources...
Cleaning up resources...

 

Link to comment
Share on other sites

  • 0
5 hours ago, hk@ said:
Cleaning up resources

goaccess issue, see their changelog:

Changes to GoAccess 1.6 - Tuesday, May 31, 2022
[...]
  - Ensure no 'cleaning up resources' message  is displayed if `--no-progress`
    is passed.

[...]

 

The warning seems to come from unknown domains, do you have a domain in panel_domains with id 2 and 7?

Link to comment
Share on other sites

  • 0
6 hours ago, d00p said:

The warning seems to come from unknown domains, do you have a domain in panel_domains with id 2 and 7?

tschuldigung, das is ja das deutschsprachige Forum.
Die beiden Einträge (2+7) gibt es - sind automatisch erzeugte "Standardsubdomains" von froxlor.

Link to comment
Share on other sites

  • 0

haben die vllt einen Alias gesetzt die zwei? Oder sind als "email only" markiert? Sonst wird eigentlich alles (dem kunden anhand id) zugewiesen:
 

SELECT `id`, `domain`, `customerid`, `parentdomainid`, `speciallogfile`
FROM `panel_domains` 
WHERE `aliasdomain` IS NULL AND `email_only` <> '1'

Tauchen die da auf, kann es eigentlich nur noch sein, dass die customerid die in panel_domains steht nicht zu der customerid mit der standardsubdomain-id aus panel_customers passt

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...