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

    not possible to capture images, database connection error

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    5
    15
    2.7k
    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.
    • P
      pmonstad
      last edited by

      Updated from a month old svn to rc6. Capturing an image fails when database record is to be updated (I guess) after upload is completed. Centos 6 and mysql (no changes have been made since my last svn was up and running.

      1 Reply Last reply Reply Quote 0
      • P
        pmonstad
        last edited by

        I finally figured out what was the problem: The Management password under Storage Management has been changed to some random text string. I never did it. All I did was running av svn update and this password seams to have changed. A bug?

        Wayne WorkmanW 1 Reply Last reply Reply Quote 0
        • george1421G
          george1421 Moderator
          last edited by george1421

          Can you confirm if the fog (linux user) account password is still consistent with what is defined in the FOG management GUI? (I’m guessing here) The error may be misleading in that its not really a database error, but the step before where the FOS engine logs into the FOG server via ftp and moves the image from the /images/dev to /images directory.

          ref: https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_FTP

          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!

          P 1 Reply Last reply Reply Quote 1
          • P
            pmonstad @george1421
            last edited by

            @george1421 I know this has been an issue and I ran passwd fog to reset the password. No effect

            george1421G 1 Reply Last reply Reply Quote 0
            • george1421G
              george1421 Moderator @pmonstad
              last edited by

              @pmonstad I know I’m being a type “A” person this AM, but can you confirm that you can log in from a windows pc to the fog server using FTP and the fog (linux user) account?

              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 1
              • P
                pmonstad
                last edited by

                Deploy works OK

                george1421G 1 Reply Last reply Reply Quote 0
                • george1421G
                  george1421 Moderator @pmonstad
                  last edited by

                  @pmonstad said in not possible to capture images, database connection error:

                  Deploy works OK

                  That still makes me think its an ftp issue. Really if its a database issue I would think the FOG console would have issues or … deploy may work since it only uses kernel parameters.

                  I could see registration fail if there were database user account issues.

                  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 1
                  • Tom ElliottT
                    Tom Elliott
                    last edited by

                    Deploy is not capture, therefore “Deploy works OK” has no relevance to the issue.

                    What’s the apache error logs showing? What’s the capturing system displaying?

                    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
                    • P
                      pmonstad
                      last edited by

                      I did an update today to RC7 and it now works again. Have no idea what caused the database error.

                      Q 1 Reply Last reply Reply Quote 0
                      • Q
                        Quazz Moderator @pmonstad
                        last edited by Quazz

                        @pmonstad Most likely your FOG account had an incorrect password which the installer fixes with the info in /opt/fog/.fogsettings

                        So as people have said, FTP issue.

                        1 Reply Last reply Reply Quote 0
                        • P
                          pmonstad
                          last edited by

                          Hm, back again. Still problem. I have this error in apache error log:
                          [Mon Aug 08 12:35:09 2016] [error] [client 192.168.68.41] PHP Fatal error: Uncaught exception ‘Exception’ with message 'Type: 2, File: /var/www/html/fog/lib/fog/fogftp.class.php, Line: 108, Message: ftp_login(): Login incorrect., H$
                          [Mon Aug 08 12:35:12 2016] [error] [client 192.168.68.41] PHP Warning: ftp_login(): Login incorrect. in /var/www/html/fog/lib/fog/fogftp.class.php on line 108

                          I have set fog user password with command passwd fog and it does not help. This worked last time I did an capture task, some weeks age in then latest svn version. Now I am on RC7 and still a problem. I have not touched the server other than running the update svn procedure. Any suggestion how to solve this?

                          Tom ElliottT Q 2 Replies Last reply Reply Quote 0
                          • Tom ElliottT
                            Tom Elliott @pmonstad
                            last edited by

                            @pmonstad If nothing changed, and suddenly this happens there’s an issue. But as you state: “I have set fog user password with command passwd fog” What are you changing.

                            Seeing as you stated, earlier, this was working, then come back and say it’s not working, what 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

                            1 Reply Last reply Reply Quote 0
                            • Q
                              Quazz Moderator @pmonstad
                              last edited by

                              @pmonstad I recommend going over each step in the Wiki (check George’s post for a link) to troubleshoot FTP credentials.

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

                                I have a hard time understanding what’s wrong @pmonstad.

                                Considering you are stating you’re manually changing the linux user’s password, it seems to me you’re the direct cause of this “bug”. If you updated, and all was working, why did you have to update the user’s password again? How is this a bug FOG is causing? How is this related to deploy taskings? <- (At all)

                                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 1
                                • P
                                  pmonstad
                                  last edited by

                                  I finally figured out what was the problem: The Management password under Storage Management has been changed to some random text string. I never did it. All I did was running av svn update and this password seams to have changed. A bug?

                                  Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                                  • Wayne WorkmanW
                                    Wayne Workman @pmonstad
                                    last edited by

                                    @pmonstad Glad you got the problem solved. I don’t believe it’s a bug. Often times people are bit by browser auto-fill in the storage management area, it’s happened to the best of us, and I think that’s what happened here. I’ve cleaned up and locked this thread - no need to discuss more, the problem is resolved.

                                    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!
                                    Daily Clean Installation Results:
                                    https://fogtesting.fogproject.us/
                                    FOG Reporting:
                                    https://fog-external-reporting-results.fogproject.us/

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

                                    148

                                    Online

                                    12.0k

                                    Users

                                    17.3k

                                    Topics

                                    155.2k

                                    Posts
                                    Copyright © 2012-2024 FOG Project