Jump to content
View in the app

A better way to browse. Learn more.

Froxlor Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

unerwartetes Feedback vom cron (traffic-task)

Featured Replies

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

Solved by d00p

Go to solution
  • 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

 

  • Author
13 minutes ago, d00p said:

Gerne testen, ich kam noch nicht dazu:

Der unerwünschte Output ist weg.

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...

 

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?

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.

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

2 minutes ago, d00p said:

haben die vllt einen Alias gesetzt die zwei?

yep, alias ist gesetzt.

sidenote: ubuntu bugreport filed.

ubuntu bugreport? für was? Bisschen mehr kontext vllt?

 

Create an account or sign in to comment

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.