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

    Unauthorized error

    Scheduled Pinned Locked Moved Solved FOG Problems
    15 Posts 3 Posters 36 Views
    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
      Jamaal
      last edited by

      Hello guys,

      I wanted to build another FOG server just for testing purposes and running to this unauthorized error after I finish the setup and try to update the schema via GUI. I tried both Ubuntu 24.04.3 and also 22.04.4, even did an apt-get update and upgrade, got the same result.

      I never seen this before and tried googling up fixes, but can’t fix it.
      Here’s a screen shot of the error.

      5a86d90f-6b42-4f69-a03a-198cd5855550-image.png

      The usual screen for you to update the database after the command line prompts you too after a fresh install.

      Then I get this error:

      1f6d1651-5575-47a1-aae5-864d74ab94a6-image.png

      I even tried different browsers. I don’t think it matters, but just more information, the hypervisor is Windows Hyper-V. I’m not sure if Ubuntu 26.04 is supported, but I can try to see if I get the same error message.

      Tom ElliottT J 4 Replies Last reply Reply Quote 0
      • J
        Jab98
        last edited by Jab98

        Sorry this is not a helpful response 🙂

        Crazy this was just posted 10 min ago because I just ran into the same error.

        Just did fresh install of Debian 13, trying install latest stable FOG release, everything went well up to this point.

        J Tom ElliottT 2 Replies Last reply Reply Quote 0
        • J
          Jamaal @Jab98
          last edited by

          @Jab98 said in Unauthorized error:

          Sorry this is not a helpful response 🙂

          Crazy this was just posted 10 min ago because I just ran into the same error.

          Just did fresh install of Debian 13, trying install latest stable FOG release, everything went well up to this point.

          It’s ok, I’m just curious what happened all of a sudden as I’ve been using Ubuntu 20.xx a long time now before installing FOG. I guess I can try Debian and see how everything goes. Thanks for your input.

          1 Reply Last reply Reply Quote 0
          • J
            Jab98
            last edited by Jab98

            Just posting more info

            This is the only 403 response that shows when I get to the page that says Unauthorized

            56d8711f-82c0-451d-813a-5f81f010c65e-image.png

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

              @Jamaal What’s the url that is displayed for you to goto for that on the output of the command telling you where to go?

              It should contain a tokenization embedded for you to goto.

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

                @Jamaal 82524c38-57e8-4702-becf-7963c79a6327-image.png

                That token is generated on every run so you seeing what I see doesn’t matter, but it should showup like what you’re seeing here.

                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

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

                  @Jab98 Please see the message to Jamaal as well.

                  Yes a security based change was added recently because anyone could force the updates and could export the db without any type of authorization.

                  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

                  1 Reply Last reply Reply Quote 0
                  • J
                    Jamaal @Tom Elliott
                    last edited by

                    This post is deleted!
                    Tom ElliottT 1 Reply Last reply Reply Quote 0
                    • Tom ElliottT
                      Tom Elliott @Jamaal
                      last edited by

                      @Jamaal So if you go to that URL and click the button to install, you should be successful.

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

                        @Tom-Elliott

                        Hey Tom,

                        The URL the installer generates is >
                        http://10.1.22.37/fog/management/index.php?node=schema&fogtoken=a813f075fc54cdd34f5304ff6cf3a3ee

                        3c66b186-b77f-4793-b587-478a92170403-image.png

                        7822b285-75fc-4453-b879-6d81ab38802d-image.png

                        1 Reply Last reply Reply Quote 0
                        • J
                          Jab98 @Jamaal
                          last edited by Jab98

                          @Jamaal
                          @Tom-Elliott

                          Okay I got past this just by re-running the FOG installer.

                          It generated a new tokenized URL and this one worked fine!

                          The new token had way more characters than the first one it printed, not sure if that means anything

                          http://10.1.22.37/fog/management/index.php?node=schema&fogtoken=b407da4f77d7d94c25ca554a49090dafe1d5705ca3b25af267b6313972a10bc6

                          1 Reply Last reply Reply Quote 0
                          • Tom ElliottT Tom Elliott has marked this topic as solved
                          • Tom ElliottT
                            Tom Elliott @Jamaal
                            last edited by

                            @Jamaal @Jab98

                            If you’re doing upgrades (if you trust the base defaults of a fresh install)

                            You can also run the sudo ./installfog.sh with the -y argument and it will “just do all the work” so you don’t have to do the "open a browser -> click the button -> return to the installer, press enter.

                            Just trying to help. By no means is this a requirement (of course) but it may help in the future, and this method would also perform the update of the core database elements automatically for you. (This was a part of the addition of the token too. - To make the upgrade process more autonomous and secure.)

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

                              @Tom-Elliott said in Unauthorized error:

                              @Jamaal @Jab98

                              If you’re doing upgrades (if you trust the base defaults of a fresh install)

                              You can also run the sudo ./installfog.sh with the -y argument and it will “just do all the work” so you don’t have to do the "open a browser -> click the button -> return to the installer, press enter.

                              Just trying to help. By no means is this a requirement (of course) but it may help in the future, and this method would also perform the update of the core database elements automatically for you. (This was a part of the addition of the token too. - To make the upgrade process more autonomous and secure.)

                              Thanks Tom, that worked with the auto install, but will it keep the database secure as you guys are implementing with the token? Or do I need to do extra steps on making it secure after doing the -y switch?

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

                                @Jamaal I’m not sure I follow? The database isn’t insecure, it was being able to download the database, or force an upgrade without authorization that was the piece being secured, nothing about the normal day to day operation of the database changed.

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

                                  @Tom-Elliott said in Unauthorized error:

                                  @Jamaal I’m not sure I follow? The database isn’t insecure, it was being able to download the database, or force an upgrade without authorization that was the piece being secured, nothing about the normal day to day operation of the database changed.

                                  Got it, ok thanks for your help today on this.

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

                                  137

                                  Online

                                  12.7k

                                  Users

                                  17.6k

                                  Topics

                                  156.6k

                                  Posts
                                  Copyright © 2012-2026 FOG Project