• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. svalding
    3. Posts
    S
    • Profile
    • Following 1
    • Followers 0
    • Topics 13
    • Posts 59
    • Best 2
    • Controversial 0
    • Groups 0

    Posts made by svalding

    • Error with SVN 6017 and HTTP 500
      Server
      • FOG Version: SVN 6017
      • OS: Debian 8 (Jessie)
      Client
      • Service Version:
      • OS:
      Description

      Updated to SVN 6017, now getting 500 Server errors…according to apache logs it seems to be coming from fogmanagercontroller.class.php on line 506, but I am no php guy and can’t make heads or tails of it.

          public function count(
              $findWhere = array(),
              $whereOperator = 'AND',
              $compare = '='
          ) {
              if (empty($findWhere)) {
                  $findWhere = array();
              }
              if (empty($whereOperator)) {
                  $whereOperator = 'AND';
              }
              if (empty($compare)) {
                  $compare = '=';
              }
              $whereArray = array();
              $countVals = $countKeys = array();
              if (count($findWhere)) {
                  foreach ((array) $findWhere as $field => &$value) {
                      $field = trim($field);
                      if (is_array($value)) {
                          foreach ((array) $value as $index => &$val) {
                              $key = sprintf(
                                  '%s_%d',
                                  $field,
                                  $index
                              );
                              $countKeys[] = sprintf(':%s', $key);
                              $countVals[$key] = $val;
                              unset($val);
                          }
                          $whereArray[] = sprintf(
                              '`%s` IN (%s)',
                              $this->databaseFields[$field],
                              implode(',', $countKeys)
                          );
                          unset($countKeys);
                      } else {
                          $countVals[$field] = $value;
                          $whereArray[] = sprintf(
                              '`%s` %s :%s',
                              $this->databaseFields[$field],
                              (
                                  preg_match(
                                      '#%#',
                                      $value
                                  ) ?
                                  'LIKE' :
                                  trim($compare)
                              ),
                              $field
                          );
                      }
                      unset($value, $field);
                  }
              }
              $knownEnable = array(
                  'Image',
                  'Snapin',
                  'StorageNode',
              );
              $nonEnable = !(in_array($this->childClass, $knownEnable));
              $isEnabled = array_key_exists(
                  'isEnabled',
                  $this->databaseFields
              );
              if ($nonEnable && $isEnabled) {
                  $isEnabled = sprintf(
                      '`%s`=1',
                      $this->databaseFields['isEnabled']
                  );
              }
              $query = sprintf(
                  $this->countQueryTemplate,
                  $this->databaseTable,
                  $this->databaseFields['id'],
                  $this->databaseTable,
                  (
                      count($whereArray) ?
                      sprintf(
                          ' WHERE %s%s',
                          implode(
                              sprintf(
                                  ' %s ',
                                  $whereOperator
                              ),
                              (array) $whereArray
                          ),
                          (
                              $isEnabled ?
                              sprintf(
                                  ' AND %s',
                                  $isEnabled
                              ) :
                              ''
                          )
                      ) :
                      (
                          $isEnabled ?
                          sprintf(
                              ' WHERE %s',
                              $isEnabled
                          ) :
                          ''
                      )
                  )
              );
      
              return (int) self::$DB
                  ->query($query, array(), $countVals)
                  ->fetch()
                  ->get('total');
          }
      

      Apache log:

      PHP Warning:  implode(): Invalid arguments passed in /var/www/fog/lib/fog/fogmanagercontroller.class.php on line 506, referer: http://fog.tusc.kent.edu/fog/management/index.php
      [Mon Nov 28 11:08:39.063515 2016] [:error] [pid 17582] [client 10.20.100.4:60145] PHP Warning:  implode(): Invalid arguments passed in /var/www/fog/lib/fog/fogmanagercontroller.class.php on line 506, referer: http://fog.tusc.kent.edu/fog/management/index.php
      [Mon Nov 28 11:09:13.324410 2016] [:error] [pid 17817] [client 131.123.128.69:45113] PHP Warning:  fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/fog/status/logtoview.php on line 60
      [Mon Nov 28 11:09:20.723001 2016] [:error] [pid 17767] [client 131.123.128.69:45134] PHP Warning:  fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/fog/status/logtoview.php on line 60
      [Mon Nov 28 11:09:34.061501 2016] [:error] [pid 17819] [client 10.20.100.4:60189] PHP Warning:  implode(): Invalid arguments passed in /var/www/fog/lib/fog/fogmanagercontroller.class.php on line 506, referer: http://fog.tusc.kent.edu/fog/management/index.php
      [Mon Nov 28 11:09:38.978830 2016] [:error] [pid 17888] [client 10.20.100.8:62603] PHP Fatal error:  Uncaught exception 'Exception' with message 'StorageNode must be a valid node' in /var/www/fog/lib/fog/fogbase.class.php:1218\nStack trace:\n#0 /var/www/fog/lib/pages/imagemanagementpage.class.php(279): FOGBase->getFTPByteSize(Object(StorageNode), '/SurfacePro3S16')\n#1 /var/www/fog/lib/pages/imagemanagementpage.class.php(372): ImageManagementPage->{closure}('SurfacePro3S16', Object(StorageNode))\n#2 [internal function]: ImageManagementPage->{closure}(Object(Image), 18)\n#3 /var/www/fog/lib/pages/imagemanagementpage.class.php(476): array_walk(Array, Object(Closure))\n#4 /var/www/fog/lib/fog/fogpagemanager.class.php(256): ImageManagementPage->index()\n#5 /var/www/fog/management/index.php(49): FOGPageManager->render()\n#6 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1218, referer: http://fog.tusc.kent.edu/fog/management/index.php?node=image
      [Mon Nov 28 11:09:44.072496 2016] [:error] [pid 17819] [client 10.20.100.4:60189] PHP Warning:  implode(): Invalid arguments passed in /var/www/fog/lib/fog/fogmanagercontroller.class.php on line 506, referer: http://fog.tusc.kent.edu/fog/management/index.php
      [Mon Nov 28 11:09:49.156332 2016] [:error] [pid 17819] [client 10.20.100.4:60189] PHP Warning:  implode(): Invalid arguments passed in /var/www/fog/lib/fog/fogmanagercontroller.class.php on line 506, referer: http://fog.tusc.kent.edu/fog/management/index.php
      [Mon Nov 28 11:09:54.072569 2016] [:error] [pid 17819] [client 10.20.100.4:60189] PHP Warning:  implode(): Invalid arguments passed in /var/www/fog/lib/fog/fogmanagercontroller.class.php on line 506, referer: http://fog.tusc.kent.edu/fog/management/index.php
      [Mon Nov 28 11:09:57.133602 2016] [:error] [pid 18017] [client 10.20.100.1:56409] PHP Fatal error:  Uncaught exception 'Exception' with message 'StorageNode must be a valid node' in /var/www/fog/lib/fog/fogbase.class.php:1218\nStack trace:\n#0 /var/www/fog/lib/pages/imagemanagementpage.class.php(279): FOGBase->getFTPByteSize(Object(StorageNode), '/960F16')\n#1 /var/www/fog/lib/pages/imagemanagementpage.class.php(372): ImageManagementPage->{closure}('960F16', Object(StorageNode))\n#2 [internal function]: ImageManagementPage->{closure}(Object(Image), 1)\n#3 /var/www/fog/lib/pages/imagemanagementpage.class.php(476): array_walk(Array, Object(Closure))\n#4 /var/www/fog/lib/fog/fogpagemanager.class.php(256): ImageManagementPage->index()\n#5 /var/www/fog/management/index.php(49): FOGPageManager->render()\n#6 {main}\n  thrown in /var/www/fog/lib/fog/fogbase.class.php on line 1218, referer: http://fog.tusc.kent.edu/fog/management/index.php?node=image
      [Mon Nov 28 11:11:04.327490 2016] [:error] [pid 18056] [client 10.20.100.4:60227] PHP Warning:  implode(): Invalid arguments passed in /var/www/fog/lib/fog/fogmanagercontroller.class.php on line 506, referer: http://fog.tusc.kent.edu/fog/management/index.php
      
      posted in FOG Problems
      S
      svalding
    • RE: Has something changed with UEFI?

      Guys. It’s working! I was able to get some local help from our team, and we found the issue in the infoblox. We had to make some changes for BOOTP on this particular VLAN, and move away from snponly to ipxe.efi. After I restarted services on the Infoblox appliance, this test machine booted pxe and fog!

      Such a relief, and you’ll be glad to know it wasn’t anything inherently wrong on the fog side of things, just needed to adjust some settings on the infoblox appliance and we are good to go!

      Again, I can’t thank you all enough for all your help. You’ve been amazing. I love this project.

      posted in FOG Problems
      S
      svalding
    • RE: Has something changed with UEFI?

      at this point, I believe that to be an anomaly on our network. We reimaged the machine this morning that was throwing that boot menu and it has been working perfectly.

      I’m still working on the port mirroring thing.

      posted in FOG Problems
      S
      svalding
    • RE: Has something changed with UEFI?

      That’s a good question. I just discovered that these were all on here, and the timestamps on the upload match when we were mucking about getting Surface Pro 3’s to boot pxe with their UEFI. So I took a chance and uploaded the files to the infoblox. Didn’t change anything for me though. Still just getting a succeeded to download NBP file and then the retry screen.

      posted in FOG Problems
      S
      svalding
    • RE: Has something changed with UEFI?

      HOLD! THE! PHONE!

      I just found a section in our infoblox called “FIle Distribution” What’s inside that you ask? all these freaking .kpxe, .pxe, and .efi files.

      What the blubber. I’m going to upload a new copy of snponly.efi and give this machine a boot again. UGH!

      Mod edited.

      posted in FOG Problems
      S
      svalding
    • RE: Has something changed with UEFI?

      Can confirm, our network is setup in the most steaming pile of socks way you can think of. But, it’s a big university with lots of moving parts, complexity is to be expected.

      Mod edited.

      posted in FOG Problems
      S
      svalding
    • RE: A hostname with that name already exists.

      I’ve had to go into MySQL and clean up the tables before when I encountered this issue. In my case it has always been because fog adds the mac address of a bluetooth adapter to a host, and then it gets orphaned or something when I rather delete a host, or make changes to the host. I use PHPMyAdmin instead of the console, but the query is the same.

      posted in FOG Problems
      S
      svalding
    • RE: Has something changed with UEFI?

      Correct. That’s why I want to do a port mirror and packet capture. I’m not seeing all of the information from a tcpdump on the fog server itself.

      posted in FOG Problems
      S
      svalding
    • RE: Has something changed with UEFI?

      I"m going to do another capture against a mirrored port. The machine and the fog server are on separate VLANs, so i’m not sure I’m grabbing all the packet data that I can get if I were to mirror the port on the switch. I’ll post that information as well once I have it.

      posted in FOG Problems
      S
      svalding
    • RE: Has something changed with UEFI?

      0_1469018919787_output.pcap

      Here’s the PCAP file. It looks like TFTP is trying to give it undionly.kpxe, which isn’t right!

      posted in FOG Problems
      S
      svalding
    • RE: Has something changed with UEFI?

      Sure thing. My brain is fried for the day. I’m going to pick this up tomorrow morning. Hopefully the network guy is in the office at main campus and I can work with him on getting some tcp dumps from the traffic for this dhcp offer/ack process.

      Also I am going to try to setup port mirroring on the switch this machine is plugged into and do a wireshark there. I’ll get to the bottom of it!

      I appreciate all you gentleman’s help today. It’s been quite a learning curve having to pick this up while the guy who usually handles it is out.

      posted in FOG Problems
      S
      svalding
    • RE: Has something changed with UEFI?

      @george1421 We use an Infoblox appliance that is controlled by the main campus of our university. We have some control over it, such as adding in the DHCP options, but not much else.

      posted in FOG Problems
      S
      svalding
    • RE: Has something changed with UEFI?

      That makes perfect sense, so this is setup how it should be. dnsmasq starts, reads the commented file, and then moves on to ltsp.conf, where we have defined all of our settings.

      I just tried with snponly.efi, and ipxe.efi and neither of them are loading up.

      Here is a screen grab from a video I took of the process.
      0_1468968623341_nbp success.png
      And here is the screen it immediately jumps to.
      0_1468968646221_after nbp.png

      posted in FOG Problems
      S
      svalding
    • RE: Has something changed with UEFI?

      I want to put this out there that I got that information from a file called ltsp.conf in /etc/dnsmasq.d.

      There is an /etc/dnsmasq.conf file, but it is completely commented out like it is not being used for anything.

      posted in FOG Problems
      S
      svalding
    • RE: Has something changed with UEFI?

      I’m going to switch the config to ipxe.efi and see what happens.

      posted in FOG Problems
      S
      svalding
    • RE: Has something changed with UEFI?

      I have updated to the latest version that was linked here earlier.

      posted in FOG Problems
      S
      svalding
    • RE: Has something changed with UEFI?

      I lied, I am looking at my dnsmasq config now. It’s snponly.efi

      0_1468966861510_pxe settings.png

      posted in FOG Problems
      S
      svalding
    • RE: Has something changed with UEFI?

      I’ve got BOOTP settings as follows:

      Boot File: undionly.kpxe
      Next Server: Fog server IP address
      Boot Server: Fog server IP address

      Legacy clients are using the undionly.kpxe, while UEFI devices are using ipxe.pxe (I believe, this could be flip flopped, going from memory at the moment)

      posted in FOG Problems
      S
      svalding
    • RE: Has something changed with UEFI?

      So I did a whole lot of testing today. It seems to be specific to this Dell 7440 AIO and UEFI network booting.

      I have several Dell 9030 AIO and Microsoft Surface machines booting pxe via UEFI just fine. However, this one just won’t work.

      It starts trying to boot, and then flashes Downloading NBP file very quickly across the screen, and then goes to a F1 to retry boot menu. Updated to the latest BIOS available, if that helps. Perhaps an older version would be better in this case? I dunno. FoG and UEFI are definitely functioning properly though, as I have other UEFI devices that are fine.

      posted in FOG Problems
      S
      svalding
    • RE: Has something changed with UEFI?

      Well that sheds a lot of light on things, thank you very much!

      posted in FOG Problems
      S
      svalding
    • 1
    • 2
    • 3
    • 2 / 3