FOGProject / fogproject

An open source computer cloning & management system
https://fogproject.org
GNU General Public License v3.0
1.1k stars 221 forks source link

Unable to install FOG Server 1.5.10.47 #602

Closed abotzung closed 1 month ago

abotzung commented 1 month ago

Hello,

Describe the bug I'm unable to install FOG Server on a fresh Debian installation.

To Reproduce Steps to reproduce the behavior:

  1. Download and install Debian 12.6
  2. Install FOG from dev-branch

Expected behavior Installer proceed to install FOG.

Current behavior

(...)
 * Resetting SSL Permissions...................................OK
 * Setting up Apache virtual host (SSL)........................OK
 * Starting and checking status of web services................OK
 * Changing permissions on apache log files....................chmod: impossible d'accéder à '/var/www/fog//fog_login_*.log': Aucun fichier ou dossier de ce type
Failed!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! The installer was not able to run all the way to the end as   !!
!! something has caused it to fail. The following few lines are  !!
!! from the error log file which might help us figure out what's !!
!! wrong. Please add this information when reporting an error.   !!
!! As well you might want to take a look at the full error log   !!
!! in /root/fogproject-dev-branch/bin/error_logs/fog_error_1.5.10.47.log !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

             ├─18918 "php-fpm: pool www"
             └─18919 "php-fpm: pool www"

août 03 02:53:52 fogserver systemd[1]: Starting php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager...

Software (please complete the following information):

Additional context I think the error comes from the last commit : https://github.com/FOGProject/fogproject/blob/c2d9d8ffda1a1299334e9a0d6ca2fb007f6e4b04/lib/common/functions.sh#L2403 In a fresh install, theses files "foglogin*.log" dosent exist yet, so the install will fail. A workaround, is to create dummy files just before the line :

    (...)
    chmod +rx $apacheacclog
    chown -R ${apacheuser}:${apacheuser} $webdirdest
    touch $webdirdest/fog_login_accepted.log
    touch $webdirdest/fog_login_failed.log
    chmod 0200 $webdirdest/fog_login_*.log
    errorStat $?
    (...)

Also, this installation also failing on stable branch, and working1.6. All builds for turnkey-fogserver (https://foguefi.botzung.fr/fog/) fails with the same error : image image

Cheers, Alexandre

asivre02 commented 1 month ago

Hello,

do you have solution on that problem???

mastacontrola commented 1 month ago

I just pushed 2 changes, both of which should address this issue. Please pull dev-branch again (you'll see it says 1.5.10.47.0 is the version, or 1.6.0-beta.1400.

Thank you.

abotzung commented 1 month ago

Hello,

FOG install successfully.

Thank you, have a nice day !

asivre02 commented 1 month ago

Hi Fogproject Team, Fog Installed Successfully

Thank you so much!

On Saturday, August 3, 2024 at 08:18:21 PM GMT+8, Alex B. ***@***.***> wrote:  

Hello,

FOG install successfully.

Thank you, have a nice day !

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>