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

Blank management page after FOG Update

Scheduled Pinned Locked Moved Solved
FOG Problems
linux update web interface
2
5
256
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
    mckayj
    last edited by Feb 4, 2025, 8:49 PM

    Good Afternoon

    We originally setup our FOG system back in 2018, and it has been working well. As part of some upgrade work we are trying to capture an image of a newer version of Linux to upgrade our HPC Cluster. The old FOG client was having trouble on the newer version of Alma Linux, so we decided that it might be a good idea to upgrade FOG as well.

    The install/update script seemed to run without a hitch, but at the step where it indicates that you need to open a web browser to http://xxx.xxx.xxx.xxx/fog/management, I did so, but only got a blank webpage.
    I didn’t know what feedback I was expecting for “updating the db schema”, so I assumed that it had happened.

    Now, any attempt to access the FOG Web UI results in a blank white web page. The only other thing I know is the browser sees it as an HTTP 500 error.

    OS: CentOS 7.5
    FOG: 1.5.10.1634 (Updated to this today)

    Any help would be greatly appreciated.

    T 1 Reply Last reply Feb 5, 2025, 11:29 AM Reply Quote 0
    • M
      mckayj
      last edited by Feb 5, 2025, 3:33 PM

      Last part of the puzzle was that the php-fpm service wasn’t running.
      Started it with:

      sudo systemctl start php-fpm.service
      sudo systemctl enable php-fpm.service
      systemctl status php-fpm.service
      

      And now the FOG Web UI is working for me again.

      1 Reply Last reply Reply Quote 1
      • T
        Tom Elliott @mckayj
        last edited by Feb 5, 2025, 11:29 AM

        @mckayj Ewww CentOS 7.5 ⏳

        I’m only kidding. While CentOS 7 is no longer supported and I would (also) suggest moving a a newer OS at this point this isn’t really an issue. Sorry strange mood for me this morning (for me).

        Can you give us the output of your /var/log/php-fpm/www-error.log file? This likely is where the actual errors are showing and we can help provide more information.

        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
          mckayj
          last edited by Feb 5, 2025, 1:42 PM

          Thanks for the quick reply

          The www-error.log file is full of messages like this:

          [05-Feb-2025 08:27:03 America/Toronto] PHP Parse error:  syntax error, unexpected '?' in /var/www/html/fog/lib/fog/fogbase.class.php on line 2594
          [05-Feb-2025 08:27:03 America/Toronto] PHP Parse error:  syntax error, unexpected '?' in /var/www/html/fog/lib/fog/fogbase.class.php on line 2594
          [05-Feb-2025 08:27:03 America/Toronto] PHP Parse error:  syntax error, unexpected '?' in /var/www/html/fog/lib/fog/fogbase.class.php on line 2594
          [05-Feb-2025 08:27:03 America/Toronto] PHP Parse error:  syntax error, unexpected '?' in /var/www/html/fog/lib/fog/fogbase.class.php on line 2594
          

          The same message over and over. They even appears when I’m not trying to access the web UI.

          I had a look at the file mentioned in the error log, and that line looks like its setting and “authorized” flag:

          $authorized = self::$FOGUser->isValid() ||
            strtolower(($_SERVER['HTTP_X_REQUESTED_WITH'] ?? '')) == 'xmlhttprequest';
          

          This made me wonder if old cookies or other site data in my browser was messing it up. So I cleared my cookies and cache and other browser data. No help.

          1 Reply Last reply Reply Quote 0
          • M
            mckayj
            last edited by Feb 5, 2025, 2:22 PM

            OK, apparently that’s all I needed to figure the rest out on my own.

            The ?? operator that the error message seemed to be complaining about was apparently introduced in PHP 7. My old CentOS 7.5 server (Eww, I know 🤣 ) only had PHP 5.6. (Suggesting the install script check the PHP version to make sure it’s at least 7)
            I was able to update PHP with the following commands:

            sudo yum remove php*
            sudo yum install php php-bcmath php-cli php-common php-fpm php-gd php-ldap php-mbstring php-mcrypt php-mysqlnd php-pdo php-pecl-jsonc php-pecl-zip php-process
            

            Doing so replaced the blank white web UI with a message that stated:
            “Service Unavailable - The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.”

            I then re-ran the sudo ./installfog.sh, and it ran without any problems. The DB schema update step functioned, and I could then login like normal.

            However, I don’t think I’m fully out of the woods yet. The install script for some reason messes up the NIS login system, requiring a reboot to make work again, but after the reboot the FOG Web UI is back to showing “Service Unavailable”. I’m suspecting a user permission problem that I need to dig into next (Maybe I should make this a new topic if I need help).

            1 Reply Last reply Reply Quote 1
            • M
              mckayj
              last edited by Feb 5, 2025, 3:33 PM

              Last part of the puzzle was that the php-fpm service wasn’t running.
              Started it with:

              sudo systemctl start php-fpm.service
              sudo systemctl enable php-fpm.service
              systemctl status php-fpm.service
              

              And now the FOG Web UI is working for me again.

              1 Reply Last reply Reply Quote 1
              • [[undefined-on, T Tom Elliott, Feb 5, 2025, 4:33 PM]]
              • 1 / 1
              1 / 1
              • First post
                5/5
                Last post

              224

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project