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

problem with hostname.php when i migrate 1.3.4 => 1.3.5.

Scheduled Pinned Locked Moved Solved
FOG Problems
4
35
7.5k
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.
  • J
    jc35 @george1421
    last edited by Mar 22, 2017, 5:04 PM

    @george1421
    We have return to 1.3.4 and it’s works. We try to duplicate database and with the dev server we try to connect with 1.3.5 to connect to find what’s th problem with database and fog 1.3.5.
    our dev server is on 1.3.5

    sorry for very bad english.
    Thanks for your answer.

    1 Reply Last reply Reply Quote 0
    • J
      jc35 @george1421
      last edited by Mar 22, 2017, 5:11 PM

      @george1421
      Okay, I’ll look at that.

      1 Reply Last reply Reply Quote 0
      • T
        Tom Elliott
        last edited by Mar 23, 2017, 2:57 AM

        I really believe you just need to change the wget command to read as:
        hostinfo=$(wget -U '' -qO --post-data="mac=$mac" - "http://${web}service/hostname.php 2>/dev/null)
        You could also try:
        hostinfo=$(curl -A '' -fkq --data "mac=$mac" "http://${web}service/hostname.php" 2>/dev/null)

        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

        J 1 Reply Last reply Apr 5, 2017, 8:00 AM Reply Quote 0
        • J
          jc35 @Tom Elliott
          last edited by Apr 5, 2017, 8:00 AM

          @Tom-Elliott Hello, I try this, with 1.4.0-RC3, I have the same problem, I think we have a problem with database, but I don’t know how to find this problem.

          G 1 Reply Last reply Apr 5, 2017, 9:54 AM Reply Quote 0
          • G
            george1421 Moderator @jc35
            last edited by Apr 5, 2017, 9:54 AM

            @jc35 I’m running 1.4.0-RC3 on my dev system and when I key in

            http://<fog_server_ip>/fog/service/hostname.php?mac=b8ca3ace1d1a
            I get:

            #!ok=b8ca3ace1d1a #AD= #ADDom= #ADOU= #ADUser= #ADPass=
            

            (in my case the host name is the same as the mac address by intent)

            The same for wget from my mint laptop

            wget -q -O - "http://192.168.112.24/fog/service/hostname.php?mac=b8ca3ace1d1a"
            #!ok=b8ca3ace1d1a
            #AD=
            #ADDom=
            #ADOU=
            #ADUser=
            #ADPass=
            

            I wonder if the variable ${web} points to something other that what you think.

            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!

            J 1 Reply Last reply Apr 5, 2017, 1:06 PM Reply Quote 0
            • J
              jc35 @george1421
              last edited by Apr 5, 2017, 1:06 PM

              @george1421 It’s work with the database is local, but it doesn’t work with the database is on another server.

              G 1 Reply Last reply Apr 5, 2017, 1:07 PM Reply Quote 0
              • G
                george1421 Moderator @jc35
                last edited by Apr 5, 2017, 1:07 PM

                @jc35 How (precisely) do you have fog setup? All fog master fog servers (not storage nodes) have local databases.

                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!

                J 1 Reply Last reply Apr 5, 2017, 1:30 PM Reply Quote 0
                • J
                  jc35 @george1421
                  last edited by Apr 5, 2017, 1:30 PM

                  @george1421 I install fog with a local database, after I change the config.class.php for use with a database on another server.

                  T G 2 Replies Last reply Apr 5, 2017, 1:31 PM Reply Quote 0
                  • T
                    Tom Elliott @jc35
                    last edited by Apr 5, 2017, 1:31 PM

                    @jc35 So the problem is likely authentication with the other database?

                    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

                    J 2 Replies Last reply Apr 5, 2017, 1:44 PM Reply Quote 0
                    • G
                      george1421 Moderator @jc35
                      last edited by george1421 Apr 5, 2017, 7:40 AM Apr 5, 2017, 1:39 PM

                      @jc35 said in problem with hostname.php when i migrate 1.3.4 => 1.3.5.:

                      I change the config.class.php for use with a database on another server.

                      Understand I have to be that guy and also know I’m talking as a Moderator and not part of the core FOG Project team.

                      You are running in an unsupported configuration. I (personally) don’t understand how/why fog is current able to function with this setup. Yes I know it can be done, but the question is should it be done, we have not tested this setup so there is no guaranty it will work with future releases.

                      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!

                      1 Reply Last reply Reply Quote 0
                      • J
                        jc35 @Tom Elliott
                        last edited by Apr 5, 2017, 1:44 PM

                        @Tom-Elliott I don’t know, I have just the message “#!ng” since 1.3.5.
                        The web web interface it work fine.

                        1 Reply Last reply Reply Quote 0
                        • J
                          jc35 @Tom Elliott
                          last edited by Apr 5, 2017, 1:52 PM

                          @Tom-Elliott

                          @Tom-Elliott said in problem with hostname.php when i migrate 1.3.4 => 1.3.5.:

                          @jc35 So the problem is likely authentication with the other database?

                          the authentication is it different that web interface ?

                          1 Reply Last reply Reply Quote 0
                          • T
                            Tom Elliott
                            last edited by Apr 5, 2017, 3:19 PM

                            #!ng = Not enabled globally.

                            Is the value enabled in Services->Hostname Changer?

                            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

                            J 1 Reply Last reply Apr 6, 2017, 12:09 PM Reply Quote 0
                            • J
                              jc35 @Tom Elliott
                              last edited by Apr 6, 2017, 12:09 PM

                              @Tom-Elliott said in problem with hostname.php when i migrate 1.3.4 => 1.3.5.:

                              #!ng = Not enabled globally.

                              Is the value enabled in Services->Hostname Changer?

                              Hello,
                              thank you very much.
                              It’s work fine.

                              what is better wget or curl ?

                              what is better hostname.php or hostinfo.php ?

                              G T 2 Replies Last reply Apr 6, 2017, 12:12 PM Reply Quote 0
                              • G
                                george1421 Moderator @jc35
                                last edited by Apr 6, 2017, 12:12 PM

                                @jc35 said in problem with hostname.php when i migrate 1.3.4 => 1.3.5.:

                                what is better hostname.php or hostinfo.php ?

                                It depends on what data you need? If you just need AD info then hostname.php is the answer, if you need to know more about the image and host then hostinfo.php is the answer. Just understand the output of both are intended for different purposes. So you will have to parse the data differently for each page.

                                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!

                                J 1 Reply Last reply Apr 6, 2017, 12:20 PM Reply Quote 0
                                • T
                                  Tom Elliott @jc35
                                  last edited by Apr 6, 2017, 12:12 PM

                                  @jc35 For wget or curl either or, matter of preference really.

                                  I’d recommend hostinfo.php though it would mean sourcing the returned data to have access to the variable. That said, i already pass the hostname in with the kernel args, so I think you can simply do a lookup with:

                                  echo $hostname

                                  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

                                  J 1 Reply Last reply Apr 6, 2017, 12:20 PM Reply Quote 0
                                  • J
                                    jc35 @george1421
                                    last edited by Apr 6, 2017, 12:20 PM

                                    @george1421
                                    OK,
                                    How to do mark this post as solved ?

                                    1 Reply Last reply Reply Quote 0
                                    • J
                                      jc35 @Tom Elliott
                                      last edited by Apr 6, 2017, 12:20 PM

                                      @Tom-Elliott
                                      ok.

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

                                      159

                                      Online

                                      12.0k

                                      Users

                                      17.3k

                                      Topics

                                      155.2k

                                      Posts
                                      Copyright © 2012-2024 FOG Project