Jump to content
Froxlor Forum

soxlo

Members
  • Posts

    14
  • Joined

  • Last visited

soxlo's Achievements

Rookie

Rookie (2/14)

  • Collaborator Rare
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Ok, thank you so far, couldn't figure out whats wrong in my environtment. Too many directories is not the Problem, I have the same issue on accounts with <5 Folders or even just one folder.
  2. White Page came from an permission error "failed to open dir: Permission denied in /var/www/froxlor/lib/Froxlor/FileDir.php:505" I fixed that permission now the page loads but does not show any of the folders, just the dropdown with one entry "/".
  3. okay I tried to copy one of the folder which got detected and the copy was also detected but if I create a new one it is not detected - super strange. Maybe I have some kind of filesystem problem?
  4. Maybe the change of the Recursor breaks folder detection somehow? https://github.com/Froxlor/Froxlor/commit/10b4de4cf9e0595b32bb1bc594e6a5ba6b83d498 At the beginning of the year it was working, but sure could be still some missconfiguration on my setup. But in some accounts some folders are found, also found one account on which i get a white page by froxlor. In this account I have a nextcloud running, could be a problem with too many subfolders?
  5. Backup was successfully created after I made the fixes in BackupCron.php. My panel_task entry was valid. But still have no clue why froxlor can not read the folders in the customer Panel UI. Does it work as expected in one of your froxlor Installations?
  6. Evtl. ist der eine Aufruf in Zeile 162 fehlerhaft? https://github.com/Froxlor/Froxlor/blob/master/lib/Froxlor/Cron/System/BackupCron.php#L162 \Froxlor\FileDir::safe_exec('mysqldump --defaults-file=' . escapeshellarg($mysqlcnf_file) .' -u ' . escapeshellarg($sql_root['user']) . ' ' . $row['databasename'] . ' > ' . FileDir::makeCorrectFile($tmpdir . '/mysql/' . $row['databasename'] . '_' . date('YmdHi', time()) . '.sql'), $bool_false, [ Beim FileDir::makeCorrectFile fehlt da evtl. das /Froxlor/ vorneweg? Also /Froxlor/FileDir::makeCorrectFile?
  7. I tried to start a backup by creating a valid entry in database table panel_tasks then I geht the following error at cron job runtime: PHP Fatal error: Uncaught Error: Class 'Froxlor\Cron\System\FileDir' not found in /var/www/froxlor/lib/Froxlor/Cron/System/BackupCron.php:161 Stack trace: #0 /var/www/froxlor/lib/Froxlor/Cron/System/BackupCron.php(100): Froxlor\Cron\System\BackupCron::createCustomerBackup(Array, '/var/kunden/web...', Object(Froxlor\FroxlorLogger)) #1 /var/www/froxlor/lib/Froxlor/Cron/MasterCron.php(119): Froxlor\Cron\System\BackupCron::run() #2 /var/www/froxlor/scripts/froxlor_master_cronjob.php(26): Froxlor\Cron\MasterCron::run() #3 {main} thrown in /var/www/froxlor/lib/Froxlor/Cron/System/BackupCron.php on line 161 might be the same problem why froxlor can not show (some) folders? Or do I need to do more than just add an entry to the panel_tasks table to fake that backup job?
  8. froxlor itself is running with mod_php, apache2 and froxlor user accounts are using php-fpm with different php versions. This setup is running already quite a while, so not a new installation in this case. I have libnss-extrausers installed and configured. In the ftp_group database table entry for that users group looks good to me, www-data is a member (also for all other groups): Strange is that for this user two folders are shown but not the others having the same permissions. On another customer account no folders are shown but also I think permissions are like they should be.
  9. Okay, thanks for the info @d00p. Which permissions are needed for that? Read for the froxlor process should be enough, right? Froxlor is running on php-7.3.31 (debian 10 distro php) under the apache2 www-data user. Froxlor is on latest version 0.10.36-1. For example in one customer account the following folders are existing, but only two of them are shown in froxlor UI, but they have all the same permissions. drwxr-xr-x 36 root root 4,0K May 2 2021 .. drwxr-x--- 2 cardcal cardcal 4,0K Jul 5 08:54 backup drwxr-x--- 8 cardcal cardcal 4,0K Dec 23 2018 folder1 drwxr-x--- 9 cardcal cardcal 4,0K Dec 26 2018 folder2 -rw-r--r-- 1 cardcal cardcal 0 May 2 2021 .htaccess drwxr-x--- 2 cardcal cardcal 4,0K Jul 4 17:26 test In froxlor UI only "folder1" and "folder2" are shown, "test" and "backup" is missing. I have no idea why, because they have the same permissions. .htaccess is empty and should not have any impact. There are no other configs for "test" and "backup" such as directory protection. Do you have any idea whats wrong here?
  10. Hello all, I am currently struggling to find an Issue in my froxlor config (or less likely a froxlor bug). I have several customer accounts some of them are showing path/folder options in customer backup some of them not. But all accounts have folders in their root directories. Problem with all accounts is if I add folders (via ftp, chmod 750) to a customer account this new folder is not shown in froxlor UI as a path option. Any idea where I should have a look in the config or database? How does froxlor read those path? The moment someone clicks in the UI or is this scaned via a cron task? Is this somewhere saved into the froxlor db? Any help and hint is appreciated.
  11. Thank you, it's working now. I was really triggered by the word "header" I added a working curl command in the original post as I am not able to add a code block into a reply?!
  12. I tried to use the Froxlor API with curl but I got stuck at "Invalid request header". This is the curl command I am trying: curl --location --request POST 'https://MYDOMAIN/api.php' \ --header 'secret: mysecretstring' \ --header 'apikey: myapikey' \ --header 'Content-Type: application/json' \ --data-raw '{ "command": "Froxlor.listFunctions" }' of course I insert the real domain and secret strings this is clear not the issue. If I understand the code right it fails even before trying to authenticate: https://github.com/Froxlor/Froxlor/blob/bd48fb732847c3926526335603ca2f3ba2c7c3b4/lib/Froxlor/Api/FroxlorRPC.php#L30 Any idea whats wrong with my request header? EDIT: This is a working curl command: curl --location --request POST 'https://MYDOMAIN/api.php' \ --header 'Content-Type: application/json' \ --data-raw '{ "header": { "apikey": "MYAPIKEY", "secret": "MYSECRET" }, "body": { "command": "Froxlor.listFunctions" } }'
  13. Great! Don't forget the nice SNI Feature which was part of the Let's Encrypt Improvements.
×
×
  • Create New...