• 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: Boot looping after attempted virus scan

      Same info there:

      [Thu Apr 21 15:28:18.306005 2016] [:error] [pid 16715] [client 146.232.223.197:24145] PHP Stack trace:
      [Thu Apr 21 15:28:18.306011 2016] [:error] [pid 16715] [client 146.232.223.197:24145] PHP   1. {main}() /var/www/html/fog/service/ipxe/boot.php:0
      [Thu Apr 21 15:28:18.306016 2016] [:error] [pid 16715] [client 146.232.223.197:24145] PHP   2. FOGBase::getClass() /var/www/html/fog/service/ipxe/boot.php:13
      [Thu Apr 21 15:28:18.306021 2016] [:error] [pid 16715] [client 146.232.223.197:24145] PHP   3. ReflectionClass->newInstanceArgs() /var/www/html/fog/lib/fog/fogbase.class.php:86
      [Thu Apr 21 15:28:18.306027 2016] [:error] [pid 16715] [client 146.232.223.197:24145] PHP   4. BootMenu->__construct() /var/www/html/fog/lib/fog/fogbase.class.php:86
      [Thu Apr 21 15:28:18.306032 2016] [:error] [pid 16715] [client 146.232.223.197:24145] PHP   5. HookManager->processEvent() /var/www/html/fog/lib/fog/bootmenu.class.php:89
      [Thu Apr 21 15:28:18.306037 2016] [:error] [pid 16715] [client 146.232.223.197:24145] PHP   6. array_map() /var/www/html/fog/lib/fog/hookmanager.class.php:40
      [Thu Apr 21 15:28:18.306042 2016] [:error] [pid 16715] [client 146.232.223.197:24145] PHP   7. HookManager->{closure:/var/www/html/fog/lib/fog/hookmanager.class.php:36-40}() /var/www/html/fog/lib/fog/hookmanager.class.php:40
      [Thu Apr 21 15:28:18.306048 2016] [:error] [pid 16715] [client 146.232.223.197:24145] PHP   8. call_user_func:{/var/www/html/fog/lib/fog/hookmanager.class.php:38}() /var/www/html/fog/lib/fog/hookmanager.class.php:38
      [Thu Apr 21 15:28:18.306053 2016] [:error] [pid 16715] [client 146.232.223.197:24145] PHP   9. ChangeItems->BootItemSettings() /var/www/html/fog/lib/fog/hookmanager.class.php:38
      [Thu Apr 21 15:28:18.306059 2016] [:error] [pid 16715] [client 146.232.223.197:24145] PHP  10. LocationAssociation->getStorageNode() /var/www/html/fog/lib/plugins/location/hooks/changeitems.hook.php:34
      [Thu Apr 21 15:28:18.306064 2016] [:error] [pid 16715] [client 146.232.223.197:24145] PHP  11. FOGBase::getClass() /var/www/html/fog/lib/plugins/location/class/locationassociation.class.php:27
      [Thu Apr 21 15:28:18.306069 2016] [:error] [pid 16715] [client 146.232.223.197:24145] PHP  12. ReflectionClass->newInstanceArgs() /var/www/html/fog/lib/fog/fogbase.class.php:86
      [Thu Apr 21 15:28:18.306074 2016] [:error] [pid 16715] [client 146.232.223.197:24145] PHP  13. FOGController->__construct() /var/www/html/fog/lib/fog/fogbase.class.php:86
      [Thu Apr 21 15:28:18.306079 2016] [:error] [pid 16715] [client 146.232.223.197:24145] PHP  14. FOGController->load() /var/www/html/fog/lib/fog/fogcontroller.class.php:26
      [Thu Apr 21 15:28:18.306084 2016] [:error] [pid 16715] [client 146.232.223.197:24145] PHP  15. array_map() /var/www/html/fog/lib/fog/fogcontroller.class.php:194
      
      

      Looking at the code:

          161     protected function load($field = 'id') {
          162         $this->info(sprintf(_('Loading data to field %s'),$field));
          163         try {
          164             if (!$this->get($field)) throw new Exception(sprintf(_('Operation Field not set: %s'),$field));
          165             list($join, $where) = $this->buildQuery();
          166             array_map(function(&$key) use ($join,$where) {
          167                 $key = $this->key($key);
          168                 if (!is_array($this->get($key))) {
          169                     $query = sprintf($this->loadQueryTemplateSingle,
          170                         $this->databaseTable,
          171                         $join,
          172                         $this->databaseFields[$key],
          173                         self::$DB->sanitize($this->get($key)),
          174                         count($where) ? ' AND '.implode(' AND ',$where) : ''
          175                     );
          176                 } else {
          177                     $fields = $this->get($key);
          178                     $fieldData = array();
          179                     array_map(function(&$fieldValue) use ($key,&$fieldData) {
          180                         $fieldData[] = sprintf("`%s`.`%s`='%s'",$this->databaseTable,$this->databaseFields[$key],self::$DB->sanitize($fieldValue));
          181                         unset($fieldValue,$key);
          182                     },(array)$fields);
          183                     $query = sprintf($this->loadQueryTemplateMultiple,
          184                         $this->databaseTable,
          185                         $join,
          186                         implode(' OR ', $fieldData),
          187                         count($where) ? ' AND '.implode(' AND ',$where) : ''
          188                     );
          189                 }
          190                 if (!($vals = self::$DB->query($query)->fetch('','fetch_all')->get())) throw new Exception(self::$DB->sqlerror());
          191                 $vals = @array_shift($vals);
          192                 $this->setQuery($vals);
          193                 unset($vals,$key,$join,$where);
          194             },(array)$field);
          195         } catch (Exception $e) {
          196             $this->debug(_('Load failed: %s'),array($e->getMessage()));
          197         }
          198         return $this;
          199     }
      

      This seems relevant: http://stackoverflow.com/a/5523561/836995 I don’t think you will get a more detailed error message using array_map(). I don’t have time to debug the code, but I can take a guess that this is happening: throw new Exception(self::$DB->sqlerror());

      Don’t know why, though.

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

      Output of that link is attached:

      0_1461238767222_output1.txt

      I did not expect to see HTML… Parsing the HTML renders this beauty of an error message:
      0_1461238893617_Screenshot from 2016-04-21 13:41:00.png

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

      I tried to scan all PCs on my system for viruses by performing the “Virus Scan” task on a group containing all of my hosts. After specifying the task, the PCs rebooted as they should, but got stuck in a “Chainloading failed…”-loop. Cancelling the tasks had no effect. I also tried these instructions: http://www.thelazysysadmin.net/2011/01/fog-deleting-all-current-active-tasks/ The PCs still do not boot.

      Running FOG 6909.

      0_1461222658675_20160421_090512.jpg

      posted in FOG Problems
      dolfD
      dolf
    • RE: Multicast clients progress at different speeds

      Sounds risky, but I’ll try when I have time.

      posted in FOG Problems
      dolfD
      dolf
    • RE: Multicast clients progress at different speeds

      Are you sure?

      0_1454337593645_Screenshot from 2016-02-01 16:39:40.png

      posted in FOG Problems
      dolfD
      dolf
    • RE: Multicast clients progress at different speeds

      Thanks for the quick reply.
      There were 5 hosts that did not even start, of which two were not even checked in. Yet the multicast started. I’m just confused about the mechanics of that. Is there a timeout, after which the multicast becomes impatient and drops the clients who do not check in, or do not accept data at all?

      posted in FOG Problems
      dolfD
      dolf
    • Multicast clients progress at different speeds

      Using FOG 1.2.0, I tried to image 13 hosts with a single multicast task. They all finished at slightly different times. I thought that multicast tasks always go at the speed of the slowest client. See attached screenshot:

      0_1454333209737_Screenshot from 2016-02-01 14:29:44.png

      How is this possible?

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