• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Problem Import Host

Scheduled Pinned Locked Moved Unsolved
FOG Problems
5
12
514
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    NoIPName @Nicolas Bricet
    last edited by Nov 8, 2024, 11:10 AM

    @Nicolas-Bricet
    Have same problem…

    T J 2 Replies Last reply Nov 8, 2024, 12:08 PM Reply Quote 0
    • T
      Tom Elliott @NoIPName
      last edited by Nov 8, 2024, 12:08 PM

      @NoIPName You’re still using 1.5.9-RC2.9 (???) and @Nicolas-Bricet You too?

      can you upgrade ot a more modern version from the stable branch. Pretty sure this may have already long since been addressed.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      N 1 Reply Last reply Nov 8, 2024, 2:33 PM Reply Quote 0
      • N
        NoIPName @Tom Elliott
        last edited by NoIPName Nov 8, 2024, 8:37 AM Nov 8, 2024, 2:33 PM

        @Tom-Elliott i’m on 1.5.10.1622 version

        And little bit same @Nicolas-Bricet

        [Fri Nov 08 15:34:56.324018 2024] [proxy_fcgi:error] [pid 358511:tid 358511] [client 192.168.100.1:50111] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught ValueError: max(): Argument #1 ($value) must contain at least one element in /var/www/html/fog/lib/fog/hostmanager.class.php:225\nStack trace:\n#0 /var/www/html/fog/lib/fog/hostmanager.class.php(225): max()\n#1 /var/www/html/fog/lib/fog/fogpage.class.php(4075): HostManager->getHostByMacAddresses()\n#2 /var/www/html/fog/lib/fog/fogpagemanager.class.php(220): FOGPage->importPost()\n#3 /var/www/html/fog/management/index.php(58): FOGPageManager->render()\n#4 {main}\n thrown in /var/www/html/fog/lib/fog/hostmanager.class.php on line 225’, referer: https://fog.deploy.com/management/index.php?node=host&sub=import

        In my CSV i have 100 lines but only 8 first lines add in hosts

        1 Reply Last reply Reply Quote 0
        • N
          NoIPName
          last edited by Nov 20, 2024, 1:32 PM

          No new ? 😞

          J 1 Reply Last reply Nov 21, 2024, 1:48 PM Reply Quote 0
          • J
            JJ Fullmer Testers @NoIPName
            last edited by Nov 21, 2024, 1:48 PM

            @NoIPName Can you share your import csv perhaps? It seems to think it’s missing a value based on the error message. I will gladly test the same csv on my dev server and see if I get the same result so we can debug this more hands on.

            Have you tried the FogApi powershell module? It's pretty cool IMHO
            https://github.com/darksidemilk/FogApi
            https://fogapi.readthedocs.io/en/latest/
            https://www.powershellgallery.com/packages/FogApi
            https://forums.fogproject.org/topic/12026/powershell-api-module

            N 1 Reply Last reply Nov 22, 2024, 10:04 AM Reply Quote 0
            • N
              NoIPName @JJ Fullmer
              last edited by Nov 22, 2024, 10:04 AM

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • N
                NoIPName
                last edited by Nov 28, 2024, 10:09 AM

                Some new for this issue ? 😞

                T 1 Reply Last reply Nov 28, 2024, 12:07 PM Reply Quote 0
                • T
                  Tom Elliott @NoIPName
                  last edited by Tom Elliott Nov 28, 2024, 6:10 AM Nov 28, 2024, 12:07 PM

                  @NoIPName you didn’t provide a csv. You took a screenshot of an excel of your csv.

                  That said I suspect there’s an issue on the line of or immediately following the host you aren’t able to import.

                  I also seem to be seeing the same host name multiple times in your image so that might explain things as well.

                  Please provide your actual csv.

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                  N 1 Reply Last reply Dec 16, 2024, 2:05 PM Reply Quote 1
                  • N
                    NoIPName @Tom Elliott
                    last edited by Dec 16, 2024, 2:05 PM

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • N
                      NoIPName
                      last edited by Jan 6, 2025, 8:55 AM

                      up new ?

                      1 Reply Last reply Reply Quote 0
                      • J
                        jeje3346 @NoIPName
                        last edited by Jan 10, 2025, 3:37 PM

                        @NoIPName

                        Hey !

                        like @Tom-Elliott says , 1.5.10-x is the good way but if your problem is still present so i would ask you this :

                        1. from Fog GUI could you export in CSV your actual hosts list ?
                        2. could you add in this CSV a new line changing the hostname and mac values
                        3. could you clean all your hosts from Fog GUI
                        4. could you import the CSV that you exported

                        is it working ?

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post

                        230

                        Online

                        12.1k

                        Users

                        17.3k

                        Topics

                        155.3k

                        Posts
                        Copyright © 2012-2024 FOG Project