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

    Fogftp login failed

    FOG Problems
    6
    36
    26369
    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
      pimms last edited by

      Hi guys,

      I’m creating a new thread because I can’t upload an image to my FOG Server. This time I have this error :
      Error: ftp_login failed. Error ftp_login(): Please specify the password. FOGFTP: Login Failed.

      Is there a file in which I have to put the ftp password for FOG ?

      Thank you!

      1 Reply Last reply Reply Quote 0
      • Wayne Workman
        Wayne Workman @Sebastian Roth last edited by Wayne Workman

        @Sebastian-Roth I’m in the habit now of looking at what is stored in the DB for the nfsGroupMembers table. His credentials stored there worked for connecting to the fog server via FTP. 😕

        I also checked firewall and SELinux. Both were disabled.

        Only thing I could see that was different and unusual was PHP 7.

        That said - I don’t disagree with a packet capture.

        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 0
        • S
          Sebastian Roth Moderator last edited by

          This is really strange! Can we get a tcpdump/wireshark packet dump of the FTP connection when the errors show up after upload?? Just to make sure FOG is sending the correct user/password to the FTP daemon.
          @kortnor The easiest to get a good packet dump of this is probably using tcpdump on the FOG server. Install tcpdump package (yum, dnf, apt-get, aptitude, …) and let your client do the upload. Prepare everything and as soon as you get the first ftp_login message on screen fire up tcpdump -i eth0 -w ftp_issue.pcap host 10.10.0.x (where 10.10.0.x must be your client’s IP address!). After you have seen the error messages for five times you can stop tcpdump (Ctrl+c). Please upload the PCAP file here in the forum!

          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

          Wayne Workman 1 Reply Last reply Reply Quote 1
          • Wayne Workman
            Wayne Workman @Tom Elliott last edited by

            @Tom-Elliott I remoted in and was able to confirm all his FTP settings, and verify it worked.

            Then I found out he has PHP 7 installed. I recommended updating to trunk, and explained the pros/cons of it. He’s going to give it a go.

            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 0
            • Tom Elliott
              Tom Elliott @kortnor last edited by

              @kortnor The only other place you would need to change the password is on the actual fog server.

              You have to do this to the local user. It’d be better to do:

              echo -e "password\npassword\n" | sudo passwd fog (or very similar)

              I’d usually just do:
              sudo passwd fog

              and manually type the password. I don’t know that chpasswd will fix that because isn’t chpasswd for domains?

              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

              Wayne Workman 1 Reply Last reply Reply Quote 1
              • K
                kortnor @Sebastian Roth last edited by

                @Sebastian-Roth
                first, thank you Sebastian for your time
                I’ve completly alligned the password everywere I guess related to the fog user.
                However I still have the same issue at the end. Can somebody tell me if I’ve missed a paramater? also, I can from a distant client make a ftp connection and connect the the fog server and put get and co ( epxlained in reply earlier in this topic)
                I’m kind of lost

                OS layer
                [root@localhost ~]# echo “fog:password” | chpasswd

                user management
                0_1457985117837_usermanagement.jpg
                tftp server
                0_1457985138980_tftp.jpg
                storage management
                0_1457985155350_storagemngt.jpg

                error from client VM
                0_1457985209733_centoserror.jpg

                Tom Elliott 1 Reply Last reply Reply Quote 0
                • K
                  kortnor @Sebastian Roth last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator last edited by Sebastian Roth

                    @kortnor Any tricky special characters in your password? Tom has done a lot to handle all sorts of characters correctly but you never know…?!?

                    You are saying that you use FOG 1.2.0 - is this the version number you see in the blue cloud on the web interface? If you really use 1.2.0 I am totally lost with this. Hundreds of people are using FOG 1.2.0 and the image moving via FTP should definitely work - if password/user is correct. I am wondering what else we can do to help you find out what the issue is. Maybe you set a really easy password just for testing and give it a try.

                    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

                    K 2 Replies Last reply Reply Quote 0
                    • K
                      kortnor @Sebastian Roth last edited by

                      @Sebastian-Roth
                      I’ve copy the /image/<mac> to /images/<images in image management >
                      It appears it does something really quick on the client side, then delete the task in the task management. but he hasn’t upload the images ( in /image/ )

                      also, I’ve checked the user within the gof ui and they are correct. I also added some space in front of the pwd and it refkect directy on the client side ( on the error shown on the screen) So i don’t think its on the ui that there is a problem

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

                        SELinux is another thing to check, as well. And as Sebastian and Quazz mentioned, many people get bitten by their browser’s Auto-Fill functionality.

                        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 0
                        • Q
                          Quazz Moderator @Sebastian Roth last edited by

                          @Sebastian-Roth It’s likely caused by the autofill feature of certain browsers, would it be possible to add that to the wiki so people are aware that every time they make changes to the storage nodes that they have to enter their actual password?

                          1 Reply Last reply Reply Quote 1
                          • S
                            Sebastian Roth Moderator last edited by Sebastian Roth

                            @kortnor The image currently uploaded is put in /images/dev/<mac-address> and will be moved to /images/<img-name> at the end of the upload process (probably where you see the FTP login error). You can move the directory by hand if you like (mv /images/dev/<mac-address> /images/<img-name>) but you’d still want to find out what’s wrong with the FTP settings! Please check that username and password of the FTP user (you were able to successfully login via FTP as we see) match the storage management password and username fog and the tftp password under the web ui in fog settings! As you see in the old post there where whitespaces cause trouble. Please double check all the settings!

                            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

                            Q K 2 Replies Last reply Reply Quote 2
                            • K
                              kortnor @Wayne Workman last edited by kortnor

                              @Wayne-Workman
                              Hello wayne,

                              I’ve been able to make a remote connection with ftp hereunder the extraction of the information

                              [root@pla pla]# ftp
                              ftp> open 10.10.0.15
                              Connected to 10.10.0.15 (10.10.0.15).
                              220 (vsFTPd 3.0.2)
                              Name (10.10.0.15:root): fog
                              331 Please specify the password.
                              Password:
                              230 Login successful.
                              Remote system type is UNIX.
                              Using binary mode to transfer files.
                              ftp> cd /images
                              250 Directory successfully changed.
                              ftp> ls
                              227 Entering Passive Mode (10,10,0,15,119,3).
                              150 Here comes the directory listing.
                              drwxrwxrwx    3 1001     0              41 Mar 13 16:45 dev
                              -rw-r--r--    1 1001     1001         2629 Mar 13 20:24 file.pcap
                              drwxrwxrwx    2 1001     0              29 Mar 13 12:59 postdownloadscripts
                              226 Directory send OK.
                              ftp> cd dev
                              250 Directory successfully changed.
                              ftp> ls
                              227 Entering Passive Mode (10,10,0,15,139,245).
                              150 Here comes the directory listing.
                              drwxrwxrwx    2 1001     0              87 Mar 13 17:06 288023fd45ae
                              226 Directory send OK.
                              ftp> cd 288023fd45ae
                              250 Directory successfully changed.
                              ftp> ls
                              227 Entering Passive Mode (10,10,0,15,207,231).
                              150 Here comes the directory listing.
                              -rwxrwxrwx    1 1001     0               0 Mar 13 18:42 d1.has_grub
                              -rwxrwxrwx    1 1001     0         1048576 Mar 13 18:42 d1.mbr
                              -rwxrwxrwx    1 1001     0             313 Mar 13 18:42 d1.partitions
                              -rwxrwxrwx    1 1001     0        2027153647 Mar 13 18:54 d1p1.img
                              -rwxrwxrwx    1 1001     0             136 Mar 13 18:54 d1p2.img
                              226 Directory send OK.
                              
                              

                              I can see that the image has been created ( at least I think so based on the code here above)

                              When try to download the stored images within dev/288023fd45ae the vm retrive the related error

                              0_1457940537654_extract.png

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

                                @kortnor Can you try to manually FTP into the fog server from a remote computer using the credentials you have inside storage management? What happens?

                                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/

                                K 1 Reply Last reply Reply Quote 0
                                • K
                                  kortnor last edited by kortnor

                                  Its quite an old topic but I’m actually facing the same issue and i’ve tried to play with the space on the password but does nothing

                                  error type:
                                  fogFTP: login failed. host:xx.xx.xx.15, Username: fog, passwrd: mypwd, Error: ftp_login(): Please specify the password

                                  The password has been change on the storage management, its the same in the tftp side aswell ( in fog setting)
                                  I’ve also alligned this password with passwd fog

                                  I’m on fog.1.2 on centos7

                                  it happens really at the end on the client side.

                                  For you info I can acces ftp trhough a distant client with the fog credential also

                                  the /images folder is on 777 recursive
                                  slinux is fully disabled

                                  Wayne Workman 1 Reply Last reply Reply Quote 0
                                  • P
                                    pimms last edited by

                                    All my problems are solved, thank you for everything guys 🙂 thank you Uncle Frank 😄

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

                                      This post is deleted!
                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        Sebastian Roth Moderator last edited by

                                        When you see the boot menu there is no task for this host…

                                        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
                                          pimms last edited by

                                          Well everything worked for a while (upload and deployment) but now I’m unable to upload and deploy.

                                          I register the client (quick registration).
                                          Create an image
                                          Associate a client to an image
                                          Create the task and reboot

                                          And the upload does not start (attached a screenshot of what I see).

                                          [url=“/_imported_xf_attachments/1/1734_FullSizeRender(5).jpg?:”]FullSizeRender(5).jpg[/url]

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

                                            Thank you Uncle Frank 🙂

                                            I killed vsftpd and now I only have one instance.

                                            Very weird for the spaces after “mypassword”. Effectively I did a tcpdump and I saw that there are 2 spaces after the password. FOG adds spaces, why ? :eek: I’m sure that there are no spaces in the Web GUI. I changed the fog user password (adding spaces) on the server and it worked!

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

                                            211
                                            Online

                                            10.4k
                                            Users

                                            16.4k
                                            Topics

                                            150.6k
                                            Posts

                                            Copyright © 2012-2023 FOG Project