December 27, 20232 yr 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
December 27, 20232 yr Solution 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
December 27, 20232 yr Author 13 minutes ago, d00p said: Gerne testen, ich kam noch nicht dazu: Der unerwünschte Output ist weg.
December 31, 20232 yr 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...
December 31, 20232 yr 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?
December 31, 20232 yr 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.
December 31, 20232 yr 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
December 31, 20232 yr 2 minutes ago, d00p said: haben die vllt einen Alias gesetzt die zwei? yep, alias ist gesetzt. sidenote: ubuntu bugreport filed.
December 31, 20232 yr 8 minutes ago, d00p said: ubuntu bugreport? für was? Bisschen mehr kontext vllt? wegen dem goaccess das in der 22 LTS release bisher nur in 1.5.5 kommt und entweder backport braucht oder doch einen Versionssprung. vgl. Bug #2047753 “goaccess displays 'cleaning up resources' message ...”
December 31, 20232 yr Oder halt einfach goaccess aus deren offiziellem repo nutzen: https://goaccess.io/download#official-repo
Create an account or sign in to comment