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

    Is FOG able to fit my needs?

    Scheduled Pinned Locked Moved
    General
    5
    34
    6.9k
    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.
    • Wayne WorkmanW
      Wayne Workman @eadhor
      last edited by Wayne Workman

      @eadhor Be sure to set the database username and password inside of /opt/fog/.fogsettings or you’re bound to break stuff later on when you upgrade (promise).

      Change settings for fog inside of the fogsettings file, then re-run the installer for those settings to take effect. Here’s documentation about the file:
      https://wiki.fogproject.org/wiki/index.php?title=.fogsettings

      The settings you need to change are these:

      snmysqluser=''
      snmysqlpass=''
      

      Put the correct values into them, save, then re-run the installer.

      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!
      Daily Clean Installation Results:
      https://fogtesting.fogproject.us/
      FOG Reporting:
      https://fog-external-reporting-results.fogproject.us/

      E 1 Reply Last reply Reply Quote 1
      • E
        eadhor @Wayne Workman
        last edited by

        @wayne-workman
        Hey,
        i have changed /opt/fog/.fogsettings

        snmysqluser='root'
        snmysqlpass='' 
        

        and re-run the installer. But i got the error again.

         * Changing permissions on apache log files....................OK
         * Backing up database.........................................Failed!
        

        Server is up and running so far, but i get the problem with the updates 😉 Like i have said, there is no database password.

        Wayne WorkmanW 1 Reply Last reply Reply Quote 0
        • Wayne WorkmanW
          Wayne Workman @eadhor
          last edited by Wayne Workman

          @eadhor Check your free space with df -h look for partitions that are 100% or 99% full.

          Also, inside of /opt/fog/.fogsettings set snmysqlhost to these two things, one at a time: localhost and 127.0.0.1 Running the installer after each to see if the setting works.

          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!
          Daily Clean Installation Results:
          https://fogtesting.fogproject.us/
          FOG Reporting:
          https://fog-external-reporting-results.fogproject.us/

          E 1 Reply Last reply Reply Quote 0
          • E
            eadhor
            last edited by eadhor

            And here ist my next question.

            We have an existing DHCP-Server. What informations do i have to provide to the sysadmin? He wants to add a DHCP-Group for the two Clients.

            Can i take an image of an existing Virtual Machine? If so. How?

            Kind regards
            Denny

            EDIT:
            As far as i know, he needs the following information:
            next-serve (FOG-Server IP?)
            filename??

            1 Reply Last reply Reply Quote 0
            • E
              eadhor @Wayne Workman
              last edited by

              @wayne-workman

              [root@qa-fog-server bin]# df -h
              Dateisystem Größe Benutzt Verf. Verw% Eingehängt auf
              /dev/mapper/centos-root 20G 3,2G 17G 16% /
              devtmpfs 3,9G 0 3,9G 0% /dev
              tmpfs 3,9G 0 3,9G 0% /dev/shm
              tmpfs 3,9G 8,6M 3,9G 1% /run
              tmpfs 3,9G 0 3,9G 0% /sys/fs/cgroup
              /dev/sda1 1014M 180M 835M 18% /boot
              /dev/mapper/centos-images 271G 33M 271G 1% /images
              tmpfs 783M 0 783M 0% /run/user/0

              Ive tried localhost and 127.0.0.1. Both failed

              Wayne WorkmanW 1 Reply Last reply Reply Quote 0
              • Wayne WorkmanW
                Wayne Workman @eadhor
                last edited by

                @eadhor Wherever you keep your fogproject directory, go there, then go into bin and do a -ls -laht you should see a new directory in there for errors and such. In there, there will be an output file from the fog installer. We need the last 20 or so lines from that output file, that should tell us what’s going wrong.

                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!
                Daily Clean Installation Results:
                https://fogtesting.fogproject.us/
                FOG Reporting:
                https://fog-external-reporting-results.fogproject.us/

                E 1 Reply Last reply Reply Quote 0
                • E
                  eadhor @Wayne Workman
                  last edited by

                  @wayne-workman

                  * Setting up fog user.........................................Already setup
                   * Setting up fog password.....................................OK
                   * Stopping FOGMulticastManager.service Service................OK
                   * Stopping FOGImageReplicator.service Service.................OK
                   * Stopping FOGSnapinReplicator.service Service................OK
                   * Stopping FOGScheduler.service Service.......................OK
                   * Stopping FOGPingHosts.service Service.......................OK
                   * Stopping FOGSnapinHash.service Service......................OK
                   * Stopping FOGImageSize.service Service.......................OK
                   * Setting up and starting MySQL...............................OK
                   * Backing up user reports.....................................Done
                   * Stopping web service........................................OK
                   * Removing vhost file.........................................OK
                   * Stopping FOGMulticastManager.service Service................OK
                   * Stopping FOGImageReplicator.service Service.................OK
                   * Stopping FOGSnapinReplicator.service Service................OK
                   * Stopping FOGScheduler.service Service.......................OK
                   * Stopping FOGPingHosts.service Service.......................OK
                   * Stopping FOGSnapinHash.service Service......................OK
                   * Stopping FOGImageSize.service Service.......................OK
                   * Setting up and starting MySQL...............................OK
                   * Setting up Apache and PHP files.............................OK
                   * Testing and removing symbolic links if found................OK
                   * Backing up old data.........................................OK
                   * Copying new files to web folder.............................OK
                   * Creating config file........................................OK
                   * Unzipping the binaries......................................Done
                   * Copying binaries where needed...............................Done
                   * Enabling apache and fpm services on boot....................OK
                   * Creating SSL Certificate....................................OK
                   * Creating auth pub key and cert..............................OK
                   * Resetting SSL Permissions...................................OK
                   * Setting up SSL FOG Server...................................OK
                   * Starting and checking status of web services................OK
                   * Changing permissions on apache log files....................OK
                   * Backing up database.........................................Failed!
                  
                  Geben Sie ein neues Passwort ein: Geben Sie das neue Passwort erneut ein: Ändern Passwort für Benutzer fog.
                  passwd: alle Authentifizierungs-Merkmale erfolgreich aktualisiert.
                  Failed to execute operation: Invalid argument
                  Failed to stop mysql.service: Unit mysql.service not loaded.
                  Failed to start mysql.service: Unit not found.
                  Unit mysql.service could not be found.
                  Failed to execute operation: Invalid argument
                  ● mariadb.service - MariaDB database server
                     Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
                     Active: active (running) since Mo 2017-12-11 17:03:09 CET; 2s ago
                    Process: 1407 ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=0/SUCCESS)
                    Process: 1376 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=0/SUCCESS)
                   Main PID: 1406 (mysqld_safe)
                     CGroup: /system.slice/mariadb.service
                             ├─1406 /bin/sh /usr/bin/mysqld_safe --basedir=/usr
                             └─1569 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/mariadb/mariadb.log --pid-file=/var/run/mariadb/mariadb.pid --socket=/v
                  ar/lib/mysql/mysql.sock
                  
                  Dez 11 17:03:07 qa-fog-server systemd[1]: Starting MariaDB database server...
                  Dez 11 17:03:07 qa-fog-server mariadb-prepare-db-dir[1376]: Database MariaDB is probably initialized in /var/lib/mysql already, nothing is done.
                  Dez 11 17:03:07 qa-fog-server mysqld_safe[1406]: 171211 17:03:07 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
                  Dez 11 17:03:07 qa-fog-server mysqld_safe[1406]: 171211 17:03:07 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
                  Dez 11 17:03:09 qa-fog-server systemd[1]: Started MariaDB database server.
                  Failed to execute operation: Invalid argument
                  Failed to stop mysql.service: Unit mysql.service not loaded.
                  Failed to start mysql.service: Unit not found.
                  Unit mysql.service could not be found.
                  Failed to execute operation: Invalid argument
                  ● mariadb.service - MariaDB database server
                     Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
                     Active: active (running) since Mo 2017-12-11 17:03:41 CET; 2s ago
                    Process: 1777 ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=0/SUCCESS)
                    Process: 1746 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=0/SUCCESS)
                   Main PID: 1776 (mysqld_safe)
                     CGroup: /system.slice/mariadb.service
                             ├─1776 /bin/sh /usr/bin/mysqld_safe --basedir=/usr
                             └─1939 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/mariadb/mariadb.log --pid-file=/var/run/mariadb/mariadb.pid --socket=/v
                  ar/lib/mysql/mysql.sock
                  
                  Dez 11 17:03:39 qa-fog-server systemd[1]: Starting MariaDB database server...
                  Dez 11 17:03:39 qa-fog-server mariadb-prepare-db-dir[1746]: Database MariaDB is probably initialized in /var/lib/mysql already, nothing is done.
                  Dez 11 17:03:40 qa-fog-server mysqld_safe[1776]: 171211 17:03:40 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
                  Dez 11 17:03:40 qa-fog-server mysqld_safe[1776]: 171211 17:03:40 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
                  Dez 11 17:03:41 qa-fog-server systemd[1]: Started MariaDB database server.
                  Archive:  binaries1.4.4.zip
                    inflating: packages/kernels/bzImage
                    inflating: packages/kernels/bzImage32
                    inflating: packages/inits/init_32.xz
                    inflating: packages/inits/init.xz
                   extracting: packages/clientfiles/FOGCrypt.zip
                   extracting: packages/clientfiles/FogService.zip
                    inflating: packages/clientfiles/SmartInstaller.exe
                    inflating: packages/clientfiles/FOGService.msi
                    inflating: packages/FOGService.msi
                  „../packages/clientfiles/FOGCrypt.zip“ -> „/var/www/html/fog//client/FOGCrypt.zip“
                  „../packages/clientfiles/FOGService.msi“ -> „/var/www/html/fog//client/FOGService.msi“
                  „../packages/clientfiles/FogService.zip“ -> „/var/www/html/fog//client/FogService.zip“
                  „../packages/clientfiles/SmartInstaller.exe“ -> „/var/www/html/fog//client/SmartInstaller.exe“
                  „../packages/kernels/bzImage“ -> „/var/www/html/fog//service/ipxe/bzImage“
                  „../packages/kernels/bzImage32“ -> „/var/www/html/fog//service/ipxe/bzImage32“
                  „../packages/inits/init_32.xz“ -> „/var/www/html/fog//service/ipxe/init_32.xz“
                  „../packages/inits/init.xz“ -> „/var/www/html/fog//service/ipxe/init.xz“
                  Signature ok
                  subject=/CN=139.2.247.233
                  Getting CA Private Key
                  ln: die symbolische Verknüpfung „/var/www/html/fog/fog“ konnte nicht angelegt werden: Die Datei existiert bereits
                  ● httpd.service - The Apache HTTP Server
                     Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
                     Active: active (running) since Mo 2017-12-11 17:03:47 CET; 2s ago
                       Docs: man:httpd(8)
                             man:apachectl(8)
                   Main PID: 2057 (httpd)
                     Status: "Processing requests..."
                     CGroup: /system.slice/httpd.service
                             ├─2057 /usr/sbin/httpd -DFOREGROUND
                             ├─2064 /usr/sbin/httpd -DFOREGROUND
                             ├─2065 /usr/sbin/httpd -DFOREGROUND
                             ├─2066 /usr/sbin/httpd -DFOREGROUND
                             ├─2067 /usr/sbin/httpd -DFOREGROUND
                             └─2068 /usr/sbin/httpd -DFOREGROUND
                  
                  Dez 11 17:03:47 qa-fog-server systemd[1]: Starting The Apache HTTP Server...
                  Dez 11 17:03:47 qa-fog-server httpd[2057]: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf.d/fog.conf:1
                  Dez 11 17:03:47 qa-fog-server systemd[1]: Started The Apache HTTP Server.
                  
                  ● php-fpm.service - The PHP FastCGI Process Manager
                     Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; vendor preset: disabled)
                     Active: active (running) since Mo 2017-12-11 17:03:47 CET; 2s ago
                   Main PID: 2058 (php-fpm)
                     Status: "Ready to handle connections"
                     CGroup: /system.slice/php-fpm.service
                             ├─2058 php-fpm: master process (/etc/php-fpm.conf
                             ├─2059 php-fpm: pool www
                             ├─2060 php-fpm: pool www
                             ├─2061 php-fpm: pool www
                             ├─2062 php-fpm: pool www
                             └─2063 php-fpm: pool www
                  
                  Dez 11 17:03:47 qa-fog-server systemd[1]: Starting The PHP FastCGI Process Manager...
                  Dez 11 17:03:47 qa-fog-server systemd[1]: Started The PHP FastCGI Process Manager.
                  --2017-12-11 17:03:49--  http://139.2.247.233//fog//maintenance/backup_db.php
                  Auflösen des Hostnamen »proxy.materna.de (proxy.materna.de)«... 139.2.1.3
                  Verbindungsaufbau zu proxy.materna.de (proxy.materna.de)|139.2.1.3|:8080... verbunden.
                  Proxy-Anforderung gesendet, warte auf Antwort... 403 Forbidden
                  2017-12-11 17:03:49 FEHLER 403: Forbidden.
                  
                  Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                  • Wayne WorkmanW
                    Wayne Workman @eadhor
                    last edited by Wayne Workman

                    @eadhor Looks like proxy issues? I don’t speak whatever that language is, but I do see a 403 Forbidden.

                    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!
                    Daily Clean Installation Results:
                    https://fogtesting.fogproject.us/
                    FOG Reporting:
                    https://fog-external-reporting-results.fogproject.us/

                    E 1 Reply Last reply Reply Quote 0
                    • E
                      eadhor @Wayne Workman
                      last edited by

                      @wayne-workman
                      Yes should be Proxy Issues. It’s german 😉
                      When “waiting for an answer” i get an 403 error.

                      1 Reply Last reply Reply Quote 0
                      • E
                        eadhor
                        last edited by

                        Okay. Solved the Database Error.

                        I have added the wgetrc:

                        no_proxy = localhost, 127.0.0.0/8, IP of the FOG Server
                        
                        Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                        • Wayne WorkmanW
                          Wayne Workman @eadhor
                          last edited by

                          @eadhor OK. If you have any more problems, please create a new thread.

                          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!
                          Daily Clean Installation Results:
                          https://fogtesting.fogproject.us/
                          FOG Reporting:
                          https://fog-external-reporting-results.fogproject.us/

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

                          185

                          Online

                          12.0k

                          Users

                          17.3k

                          Topics

                          155.2k

                          Posts
                          Copyright © 2012-2024 FOG Project