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

    fog update fails from 1.5.10 to 1.5.10.1639

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    1
    2
    148
    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.
    • P
      pilipp_edv
      last edited by

      trying to update fog from 1.5.10 on ubuntu 22.04 to 1.5.10.1639 after upgrading ubuntu to 24.04.
      The fog update fails when compiling the ipxe binaries:

      * Press [Enter] key when database is updated/installed.
      
      * Update fogstorage database password.........................OK
      * Granting access to fogstorage database user.................Skipped
      * Setting up storage..........................................OK
      * Setting up and starting DHCP Server.........................Skipped
      * Compiling iPXE binaries trusting your SSL certificate.......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/bin/error_logs/fog_error_1.5.10.1639.log !!
      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      
       1100K .......... .......... .......... .......... .......... 9.28M
       1150K .....                                                  5.02M=0.3s
      
      2025-03-06 10:49:36 (3.82 MB/s) - ‘/home//fogDBbackups/fog_sql_1.5.10.1639_20250306_104936.sql’ saved [1182811]
      

      this is the error log:

      /usr/bin/lsb_release
      /usr/bin/systemctl
      systemd
      ln: failed to create symbolic link '/lib/systemd/system/mysql.service': File exists
      ln: failed to create symbolic link '/lib/systemd/system/mysqld.service': File exists
      ln: failed to create symbolic link '/etc/systemd/system/mysql.service': File exists
      ln: failed to create symbolic link '/etc/systemd/system/mysqld.service': File exists
      /usr/sbin/iptables
      /opt/fog/.fogsettings
      Reading package lists...
      Building dependency tree...
      Reading state information...
      curl is already the newest version (8.5.0-2ubuntu10.6).
      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      Testing DNS name resolution (neverssl.com)... OK
      Testing HTTP connection (http://neverssl.com)... OK
      Testing HTTPS connection (https://github.com)... OK
      Hit:1 http://de.archive.ubuntu.com/ubuntu noble InRelease
      Hit:2 http://security.ubuntu.com/ubuntu noble-security InRelease
      Get:3 http://de.archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
      Hit:4 http://de.archive.ubuntu.com/ubuntu noble-backports InRelease
      Fetched 126 kB in 0s (309 kB/s)
      Reading package lists...
      Adding component(s) 'universe' to all repositories.
      Hit:1 http://de.archive.ubuntu.com/ubuntu noble InRelease
      Hit:2 http://de.archive.ubuntu.com/ubuntu noble-updates InRelease
      Hit:3 http://de.archive.ubuntu.com/ubuntu noble-backports InRelease
      Hit:4 http://security.ubuntu.com/ubuntu noble-security InRelease
      Reading package lists...
      ii  apache2        2.4.58-1ubuntu8.5 amd64        Apache HTTP Server
      ii  bc             1.07.1-3ubuntu4 amd64        GNU bc arbitrary precision calculator language
      ii  build-essential 12.10ubuntu1 amd64        Informational list of build-essential packages
      ii  cpp            4:13.2.0-7ubuntu1 amd64        GNU C preprocessor (cpp)
      ii  curl           8.5.0-2ubuntu10.6 amd64        command line tool for transferring data with URL syntax
      ii  g++            4:13.2.0-7ubuntu1 amd64        GNU C++ compiler
      ii  gawk           1:5.2.1-2build3 amd64        GNU awk, a pattern scanning and processing language
      ii  gcc            4:13.2.0-7ubuntu1 amd64        GNU C compiler
      ii  genisoimage    9:1.1.11-3.5 amd64        Creates ISO-9660 CD-ROM filesystem images
      ii  git            1:2.43.0-1ubuntu7.2 amd64        fast, scalable, distributed revision control system
      ii  gzip           1.12-1ubuntu3 amd64        GNU compression utilities
      ii  htmldoc        1.9.17-1build3 amd64        HTML processor that generates indexed HTML, PS, and PDF
      ii  isolinux       3:6.04~git20190206.bf6db5b4+dfsg1-3ubuntu3 all          collection of bootloaders (ISO 9660 bootloader)
      ii  lftp           4.9.2-2ubuntu1 amd64        Sophisticated command-line FTP/HTTP/BitTorrent client programs
      ii  libapache2-mod-php 2:8.3+93ubuntu2 all          server-side, HTML-embedded scripting language (Apache 2 module) (default)
      ii  libc6:amd64    2.39-0ubuntu8.4 amd64        GNU C Library: Shared libraries
      ii  libcurl4t64:amd64 8.5.0-2ubuntu10.6 amd64        easy-to-use client-side URL transfer library (OpenSSL flavour)
      ii  liblzma-dev:amd64 5.6.1+really5.4.5-1build0.1 amd64        XZ-format compression library - development files
      ii  m4             1.4.19-4build1 amd64        macro processing language
      mariadb-client-core
      mariadb-client-10.6
      mariadb-client
      ii  mariadb-client 1:10.11.8-0ubuntu0.24.04.1 amd64        MariaDB database client binaries
      ii  mariadb-client 1:10.11.8-0ubuntu0.24.04.1 amd64        MariaDB database client binaries
      mariadb-server
      mariadb-server-core
      mariadb-server-10.5
      mariadb-server-10.6
      ii  mariadb-server 1:10.11.8-0ubuntu0.24.04.1 amd64        MariaDB database server binaries
      ii  mariadb-server 1:10.11.8-0ubuntu0.24.04.1 amd64        MariaDB database server binaries
      ii  net-tools      2.10-0.1ubuntu4 amd64        NET-3 networking toolkit
      ii  nfs-kernel-server 1:2.6.4-3ubuntu5.1 amd64        support for NFS kernel server
      ii  openssh-server 1:9.6p1-3ubuntu13.8 amd64        secure shell (SSH) server, for secure access from remote machines
      ii  php            2:8.3+93ubuntu2 all          server-side, HTML-embedded scripting language (default)
      ii  php-bcmath     2:8.3+93ubuntu2 all          Bcmath module for PHP [default]
      ii  php-cli        2:8.3+93ubuntu2 all          command-line interpreter for the PHP scripting language (default)
      ii  php-curl       2:8.3+93ubuntu2 all          CURL module for PHP [default]
      ii  php-fpm        2:8.3+93ubuntu2 all          server-side, HTML-embedded scripting language (FPM-CGI binary) (default)
      ii  php-gd         2:8.3+93ubuntu2 all          GD module for PHP [default]
      php-json-schema
      php-json
      ii  php-json       2:8.3+93ubuntu2 all          JSON module for PHP [default]
      ii  php-ldap       2:8.3+93ubuntu2 all          LDAP module for PHP [default]
      ii  php-mbstring   2:8.3+93ubuntu2 all          MBSTRING module for PHP [default]
      php-mysql
      ii  php-mysql      2:8.3+93ubuntu2 all          MySQL module for PHP [default]
      ii  tar            1.35+dfsg-3build1 amd64        GNU version of the tar archiving utility
      ii  tftpd-hpa      5.2+20150808-1.4build1 amd64        HPA's tftp server
      ii  tftp-hpa       5.2+20150808-1.4build1 amd64        HPA's tftp client
      ii  unzip          6.0-28ubuntu4.1 amd64        De-archiver for .zip files
      ii  vsftpd         3.0.5-0ubuntu3.1 amd64        lightweight, efficient FTP server written for security
      ii  wget           1.21.4-1ubuntu4.1 amd64        retrieves files from the web
      ii  zlib1g:amd64   1:1.3.dfsg-3.1ubuntu2.1 amd64        compression library - runtime
      Reading package lists...
      Building dependency tree...
      Reading state information...
      apache2 is already the newest version (2.4.58-1ubuntu8.5).
      bc is already the newest version (1.07.1-3ubuntu4).
      build-essential is already the newest version (12.10ubuntu1).
      cpp is already the newest version (4:13.2.0-7ubuntu1).
      curl is already the newest version (8.5.0-2ubuntu10.6).
      g++ is already the newest version (4:13.2.0-7ubuntu1).
      gawk is already the newest version (1:5.2.1-2build3).
      gcc is already the newest version (4:13.2.0-7ubuntu1).
      genisoimage is already the newest version (9:1.1.11-3.5).
      git is already the newest version (1:2.43.0-1ubuntu7.2).
      gzip is already the newest version (1.12-1ubuntu3).
      htmldoc is already the newest version (1.9.17-1build3).
      isolinux is already the newest version (3:6.04~git20190206.bf6db5b4+dfsg1-3ubuntu3).
      lftp is already the newest version (4.9.2-2ubuntu1).
      libapache2-mod-php is already the newest version (2:8.3+93ubuntu2).
      libc6 is already the newest version (2.39-0ubuntu8.4).
      libcurl4t64 is already the newest version (8.5.0-2ubuntu10.6).
      liblzma-dev is already the newest version (5.6.1+really5.4.5-1build0.1).
      m4 is already the newest version (1.4.19-4build1).
      mariadb-client is already the newest version (1:10.11.8-0ubuntu0.24.04.1).
      mariadb-server is already the newest version (1:10.11.8-0ubuntu0.24.04.1).
      net-tools is already the newest version (2.10-0.1ubuntu4).
      nfs-kernel-server is already the newest version (1:2.6.4-3ubuntu5.1).
      openssh-server is already the newest version (1:9.6p1-3ubuntu13.8).
      php is already the newest version (2:8.3+93ubuntu2).
      php-bcmath is already the newest version (2:8.3+93ubuntu2).
      php-cli is already the newest version (2:8.3+93ubuntu2).
      php-curl is already the newest version (2:8.3+93ubuntu2).
      php-fpm is already the newest version (2:8.3+93ubuntu2).
      php-gd is already the newest version (2:8.3+93ubuntu2).
      php-json is already the newest version (2:8.3+93ubuntu2).
      php-ldap is already the newest version (2:8.3+93ubuntu2).
      php-mbstring is already the newest version (2:8.3+93ubuntu2).
      php-mysql is already the newest version (2:8.3+93ubuntu2).
      tar is already the newest version (1.35+dfsg-3build1).
      tftpd-hpa is already the newest version (5.2+20150808-1.4build1).
      tftp-hpa is already the newest version (5.2+20150808-1.4build1).
      unzip is already the newest version (6.0-28ubuntu4.1).
      vsftpd is already the newest version (3.0.5-0ubuntu3.1).
      wget is already the newest version (1.21.4-1ubuntu4.1).
      zlib1g is already the newest version (1:1.3.dfsg-3.1ubuntu2.1).
      Calculating upgrade...
      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      ii  apache2        2.4.58-1ubuntu8.5 amd64        Apache HTTP Server
      ii  bc             1.07.1-3ubuntu4 amd64        GNU bc arbitrary precision calculator language
      ii  build-essential 12.10ubuntu1 amd64        Informational list of build-essential packages
      ii  cpp            4:13.2.0-7ubuntu1 amd64        GNU C preprocessor (cpp)
      ii  curl           8.5.0-2ubuntu10.6 amd64        command line tool for transferring data with URL syntax
      ii  g++            4:13.2.0-7ubuntu1 amd64        GNU C++ compiler
      ii  gawk           1:5.2.1-2build3 amd64        GNU awk, a pattern scanning and processing language
      ii  gcc            4:13.2.0-7ubuntu1 amd64        GNU C compiler
      ii  genisoimage    9:1.1.11-3.5 amd64        Creates ISO-9660 CD-ROM filesystem images
      ii  git            1:2.43.0-1ubuntu7.2 amd64        fast, scalable, distributed revision control system
      ii  gzip           1.12-1ubuntu3 amd64        GNU compression utilities
      ii  htmldoc        1.9.17-1build3 amd64        HTML processor that generates indexed HTML, PS, and PDF
      ii  isolinux       3:6.04~git20190206.bf6db5b4+dfsg1-3ubuntu3 all          collection of bootloaders (ISO 9660 bootloader)
      ii  lftp           4.9.2-2ubuntu1 amd64        Sophisticated command-line FTP/HTTP/BitTorrent client programs
      ii  libapache2-mod-php 2:8.3+93ubuntu2 all          server-side, HTML-embedded scripting language (Apache 2 module) (default)
      ii  libc6:amd64    2.39-0ubuntu8.4 amd64        GNU C Library: Shared libraries
      ii  libcurl4t64:amd64 8.5.0-2ubuntu10.6 amd64        easy-to-use client-side URL transfer library (OpenSSL flavour)
      ii  liblzma-dev:amd64 5.6.1+really5.4.5-1build0.1 amd64        XZ-format compression library - development files
      ii  m4             1.4.19-4build1 amd64        macro processing language
      ii  mariadb-client 1:10.11.8-0ubuntu0.24.04.1 amd64        MariaDB database client binaries
      ii  mariadb-server 1:10.11.8-0ubuntu0.24.04.1 amd64        MariaDB database server binaries
      ii  net-tools      2.10-0.1ubuntu4 amd64        NET-3 networking toolkit
      ii  nfs-kernel-server 1:2.6.4-3ubuntu5.1 amd64        support for NFS kernel server
      ii  openssh-server 1:9.6p1-3ubuntu13.8 amd64        secure shell (SSH) server, for secure access from remote machines
      ii  php            2:8.3+93ubuntu2 all          server-side, HTML-embedded scripting language (default)
      ii  php-bcmath     2:8.3+93ubuntu2 all          Bcmath module for PHP [default]
      ii  php-cli        2:8.3+93ubuntu2 all          command-line interpreter for the PHP scripting language (default)
      ii  php-curl       2:8.3+93ubuntu2 all          CURL module for PHP [default]
      ii  php-fpm        2:8.3+93ubuntu2 all          server-side, HTML-embedded scripting language (FPM-CGI binary) (default)
      ii  php-gd         2:8.3+93ubuntu2 all          GD module for PHP [default]
      ii  php-json       2:8.3+93ubuntu2 all          JSON module for PHP [default]
      ii  php-ldap       2:8.3+93ubuntu2 all          LDAP module for PHP [default]
      ii  php-mbstring   2:8.3+93ubuntu2 all          MBSTRING module for PHP [default]
      ii  php-mysql      2:8.3+93ubuntu2 all          MySQL module for PHP [default]
      ii  tar            1.35+dfsg-3build1 amd64        GNU version of the tar archiving utility
      ii  tftpd-hpa      5.2+20150808-1.4build1 amd64        HPA's tftp server
      ii  tftp-hpa       5.2+20150808-1.4build1 amd64        HPA's tftp client
      ii  unzip          6.0-28ubuntu4.1 amd64        De-archiver for .zip files
      ii  vsftpd         3.0.5-0ubuntu3.1 amd64        lightweight, efficient FTP server written for security
      ii  wget           1.21.4-1ubuntu4.1 amd64        retrieves files from the web
      ii  zlib1g:amd64   1:1.3.dfsg-3.1ubuntu2.1 amd64        compression library - runtime
      New password: Retype new password: passwd: password updated successfully
      init.xz: OK
      init_32.xz: OK
      bzImage: OK
      bzImage32: OK
      arm_init.cpio.gz: OK
      arm_Image: OK
      FOGService.msi: OK
      SmartInstaller.exe: OK
      'bzImage' -> '/var/www/fog//service/ipxe/bzImage'
      'bzImage32' -> '/var/www/fog//service/ipxe/bzImage32'
      'init.xz' -> '/var/www/fog//service/ipxe/init.xz'
      'init_32.xz' -> '/var/www/fog//service/ipxe/init_32.xz'
      'arm_Image' -> '/var/www/fog//service/ipxe/arm_Image'
      'arm_init.cpio.gz' -> '/var/www/fog//service/ipxe/arm_init.cpio.gz'
      'FOGService.msi' -> '/var/www/fog//client/FOGService.msi'
      'SmartInstaller.exe' -> '/var/www/fog//client/SmartInstaller.exe'
      mysqlnd
      Certificate request self-signature ok
      subject=CN = <fog server IP>
      Site 001-fog disabled.
      To activate the new configuration, you need to run:
        systemctl reload apache2
      Enabling site 000-default.
      To activate the new configuration, you need to run:
        systemctl reload apache2
      renamed '/etc/apache2/sites-available/001-fog.conf' -> '/etc/apache2/sites-available/001-fog.conf.1741254552'
      ln: failed to create symbolic link '/var/www/fog/fog': File exists
      ERROR: Module php does not exist!
      Considering dependency proxy for proxy_fcgi:
      Module proxy already enabled
      Module proxy_fcgi already enabled
      Module setenvif already enabled
      Module rewrite already enabled
      Considering dependency mime for ssl:
      Module mime already enabled
      Considering dependency socache_shmcb for ssl:
      Module socache_shmcb already enabled
      Module ssl already enabled
      Enabling site 001-fog.
      To activate the new configuration, you need to run:
        systemctl reload apache2
      Site 000-default disabled.
      To activate the new configuration, you need to run:
        systemctl reload apache2
      ● apache2.service - The Apache HTTP Server
           Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; preset: enabled)
           Active: active (running) since Thu 2025-03-06 10:49:36 CET; 47ms ago
             Docs: https://httpd.apache.org/docs/2.4/
          Process: 42948 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
         Main PID: 42952 (apache2)
            Tasks: 6 (limit: 9440)
           Memory: 5.2M (peak: 5.7M)
              CPU: 41ms
           CGroup: /system.slice/apache2.service
                   ├─42952 /usr/sbin/apache2 -k start
                   ├─42954 /usr/sbin/apache2 -k start
                   ├─42955 /usr/sbin/apache2 -k start
                   ├─42956 /usr/sbin/apache2 -k start
                   ├─42957 /usr/sbin/apache2 -k start
                   └─42958 /usr/sbin/apache2 -k start
      
      Mar 06 10:49:35 fog-server systemd[1]: Starting apache2.service - The Apache HTTP Server...
      Mar 06 10:49:36 fog-server apachectl[42951]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
      Mar 06 10:49:36 fog-server systemd[1]: Started apache2.service - The Apache HTTP Server.
      
      ● php8.3-fpm.service - The PHP 8.3 FastCGI Process Manager
           Loaded: loaded (/usr/lib/systemd/system/php8.3-fpm.service; enabled; preset: enabled)
           Active: active (running) since Thu 2025-03-06 10:49:36 CET; 14ms ago
             Docs: man:php-fpm8.3(8)
          Process: 42964 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/8.3/fpm/pool.d/www.conf 83 (code=exited, status=0/SUCCESS)
         Main PID: 42949 (php-fpm8.3)
           Status: "Ready to handle connections"
            Tasks: 6 (limit: 9440)
           Memory: 11.5M (peak: 12.3M)
              CPU: 55ms
           CGroup: /system.slice/php8.3-fpm.service
                   ├─42949 "php-fpm: master process (/etc/php/8.3/fpm/php-fpm.conf)"
                   ├─42959 "php-fpm: pool www"
                   ├─42960 "php-fpm: pool www"
                   ├─42961 "php-fpm: pool www"
                   ├─42962 "php-fpm: pool www"
                   └─42963 "php-fpm: pool www"
      
      Mar 06 10:49:35 fog-server systemd[1]: Starting php8.3-fpm.service - The PHP 8.3 FastCGI Process Manager...
      Mar 06 10:49:36 fog-server systemd[1]: Started php8.3-fpm.service - The PHP 8.3 FastCGI Process Manager.
      --2025-03-06 10:49:36--  https://<fog server IP>/fog//maintenance/backup_db.php
      Connecting to <our proxy>:3128... connected.
      WARNING: cannot verify <fog server IP>'s certificate, issued by ‘CN=FOG Server CA’:
        Self-signed certificate encountered.
      Proxy request sent, awaiting response... 302 Found
      Could not parse Strict-Transport-Security header
      Location: ?node=schema [following]
      --2025-03-06 10:49:36--  https://<fog server IP>/fog//maintenance/backup_db.php?node=schema
      Connecting to <our proxy>:3128... connected.
      WARNING: cannot verify <fog server IP>'s certificate, issued by ‘CN=FOG Server CA’:
        Self-signed certificate encountered.
      Proxy request sent, awaiting response... 200 OK
      Length: unspecified [text/plain]
      Saving to: ‘/home//fogDBbackups/fog_sql_1.5.10.1639_20250306_104936.sql’
      
           0K .......... .......... .......... .......... .......... 1.10M
          50K .......... .......... .......... .......... .......... 1.52M
         100K .......... .......... .......... .......... .......... 2.24M
         150K .......... .......... .......... .......... .......... 3.62M
         200K .......... .......... .......... .......... .......... 4.79M
         250K .......... .......... .......... .......... .......... 4.80M
         300K .......... .......... .......... .......... .......... 5.05M
         350K .......... .......... .......... .......... .......... 3.47M
         400K .......... .......... .......... .......... .......... 4.36M
         450K .......... .......... .......... .......... .......... 4.83M
         500K .......... .......... .......... .......... .......... 10.2M
         550K .......... .......... .......... .......... .......... 3.73M
         600K .......... .......... .......... .......... .......... 5.34M
         650K .......... .......... .......... .......... .......... 4.09M
         700K .......... .......... .......... .......... .......... 5.02M
         750K .......... .......... .......... .......... .......... 5.06M
         800K .......... .......... .......... .......... .......... 5.04M
         850K .......... .......... .......... .......... .......... 5.61M
         900K .......... .......... .......... .......... .......... 5.29M
         950K .......... .......... .......... .......... .......... 6.36M
        1000K .......... .......... .......... .......... .......... 4.59M
        1050K .......... .......... .......... .......... .......... 6.17M
        1100K .......... .......... .......... .......... .......... 9.28M
        1150K .....                                                  5.02M=0.3s
      
      2025-03-06 10:49:36 (3.82 MB/s) - ‘/home//fogDBbackups/fog_sql_1.5.10.1639_20250306_104936.sql’ saved [1182811]
      

      fog web interface reports version 1.5.10.1639 now.
      Server has 4 Cores and 8GB of RAM. Disk space is over 300GB free.

      After the first attempt to update failed, I restored the database from backups and tried again with the same result.

      P 1 Reply Last reply Reply Quote 0
      • P
        pilipp_edv @pilipp_edv
        last edited by

        fixed it by installing gcc-aarch64-linux-gnu on ubuntu and running the script again. compilation errors are not logged to the script shown on screen, but to the bin/error_logs/ directory in the extracted archive.
        Update now ran without issues.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        157

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project