Failed to create Snapin Error



  • I’m having the same issue as the following post: https://forums.fogproject.org/topic/12797/snapin-create-fail-ftp_put. Unfortunately it seems the post went cold so I thought I’d take a crack at it.

    The error I’m running into is: [Mon Jan 07 16:23:34.610942 2019] [proxy_fcgi:error] [pid 29637] [client 192.168.1.105:35564] AH01071: Got error ‘PHP message: PHP Warning: ftp_put(): Permission denied. in /var/www/html/fog/lib/fog/fogftp.class.php on line 708\n’, referer: http://192.168.1.105/fog/management/index.php?node=snapin&sub=add

    I’m very new to linux so all help might need to be dumbed down a bit.
    I’m using FOG Version (1.5.5) on Linux Mint 19.1 Cinnamon. The machine it on an isolated network without network access. It was installed with network access.

    All help is greatly appreciated.


  • Developer

    @agray Best to use the script (see the linked forum post on instructions) to change back your FOG IP to the one you have in the internet network (192.168.105.238). Then re-run the installer - hopefully running through. Now move your server back to the other network and again change its IP (now to 192.168.1.105) using the same script again.

    No need for internet after the install. But if you ever need to re-run the installer… same procedure again.



  • @Sebastian-Roth Actually, before I go any further, is it required for fog to see the internet after install?



  • @Sebastian-Roth So i will need to reinstall according to the network with internet, swap it to the one without and run the script?


  • Developer



  • @Sebastian-Roth No problem, I tend to ramble a lot and it can get lost is all the junk.

    @Sebastian-Roth said in Failed to create Snapin Error:

    So you are switching between two different networks (just for the installation part). So did you use one of our helper scripts when you initially switched from your internet subnet to the isolated network?

    Yes I am. I was unaware there where helper scripts.
    The forum I was using as a tutorial said to put in the ip for the final network, that might be what messed everything up. Is there a better tutorial out there? If not, could you walk me through the process of getting this set up properly?
    The server is on subnet where it can see the internet, allowing us to update/install.

    @Sebastian-Roth said in Failed to create Snapin Error:

    Maybe it would have been all easier if I’d just tried to help you manually fix the permissions.

    Would have been easier but this way whatever I messed up previously can be fixed. I appreciate all your help!


  • Developer

    @agray said in Failed to create Snapin Error:

    The ip 192.168.1.105 it the address it will be on after installed. The address it’s on while connected to the internet is 192.168.105.238

    Ahhh, now I got this. Sorry I didn’t when you mentioned that between the lines in your earlier posts. So you are switching between two different networks (just for the installation part). So did you use one of our helper scripts when you initially switched from your internet subnet to the isolated network? You need to properly switch back your whole FOG server to the internet subnet IP before you can re-run the installer. I should have thought of this earlier.

    Maybe it would have been all easier if I’d just tried to help you manually fix the permissions. But on the other hand I am wondering what else is messed up and so re-running the installer is still a good idea to get this all fixed up.



  • @Sebastian-Roth To answer your question(s), with the the previous given information, I won’t be able to access http://192.168.1.105//fog//maintenance/backup_db.php without swapping to the other router.
    Here is the apache2_error.log

    [Wed Jan 09 09:33:37.473360 2019] [mpm_event:notice] [pid 23383:tid 140627289242560] AH00489: Apache/2.4.37 (Ubuntu) configured -- resuming normal operations
    [Wed Jan 09 09:33:37.473447 2019] [core:notice] [pid 23383:tid 140627289242560] AH00094: Command line: '/usr/sbin/apache2'
    [Wed Jan 09 09:34:09.246470 2019] [mpm_event:notice] [pid 23383:tid 140627289242560] AH00491: caught SIGTERM, shutting down
    [Wed Jan 09 09:34:09.320087 2019] [mpm_prefork:notice] [pid 29677] AH00163: Apache/2.4.37 (Ubuntu) configured -- resuming normal operations
    [Wed Jan 09 09:34:09.320188 2019] [core:notice] [pid 29677] AH00094: Command line: '/usr/sbin/apache2'
    [Wed Jan 09 09:34:09.593440 2019] [mpm_prefork:notice] [pid 29677] AH00169: caught SIGTERM, shutting down
    [Wed Jan 09 09:34:09.665904 2019] [mpm_prefork:notice] [pid 29738] AH00163: Apache/2.4.37 (Ubuntu) configured -- resuming normal operations
    [Wed Jan 09 09:34:09.665935 2019] [core:notice] [pid 29738] AH00094: Command line: '/usr/sbin/apache2'
    [Wed Jan 09 09:35:26.974997 2019] [mpm_prefork:notice] [pid 29738] AH00169: caught SIGTERM, shutting down
    [Wed Jan 09 09:35:43.214380 2019] [mpm_prefork:notice] [pid 5964] AH00163: Apache/2.4.37 (Ubuntu) OpenSSL/1.1.1a configured -- resuming normal operations
    [Wed Jan 09 09:35:43.214422 2019] [core:notice] [pid 5964] AH00094: Command line: '/usr/sbin/apache2'
    

    and the php7.1-fpm.log

    [07-Jan-2019 10:32:37] NOTICE: fpm is running, pid 28129
    [07-Jan-2019 10:32:37] NOTICE: ready to handle connections
    [07-Jan-2019 10:32:37] NOTICE: systemd monitor interval set to 10000ms
    [07-Jan-2019 10:32:42] NOTICE: Terminating ...
    [07-Jan-2019 10:32:42] NOTICE: exiting, bye-bye!
    [07-Jan-2019 10:32:42] NOTICE: fpm is running, pid 28847
    [07-Jan-2019 10:32:42] NOTICE: ready to handle connections
    [07-Jan-2019 10:32:42] NOTICE: systemd monitor interval set to 10000ms
    [07-Jan-2019 10:32:45] NOTICE: Terminating ...
    [07-Jan-2019 10:32:45] NOTICE: exiting, bye-bye!
    [07-Jan-2019 10:32:45] NOTICE: fpm is running, pid 28943
    [07-Jan-2019 10:32:45] NOTICE: ready to handle connections
    [07-Jan-2019 10:32:45] NOTICE: systemd monitor interval set to 10000ms
    [07-Jan-2019 10:32:47] NOTICE: Terminating ...
    [07-Jan-2019 10:32:47] NOTICE: exiting, bye-bye!
    [07-Jan-2019 10:32:47] NOTICE: fpm is running, pid 29267
    [07-Jan-2019 10:32:47] NOTICE: ready to handle connections
    [07-Jan-2019 10:32:47] NOTICE: systemd monitor interval set to 10000ms
    [07-Jan-2019 10:32:52] NOTICE: Terminating ...
    [07-Jan-2019 10:32:52] NOTICE: exiting, bye-bye!
    [07-Jan-2019 10:32:52] NOTICE: fpm is running, pid 29633
    [07-Jan-2019 10:32:52] NOTICE: ready to handle connections
    [07-Jan-2019 10:32:52] NOTICE: systemd monitor interval set to 10000ms
    [07-Jan-2019 10:32:58] NOTICE: Terminating ...
    [07-Jan-2019 10:32:58] NOTICE: exiting, bye-bye!
    [07-Jan-2019 10:32:58] NOTICE: fpm is running, pid 30572
    [07-Jan-2019 10:32:58] NOTICE: ready to handle connections
    [07-Jan-2019 10:32:58] NOTICE: systemd monitor interval set to 10000ms
    [07-Jan-2019 10:34:13] NOTICE: Terminating ...
    [07-Jan-2019 10:34:13] NOTICE: exiting, bye-bye!
    [07-Jan-2019 10:37:22] NOTICE: fpm is running, pid 5686
    [07-Jan-2019 10:37:22] NOTICE: ready to handle connections
    [07-Jan-2019 10:37:22] NOTICE: systemd monitor interval set to 10000ms
    [07-Jan-2019 10:43:19] NOTICE: Terminating ...
    [07-Jan-2019 10:43:19] NOTICE: exiting, bye-bye!
    [07-Jan-2019 10:49:24] NOTICE: fpm is running, pid 22683
    [07-Jan-2019 10:49:24] NOTICE: ready to handle connections
    [07-Jan-2019 10:49:24] NOTICE: systemd monitor interval set to 10000ms
    [07-Jan-2019 10:49:30] NOTICE: Terminating ...
    [07-Jan-2019 10:49:30] NOTICE: exiting, bye-bye!
    [07-Jan-2019 10:49:30] NOTICE: fpm is running, pid 23947
    [07-Jan-2019 10:49:30] NOTICE: ready to handle connections
    [07-Jan-2019 10:49:30] NOTICE: systemd monitor interval set to 10000ms
    [07-Jan-2019 10:49:33] NOTICE: Terminating ...
    [07-Jan-2019 10:49:33] NOTICE: exiting, bye-bye!
    [07-Jan-2019 10:49:33] NOTICE: fpm is running, pid 24043
    [07-Jan-2019 10:49:33] NOTICE: ready to handle connections
    [07-Jan-2019 10:49:33] NOTICE: systemd monitor interval set to 10000ms
    [07-Jan-2019 10:49:34] NOTICE: Terminating ...
    [07-Jan-2019 10:49:34] NOTICE: exiting, bye-bye!
    [07-Jan-2019 10:49:34] NOTICE: fpm is running, pid 24340
    [07-Jan-2019 10:49:34] NOTICE: ready to handle connections
    [07-Jan-2019 10:49:34] NOTICE: systemd monitor interval set to 10000ms
    [07-Jan-2019 10:49:41] NOTICE: Terminating ...
    [07-Jan-2019 10:49:41] NOTICE: exiting, bye-bye!
    [07-Jan-2019 10:49:41] NOTICE: fpm is running, pid 24679
    [07-Jan-2019 10:49:41] NOTICE: ready to handle connections
    [07-Jan-2019 10:49:41] NOTICE: systemd monitor interval set to 10000ms
    [07-Jan-2019 10:49:47] NOTICE: Terminating ...
    [07-Jan-2019 10:49:47] NOTICE: exiting, bye-bye!
    [07-Jan-2019 10:49:47] NOTICE: fpm is running, pid 25540
    [07-Jan-2019 10:49:47] NOTICE: ready to handle connections
    [07-Jan-2019 10:49:47] NOTICE: systemd monitor interval set to 10000ms
    [07-Jan-2019 10:50:19] NOTICE: Terminating ...
    [07-Jan-2019 10:50:19] NOTICE: exiting, bye-bye!
    [07-Jan-2019 10:51:59] NOTICE: fpm is running, pid 29626
    [07-Jan-2019 10:51:59] NOTICE: ready to handle connections
    [07-Jan-2019 10:51:59] NOTICE: systemd monitor interval set to 10000ms
    [09-Jan-2019 09:17:10] NOTICE: Terminating ...
    [09-Jan-2019 09:17:10] NOTICE: exiting, bye-bye!
    [09-Jan-2019 09:22:39] NOTICE: fpm is running, pid 29230
    [09-Jan-2019 09:22:39] NOTICE: ready to handle connections
    [09-Jan-2019 09:22:39] NOTICE: systemd monitor interval set to 10000ms
    [09-Jan-2019 09:22:45] NOTICE: Terminating ...
    [09-Jan-2019 09:22:45] NOTICE: exiting, bye-bye!
    [09-Jan-2019 09:22:45] NOTICE: fpm is running, pid 30529
    [09-Jan-2019 09:22:45] NOTICE: ready to handle connections
    [09-Jan-2019 09:22:45] NOTICE: systemd monitor interval set to 10000ms
    [09-Jan-2019 09:22:48] NOTICE: Terminating ...
    [09-Jan-2019 09:22:48] NOTICE: exiting, bye-bye!
    [09-Jan-2019 09:22:49] NOTICE: fpm is running, pid 30631
    [09-Jan-2019 09:22:49] NOTICE: ready to handle connections
    [09-Jan-2019 09:22:49] NOTICE: systemd monitor interval set to 10000ms
    [09-Jan-2019 09:22:50] NOTICE: Terminating ...
    [09-Jan-2019 09:22:50] NOTICE: exiting, bye-bye!
    [09-Jan-2019 09:22:50] NOTICE: fpm is running, pid 30928
    [09-Jan-2019 09:22:50] NOTICE: ready to handle connections
    [09-Jan-2019 09:22:50] NOTICE: systemd monitor interval set to 10000ms
    [09-Jan-2019 09:22:56] NOTICE: Terminating ...
    [09-Jan-2019 09:22:56] NOTICE: exiting, bye-bye!
    [09-Jan-2019 09:22:56] NOTICE: fpm is running, pid 31289
    [09-Jan-2019 09:22:56] NOTICE: ready to handle connections
    [09-Jan-2019 09:22:56] NOTICE: systemd monitor interval set to 10000ms
    [09-Jan-2019 09:23:02] NOTICE: Terminating ...
    [09-Jan-2019 09:23:02] NOTICE: exiting, bye-bye!
    [09-Jan-2019 09:23:02] NOTICE: fpm is running, pid 32176
    [09-Jan-2019 09:23:02] NOTICE: ready to handle connections
    [09-Jan-2019 09:23:02] NOTICE: systemd monitor interval set to 10000ms
    [09-Jan-2019 09:24:33] NOTICE: Terminating ...
    [09-Jan-2019 09:24:33] NOTICE: exiting, bye-bye!
    [09-Jan-2019 09:26:02] NOTICE: fpm is running, pid 14391
    [09-Jan-2019 09:26:02] NOTICE: ready to handle connections
    [09-Jan-2019 09:26:02] NOTICE: systemd monitor interval set to 10000ms
    [09-Jan-2019 09:28:01] NOTICE: Terminating ...
    [09-Jan-2019 09:28:01] NOTICE: exiting, bye-bye!
    [09-Jan-2019 09:34:31] NOTICE: fpm is running, pid 31215
    [09-Jan-2019 09:34:31] NOTICE: ready to handle connections
    [09-Jan-2019 09:34:31] NOTICE: systemd monitor interval set to 10000ms
    [09-Jan-2019 09:34:37] NOTICE: Terminating ...
    [09-Jan-2019 09:34:37] NOTICE: exiting, bye-bye!
    [09-Jan-2019 09:34:37] NOTICE: fpm is running, pid 32501
    [09-Jan-2019 09:34:37] NOTICE: ready to handle connections
    [09-Jan-2019 09:34:37] NOTICE: systemd monitor interval set to 10000ms
    [09-Jan-2019 09:34:41] NOTICE: Terminating ...
    [09-Jan-2019 09:34:41] NOTICE: exiting, bye-bye!
    [09-Jan-2019 09:34:41] NOTICE: fpm is running, pid 32597
    [09-Jan-2019 09:34:41] NOTICE: ready to handle connections
    [09-Jan-2019 09:34:41] NOTICE: systemd monitor interval set to 10000ms
    [09-Jan-2019 09:34:42] NOTICE: Terminating ...
    [09-Jan-2019 09:34:42] NOTICE: exiting, bye-bye!
    [09-Jan-2019 09:34:42] NOTICE: fpm is running, pid 435
    [09-Jan-2019 09:34:42] NOTICE: ready to handle connections
    [09-Jan-2019 09:34:42] NOTICE: systemd monitor interval set to 10000ms
    [09-Jan-2019 09:34:48] NOTICE: Terminating ...
    [09-Jan-2019 09:34:48] NOTICE: exiting, bye-bye!
    [09-Jan-2019 09:34:48] NOTICE: fpm is running, pid 810
    [09-Jan-2019 09:34:48] NOTICE: ready to handle connections
    [09-Jan-2019 09:34:48] NOTICE: systemd monitor interval set to 10000ms
    [09-Jan-2019 09:34:54] NOTICE: Terminating ...
    [09-Jan-2019 09:34:54] NOTICE: exiting, bye-bye!
    [09-Jan-2019 09:34:54] NOTICE: fpm is running, pid 1884
    [09-Jan-2019 09:34:54] NOTICE: ready to handle connections
    [09-Jan-2019 09:34:54] NOTICE: systemd monitor interval set to 10000ms
    [09-Jan-2019 09:35:26] NOTICE: Terminating ...
    [09-Jan-2019 09:35:26] NOTICE: exiting, bye-bye!
    [09-Jan-2019 09:35:43] NOTICE: fpm is running, pid 5960
    [09-Jan-2019 09:35:43] NOTICE: ready to handle connections
    [09-Jan-2019 09:35:43] NOTICE: systemd monitor interval set to 10000ms
    


  • @Sebastian-Roth The ip 192.168.1.105 it the address it will be on after installed. The address it’s on while connected to the internet is 192.168.105.238
    The end goal is to have the server on an isolated network without being able to to see the outside world, I was following the instructions here, https://wiki.fogproject.org/wiki/index.php/FOG_on_an_Isolated_Network.

    That being said, I know to install fog, it is required to have internet access so I put it on our main network, where it can see the outside world. After it’s downloaded, I will be removing it from our network and back to it’s isolated one.

    The reasoning for this is our network is 100% static. In the past we have tried putting DHCP in small spots for various reasons and it messed up some of our copiers/printers since they can have multiple IPs.

    Since fog requires DHCP we bought a router and just set it on a closed network (the isolated network) with 4 outputs, 1 being the server, no inputs.


  • Developer

    @agray The error log states that it is unable to send a request to the webserver:

    --2019-01-09 09:35:45--  http://192.168.1.105//fog//maintenance/backup_db.php
    Connecting to 192.168.1.105:80... failed: Connection refused.
    

    Is 192.168.1.105 your FOG server IP? Can you open that link in the browser from your client? http://192.168.1.105//fog//maintenance/backup_db.php

    From the logs it looks like the webserver (apache2) and PHP-FPM are started properly. Please take a look at the log files mentioned in my signature and post here.



  • @Sebastian-Roth I can give you the install log but the error is to large for me to put it in a code box and the upload function doesn’t seem to be working, so I made a paste here: https://pastebin.com/UqpnpwQR.

    
    
    
       +------------------------------------------+
       |     ..#######:.    ..,#,..     .::##::.  |
       |.:######          .:;####:......;#;..     |
       |...##...        ...##;,;##::::.##...      |
       |   ,#          ...##.....##:::##     ..:: |
       |   ##    .::###,,##.   . ##.::#.:######::.|
       |...##:::###::....#. ..  .#...#. #...#:::. |
       |..:####:..    ..##......##::##  ..  #     |
       |    #  .      ...##:,;##;:::#: ... ##..   |
       |   .#  .       .:;####;::::.##:::;#:..    |
       |    #                     ..:;###..       |
       |                                          |
       +------------------------------------------+
       |      Free Computer Imaging Solution      |
       +------------------------------------------+
       |  Credits: http://fogproject.org/Credits  |
       |       http://fogproject.org/Credits      |
       |       Released under GPL Version 3       |
       +------------------------------------------+
    
    
       Version: 1.5.5 Installer/Updater
    
      What version of Linux would you like to run the installation for?
    
              1) Redhat Based Linux (Redhat, CentOS, Mageia)
              2) Debian Based Linux (Debian, Ubuntu, Kubuntu, Edubuntu)
              3) Arch Linux
    
      Choice: [2] 
    
    
      Starting Debian based Installation
    
    
     *** Detected a potential need to reinstall apache and php files.
     *** This will remove the /etc/php* and /etc/apache2* directories
     ***  and remove/purge the apache and php files from this system.
     *** If you're okay with this please type Y, anything else will
     ***  continue the installation, but may mean you will need to
     ***  remove the files later and make proper changes as 
     ***  necessary. (Y/N): 
     * Removing apache and php files...............................Done
     * Stopping web services.......................................Done
     * Removing the apache and php packages........................Done
     * Resetting our variables to specify php version..............Done
      FOG Server installation modes:
          * Normal Server: (Choice N) 
              This is the typical installation type and
              will install all FOG components for you on this
              machine.  Pick this option if you are unsure what to pick.
    
          * Storage Node: (Choice S)
              This install mode will only install the software required
              to make this server act as a node in a storage group
    
      More information:  
         http://www.fogproject.org/wiki/index.php?title=InstallationModes
    
      What type of installation would you like to do? [N/s (Normal/Storage)] 
      What is the IP address to be used by this FOG Server? [192.168.105.238]
      Would you like to change the default network interface from ?
      If you are not sure, select No. [y/N]   What network interface would you like to use? ../lib/common/functions.sh: line 149: /8: syntax error: operand expected (error token is "/8")
    
      Would you like to setup a router address for the DHCP server? [Y/n] 
      Would you like DHCP to handle DNS? [Y/n]   What DNS address should DHCP allow? [127.0.0.53] 
      Would you like to use the FOG server for DHCP service? [y/N] 
      This version of FOG has internationalization support, would  
      you like to install the additional language packs? [y/N] 
       ######################################################################
       #     FOG now has everything it needs for this setup, but please     #
       #   understand that this script will overwrite any setting you may   #
       #   have setup for services like DHCP, apache, pxe, tftp, and NFS.   #
       ######################################################################
       # It is not recommended that you install this on a production system #
       #        as this script modifies many of your system settings.       #
       ######################################################################
       #             This script should be run by the root user.            #
       #      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: Linux Mint
     * Server IP Address: 192.168.1.105
     * Server Subnet Mask: Error: fl is not recognized
     * Interface: enpls0
     * Installation Type: Normal Server
     * Internationalization: 0
     * Image Storage Location: /images
     * Using FOG DHCP: Yes
     * DHCP router Address: 
    
    
     * 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.1 libc6 libcurl4 liblzma-dev m4 mysql-client mysql-server net-tools nfs-kernel-server openssh-server php7.1 php7.1-bcmath php7.1-cli php7.1-curl php7.1-fpm php7.1-gd php7.1-json php7.1-ldap php7.1-mbstring php7.1-mysql php7.1-mysqlnd php-gettext sysv-rc-conf tar tftpd-hpa tftp-hpa unzip vsftpd wget xinetd zlib1g 
    
    
     * Installing package: apache2.................................OK
     * 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)
     * Installing package: libapache2-mod-php7.1...................OK
     * Skipping package:   libc6...................................(Already Installed)
     * Skipping package:   libcurl4................................(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)
     * Installing package: php7.1..................................OK
     * Installing package: php7.1-bcmath...........................OK
     * Skipping package:   php7.1-cli..............................(Already Installed)
     * Installing package: php7.1-curl.............................OK
     * Installing package: php7.1-fpm..............................OK
     * Installing package: php7.1-gd...............................OK
     * Skipping package:   php7.1-json.............................(Already Installed)
     * Installing package: php7.1-ldap.............................OK
     * Installing package: php7.1-mbstring.........................OK
     * Installing package: php7.1-mysql............................OK
     * Skipping package:   php7.1-mysql............................(Already Installed)
     * Installing package: php-gettext.............................OK
     * Skipping package: sysv-rc-conf..............................(Does not exist)
     * 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.1.....................OK
     * Checking package: libc6.....................................OK
     * Checking package: libcurl4..................................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.1....................................OK
     * Checking package: php7.1-bcmath.............................OK
     * Checking package: php7.1-cli................................OK
     * Checking package: php7.1-curl...............................OK
     * Checking package: php7.1-fpm................................OK
     * Checking package: php7.1-gd.................................OK
     * Checking package: php7.1-json...............................OK
     * Checking package: php7.1-ldap...............................OK
     * Checking package: php7.1-mbstring...........................OK
     * Checking package: php7.1-mysql..............................OK
     * Checking package: php-gettext...............................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
     * 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!
    
    

  • Developer

    @agray In the directory where you run the installfog.sh script there should be a subdir called error_logs with two files in it post the contents of those here.



  • @Sebastian-Roth When I attempt to reinstall it, it fails at backing up database.
    I have it on a network currently for the download.


  • Developer

    @agray Not sure what exactly is going on but the permissions on their folder are not like the installer would set them. So I suggest you simply run the installer as root user again. That should fix the permissions as well as set the fog account password back to what it was.



  • @Sebastian-Roth I just reset the password thinking i needed into it. What’s the default password so I can change it back?

    I never use it, I use the admin account that I made the linux install.

    Output:
    “total 12
    drwxr-xr-x 3 root root 4096 Jan 7 10:37 .
    drwxr-xr-x 3 root root 4096 Jan 7 10:37 …
    drwxr-xr-x 3 root root 4096 Jan 7 10:37 ssl”


  • Developer

    @agray But do you login with that account and use it?

    I am asking because this account is NOT meant to be used as a user/admin. FOG itself uses it and if you reset the password you are breaking some of FOGs functionality.

    But could also just be a simple permission issue. Please run ls -al /opt/fog/snapins and post output here.



  • @Sebastian-Roth Yes, it was automatically added when installing the fog software.


  • Developer

    @agray Do you use the User account called fog to login and work on your FOG server?


Log in to reply
 

445
Online

6.3k
Users

13.7k
Topics

129.1k
Posts