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

    FTP problems.

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    4
    3.1k
    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
      Joakim Andersen
      last edited by

      Using Fog 0.39

      My config for /fog/commons/config.php has the following storage information.

      [CODE]
      define( “STORAGE_HOST”, “10.1.1.23” );
      define( “STORAGE_FTP_USERNAME”, “fog” );
      define( “STORAGE_FTP_PASSWORD”, “e2d425f4d11583******deb0a6c7517b” );
      define( “STORAGE_DATADIR”, “/images/” );
      define( “STORAGE_DATADIR_UPLOAD”, “/images/dev/” );
      [/CODE]

      When I connect using windows built-in ftp client it works.

      [CODE]ftp> open 10.1.1.23
      Connected to 10.1.1.23.
      220 (vsFTPd 2.2.2)
      User (10.1.1.23:(none)): fog
      331 Please specify the password.
      Password:
      230 Login successful.
      ftp> cd /images
      250 Directory successfully changed.
      ftp> dir
      200 PORT command successful. Consider using PASV.
      150 Here comes the directory listing.
      drwxrwxrwx 2 65534 65534 16384 Jan 12 11:19 DC7900
      -rwxrwxrwx 1 65534 65534 4995237193 Dec 30 13:59 DX2200
      drwxrwxrwx 2 35008 35003 16384 Oct 18 11:24 HPD530NSKE
      -rwxrwxrwx 1 35008 35003 6375525282 Sep 02 06:08 HPDX2450RESIZE
      drwxrwxrwx 2 35008 35003 16384 Oct 18 13:45 HPPRO3015
      drwxrwxrwx 2 65534 65534 16384 Jan 26 13:55 HP_DX2450_1
      drwxrwxrwx 3 35008 35003 16384 Jan 26 15:20 dev
      226 Directory send OK.
      ftp: 469 bytes received in 0,00Seconds 234,50Kbytes/sec.[/CODE]

      But when starting Image upload I get the information “FTP connection to storage server failed!”.
      This happens before it starts pushing the image to the NFS share.

      Is there any log I can access anywhere to see why this problem occurs?

      // Joakim

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

        Did you modify your DHCP settings (ports 66 and 67) on the server?

        "The quieter you become, the more you are able to hear"

        New to FOG? Check the [URL='http://www.fogproject.org/wiki/index.php/FOGUserGuide']Wiki[/…

        1 Reply Last reply Reply Quote 0
        • J
          Joakim Andersen
          last edited by

          I modified Post_Stage2.php to echo all the connection information if the ftp was faulty.
          And found that these settings:

          [PHP]
          define( “STORAGE_HOST”, “10.1.1.23” );
          define( “STORAGE_FTP_USERNAME”, “fog” );
          define( “STORAGE_FTP_PASSWORD”, “e2d425f4d11583******deb0a6c7517b” );
          define( “STORAGE_DATADIR”, “/images/” );
          define( “STORAGE_DATADIR_UPLOAD”, “/images/dev/” );
          [/PHP]

          Has nothing to do whatsoever with storage node FTP access.

          With version 0.32 it seems that they are never used, not what I can tell from the image upload process atleast.

          Its only the storage node ip/host address and the management username and password that is used when connecting to ftp.

          This caused a problem when the SAN/NAS I was using gave different root path depending if you where accessing the share trough NFS or FTP.

          NFS needed /volumes/main/FogImages/ as path to image files.
          and
          FTP only needed / as path.

          And since only one path can be specified in the settings (I guess both ftp and nfs path should be the same on a “normal” scenario) I had to change to another SAN/NAS we had to store the image files that gave the same path to images no matter what protocol.

          So problem is resolved.
          However I have not been able to find where the STORAGE_ variables in the config.php are used. They seem deprecated.

          Best Regards
          Joakim

          1 Reply Last reply Reply Quote 0
          • A
            Alexandre de Moraes
            last edited by

            To FIX this problem, follow the steps:

            access: [url]http://fogserver/fog/management/[/url]
            *** FOG Configuration ***
            *** FOG Settings *** in the menu on the left
            -> Replace the FOG_TFTP_FTP_PASSWORD fields under FOG settings

            Then open the file:
            /var/www/fog/commons/config.php - check the values of: TFTP_FTP_PASSWORD and STORAGE_FTP_PASSWORD
            These MUST match the password you set above, if not write them properly in here
            Finally reload of the service
            /etc/init.d/vsftpd reload

            then will need change the user fog password, by shell: eg.
            fogserver:/# passwd fog
            enter the new password
            re-enter the new password
            done

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

            150

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project