• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. thegiantcat
    T
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 18
    • Best 0
    • Controversial 0
    • Groups 0

    thegiantcat

    @thegiantcat

    0
    Reputation
    43
    Profile views
    18
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    thegiantcat Unfollow Follow

    Latest posts made by thegiantcat

    • RE: Issue Capturing Image

      @thegiantcat

      I rebooted the server, and recreated / restarted the task. After this it completed without issue.

      posted in FOG Problems
      T
      thegiantcat
    • Issue Capturing Image

      I’m having an issue capturing an image.

      The device is a dell latitude 5570,
      Fog Version 1.5.5
      When I first registered the host, it failed however I switched the device from UEFI to legacy in it’s BIOS and it went through and registered fine.

      I then went into the fog management screen, created a new image, set the opperating system to windows 10 and made a task to capture an image for this the next time the above device boots. However the completion percentage does not progress past 2.31% the time to completion just grows exponentially, additionally the screen I am capturing the image on looks “messed up”. Tried including a picture but kept getting errors.

      I let the default go through on about everything when registering the device except Hostname. I was kinda hoping on some ideas on where to go from here, the device is still powered on and “imaging” if you need further info let me know.

      posted in FOG Problems
      T
      thegiantcat
    • RE: Issues during installation on Debian 9.6 stretch

      @Sebastian-Roth
      Thank you so much, I missed it when you originally said that, running it with --exitFail didn’t work, however running it with -X did work. After this I was able to update/install the schema and actually log into the server via the web interface.

      Additionally I tested booting to the server via PXE and was able too!

      posted in FOG Problems
      T
      thegiantcat
    • RE: Issues during installation on Debian 9.6 stretch

      @Sebastian-Roth
      I do not have the requested directory(php-fpm) under/var/log,
      /var/log also doesn’t have an www-error.log
      I also checked just to be through and there isn’t a log under
      /etc/php/7.0/fpm

      posted in FOG Problems
      T
      thegiantcat
    • RE: Issues during installation on Debian 9.6 stretch

      @Tom-Elliott
      Also here is the error part from the log about when it gets to “Backing up databases”

      Dec 06 12:23:00 zstsvreefog systemd[1]: Starting The PHP 7.0 FastCGI Process Manager...
      Dec 06 12:23:00 zstsvreefog systemd[1]: Started The PHP 7.0 FastCGI Process Manager.
      --2018-12-06 12:23:02--  http://172.24.28.71//fog//maintenance/backup_db.php
      Connecting to 172.22.0.102:3128... connected.
      Proxy request sent, awaiting response... 302 Found
      Could not parse String-Transport-Security header
      Location: ?node=schema [following]
      --2018-12-06 12:23:03--  http://172.24.28.71//fog//maintenance/backup_db.php?node=schema
      Connecting to 172.22.0.102:3128... connected.
      Proxy request sent, awaiting response... 500 Internal Server Error
      2018-12-06 12:23:04 ERROR 500: Internal Server Error.
      
      

      This is before making the requested change after the requested change i get

      Dec 06 13:31:46 zstsvreefog systemd[1]: Starting The PHP 7.0 FastCGI Process Manager...
      Dec 06 13:31:46 zstsvreefog systemd[1]: Started The PHP 7.0 FastCGI Process Manager.
      --2018-12-06 13:31:48--  http://172.24.28.71//fog//maintenance/backup_db.php
      Connecting to 172.24.28.71:80... connected.
      HTTP request sent, awaiting response... 302 Found
      Could not parse String-Transport-Security header
      Location: ?node=schema [following]
      --2018-12-06 13:31:48--  http://172.24.28.71//fog//maintenance/backup_db.php?node=schema
      Connecting to 172.24.28.71:80... connected.
      HTTP request sent, awaiting response... 500 Internal Server Error
      2018-12-06 13:31:48 ERROR 500: Internal Server Error.
      
      

      The cert on the proxy server is self signed, i assume that its failing because of that, is there a way to start the installation and ignore this? Or a way to add it as a trusted site?

      posted in FOG Problems
      T
      thegiantcat
    • RE: Issues during installation on Debian 9.6 stretch

      @Tom-Elliott
      No,

      The fog server is seperate from the proxy.

      posted in FOG Problems
      T
      thegiantcat
    • RE: Issues during installation on Debian 9.6 stretch

      @Tom-Elliott
      My wgetrc file contains

      http_proxy = http://172.22.0.102:3128
      use_proxy = on
      no_proxy="localhost",127.0.0.0/8,172.22.0.102
      

      I’m not showing a hidden file for curl under ~/ or a config file for curl under /etc/curlrc

      I edited my .bashrc to contain the following

      export http_proxy=<http://172.22.0.102>
      export rsync_proxy=$http_proxy
      export https_proxy=$http_proxy
      export ftp_proxy=$http_proxy
      export no_proxy="localhost,127.0.0.1,localhost.localadmin,127.0.0.1,172.22.0.102"
      

      Is the syntax for that correct, I re-booted the machine after making the change. However its still looking like no dice. (at this point it actually failed at getting binaries

      I made the following changes and it was able to get the binaries but it still failed at backing up the database

      export http_proxy="http://172.22.0.102:3128"
      export rsync_proxy=$http_proxy
      export https_proxy=$http_proxy
      export ftp_proxy=$http_proxy
      export no_proxy="localhost,127.0.0.1,localhost.localadmin,127.0.0.1,172.22.0.102"
      
      
      posted in FOG Problems
      T
      thegiantcat
    • RE: Issues during installation on Debian 9.6 stretch

      @Sebastian-Roth
      Apache2 shows running
      The php log file mentioned only contains the following

      [02-Dec-2018 06:25:02] NOTICE: error log file re-opened
      [04-Dec-2018 09:42:25] NOTICE: Terminating ...
      [04-Dec-2018 09:42:25] NOTICE: exiting, bye-bye!
      [04-Dec-2018 10:08:03] NOTICE: fpm is running, pid 465
      [04-Dec-2018 10:08:04] NOTICE: ready to handle connections
      [04-Dec-2018 10:08:04] NOTICE: systemd monitor interval set to 10000ms
      [04-Dec-2018 11:59:51] NOTICE: Terminating ...
      [04-Dec-2018 11:59:51] NOTICE: exiting, bye-bye!
      [04-Dec-2018 12:00:25] NOTICE: fpm is running, pid 470
      [04-Dec-2018 12:00:25] NOTICE: ready to handle connections
      [04-Dec-2018 12:00:25] NOTICE: systemd monitor interval set to 10000ms
      [05-Dec-2018 13:42:01] NOTICE: Terminating ...
      [05-Dec-2018 13:42:01] NOTICE: exiting, bye-bye!
      [05-Dec-2018 14:09:03] NOTICE: fpm is running, pid 8503
      [05-Dec-2018 14:09:03] NOTICE: ready to handle connections
      [05-Dec-2018 14:09:03] NOTICE: systemd monitor interval set to 10000ms
      [05-Dec-2018 14:11:37] NOTICE: Terminating ...
      [05-Dec-2018 14:11:37] NOTICE: exiting, bye-bye!
      [05-Dec-2018 14:12:21] NOTICE: fpm is running, pid 9732
      [05-Dec-2018 14:12:21] NOTICE: ready to handle connections
      [05-Dec-2018 14:12:21] NOTICE: systemd monitor interval set to 10000ms
      [05-Dec-2018 14:15:19] NOTICE: Terminating ...
      [05-Dec-2018 14:15:19] NOTICE: exiting, bye-bye!
      [05-Dec-2018 14:16:11] NOTICE: fpm is running, pid 11029
      [05-Dec-2018 14:16:11] NOTICE: ready to handle connections
      [05-Dec-2018 14:16:11] NOTICE: systemd monitor interval set to 10000ms
      [05-Dec-2018 14:18:55] NOTICE: Terminating ...
      [05-Dec-2018 14:18:55] NOTICE: exiting, bye-bye!
      [05-Dec-2018 14:19:53] NOTICE: fpm is running, pid 12261
      [05-Dec-2018 14:19:53] NOTICE: ready to handle connections
      [05-Dec-2018 14:19:53] NOTICE: systemd monitor interval set to 10000ms
      [05-Dec-2018 14:28:53] NOTICE: Terminating ...
      [05-Dec-2018 14:28:53] NOTICE: exiting, bye-bye!
      [05-Dec-2018 14:30:01] NOTICE: fpm is running, pid 13502
      [05-Dec-2018 14:30:01] NOTICE: ready to handle connections
      [05-Dec-2018 14:30:01] NOTICE: systemd monitor interval set to 10000ms
      [05-Dec-2018 15:01:27] NOTICE: Terminating ...
      [05-Dec-2018 15:01:27] NOTICE: exiting, bye-bye!
      [05-Dec-2018 15:03:14] NOTICE: fpm is running, pid 14933
      [05-Dec-2018 15:03:14] NOTICE: ready to handle connections
      [05-Dec-2018 15:03:14] NOTICE: systemd monitor interval set to 10000ms
      [05-Dec-2018 15:09:21] NOTICE: Terminating ...
      [05-Dec-2018 15:09:21] NOTICE: exiting, bye-bye!
      [05-Dec-2018 15:10:18] NOTICE: fpm is running, pid 16312
      [05-Dec-2018 15:10:18] NOTICE: ready to handle connections
      [05-Dec-2018 15:10:18] NOTICE: systemd monitor interval set to 10000ms
      [05-Dec-2018 15:29:00] NOTICE: Terminating ...
      [05-Dec-2018 15:29:00] NOTICE: exiting, bye-bye!
      [05-Dec-2018 15:30:52] NOTICE: fpm is running, pid 18904
      [05-Dec-2018 15:30:52] NOTICE: ready to handle connections
      [05-Dec-2018 15:30:52] NOTICE: systemd monitor interval set to 10000ms
      [05-Dec-2018 15:39:08] NOTICE: Terminating ...
      [05-Dec-2018 15:39:08] NOTICE: exiting, bye-bye!
      [05-Dec-2018 15:40:03] NOTICE: fpm is running, pid 20203
      [05-Dec-2018 15:40:03] NOTICE: ready to handle connections
      [05-Dec-2018 15:40:03] NOTICE: systemd monitor interval set to 10000ms
      [05-Dec-2018 15:54:07] NOTICE: Terminating ...
      [05-Dec-2018 15:54:07] NOTICE: exiting, bye-bye!
      [05-Dec-2018 15:54:39] NOTICE: fpm is running, pid 470
      [05-Dec-2018 15:54:39] NOTICE: ready to handle connections
      [05-Dec-2018 15:54:39] NOTICE: systemd monitor interval set to 10000ms
      [05-Dec-2018 15:56:55] NOTICE: Terminating ...
      [05-Dec-2018 15:56:55] NOTICE: exiting, bye-bye!
      [05-Dec-2018 15:57:56] NOTICE: fpm is running, pid 2079
      [05-Dec-2018 15:57:56] NOTICE: ready to handle connections
      [05-Dec-2018 15:57:56] NOTICE: systemd monitor interval set to 10000ms
      [06-Dec-2018 11:15:22] NOTICE: Terminating ...
      [06-Dec-2018 11:15:22] NOTICE: exiting, bye-bye!
      [06-Dec-2018 11:16:06] NOTICE: fpm is running, pid 6848
      [06-Dec-2018 11:16:06] NOTICE: ready to handle connections
      [06-Dec-2018 11:16:06] NOTICE: systemd monitor interval set to 10000ms
      
      

      The apache2 error log also doesn’t seem to be throwing to many errors

      [Thu Dec 06 06:25:02.506492 2018] [mpm_prefork:notice] [pid 2080] AH00163: Apache/2.4.25 (Debian) OpenSSL/1.0.2l configured -- resuming normal operations
      [Thu Dec 06 06:25:02.506529 2018] [core:notice] [pid 2080] AH00094: Command line: '/usr/sbin/apache2'
      [Thu Dec 06 11:15:22.443225 2018] [mpm_prefork:notice] [pid 2080] AH00169: caught SIGTERM, shutting down
      [Thu Dec 06 11:16:06.707548 2018] [mpm_prefork:notice] [pid 6849] AH00163: Apache/2.4.25 (Debian) OpenSSL/1.0.2l configured -- resuming normal operations
      [Thu Dec 06 11:16:06.707626 2018] [core:notice] [pid 6849] AH00094: Command line: '/usr/sbin/apache2'
      

      However, after doing some digging I thing i found a clue, if I disable the setting in /etc/wgetrc “no_proxy=“localhost”” it fails on “Downloading Binaries” if I have this enabled it fails on “Backing up Database” this backup isn’t using FTP is it?

      Unfortunately due to the location, this machine has to go through a proxy to access the internet, is it possible to skip this step in the installation?

      posted in FOG Problems
      T
      thegiantcat
    • RE: Issues during installation on Debian 9.6 stretch

      @Sebastian-Roth

      Alright, I’m re-cloning the git repository and will re-perform the install and see what happens.

      Alright, after reclonining and trying to install it fails to download the binaries.
      I fixed this by running export http_proxy=http://myproxyserver:port
      However, now it gets to backing up databases and fails. Is this due to a setting because I’m behind a proxy?

      I’ve included the fog_install error log below if it helps.

         #      It will prepend the running with sudo if root is not set      #
         ######################################################################
         #           ** Notice ** FOG is difficult to setup securely          #
         #        SELinux and IPTables are usually asked to be disabled       #
         #           There have been strides in adding capabilities           #
         #          The recommendations would now be more appropriate         #
         #    to set SELinux to permissive and to disable firewall for now.   #
         #  You can find some methods to enable SELinux and maintain firewall #
         #   settings and ports. If you feel comfortable doing so please do   #
         ######################################################################
         #            Please see our wiki for more information at:            #
         ######################################################################
         #             https://wiki.fogproject.org/wiki/index.php             #
         ######################################################################
      
       * Here are the settings FOG will use:
       * Base Linux: Debian
       * Detected Linux Distribution: Debian GNU/Linux
       * Server IP Address: 172.24.28.71
       * Server Subnet Mask: 255.255.254.0
       * Interface: enp2s0
       * Installation Type: Normal Server
       * Internationalization: 0
       * Image Storage Location: /images
       * Using FOG DHCP: Yes
       * DHCP router Address: 172.24.28.1
      
      
       * Are you sure you wish to continue (Y/N)
       * Installation Started
      
       * Installing required packages, if this fails
       | make sure you have an active internet connection.
      
       * Adding needed repository....................................OK
       * Preparing Package Manager...................................OK
       * Packages to be installed:
      
              apache2 bc build-essential cpp curl g++ gawk gcc genisoimage gzip htmldoc isc-dhcp-server isolinux lftp libapache2-mod-php7.0 libc6 libcurl3 liblzma-dev m4 mysql-client mysql-server net-tools nfs-kernel-server openssh-server php7.0 php7.0-bcmath php7.0-cli php7.0-curl php7.0-fpm php7.0-gd php7.0-json php7.0-mbstring php7.0-mysql php7.0-mysqlnd php-gettext sysv-rc-conf tar tftpd-hpa tftp-hpa unzip vsftpd wget xinetd zlib1g
      
      
       * Skipping package:   apache2.................................(Already Installed)
       * Skipping package:   bc......................................(Already Installed)
       * Skipping package:   build-essential.........................(Already Installed)
       * Skipping package:   cpp.....................................(Already Installed)
       * Skipping package:   curl....................................(Already Installed)
       * Skipping package:   g++.....................................(Already Installed)
       * Skipping package:   gawk....................................(Already Installed)
       * Skipping package:   gcc.....................................(Already Installed)
       * Skipping package:   genisoimage.............................(Already Installed)
       * Skipping package:   gzip....................................(Already Installed)
       * Skipping package:   htmldoc.................................(Already Installed)
       * Skipping package:   isc-dhcp-server.........................(Already Installed)
       * Skipping package:   isolinux................................(Already Installed)
       * Skipping package:   lftp....................................(Already Installed)
       * Skipping package:   libapache2-mod-php7.0...................(Already Installed)
       * Skipping package:   libc6...................................(Already Installed)
       * Skipping package:   libcurl3................................(Already Installed)
       * Skipping package:   liblzma-dev.............................(Already Installed)
       * Skipping package:   m4......................................(Already Installed)
       * Skipping package:   mysql-client............................(Already Installed)
       * Skipping package:   mysql-server............................(Already Installed)
       * Skipping package:   net-tools...............................(Already Installed)
       * Skipping package:   nfs-kernel-server.......................(Already Installed)
       * Skipping package:   openssh-server..........................(Already Installed)
       * Skipping package:   php7.0..................................(Already Installed)
       * Skipping package:   php7.0-bcmath...........................(Already Installed)
       * Skipping package:   php7.0-cli..............................(Already Installed)
       * Skipping package:   php7.0-curl.............................(Already Installed)
       * Skipping package:   php7.0-fpm..............................(Already Installed)
       * Skipping package:   php7.0-gd...............................(Already Installed)
       * Skipping package:   php7.0-json.............................(Already Installed)
       * Skipping package:   php7.0-mbstring.........................(Already Installed)
       * Skipping package:   php7.0-mysql............................(Already Installed)
       * Skipping package:   php7.0-mysql............................(Already Installed)
       * Skipping package:   php-gettext.............................(Already Installed)
       * Skipping package:   sysv-rc-conf............................(Already Installed)
       * Skipping package:   tar.....................................(Already Installed)
       * Skipping package:   tftpd-hpa...............................(Already Installed)
       * Skipping package:   tftp-hpa................................(Already Installed)
       * Skipping package:   unzip...................................(Already Installed)
       * Skipping package:   vsftpd..................................(Already Installed)
       * Skipping package:   wget....................................(Already Installed)
       * Skipping package:   xinetd..................................(Already Installed)
       * Skipping package:   zlib1g..................................(Already Installed)
       * Updating packages as needed.................................OK
      
       * Confirming package installation
      
       * Checking package: apache2...................................OK
       * Checking package: bc........................................OK
       * Checking package: build-essential...........................OK
       * Checking package: cpp.......................................OK
       * Checking package: curl......................................OK
       * Checking package: g++.......................................OK
       * Checking package: gawk......................................OK
       * Checking package: gcc.......................................OK
       * Checking package: genisoimage...............................OK
       * Checking package: gzip......................................OK
       * Checking package: htmldoc...................................OK
       * Checking package: isc-dhcp-server...........................OK
       * Checking package: isolinux..................................OK
       * Checking package: lftp......................................OK
       * Checking package: libapache2-mod-php7.0.....................OK
       * Checking package: libc6.....................................OK
       * Checking package: libcurl3..................................OK
       * Checking package: liblzma-dev...............................OK
       * Checking package: m4........................................OK
       * Checking package: mysql-client..............................OK
       * Checking package: mysql-server..............................OK
       * Checking package: net-tools.................................OK
       * Checking package: nfs-kernel-server.........................OK
       * Checking package: openssh-server............................OK
       * Checking package: php7.0....................................OK
       * Checking package: php7.0-bcmath.............................OK
       * Checking package: php7.0-cli................................OK
       * Checking package: php7.0-curl...............................OK
       * Checking package: php7.0-fpm................................OK
       * Checking package: php7.0-gd.................................OK
       * Checking package: php7.0-json...............................OK
       * Checking package: php7.0-mbstring...........................OK
       * Checking package: php7.0-mysql..............................OK
       * Checking package: php-gettext...............................OK
       * Checking package: sysv-rc-conf..............................OK
       * Checking package: tar.......................................OK
       * Checking package: tftpd-hpa.................................OK
       * Checking package: tftp-hpa..................................OK
       * Checking package: unzip.....................................OK
       * Checking package: vsftpd....................................OK
       * Checking package: wget......................................OK
       * Checking package: xinetd....................................OK
       * Checking package: zlib1g....................................OK
      
       * Configuring services
      
       * 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
       * Is the MySQL password blank? (Y/n)  * 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 CA.............................................OK
       * Creating SSL Private Key....................................OK
       * Creating SSL Certificate....................................OK
       * Creating auth pub key and cert..............................OK
       * Resetting SSL Permissions...................................OK
       * Setting up Apache virtual host (no SSL).....................OK
       * Starting and checking status of web services................OK
       * Changing permissions on apache log files....................OK
       * Backing up database.........................................Failed!```
      posted in FOG Problems
      T
      thegiantcat
    • RE: Issues during installation on Debian 9.6 stretch

      @Sebastian-Roth
      Here ya go.

      configureMySql() {
          stopInitScript
          dots "Setting up and starting MySQL"
      #    for mysqlconf in $(grep -rl '.*skip-networking' /etc | grep -v init.d); do
      #        sed -i '/.*skip-networking/ s/^#*/#/' -i $mysqlconf >>$workingdir/error_logs/fog_error_${version}.log 2>&1
          done
      #    for mysqlconf in `grep -rl '.*bind-address.*=.*127.0.0.1' /etc | grep -v init.d`; do
      #        sed -e '/.*bind-address.*=.*127.0.0.1/ s/^#*/#/' -i $mysqlconf >>$workingdir/error_logs/fog_error_${version}.log 2>&1
          done
          if [[ $systemctl == yes ]]; then
              if [[ $osid -eq 3 ]]; then
      --
          configureMySql
          mysqlver=$(echo $mysqlver | awk -F'([.])' '{print $1"."$2}')
          runTest=$(echo "$mysqlver < $vertocheck" | bc)
          if [[ $runTest -eq 0 ]]; then
              [[ -z $snmysqlhost ]] && snmysqlhost='localhost'
              [[ -z $snmysqluser ]] && snmysqluser='root'
              case $snmysqlhost in
                  127.0.0.1|[Ll][Oo][Cc][Aa][Ll][Hh][Oo][Ss][Tt])
                      sql="UPDATE mysql.user SET plugin='mysql_native_password' WHERE User='root';"
                      mysql "${options}" -e "$sql" >>$workingdir/error_logs/fog_error_${version}.log 2>&1
                      sql="ALTER USER '$snmysqluser'@'127.0.0.1' IDENTIFIED WITH mysql_native_password BY '$sqlescsnmysqlpass';"
      
      posted in FOG Problems
      T
      thegiantcat