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

Error generating image

Scheduled Pinned Locked Moved Unsolved
FOG Problems
4
20
723
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.
  • T
    Thiago Ryuiti
    last edited by Apr 18, 2024, 9:31 PM

    I am trying to generate a Windows image, however, it is showing the error below, I have already carried out the following procedures from the link below:

    https://forums.fogproject.org/topic/11203/resyncing-fog-s-service-account-password

    Below is an error

    14478328-9f5a-442d-a44c-8dcb7e8c5fb5-WhatsApp Image 2024-04-18 at 18.13.52.jpeg

    G 1 Reply Last reply Apr 18, 2024, 10:39 PM Reply Quote 0
    • G
      george1421 Moderator @Thiago Ryuiti
      last edited by Apr 18, 2024, 10:39 PM

      @Thiago-Ryuiti The error is saying that the service account fogproject doesn’t have rights to the /images directory.

      This typically happens for two reasons.

      1. Someone changed the password to the fogproject linux user account on the fog server. This password is managed by the FOG installer script. If someone intentionally changed this password you will need to fix it. The complex password is saved in a hidden file in /opt/fog/.fogsettings file. You will need to be root or su to root to be able to view this file. If you need to keep this changed password for some reason there is a process to resync the password with what FOG thinks.
      2. Someone has changed the permissions on the /images directory after FOG was installed.

      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!

      T 2 Replies Last reply Apr 19, 2024, 1:43 PM Reply Quote 1
      • T
        Thiago Ryuiti @george1421
        last edited by Apr 19, 2024, 1:43 PM

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • T
          Thiago Ryuiti @george1421
          last edited by Apr 19, 2024, 2:28 PM

          @george1421 Good morning,
          Regarding item 1, We did the entire procedure regarding changing the password and reinstalling fogproject, but the mysqlpass password does not match the password.

          Do they need to be the same?
          Is the fogmaster user correct?

          b6b6a706-7362-4dc2-a192-36ed7e6e001f-Imagem do WhatsApp de 2024-04-19 à(s) 11.23.41_41f41995.jpg

          bf80091a-676a-44ce-bac7-70f9b9786555-Imagem do WhatsApp de 2024-04-19 à(s) 11.25.48_e0cde201.jpg

          Regarding item 2, below is the permissions for the /image folder.

          b7b0903b-46a7-45e7-8ec8-08f7d933ac5b-Imagem do WhatsApp de 2024-04-18 à(s) 19.24.01_66f3fd6f.jpg

          705d4fc3-e4c5-4aee-955c-a18c7576f77f-Imagem do WhatsApp de 2024-04-19 à(s) 11.16.40_4ccabc69.jpg

          I believe this is correct, but the error continues, do you have any other ideas?

          G 1 Reply Last reply Apr 19, 2024, 7:39 PM Reply Quote 0
          • G
            george1421 Moderator @Thiago Ryuiti
            last edited by Apr 19, 2024, 7:39 PM

            @Thiago-Ryuiti said in Error generating image:

            We did the entire procedure regarding changing the password and reinstalling fogproject,

            Can you explain this? The reason why i ask is that there was some bad instructions on the internet that said to log into the fog server with the user fog and then install FOG. People were getting locked out of the fog account because the installer would reset the password. There was never an intent by the developers for admins to use the fog service account. So the developers changed the name of the service account to fogproject. So you saying “changing the password” is a bit suspect since you should never touch this account.

            So what state is your install in at the moment? Can you ftp to the fog server using the account information in the .fogsettings file (ignoring the bit about sql server for the moment)?

            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!

            I 3 Replies Last reply Apr 20, 2024, 10:38 AM Reply Quote 0
            • I
              inconnu @george1421
              last edited by Apr 20, 2024, 10:38 AM

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • I
                inconnu @george1421
                last edited by Apr 20, 2024, 10:45 AM

                @george1421

                Hi George,

                I work with Thiago. We followed a tutorial written by you back in 2017 where there is an error exactly the same, follow the link below.

                https://forums.fogproject.org/topic/11203/resyncing-fog-s-service-account-password

                We put Print below all permissions. I can carry out more tests on Monday.

                1 Reply Last reply Reply Quote 0
                • I
                  inconnu @george1421
                  last edited by Apr 22, 2024, 1:12 PM

                  @george1421 hi George,

                  I tested the FTP connection to move the folders and files and everything works correctly, the problem must be in the DB, correct?

                  any idea?

                  1505126c-10e2-44f4-8a52-8064b2bfdb48-image.png

                  T G 2 Replies Last reply Apr 22, 2024, 1:15 PM Reply Quote 0
                  • T
                    Tom Elliott @inconnu
                    last edited by Apr 22, 2024, 1:15 PM

                    @inconnu Is it possible there’s not enough room to put the file?

                    I ask because it seems to create the directory needed for image capture, but fail to put the file, so … maybe the disk is simply full?

                    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

                    I 1 Reply Last reply Apr 22, 2024, 1:21 PM Reply Quote 0
                    • I
                      inconnu @Tom Elliott
                      last edited by Apr 22, 2024, 1:21 PM

                      @Tom-Elliott

                      I have a lot of disk space.

                      And congrat for maintain the project live.

                      c7f6a8dc-85a0-4b8a-a2a4-1ba74d589fcc-image.png

                      1 Reply Last reply Reply Quote 0
                      • G
                        george1421 Moderator @inconnu
                        last edited by Apr 22, 2024, 4:37 PM

                        @inconnu Ok if you can move the files via ftp then you have the permissions right. Now the login information you used for FTP, go into the web ui and look at the storage node (probably master or default) make sure the ftp settings there are correct. If not correct them.

                        Make sure the /opt/fog/.fogsettings password match what you used for logging into ftp. If yes then rerun the installer.

                        I have not seen issues with the database, but its always possible. In the same .fogsettings file there should be a user name and password for mysql.

                        From the fog server’s linux command line key in mysql -u <fog_use_name_from_settings_file> -p <password_from_file> fog

                        Make sure you can login with the mysql passwords from the config file.

                        If you want to make sure it works you can key in the following from the mysql console.

                        use fog;
                        show tables;
                        exit;
                        

                        It should show you more than just an error message. Especially the show tables command.

                        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!

                        I 1 Reply Last reply Apr 23, 2024, 1:49 PM Reply Quote 0
                        • I
                          inconnu @george1421
                          last edited by inconnu Apr 23, 2024, 7:56 AM Apr 23, 2024, 1:49 PM

                          @george1421

                          Variables (–variable-name=value)
                          and boolean options {FALSE|TRUE} Value (after reading options)


                          abort-source-on-error FALSE
                          auto-rehash TRUE
                          auto-vertical-output FALSE
                          binary-as-hex FALSE
                          character-sets-dir (No default value)
                          column-type-info FALSE
                          comments FALSE
                          compress FALSE
                          debug-check FALSE
                          debug-info FALSE
                          database (No default value)
                          default-character-set auto
                          delimiter ;
                          vertical FALSE
                          force FALSE
                          named-commands FALSE
                          ignore-spaces FALSE
                          init-command (No default value)
                          local-infile FALSE
                          no-beep FALSE
                          host (No default value)
                          html FALSE
                          xml FALSE
                          line-numbers TRUE
                          unbuffered FALSE
                          column-names TRUE
                          sigint-ignore FALSE
                          port 0
                          progress-reports TRUE
                          prompt \N [\d]>
                          protocol
                          quick FALSE
                          raw FALSE
                          reconnect TRUE
                          socket /run/mysqld/mysqld.sock
                          ssl FALSE
                          ssl-ca (No default value)
                          ssl-capath (No default value)
                          ssl-cert (No default value)
                          ssl-cipher (No default value)
                          ssl-key (No default value)
                          ssl-crl (No default value)
                          ssl-crlpath (No default value)
                          tls-version (No default value)
                          ssl-verify-server-cert FALSE
                          table FALSE
                          user fogmaster
                          safe-updates FALSE
                          i-am-a-dummy FALSE
                          connect-timeout 0
                          max-allowed-packet 16777216
                          net-buffer-length 16384
                          select-limit 1000
                          max-join-size 1000000
                          secure-auth FALSE
                          show-warnings FALSE
                          plugin-dir (No default value)
                          default-auth (No default value)
                          binary-mode FALSE
                          connect-expired-password FALSE
                          root@fog:/home/fog#

                          38d7de3e-3e98-4da0-aefb-b3767914c3eb-image.png

                          I had already tested the bank before and it was connecting.

                          But I can log in just by using it.

                          mysql

                          and then the normal procedure.
                          use fog;
                          etc.

                          I 1 Reply Last reply Apr 26, 2024, 4:03 PM Reply Quote 0
                          • I
                            inconnu @inconnu
                            last edited by Apr 26, 2024, 4:03 PM

                            @Tom-Elliott @george1421

                            I looked a little at PHP and Udpcast to try to put some debugging in to help me resolve this issue.

                            Can you help us in any way?

                            Yours sincerely,

                            I 1 Reply Last reply Apr 29, 2024, 10:59 AM Reply Quote 0
                            • I
                              inconnu @inconnu
                              last edited by Apr 29, 2024, 10:59 AM

                              Hi guys, i install in other two servers and the same error.

                              Sorry for this, but i really need some help :(.

                              Thanks.

                              T 1 Reply Last reply Apr 29, 2024, 11:04 AM Reply Quote 0
                              • T
                                Tom Elliott @inconnu
                                last edited by Apr 29, 2024, 11:04 AM

                                @inconnu From the storage node at 10.1.3.100, with username fogproject and the password associated, you can login, and create files. I see in the FTP code you tested that worked, but where did you get the password you used there?

                                Was that from the /opt/fog/.fogsettings file or the password associated in the UI?

                                I am undersuspicion the password in the DB is incorrect.

                                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

                                I 1 Reply Last reply Apr 29, 2024, 12:47 PM Reply Quote 0
                                • I
                                  inconnu @Tom Elliott
                                  last edited by Apr 29, 2024, 12:47 PM

                                  @Tom-Elliott

                                  ed9d7c3f-9570-442a-99b4-43edb75ac899-image.png

                                  all passwords match those in the configuration file;

                                  a12b150d-b091-49dc-af57-a8ad096d51c1-image.png

                                  Except this one.

                                  I’m soo sorry for multiple messages, but this tool will help us a lot in my environment where I don’t have a Windows server.

                                  T 1 Reply Last reply Apr 29, 2024, 1:01 PM Reply Quote 0
                                  • T
                                    Tom Elliott @inconnu
                                    last edited by Apr 29, 2024, 1:01 PM

                                    @inconnu The StorageNode user/Pass is only used when you have Storage nodes in your environment. (Which we always do as the “Server” as well, but more meant relating to Additional “Storage Nodes” that communicate with a central system (the server).

                                    I don’t think this is the cause of the FTP issues you’re seeing.

                                    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

                                    I 1 Reply Last reply Apr 29, 2024, 1:16 PM Reply Quote 0
                                    • I
                                      inconnu @Tom Elliott
                                      last edited by Apr 29, 2024, 1:16 PM

                                      @Tom-Elliott

                                      So do you have any idea what I can do or how I can try to debug this?

                                      I tried to understand the clone’s source code through the error messages, but I didn’t have much success, if I knew where it is more or less I could try to recompile (if it’s in C) or change PHP to try to find the cause.

                                      I’m kind of at a loss as to what to do.

                                      T 1 Reply Last reply Apr 29, 2024, 1:48 PM Reply Quote 0
                                      • T
                                        Tom Elliott @inconnu
                                        last edited by Apr 29, 2024, 1:48 PM

                                        @inconnu can you provide your fog servers (10.1.3.100) php-fpm/html error logs from immediately after seeing this error?

                                        I know it’s not a fix persay, but knowing if there’s a server error that we can actually read through might help us understand the problem better.

                                        Particularly due to the fact that it gets to the point of capturing the image, it seems likely there’s some code error, but without knowing what the logs actually show (from the php perspective) I can only take WAGs at this point (Wild assumptive guesses).

                                        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

                                        I 1 Reply Last reply Apr 30, 2024, 1:27 PM Reply Quote 0
                                        • I
                                          inconnu @Tom Elliott
                                          last edited by Apr 30, 2024, 1:27 PM

                                          @Tom-Elliott

                                          Hi Tom,

                                          While I was installing the Log tool as dependencies and started the capture process, it worked.

                                          I tested it on 2 different workstations, both of which worked.

                                          I have no idea why, but I’m happy.

                                          As soon as I do this on more machines, I will return to congratulate you for your support and request closure.

                                          Thank you very much.

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

                                          160

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project