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

    Problem Import Host

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    5
    12
    431
    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
      Nicolas Bricet
      last edited by

      Hello,
      I have a problem when I want to import computers, I have a blank page that appears (above the log)
      I am in version 1.5.9-RC2.9.

      Thanks in advance.

      [Tue Feb 13 08:45:16.577035 2024] [proxy_fcgi:error] [pid 3455648] [client **] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/html/fog/lib/plugins/site/hooks/addsitehost.hook.php:379\nStack trace:\n#0 /var/www/html/fog/lib/fog/hookmanager.class.php(86): AddSiteHost->hostImport()\n#1 /var/www/html/fog/lib/fog/fogpage.class.php(3952): HookManager->processEvent()\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/plugins/site/hooks/addsitehost.hook.php on line 379', referer: https://**//fog/management/index.php?node=host&sub=import
      
      
      N 1 Reply Last reply Reply Quote 1
      • N
        NoIPName @Nicolas Bricet
        last edited by

        @Nicolas-Bricet
        Have same problem…

        Tom ElliottT jeje3346J 2 Replies Last reply Reply Quote 0
        • Tom ElliottT
          Tom Elliott @NoIPName
          last edited by

          @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 Reply Quote 0
          • N
            NoIPName @Tom Elliott
            last edited by NoIPName

            @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

              No new ? 😞

              JJ FullmerJ 1 Reply Last reply Reply Quote 0
              • JJ FullmerJ
                JJ Fullmer Testers @NoIPName
                last edited by

                @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 Reply Quote 0
                • N
                  NoIPName @JJ Fullmer
                  last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • N
                    NoIPName
                    last edited by

                    Some new for this issue ? 😞

                    Tom ElliottT 1 Reply Last reply Reply Quote 0
                    • Tom ElliottT
                      Tom Elliott @NoIPName
                      last edited by Tom Elliott

                      @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 Reply Quote 1
                      • N
                        NoIPName @Tom Elliott
                        last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • N
                          NoIPName
                          last edited by

                          up new ?

                          1 Reply Last reply Reply Quote 0
                          • jeje3346J
                            jeje3346 @NoIPName
                            last edited by

                            @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

                            150

                            Online

                            12.0k

                            Users

                            17.3k

                            Topics

                            155.2k

                            Posts
                            Copyright © 2012-2024 FOG Project