Ankündigung

Einklappen
Keine Ankündigung bisher.

- √ - FTP connection

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    HS/FS - √ - FTP connection

    Hi,

    I'm unable to transfer a file via FTP.
    So far, in Projekt/FTP, I've setup a FTP server.
    This seems OK as I can connect to the server from a browser.

    As an exercise, I'm trying to transfer the debug page, but I'm unsure about the options to select.
    In the Visu, I've setup a button, with Befehle "Debug per FTP ablegen"

    My mistake is probably in the path/filename, but don't know how to write it.

    Thank you for your help
    Angehängte Dateien

    #2
    Please try "/debug.html"
    Gruß Matthias
    EIB übersetzt meine Frau mit "Ehepaar Ist Beschäftigt"
    - PN nur für PERSÖNLICHES!

    Kommentar


      #3
      Hi Matthias,
      Zitat von MatthiasS Beitrag anzeigen
      Please try "/debug.html"
      I've already tryed several alternatives, included "/debug.html". No go
      Most of the time, my problems stem from the fact that I don't understand the implications of the options, i.e.
      Pfad
      Pfad/Dateiname
      Is it supposed to work to export the debug on a FTP server ?
      Maybe there is another setting about FTP ?

      Kommentar


        #4
        Still no joy with the FTP.

        By looking at the log file of the FTP server (NAS QNAP) I see several instances of "Login Failed"

        I'm pretty sure that the username and password are correct ( a test with a browser works fine).
        I unchecked the box "Passiv modus" and now the login works, but still no file transfer.

        The "Pfad/Dateiname" is that the source or the destination ?

        Thanks


        PS: I thought "Passiv modus" was for file transfer, not for login ?!?

        Kommentar


          #5
          Zitat von Warichet Beitrag anzeigen
          PS: I thought "Passiv modus" was for file transfer, not for login ?!?
          Yes, generally that's correct for FTP. The two modes "Port mode" and "Passive mode" only relate to the data connections. Each data transfer is handled by a separate data connection where in normal stream type connections the data transferred between TCP-open and TCP-close makes up the datafile. In passive mode the data connection is opened from the ftp client to the ftp server which answeres the destination port on the PASV command from the client. In port mode the ftp client announces the port to the ftp server which then opens the data connection back to the ftp client from source port 20.
          So while for login only the control connection on server port 21 is relevant, even a listing of the filesystem needs a data connection. On the other hand I have seen problems on control connections where the banner is multiple lines which may be in conflict with ancient firewall software. Or EOL is not exactly handled like the standard implies. There may be other strange problems.

          Regards, Othmar
          EIB/KNX, VISU mit knxd + linknx + knxweb, Steuerbefehle via SMS und Email mit postfix + procmail

          Kommentar


            #6
            Hi Othmar,
            Zitat von Tru Beitrag anzeigen
            Yes, generally that's correct for FTP. The two modes "Port mode" and "Passive mode" only relate to the data connections.
            Thank you for this detailed explanation, much appreciated
            I thought setting up a FTP connection was trivial

            Now that I see in the server log, that the ftp login is accepted, there must be something wrong in my definitions on the HS.

            Any idea ?

            Someone has a NAS QNAP and a FTP connection to the HS ?

            Kommentar


              #7
              Hi Warichet,

              Now that I see in the server log, that the ftp login is accepted, there must be something wrong in my definitions on the HS.

              Any idea ?
              Yes, I have also HS and QNAP.

              If login is correct. The next step to check would be: the correct path (directories should exists) and access right of the ftp user to write to the QNAP.

              If the path is wrong this leads to an error.

              If the the ftp user has no write access leads also to an error.

              Best Regards

              Tbi

              Kommentar


                #8
                Hi Tbi,

                Zitat von tbi Beitrag anzeigen
                Yes, I have also HS and QNAP.
                We are 2 to be alone

                Zitat von tbi Beitrag anzeigen
                The next step to check would be: the correct path (directories should exists)
                Yes, I suspect this to be wrong. I tried several combinations with and without leading "\" but I don't know where the root of FTP starts.
                Do you have a working example, please ?

                Zitat von tbi Beitrag anzeigen
                and access right of the ftp user to write to the QNAP.
                I didn't create a specific FTP user, as I'm alone, I'm using admin all over. I hope this is OK ?
                When using IE8, with the syntax ftp://<NAS IP> username password, it works fine.

                Thank you for your help.

                Kommentar


                  #9
                  Hi,

                  it seems it needs an absolute path like /Homeserver/Debug/debug.html

                  This is the path on the QNAP.

                  At QNAP / is root and then a direktory "Homeserver" exists.

                  BR

                  Tobias

                  Kommentar


                    #10
                    Hi Tobias,

                    ... and 36 reboots later, I read your reply, with the same conclusion
                    Zitat von tbi Beitrag anzeigen
                    it seems it needs an absolute path like /Homeserver/Debug/debug.html
                    On the QNAP, I had already a directory Ftp, and thought that was the root
                    I've created /Ftp/HS and then I could save my debug.html
                    I wonder why my first test "/debug.html" didn't work, probably it's not allowed to write in the root.

                    BTW, this thing is case sensitive

                    Thank you

                    Kommentar


                      #11
                      Fine!

                      I remember a sentence from university:

                      ... and the rest is very simple, you can only make mistakes.

                      But they happens

                      And, yes QNAP is Linux and this is case sensitive, sure.

                      BR

                      Tbi

                      Kommentar


                        #12
                        Zitat von tbi Beitrag anzeigen
                        And, yes QNAP is Linux and this is case sensitive, sure.
                        btw, any idea about which distribution it is ?

                        I installed eibd on it and want to read more about the available commands.

                        Thanks again

                        Kommentar

                        Lädt...
                        X