• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. dolf
    3. Posts
    • Profile
    • Following 0
    • Followers 0
    • Topics 15
    • Posts 107
    • Best 18
    • Controversial 0
    • Groups 1

    Posts made by dolf

    • RE: Services are not running. Where are the logs?

      tl;dr: Tried everything. No change.

      Becomming Jane Root

      This is how I become root:

      ssh user@myserver
      sudo su
      

      Standard procedure, really. This is a non-login shell, but it is not non-interactive. I understand that using -i gives me the root user’s login environment, but IMHO it’s interactive either way. Source.

      I originally installed FOG by calling

      cd /home/user/fogproject/bin
      sudo ./installfog.sh
      

      since that is the “Ubuntu way” of doing things.

      @Sebastian-Roth’s advice

      Removing --quiet from the start-stop-daemon call does nothing. But it was certainly worth a try.

      This is the contents of /var/www/fog/service/:

      root@myserver:/var/www/fog/service# ls -lha
      total 176K
      drwxr-xr-x  3 www-data www-data 4,0K Sep 17  2014 .
      drwxr-xr-x 12 www-data www-data 4,0K Sep 17  2014 ..
      -rw-r--r--  1 www-data www-data  277 Sep 17  2014 alo-bg.php
      -rw-r--r--  1 www-data www-data  739 Sep 17  2014 autologout.php
      -rw-r--r--  1 www-data www-data 8,2K Sep 17  2014 auto.register.php
      -rw-r--r--  1 www-data www-data  855 Sep 17  2014 av.php
      -rw-r--r--  1 www-data www-data 2,4K Sep 17  2014 blame.php
      -rw-r--r--  1 www-data www-data 1,4K Sep 17  2014 capone.php
      -rw-r--r--  1 www-data www-data  318 Sep 17  2014 checkcredentials.php
      -rw-r--r--  1 www-data www-data  108 Sep 17  2014 debug.php
      -rw-r--r--  1 www-data www-data  247 Sep 17  2014 dircleanup-dirs.php
      -rw-r--r--  1 www-data www-data  979 Sep 17  2014 displaymanager.php
      -rw-r--r--  1 www-data www-data  882 Sep 17  2014 donate.php
      -rw-r--r--  1 www-data www-data  269 Sep 17  2014 greenfog.php
      -rw-r--r--  1 www-data www-data  373 Sep 17  2014 grouplisting.php
      -rw-r--r--  1 www-data www-data  402 Sep 17  2014 hostnameloop.php
      -rw-r--r--  1 www-data www-data 1013 Sep 17  2014 hostname.php
      -rw-r--r--  1 www-data www-data  373 Sep 17  2014 imagelisting.php
      -rw-r--r--  1 www-data www-data   51 Sep 17  2014 index.php
      -rw-r--r--  1 www-data www-data 4,2K Sep 17  2014 inventory.php
      drwxr-xr-x  2 fog      www-data 4,0K Sep 17  2014 ipxe
      -rw-r--r--  1 www-data www-data  655 Sep 17  2014 jobs.php
      -rw-r--r--  1 www-data www-data  215 Sep 17  2014 locationcheck.php
      -rw-r--r--  1 www-data www-data  400 Sep 17  2014 locationlisting.php
      -rw-r--r--  1 www-data www-data  719 Sep 17  2014 man.hostexists.php
      -rw-r--r--  1 www-data www-data 2,0K Sep 17  2014 mc_checkin.php
      -rw-r--r--  1 www-data www-data 3,8K Sep 17  2014 Post_Stage2.php
      -rw-r--r--  1 www-data www-data 1,8K Sep 17  2014 Post_Stage3.php
      -rw-r--r--  1 www-data www-data  930 Sep 17  2014 Post_Wipe.php
      -rw-r--r--  1 www-data www-data 4,2K Sep 17  2014 Pre_Stage1.php
      -rw-r--r--  1 www-data www-data 1,5K Sep 17  2014 PrinterManager.php
      -rw-r--r--  1 www-data www-data 1,9K Sep 17  2014 progress.php
      -rw-r--r--  1 www-data www-data 1,6K Sep 17  2014 register.php
      -rw-r--r--  1 www-data www-data 2,0K Sep 17  2014 servicemodule-active.php
      -rw-r--r--  1 www-data www-data 1,3K Sep 17  2014 snapcheck.php
      -rw-r--r--  1 www-data www-data 3,0K Sep 17  2014 snapins.checkin.php
      -rw-r--r--  1 www-data www-data 1,8K Sep 17  2014 snapins.file.php
      -rw-r--r--  1 www-data www-data 1,2K Sep 17  2014 updates.php
      -rw-r--r--  1 www-data www-data  255 Sep 17  2014 usercleanup-users.php
      -rw-r--r--  1 www-data www-data 1,3K Sep 17  2014 usertracking.report.php
      

      But I found FOGImageReplicator and friends in /opt/fog/service. That’s where they should be according to the link you posted (my init.d script looks the same, as expected).

      root@myserver:/opt/fog/service# ls -lha
      total 36K
      drwxr-xr-x 9 root root 4,0K Mar 23 14:43 .
      drwxr-xr-x 6 root root 4,0K Jul  9 11:12 ..
      drwxr-xr-x 2 root root 4,0K May 15  2014 etc
      drwxr-xr-x 2 root root 4,0K May 15  2014 FOGImageReplicator
      drwxr-xr-x 2 root root 4,0K May 15  2014 FOGMulticastManager
      drwxr-xr-x 2 root root 4,0K Mar 23 14:43 FOGPingHosts
      drwxr-xr-x 2 root root 4,0K Mar 23 14:43 FOGSnapinReplicator
      drwxr-xr-x 2 root root 4,0K May 15  2014 FOGTaskScheduler
      drwxr-xr-x 2 root root 4,0K Mar 23 14:43 lib
      

      Enabling error reporting in FOGImageReplicator also makes no difference 😞 Should I be seeing it on the command line, or in a log file somewhere? There are still no files in /opt/fog/log.

      @Wayne-Workman’s tip

      It looks like the execute bit is set:

      root@myserver:/opt/fog/service/FOGImageReplicator# ls -lha
      total 12K
      drwxr-xr-x 2 root root 4,0K May 15  2014 .
      drwxr-xr-x 9 root root 4,0K Mar 23 14:43 ..
      -rwxr-xr-x 1 root root  608 Jul 11 22:11 FOGImageReplicator
      

      @Tom-Elliott’s idea

      I went into a interactive root login shell with sudo su -. And then:

      # service FOGImageReplicator start
       * Starting FOG Computer Imaging Solution: FOGImageReplicator [ OK ] 
      # service FOGImageReplicator status
       * FOGImageReplicator is not running
      

      Ran the installer again (still in the shell created with sudo su -😞

      # cd /home/user/fogproject/bin
      # ./installfog.sh
      

      Not going to bother you with the entire install log. Every step reported ...OK.

      Then lo and behold, still the same 😕

      # ls /var/run/fog
      FOGImageReplicator.pid  FOGMulticastManager.pid  FOGPingHosts.pid  FOGScheduler.pid  FOGSnapinReplicator.pid
      # service FOGImageReplicator status
       * FOGImageReplicator is not running
      # service FOGMulticastManager status 
       * FOGMulticastManager is not running
      # service FOGPingHosts status
       * FOGPingHosts is not running
      # service FOGScheduler status
       * FOGScheduler is not running
      # service FOGSnapinReplicator status 
       * FOGSnapinReplicator is not running
      

      Thanks for the help thus far.

      posted in FOG Problems
      dolfD
      dolf
    • RE: Services are not running. Where are the logs?

      I forgot to add: Running Fog build 8499 on Ubuntu 14.04.4 LTS

      posted in FOG Problems
      dolfD
      dolf
    • Services are not running. Where are the logs?

      I’m trying to debug why my FOG services are not running.

      The services exist in the right place, as far as I can see:

      root@myserver:/opt/fog/service# ls
      etc  FOGImageReplicator  FOGMulticastManager  FOGPingHosts  FOGSnapinReplicator  FOGTaskScheduler  lib
      

      I checked whether they are running:

      root@myserver:/etc/init.d# ./FOGImageReplicator status
       * FOGImageReplicator is not running
      root@lab2-server:/etc/init.d# ./FOGMulticastManager status
       * FOGMulticastManager is not running
      root@lab2-server:/etc/init.d# ./FOGPingHosts status
       * FOGPingHosts is not running
      root@lab2-server:/etc/init.d# ./FOGScheduler status
       * FOGScheduler is not running
      root@myserver:/etc/init.d# ./FOGSnapinReplicator status
       * FOGSnapinReplicator is not running
      

      They are not. ps confirms this:

      # ps aux | grep -i fog
      root     20069  0.0  0.0  21096  1016 pts/0    S+   16:20   0:00 grep --color=auto -i fog
      

      Trying to start them manually does not work.

      root@myserver:/etc/init.d# ./FOGImageReplicator status
       * FOGImageReplicator is not running
      root@myserver:/etc/init.d# ./FOGImageReplicator start
       * Starting FOG Computer Imaging Solution: FOGImageReplicator                                                 [fail] 
      

      However, there were .pid files in /var/run/fog! So I deleted them. Now this happens:

      root@myserver:/etc/init.d# ./FOGImageReplicator start
       * Starting FOG Computer Imaging Solution: FOGImageReplicator                                                 [ OK ] 
      root@myserver:/etc/init.d# ./FOGImageReplicator status
       * FOGImageReplicator is not running
      

      This boggles me. When it [fail]s, it doesn’t give a reason, and when it says [OK] it isn’t, really.

      I see that /var/log/fog is a symlink to /opt/fog/log, but that folder is empty:

      # ls -lha /opt/fog/log
      total 8,0K
      drwxr-xr-x 2 root root 4,0K May 16 15:36 .
      drwxr-xr-x 6 root root 4,0K Jul  9 11:12 ..
      

      Where can I read about what went wrong?

      posted in FOG Problems
      dolfD
      dolf
    • RE: Uploading to wrong storage group

      If I add the image to the koei storage group as well, will it be copied (replicated) from /mnt/olifant/images/ to /images/ ? I could try that, remove it from the olifant group, and then add it again?

      posted in Bug Reports
      dolfD
      dolf
    • RE: Uploading to wrong storage group
      # showmount -e 127.0.0.1
      Export list for 127.0.0.1:
      /mnt/olifant/images/dev *
      /mnt/olifant/images     *
      /images/dev             *
      /images                 *
      

      Thanks for the workaround ideas. Although I think we still have to solve the bug… If I apply a workaround, I won’t be able to help you find the bug.

      Are there any success stories of having two nodes on one machine? Is it even supported?

      posted in Bug Reports
      dolfD
      dolf
    • RE: Uploading to wrong storage group

      I have only one physical Ubuntu machine running fog, with two hard drives. There is a storage node on each, belonging to different storage groups, so that I don’t have to have all of the images on one disk (not enough space). /mnt/olifant is simply the mount point for a physical 1.5TB internal SATA drive with one ext4 partition.

      posted in Bug Reports
      dolfD
      dolf
    • RE: Uploading to wrong storage group

      No change when disabling koei. Also disabled olifant, tried again, enabled one and tried again, then both and tried again. No change.

      posted in Bug Reports
      dolfD
      dolf
    • RE: Uploading to wrong storage group

      A few posts ago, I did post the output of ls - lha which shows the existence of .hidden files. 🙂 They are present with the right permissions, IMO, but I pasted the output in case I overlook something.

      posted in Bug Reports
      dolfD
      dolf
    • RE: Uploading to wrong storage group

      Changed fsids as suggested, and rebooted. No change. To be honest, I have not worked with NFS before. Thanks for the help thus far.

      posted in Bug Reports
      dolfD
      dolf
    • RE: Uploading to wrong storage group

      It actually does, using color, which obviously didn’t survive the copy paste. Here is the output with permissions (I already did chmod -R 777 * )

      $ ls -lha /images
      total 28K
      drwxrwxrwx  7 root root 4,0K Jul  9 10:57 .
      drwxr-xr-x 28 root root 4,0K Jul  9 11:11 ..
      drwxrwxrwx  2 fog  fog  4,0K Jan 29 02:42 20160128W7PreSysprep
      drwxrwxrwx  2 fog  fog  4,0K Jan 29 13:10 20160129W7PostSysprep
      drwxrwxrwx  2 root root 4,0K Jul  9 19:37 dev
      -rwxrwxrwx  1 root root    0 Jan 27 16:13 .mntcheck
      drwxrwxrwx  2 root root 4,0K Mar 23 14:43 postdownloadscripts
      drwxrwxrwx  2 fog  fog  4,0K Jul  7  2015 Windows7Software
      
      $ ls -lha /mnt/olifant/images/
      total 48K
      drwxrwxrwx 12 root root 4,0K Jul  7 21:43 .
      drwxr-xr-x  5 root root 4,0K Mar 23 18:01 ..
      drwxrwxrwx  2 root root 4,0K Jan 27 16:16 20160127Temp
      drwxrwxrwx  2 root root 4,0K Jul  7 10:45 20160706W7PreSysprep
      drwxrwxrwx  2 root root 4,0K Jul  7 20:57 20160707W7PreSysprep
      drwxrwxrwx  2 root root 4,0K Aug  1  2015 box20150731
      drwxrwxrwx  2 root root 4,0K Jul  9 19:38 dev
      drwxrwxrwx  2 root root 4,0K Apr  9  2015 lab2win720150409
      drwxrwxrwx  2 root root 4,0K Apr 10  2015 lab2win720150410
      drwxrwxrwx  2 root root 4,0K Jul 31  2015 lab420150716
      -rwxrwxrwx  1 root root    0 Jan 27 16:13 .mntcheck
      drwxrwxrwx  2 root root 4,0K Aug  1  2015 thin20150801
      drwxrwxrwx  2 root root 4,0K Jan 26 15:45 Win7noDriversnoDefaultUser
      
      posted in Bug Reports
      dolfD
      dolf
    • RE: Uploading to wrong storage group

      Files are in the right places, IMO:

      $ tree /mnt/olifant/images/
      /mnt/olifant/images/
      ├── 20160127Temp
      │   ├── d1.fixed_size_partitions
      │   ├── d1.original.fstypes
      │   ├── d1.original.partitions
      │   ├── d1.original.swapuuids
      │   ├── rec.img.000
      │   └── sys.img.000
      ├── 20160706W7PreSysprep
      │   ├── d1.fixed_size_partitions
      │   ├── d1.mbr
      │   ├── d1.minimum.partitions
      │   ├── d1.original.fstypes
      │   ├── d1.original.swapuuids
      │   ├── d1p1.img
      │   ├── d1p2.img
      │   └── d1.partitions
      ├── 20160707W7PreSysprep
      │   ├── d1.fixed_size_partitions
      │   ├── d1.mbr
      │   ├── d1.minimum.partitions
      │   ├── d1.original.fstypes
      │   ├── d1.original.swapuuids
      │   ├── d1p1.img
      │   ├── d1p2.img
      │   └── d1.partitions
      ├── box20150731
      │   ├── d1.fixed_size_partitions
      │   ├── d1.original.fstypes
      │   ├── d1.original.partitions
      │   ├── d1.original.swapuuids
      │   ├── rec.img.000
      │   └── sys.img.000
      ├── dev
      ├── lab2win720150409
      │   ├── d1.fixed_size_partitions
      │   ├── d1.original.fstypes
      │   ├── d1.original.partitions
      │   ├── d1.original.swapuuids
      │   ├── rec.img.000
      │   └── sys.img.000
      ├── lab2win720150410
      │   ├── d1.fixed_size_partitions
      │   ├── d1.original.fstypes
      │   ├── d1.original.partitions
      │   ├── d1.original.swapuuids
      │   ├── rec.img.000
      │   └── sys.img.000
      ├── lab420150716
      │   ├── d1.fixed_size_partitions
      │   ├── d1.original.fstypes
      │   ├── d1.original.partitions
      │   ├── d1.original.swapuuids
      │   ├── rec.img.000
      │   └── sys.img.000
      ├── thin20150801
      │   ├── d1.fixed_size_partitions
      │   ├── d1.original.fstypes
      │   ├── d1.original.partitions
      │   ├── d1.original.swapuuids
      │   ├── rec.img.000
      │   └── sys.img.000
      └── Win7noDriversnoDefaultUser
          ├── rec.img.000
          └── sys.img.000
      
      $ tree /images
      /images
      ├── 20160128W7PreSysprep
      │   ├── d1.fixed_size_partitions
      │   ├── d1.original.fstypes
      │   ├── d1.original.partitions
      │   ├── d1.original.swapuuids
      │   ├── rec.img.000
      │   └── sys.img.000
      ├── 20160129W7PostSysprep
      │   ├── d1.fixed_size_partitions
      │   ├── d1.original.fstypes
      │   ├── d1.original.partitions
      │   ├── d1.original.swapuuids
      │   ├── rec.img.000
      │   └── sys.img.000
      ├── dev
      ├── postdownloadscripts
      │   └── fog.postdownload
      └── Windows7Software
          ├── rec.img.000
          └── sys.img.000
      
      posted in Bug Reports
      dolfD
      dolf
    • RE: Uploading to wrong storage group

      Sorry, I wasn’t aware that an image can belong to more than one storage group. The relevant images were in one group (olifant), but it wasn’t marked as primary. It is marked primary now. The same error shows up when trying to deploy:

      Failed to create deployment tasking for the following hosts

      Note that I did not sensor anything in that image. There are no hosts listed…

      posted in Bug Reports
      dolfD
      dolf
    • RE: Uploading to wrong storage group

      @Wayne-Workman My image and storage group settings still look exactly like in the first post. I don’t see a checkbox called “primary” anywhere.

      With regards to removing a storage group… I have lots of images in both groups, and I need both, so I can’t delete them, lest I lose my images.

      posted in Bug Reports
      dolfD
      dolf
    • RE: Uploading to wrong storage group

      After checking permissions, etc. according to the wiki https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_NFS , I noticed that the last two lines of /etc/exports were missing. This is how it looks now:

      /images *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0)
      /images/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1)
      /mnt/olifant/images *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0)
      /mnt/olifant/images/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1)
      

      So both storage groups are on the same machine.

      When deploying, the error now changes to “Unable to locate image store”.

      I checked and re-submitted the settings of the image and the node on the web interface, just in case. I also checked the presence of the files at /mnt/olifant/images/IMAGE_NAME on the server. Then I cancelled the task and tried to deploy again. The web interface now shows this error:

      Failed to create deployment tasking for the following hosts
      No Storage Node found for this image
      

      Resubmitting the settings pages for the storage nodes has no effect.

      posted in Bug Reports
      dolfD
      dolf
    • RE: Uploading to wrong storage group

      Ok so in the mean time I messed up my test PC, so I have to deploy to it before I can try to capture again. When deploying, I got a similar issue, where the image stored on /mnt/olifant/images was “not found”.

      So I upgraded to trunk. On build 8499 now.

      Now I get something else:
      Could not mount images folder. Mounting failed. Permission denied.

      Presumably it is trying to mount the NFS share at /mnt/olifant/images on my server to /images on the client?

      posted in Bug Reports
      dolfD
      dolf
    • Uploading to wrong storage group

      I’m using FOG build 7645. I have two storage nodes configured on the same Ubuntu machine, called Koei and Olifant. Each belongs to its own storage group, so it contains different data.

      2_1467881857259_Screenshot from 2016-07-07 10:44:13.png

      1_1467881857259_Screenshot from 2016-07-07 10:47:19.png

      Then I create a brand new image (not yet captured – protected was unticked):

      3_1467881857259_Screenshot from 2016-07-07 10:50:29.png

      And associate it with the client machine that I use for testing:

      0_1467881857259_Screenshot from 2016-07-07 10:52:09.png

      (I have the location plugin installed, but not configured for this host. Not sure if that makes a difference).

      Now when I capture the image from the host, I expect the upload to appear in /mnt/olifant/images/dev/MAC_ADDRESS and then move to /mnt/olifant/images/IMAGE_NAME, but it actually appears in /images/dev/MAC_ADDRESS, and then the system throws this error:

      Error returned: Type: 2. failed to open stream: No such file or directory.

      A quickfix is to go ssh into the server while the capture process is running and make a symlink from /mnt/olifant/images/dev/MAC_ADDRESS to /images/dev/MAC_ADDRESS. FOG will then move the symlink to /mnt/olifant/images and the task can complete. Then I fixed it by removing the symlink and moving the folder manually.

      What could be causing this?

      posted in Bug Reports
      dolfD
      dolf
    • RE: Boot looping after attempted virus scan

      Yes, I installed the location plugin a few months ago. In March, I think. I never used the virusscan feature before installing the location plugin. Don’t have the resources to try that now, either.

      posted in FOG Problems
      dolfD
      dolf
    • RE: Boot looping after attempted virus scan

      Oops, my post was very unclear due to the excitement of finally fixing this.

      I use the location plugin. After updating the “location” field on all hosts (simultaneously using a group, not one by one), the error disappeared, and the PCs started booting normally.

      posted in FOG Problems
      dolfD
      dolf
    • RE: Boot looping after attempted virus scan

      Updated to trunk version 7645: No difference.
      Changed LOCATION of PCs: Error message goes away and PC boot normally.

      posted in FOG Problems
      dolfD
      dolf
    • RE: Boot looping after attempted virus scan

      Any ideas for a quick fix, while you’re solving this problem? I wish I could contribute a solution, but I don’t have the time / energy to dive into the FOG code base at the moment.

      posted in FOG Problems
      dolfD
      dolf
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 5 / 6