Question FTp Application

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by luius, Jun 5, 2018.

  1. hamrawk

    hamrawk Content Creator

    Member
    5
    Oct 18, 2014
    United States
    I have an update for anyone experiencing the "stat '/license-request.dat' : 2 No such file or directory" issue. Try scanning your microSD card from your PC and repairing any errors.

    I've been transferring files manually all day and randomly my PC decides to tell me there's an error with the drive LONG after I started having issues with FTP. I thought, alright sure, scan - repair. Cool. Kept doing normal homebrew stuff. Then it hit me that this rando file everyone keeps talking about was probably the source of the corruption. Even now for all I know it might not have been, but one of the next things I tried was FTPD and it just works out of the blue... So... Maybe an alternative to formatting the entire drive is to just repair the drive.

    I'd love to hear if this works consistently with anyone else experiencing the issue.
     
    Last edited by hamrawk, Jul 4, 2018
  2. phonz

    phonz GBAtemp Regular

    Member
    5
    May 1, 2018
    Canada
    I was just telling my FTP client to goto specific folder instead of root, ie "/switch" to get around this.
    Eventually I just popped the SD back into a PC and deleted the license-request file in Windows 10.
    Glad to hear that Error Scan fixes it as well for those phantom files.
     
    hamrawk likes this.
  3. ichibaka

    ichibaka Advanced Member

    Newcomer
    2
    Jul 4, 2018
    United States
    You can put in an unused ip address from your LAN in the DNS box. So if your router is 192.168.1.1 and your Switch is 192.168.1.3 , you can put 192.168.1.254 as the DNS entry assuming no other devices had already leased the address. Basically you force your Switch to use a nonexisting or nonresponsive gateway to the internet, without any ability to translate long urls to correct ip addresses. The end result is your Switch is stuck inside the LAN without a real entry to the internet, being force to continue knocking on a closed door when it wants to get out.
     
  4. sirAnger

    sirAnger GBAtemp Fan

    Member
    5
    Dec 4, 2002
    United States
    Michigan
    Knocking on a wall with a picture of a door on it.
     
  5. cricket

    cricket GBAtemp Regular

    Member
    5
    Nov 6, 2002
    United States
    I just published a new build of ftpd that contains a fix by WinterMute and Hikari-chin to show the ip address, and a fix by DavidBuchanan314 to work around a send() bug in libnx. You can get it at https://github.com/shahmirn/ftpd/releases

    All I did was fork existing code and merge in the fixes and then compiled it. None of the code is my own.
     
    hippy dave and morrison22 like this.
  6. morrison22

    morrison22 GBAtemp Advanced Fan

    Member
    8
    Nov 26, 2005
    United States
    Curious, does it include the fix that is in this release which fixes the error on large file transfers as well?

    Side note: Is SwitchBrew the main site to keep track of all the latest and greatest homebrew, or is there a more updated site?
     
  7. sj33

    sj33 GBAtemp Psycho!

    Member
    13
    Oct 22, 2013
    Japan
    Unfortunately this doesn’t seem to work on the Switch because it refuses to save a connection if it cannot connect to the internet.

    It’s annoying because I would personally want the ability to use FTP with no ability to connect to the internet.
     
  8. cricket

    cricket GBAtemp Regular

    Member
    5
    Nov 6, 2002
    United States
    I think that release is just a recompile with the latest libnx, so it should, but I'm not 100% certain.

    I did push out a new release that basically disables logging, so it should be much faster.
     
    hippy dave likes this.
  9. morrison22

    morrison22 GBAtemp Advanced Fan

    Member
    8
    Nov 26, 2005
    United States
    I just want to let you know that I have been using this version of FTPd that you compiled since you posted it and it has not crashed once in docked or handheld mode. Great job man. If you happen to update it in the future to help with an increase in transfer speed (I get about 5-8MB sec now) or to display the IP, please let me know. Thank you for your work.
     
  10. Ashura66

    Ashura66 GBAtemp Advanced Maniac

    Member
    7
    Feb 1, 2016
    Portugal
    Under my bed
    So i tried out FTPD and at first everything was looking fine but then the switch threw an error and had to reboot. Is this a common issue?
     
  11. Ashura66
    This message by Ashura66 has been removed from public view by Quantumcat, Oct 25, 2018, Reason: Dupe.
    Jul 27, 2018
  12. sirAnger

    sirAnger GBAtemp Fan

    Member
    5
    Dec 4, 2002
    United States
    Michigan
    That is expected for this homebrew. This app seems to be mostly abandoned. There is a patched version on page 5 you can use (posted by m4xw), but mostly people have been using the sys-ftpd module that's packaged with TomGer's SDFiles.
     
  13. Ashura66

    Ashura66 GBAtemp Advanced Maniac

    Member
    7
    Feb 1, 2016
    Portugal
    Under my bed
    And how does that one work? Is it a homebrew app like FTPD?
     
  14. sirAnger

    sirAnger GBAtemp Fan

    Member
    5
    Dec 4, 2002
    United States
    Michigan
    It's an option in the most recent version of TomGer's files. You will boot with Hekate, then further down in the CFW list, you'll see CFW + FTP. Choose that and the FTP server will be always on in the background waiting for a connection.
     
  15. Ashura66

    Ashura66 GBAtemp Advanced Maniac

    Member
    7
    Feb 1, 2016
    Portugal
    Under my bed
    Ah, interesting, i'l have to have a look
     
  16. bad361

    bad361 GBAtemp Regular

    Member
    4
    Jun 18, 2018
    Russia
    Moscow
    i have a router that is capable of wifi ac on 5hz, and im using it on a daily basis.. but recently i tried connecting to my switch via ftpd and the connection just hangs at "Connection established, waiting for welcome message..." It connects fine when i switch back to wifi type n, but i dont want to change the router configs everytime i want to connect to switch. Cant seem to find the problem.. I use filezilla as my ftp client. Any thoughts?
     
  17. Drejj

    Drejj Advanced Member

    Newcomer
    4
    Dec 31, 2006
    Can anyone port any other FTP program to the Switch? This ftpd build has very slow transfer speeds (sometimes bytes per second).
     
  18. bottmint

    bottmint Advanced Member

    Newcomer
    3
    Oct 28, 2017
    United States
    I tried out your ftpd build, and it's not much faster than the build from m4xw. It did work with a large file transfer, though, so there's that. Got my switch hooked up to a 5ghz ac access point.
     
  19. cricket

    cricket GBAtemp Regular

    Member
    5
    Nov 6, 2002
    United States
    Are you using the v2.2.0-6524da52-switch release, the one that has the console.log removed.
     
  20. bad361

    bad361 GBAtemp Regular

    Member
    4
    Jun 18, 2018
    Russia
    Moscow
    what cfw are you on? how large file exactly? and what sd do u use? i have sandisk 64gb, it doesn't seem to be faulty, i ran some tests and they didn't show any errors.. im on reiNX now but i had this libnx error before when i was on hekate as well... also using 5ghz ac wifi. Every time i try to transfer a large file or multiple files 300+mb i get this error 2345-0021. Tried hard reformatting, didnt work. Im surprised everything works for you since ive seen a lot of ppl have the same problem as me
     
  21. bottmint

    bottmint Advanced Member

    Newcomer
    3
    Oct 28, 2017
    United States
    Yeah, that's the one I tried out.


    I'm using SX OS 1.4 atm. I don't remember how big the file was (larger than 500mb, at least), or what my sd is. Not gonna pull it, cause I don't want to have to reboot, but it's a 64gb card. I haven't had an error using the m4xw or this one.
     
  22. MisterPantsEyes

    MisterPantsEyes GBAtemp Fan

    Member
    5
    Jan 10, 2015
    Germany
    FTPD doesn't work for me. Filezilla always tries to connect and then gets a timeout after 20 seconds. :(
     
Loading...