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.

Froxlor tasks Cronjob PHP Error - Argument #1 ($homeDir) must be of type string, null given

Featured Replies

Hi,

 

seit neustem kriege ich alle 5 Minuten eine Emailenachrichtigung mit einem Fehler zum tasks Cronjob. Der Fehler ist folgender;

 

Checking froxlor file permissions...OK
Running "tasks" job
PHP Fatal error:  Uncaught TypeError: Froxlor\FileDir::mkDirWithCorrectOwnership(): Argument #1 ($homeDir) must be of type string, null given, called in /var/www/froxlor/lib/Froxlor/Cron/System/TasksCron.php on line 288 and defined in /var/www/froxlor/lib/Froxlor/FileDir.php:51
Stack trace:
#0 /var/www/froxlor/lib/Froxlor/Cron/System/TasksCron.php(288): Froxlor\FileDir::mkDirWithCorrectOwnership()
#1 /var/www/froxlor/lib/Froxlor/Cron/System/TasksCron.php(84): Froxlor\Cron\System\TasksCron::createNewFtpHome()
#2 /var/www/froxlor/lib/Froxlor/Cli/MasterCron.php(139): Froxlor\Cron\System\TasksCron::run()
#3 /var/www/froxlor/vendor/symfony/console/Command/Command.php(298): Froxlor\Cli\MasterCron->execute()
#4 /var/www/froxlor/vendor/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run()
#5 /var/www/froxlor/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#6 /var/www/froxlor/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#7 /var/www/froxlor/bin/froxlor-cli(64): Symfony\Component\Console\Application->run()
#8 {main}
  thrown in /var/www/froxlor/lib/Froxlor/FileDir.php on line 51

Woran liegt das?

Meine FroxlorVersion: 2.0.20

PHPVersion: 8.2.7

Danke für jegliche Hilfe

Liebe Grüße

Da ist die Angabe eines Heimatverzeichnisses leer das nicht leer sein darf. Entweder bei einem neuen Kunden oder neuen ftp User. Kannst du da mehr Info geben was gemacht wurde bevor das aufgetreten ist?

  • Author

Also alle Kunden haben ein verzeichnis in /var/customers/webs angegeben, die FTP User entweder ein individuelles oder standardmäßig "/". Gibt es bei dem task cronjob irgendeine Möglichkeit herauszufinden, bei welchem Ordner der den Fehler bekommt? das wird leider nicht ausgegeben

schau mal in die tabelle "panel_tasks", laut deines debug-traces will er ja einen neuen ftp anlegen (also das homedir), suche also nach tasks mit "type = 5" und paste uns mal den kompletten inhalt hier her

  • Author
+-----+------+------+
| id  | type | data |
+-----+------+------+
| 196 |    5 |      |
+-----+------+------+

Data ist empty, bei allen Einträgen anderen Types auch

Okay, der job ist entsprechend offen weil er nicht abgeschlossen werden kann. Jetzt bitte mal folgende SQL-Query ausführen und ergebnis mitteilen:

 

SELECT `f`.`homedir`, `f`.`uid`, `f`.`gid`, `c`.`documentroot` AS `customerroot`
FROM `ftp_users` `f` LEFT JOIN `panel_customers` `c` USING (`customerid`)

 

  • Author

Ah vielen Dank, hatte aus irgend einem Grund einen bestehenden FTP-User zu einem Kunden den es nicht mehr gibt, habe diesen gelöscht. Problem ist jetzt gelöst

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.