rseffner Posted December 27, 2023 Share Posted December 27, 2023 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 More sharing options...
0 d00p Posted December 27, 2023 Share Posted December 27, 2023 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 More sharing options...
0 rseffner Posted December 27, 2023 Author Share Posted December 27, 2023 13 minutes ago, d00p said: Gerne testen, ich kam noch nicht dazu: Der unerwünschte Output ist weg. 1 Link to comment Share on other sites More sharing options...
0 hk@ Posted December 31, 2023 Share Posted December 31, 2023 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 More sharing options...
0 d00p Posted December 31, 2023 Share Posted December 31, 2023 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 More sharing options...
0 hk@ Posted December 31, 2023 Share Posted December 31, 2023 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 More sharing options...
0 d00p Posted December 31, 2023 Share Posted December 31, 2023 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 More sharing options...
0 hk@ Posted December 31, 2023 Share Posted December 31, 2023 2 minutes ago, d00p said: haben die vllt einen Alias gesetzt die zwei? yep, alias ist gesetzt. sidenote: ubuntu bugreport filed. Link to comment Share on other sites More sharing options...
0 d00p Posted December 31, 2023 Share Posted December 31, 2023 ubuntu bugreport? für was? Bisschen mehr kontext vllt? Link to comment Share on other sites More sharing options...
0 hk@ Posted December 31, 2023 Share Posted December 31, 2023 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 ...” Link to comment Share on other sites More sharing options...
0 d00p Posted December 31, 2023 Share Posted December 31, 2023 Oder halt einfach goaccess aus deren offiziellem repo nutzen: https://goaccess.io/download#official-repo Link to comment Share on other sites More sharing options...
Question
rseffner
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now