• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Installing fog on Rocky Linux 9.6

    Scheduled Pinned Locked Moved Solved FOG Problems
    7 Posts 2 Posters 534 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mrowand
      last edited by

      Dear Developers,

      So I am installing FOG 1.5.10 on a server with Rocky Linux 9, from stable using git. This uses php8 by default, with a caveat that the package php-json is now included as a module in php-common. I checked and there is a module named json listed in php, just not a package. The installer is checking for this package and it seems to fail.

      I can’t seem to find any rpm for “php-json” in any repo or rpm search and the core installer called “common” has a module for json. what is the correct work around for this? I can find it for php7 (which I used the last time I installed FOG, on a rocky linux 8 system), or php5 (on an old centOS 7 system).

      in any event - the remi repo also seems to have cache issues at the moment going through firewalls so I can manually go to a rpmfind and download the rpms. I don’t see one for php-json.

      Anyway. I also had to manually install mysql, tftp, tftp-server, lftp, gcc, genisoimage and about 7 other packages “not found” by the installer, which are available in the bae repos… anyway. am I using a untested OS?

      Regards,

      Matt

      R 1 Reply Last reply Reply Quote 0
      • R
        rodluz Developer @mrowand
        last edited by rodluz

        @mrowand I just created a Rocky 9.6 VM and installed FOG stable and didn’t have any issues. The install skipped php-json since it didn’t find that package. I didn’t need to install anything else manually.

        Can you post an image of the error that you are getting?

        Few things to check:
        Is this a new Rocky Linux server? (I ask because if you are reusing a Linux install, it may have had some settings that could give you this issue)
        Are you behind a proxy?
        Is the Rocky install pulling the packages from the BaseOS/AppStream of the install ISO or from the web? (I ask this because this happened to me once)

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        M 1 Reply Last reply Reply Quote 0
        • M
          mrowand
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • M
            mrowand @rodluz
            last edited by

            mrowand
            5 minutes ago

            @rodluz

            Thank you for your return on my post. I don’t have a photo of this when it happened as I did a work around and manually installed these packages since. The logs from that attempt don’t seem to be in the /fogproject/bin directory anymore. When looking at ti, It looks like mainly an issue with the “remi-modular” repo. Which is probably my end actually. even when I had to install these manually with dnf, I had to disable that repo. so TFTP-SERVER, PHP and MYSQL and are from appstream repos from base rocky repos.

            I am giving the logs of my past two attempts. I deleted IP addresses from it for security.
            fog_error_1.5.10.1698.log foginstall2.log

            Anyway, since it skips it as not needed and still works I can ignore it. which is what I thought anyway. I did end up modifying a different script and deleted out “php-json” which you can see with the foglinstall2log. The first log also seems truncated sorry.

            I am getting a bug with the init.zx, bzimage files downloading, which happened to me the last time I installed fog. the last time I manually downloaded these files and placed them where they go and re-ran the script I think with a --skip-broken flag, or something like this… Not sure why that’s happening - I think it is firewall related.

            I usually update these anyway for newer computers.

            I am able to do work-arounds and get it to work, I just thought it odd.

            Sorry if not helpful.

            Regards, Matt

            R 1 Reply Last reply Reply Quote 0
            • R
              rodluz Developer @mrowand
              last edited by

              @mrowand I consider Rocky (and other RHEL derivatives) a bit of an advanced distro. SELinux and the firewall are on by default and that makes things a bit more complicated.
              In the FOG installer there is a check if SELinux is enabled and it’s recommended and the default option is to set it to permissive. There is also a check if the firewall is enabled but by default we don’t disable it, this means that you then have to go and modify the firewall rules for everything to work correctly.

              I just re-created the VM and installed FOG, this time I didn’t set SELinux to permissive and didn’t disable the firewall and I am having some issues like you. This is not something that we need to/will “fix” since there are checks and recommend to set SELinux to permissive and disable the firewall.

              If you have everything working now, we can set this post as resolved.

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              1 Reply Last reply Reply Quote 0
              • M
                mrowand
                last edited by

                @rodluz,

                Thank you for your time and answer.

                This is a fresh install of rocky on a bare metal server - I did have to install it first on a SATA drive, then copy everything and then install with chroot to manually add a raid controller driver for the ancient 3ware 9750 RAID controller on it. In any event I am up to the point where I downloaded everything now and just need to let the FOG installer set it all up. Unfortunately I don’t have a photo - but I can tell you the error was in the log file I sent you in my last post, which I am adding here.

                foginstall2.log

                There is an post I did about a year ago on downloading the FOS binaries. I tried using curl and would time out. I ended up downloading more current FOS binaries (bzimage, init.xz, etc) from github that I have running on a current production server as this works for the newish computers we have. I figured this is not the issue this time but I also solved that by running the installed with a --nofail Exit flag which would keep going if it failed to download it with the installer (as I manually put them in the location anyway)

                The server is on a connection that is firewalled and some things work and some things not, which remi is one of them although I can browse the site, I think the caching on that repo is the issue -maybe they should add a few mirrors. I can download the rpms manually from that repo - but that is a very painful and troublesome way to install things on linux.

                On the apptream question, this is installed off of the web, not the iso - i ran "sudo dnf php --disable-repo=remi --disable-repo=remi-safe --disable-repo=remi-modular and it would install php and the repo shown was “appstream” - maybe from centOS stream sources? IDK but php and the various modular files and so one installed in this fashion as did tftp-server, mysql and mysql-server, and several others I forgot now.

                yeah I have used FOG for about 10 years now and we love this project here as once we have it working it’s stable as a rock. The first install I did was on a fedora box back wheN it was version 20, then CentOS 7, recently about a year ago we set it up with rocky linux 8.9 (as CentOS died) to include newer features and bzimage files in order to use the newer model computers we need to image.

                Once I have this base install working, which at this point i

                Matt

                1 Reply Last reply Reply Quote 0
                • M
                  mrowand
                  last edited by

                  @ rodluz,

                  Sorry I missed your newer post.

                  Yeah I checked and it is enabled . I will disable it once I have this in production and off of the web as yes selinux will block aspects of FOG

                  Just as a datum, I found FOG to work very well with redhat distros. I am not a fan of debian based distros due to package management and stablility - debian I can get working, ubuntu though…

                  You can set this as resolved.

                  Matt

                  1 Reply Last reply Reply Quote 0
                  • R rodluz has marked this topic as solved
                  • 1 / 1
                  • First post
                    Last post

                  174

                  Online

                  12.3k

                  Users

                  17.4k

                  Topics

                  155.7k

                  Posts
                  Copyright © 2012-2025 FOG Project