• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. george1421
    3. Posts
    • Profile
    • Following 1
    • Followers 65
    • Topics 113
    • Posts 15,347
    • Groups 2

    Posts

    Recent Best Controversial
    • RE: Mounting File System Failed

      @Rusty Some systems will try to do a two way match between conical name->IP address -> conical name. This is a standard function of DNS. I’m kind of surprised that this issue (not having a reverse lookup zone) hasn’t been a problem.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Mounting File System Failed

      Not to send you down a rabbit hole here, but I take it you don’t have a reverse lookup zone created for your DNS server. Because looking at the capture its looking for the 10.0.0.51 address but the reply from DNS is name not found. Can I guess that 10.0.0.51 is your FOG server? Outside of the scope of this project you should ensure you have a reverse lookup zone created in DNS.

      Here is a how to for 2012. http://www.tomshardware.com/faq/id-1954333/create-reverse-primary-dns-zone-windows-server-2012.html

      posted in FOG Problems
      george1421G
      george1421
    • RE: Mounting File System Failed

      yes after you do the svn up then cd to the bin folder and run setup again.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Mounting File System Failed

      A PRT record is a reverse lookup for DNS. Basically it asks DNS for this IP address what is its conical host name.

      While I haven’t read this entire thread, for DHCP its best for option 66 to be an IP address and not a conical host name. Some PXE clients are just not that smart enough to know how to look up a name for option 66, so set it to the IP address of the FOG server.

      Also I know they have been working on the boot image (in the last 3-4 days) where it was getting stuck at the initialing devices. You may want to try to update to the latest SVN. It sounds like you are almost there.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Strange upload error

      OK just to restate what I think you said, all of your fog servers are running under ubuntu 14.04 and the version of FOG is 1.2.0 base image. You have not applied any SVN trunk (a.k.a 1.3 beta) images on top of the 1.2.0 base image.

      Now here is where I’m a bit fuzzy. Are you trying to deploy to a HP microserver or is the destination of the captured image the HP microserver? What I’m trying to dig at is of you are on the 1.2.0 base image and you have not updated the kernels since the base image was released (which is separate than applying a SVN upgrade), that kernels from 1.2.0 my not support current hardware.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Strange upload error

      While I think this is a kernel/root filesystem issue lets start with the basics.

      What version of FOG are you using? Are you using 1.2.0 or a SVN trunk (beta) version?
      What OS is FOG running under?
      What is the target hardware you are trying to clone (make and manufacturer)

      posted in FOG Problems
      george1421G
      george1421
    • RE: Bugs in latest FOG Trunk 5360

      @Toby777

      There are a few things that you might do to clear this up (proxy server related). I run FOG on centos 6.7 behind a proxy server and this is what I needed to do.

      In the bashrc file I placed the following commands.

      export http_proxy=http://192.168.1.10:3128
      export https_proxy=http://192.168.1.10:3128
      export ftp_proxy=http://192.168.1.10:3128
      export no_proxy=“192.168.1.88”

      In your wgetrc you can have the proxy settings too. The key is the no_proxy variable. That needs to be set to the IP address of the FOG server. Once these are set log out and back in. These new env variables will be set. From there FOG will install and backup correctly. If you look at the code for the backup, the script uses wget to pull the backup image. Well, wget isn’t that smart. Its trying to contact the proxy server instead of just connecting locally. The no_proxy statement tells wget to not proxy any requests for the FOG server.

      As for the second question, that to find out if this was a new install that never worked, or a working install that broke after the upgrade.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Most recent stable build worth using or fix for this error?

      First, what is the host OS that FOG is running under?
      Was this system running under the 1.2.0 prior to you upgrading to the latest SVN?

      I think we need to divide your issue into two parts

      1. FOG not installing correctly
      2. The image not deploying correctly (which may be a symptom of #1)
      posted in FOG Problems
      george1421G
      george1421
    • RE: Bugs in latest FOG Trunk 5360

      I guess I have two questions here

      1. Is this FOG server behind a proxy server or does it have direct internet access. I have seen if FOG is behind a proxy server wget gets confused when it tries to backup the database. There is a fix for this.
      2. Has this ever worked? Or did the system work then you upgraded to the latest svn trunk and it broke? Knowing this will help to know if this was a botched install or something went sideways with the upgrade.
      posted in FOG Problems
      george1421G
      george1421
    • RE: Invalid language specification

      Actually we would like to see you generate that error message again, then view the apache error log in /var/log/httpd/error_log. The last few lines should indicate the current error. The access_log should only show use details when things go right.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Replication Bandwidth Limiter - not totally working

      @Tom-Elliott

      FWIW: I have seen if you stop the fog image replicator while a transfer is underway the lftp process will continue. If you stop and restart the fog image replicator multiple times, you might end up with 3 or more lftp processes running at the same time each with their own bandwidth limitation and ignorant of the other running processes.

      posted in Bug Reports
      george1421G
      george1421
    • RE: Replication Bandwidth Limiter - not totally working

      If you really want to go there, using the current svn trunk (if things go sideways, just rerun the fog installer to correct the files. No harm done then)

      Edit this file:
      /var/www/html/fog/lib/service/FOGService.class.php

      Search for the first occurrence of the word fragment: limit.

      You should see something like this:

      $limitsend = $this->byteconvert($StorageNodeToSend->get('bandwidth'));
      if ($limitmain > 0) $limitset = "set net:limit-total-rate 0:$limitmain;";
          if ($limitsend > 0) $limitset .= "set net:limit-rate 0:$limitsend;";
              $limit[] = $limitset;
          }
      }
      unset($StorageNodeToSend);
      $this->outall(_(' * Starting Sync Actions'));
      foreach ((array)$nodename AS $i => &$name) {
          $process[$name] = popen("lftp -e 'set ftp:list-options -a;set net:max-retries 10;set net:timeout 30; ".$limit[$i]." mirror -c -R --ignore-time ".$includeFile[$i]." -vvv --exclude 'dev/' --exclude 'ssl/' --exclude 'CA/' --delete-first ".$myItem[$i].' '.$remItem[$i]."; exit' -u ".$username[$i].','.$password[$i].' '.$ip[$i]." 2>&1","r");
      

      Insert the following line after: $this->outall(_(’ * Starting Sync Actions’));

      $this->outall(_(' * Speed limiter settings: $limitset'));

      That should make it like this:

      unset($StorageNodeToSend);
      $this->outall(_(' * Starting Sync Actions'));
      $this->outall(_(' * Speed limiter settings: $limitset'));
      foreach ((array)$nodename AS $i => &$name) {
      

      Stop and restart the FOGImageReplicator. You may need to delete a file on the storage node for it to see a change. When the replication runs it should output the speed limits to /opt/fog/log/FOGImageReplicator

      I’d do this in my test environment but its only partially rebuilt.

      posted in Bug Reports
      george1421G
      george1421
    • RE: Replication Bandwidth Limiter - not totally working

      First I’m not a programmer. But I know the dot ( . ) string concatenation and .= may be short hand for “string = string + newstring”. Then that might make the statement accurate.

      Right now I can’t think of a way to capture the environment that lftp is running in to see what is actually being set. It may be possible to hack the FOGImageReplicator to insert a few extra log statements to see what is actually being set by logging the variables.

      posted in Bug Reports
      george1421G
      george1421
    • RE: No success installing FOG on a CentOS 7 server

      @Jbob

      Actually I share the same concerns about disabling selinux and the firewall. But this seems to be the standard practice for installing FOG so I didn’t want to push a different agenda. I also consider that FOG appears to be targeting the smaller SMB realm from a security stance and most have FOG installed inside a properly protected network so that does mitigate some of the risks.

      Just thinking out loud, if we have a list of all services used for FOG then constructing firwall rules shouldn’t be difficult at all. The application of the rules may be difficult since each linux distro handles the iptables rules a bit differently.

      The selinux part will be a bit harder since FOG is writing to files all over the place. We would have to get the selinux tagging just right (we could get there if we used the permissive setting then scanned the log for the required rights. Its been a while since I did that type of activity). But from a security standpoint I like where you are going with this.

      posted in FOG Problems
      george1421G
      george1421
    • RE: No success installing FOG on a CentOS 7 server

      @Wayne-Workman I tied to find your monster command but didn’t have much luck. I did see when you posted it the other day.

      Just for clarity this is what I keyed in to setup the trunk.

      sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/sysconfig/selinux
      sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
      systemctl disable firewalld
      reboot
      
      yum install -y wget subversion
      mkdir /opt/fog_trunk
      cd /opt/fog_trunk
      svn co https://svn.code.sf.net/p/freeghost/code/trunk
      

      Its pretty much what you keyed in. But you have to do a reboot after changing the selinux stuff or it won’t be in active and the install will fail. But great job on the monster command.

      posted in FOG Problems
      george1421G
      george1421
    • RE: No success installing FOG on a CentOS 7 server

      As long as you are up and running on 6.7 stay there for a bit and working on getting your system just the way you need it. 6.7 won’t go EOS until 2020. By then other factors will force you to upgrade.

      posted in FOG Problems
      george1421G
      george1421
    • RE: init.xz issue?

      For what its worth. I just spun on a centos 7 fog server. With the exception of a few commands that are different between 6.7 and 7. The current FOG trunk installs and operates on Centos 7 without issue. Understand at this point I haven’t uploaded or downloaded an image yet. But basic functions on Centos 7 are working.

      Right now you appear to be in a good place with Centos 6.7 so hang there for a bit and then focus on make your fog configurations perfect for your tasks.

      posted in FOG Problems
      george1421G
      george1421
    • RE: Replication Bandwidth Limiter - not totally working

      Looking in the code this is what I see for the replicator. It uses lftp to move the files.

      "lftp -e 'set ftp:list-options -a;set net:max-retries 10;set net:timeout 30; ".$limit[$i]." mirror -c -R --ignore-time ".$includeFile[$i]." -vvv --exclude 'dev/' --exclude 'ssl/' --exclude 'CA/' --delete-first ".$myItem[$i].' '.$remItem[$i]."; exit' -u ".$username[$i].','.$password[$i].' '.$ip[$i]."
      

      The proper limit parameter for lftp is this: net:limit-rate 0:512000 where the first number is the download rate and the second number is the upload rate (in Kb/s).

      Looking a bit deeper into the code I see this:

      if ($limitmain > 0) $limitset = "set net:limit-total-rate 0:$limitmain;";
      if ($limitsend > 0) $limitset .= "set net:limit-rate 0:$limitsend;";
      $limit[] = $limitset;
      

      I’m questioning the extra period in the second line and the format just seems a bit off.

      posted in Bug Reports
      george1421G
      george1421
    • RE: No success installing FOG on a CentOS 7 server

      I understand that a bit, but I come from the redhat world so it is not as foreign to me than when I use ubuntu (fwiw: I use zorin on my home computer which is ubuntu based). The ifconfig vs ip … does throw me every time I use ubuntu also.

      While the worlds are a bit different FOG did install ok on Centos 7. I can say I used this wiki page [https://wiki.fogproject.org/wiki/index.php/Installation_on_CentOS_7] for the syntax to turn off selinux and to disable the firewall. All other things install the same between 6.7 and 7.

      You didn’t mention if your fog server is behind a proxy server or does it have direct internet access? If it has direct internet access then there should be nothing else you need to do to make it work.

      It sounds like you gave up on it because it was too different more than FOG flat didn’t work on Centos 7. We just want to ensure that there isn’t a problem with FOG running on Centos 7, because then the devs will need to dig into why.

      posted in FOG Problems
      george1421G
      george1421
    • RE: No success installing FOG on a CentOS 7 server

      OK, I was able to install FOG SVN 4344/Git 5235 on a newly created centos 7 server. I did forget to disable selinux at first, but I disabled it, rebooted and reran the install.sh script again. The install script completed without issue. As far as I can tell the server is up and running. I haven’t captured an image yet with it, but all of the menus and plugins respond as I expect (the authorization plugin is still broken, but that is a topic of another thread).

      Where did the install fail for you?

      Is your cento 7 box behind a proxy server, because there are some tweaks that need to be done first? (but same tweaks are needed for centos 6.7)

      posted in FOG Problems
      george1421G
      george1421
    • 1 / 1