wiiu-env / ftpiiu_plugin

GNU General Public License v3.0
63 stars 5 forks source link

I/O Error in curlftpfs (works with ftpiiu from HBL) #62

Open eku opened 1 month ago

eku commented 1 month ago

I have always used curlftps to access the memory of my WiiIU transparently in the file system of my Linux computer. This works wonderfully with the ftpiiu_everwhere started via the HBL in the Tiramisu environment.

$ LANG=c ls /media/ftp/aticatac
sd         storage_mlc          storage_odd_content2  storage_odd_updates  storage_usb
slccmpt01  storage_odd_content  storage_odd_tickets   storage_slc          usb

In Aroma I immediately get an I/O error.

$ LANG=c ls /media/ftp/aticatac
ls: reading directory '/media/ftp/aticatac': Input/output error

What information do you need for the analysis? The recording of the network traffic or a strace from the ls command or logs from the WiiU?

Maschell commented 1 month ago

What happens if you directly try to access the /fs/ of the ftp server?

eku commented 1 month ago
# lftp -c "open 192.168.55.82;ls"
d--------- 0 WiiU WiiU 0 Jan  1 1970 slccmpt01
d--------- 0 WiiU WiiU 0 Jan  1 1970 storage_odd_tickets
d--------- 0 WiiU WiiU 0 Jan  1 1970 storage_odd_updates
d--------- 0 WiiU WiiU 0 Jan  1 1970 storage_odd_content
d--------- 0 WiiU WiiU 0 Jan  1 1970 storage_odd_content2
d--------- 0 WiiU WiiU 0 Jan  1 1970 storage_slc
d--------- 0 WiiU WiiU 0 Jan  1 1970 storage_mlc
d--------- 0 WiiU WiiU 0 Jan  1 1970 storage_usb
d--------- 0 WiiU WiiU 0 Jan  1 1970 fs

# lftp -c "open 192.168.55.82;ls fs/vol"
d--------- 0 WiiU WiiU 0 Jan  1 1970 external01
d--------- 0 WiiU WiiU 0 Jan  1 1970 content
d--------- 0 WiiU WiiU 0 Jan  1 1970 save

BTW it worked before your Rewrite the plugin to be based on ftpd instead of ftpii.

On my 3DS I use ftpd and it works with curlftps except for issue 180.

eku commented 1 month ago

tcpdump from ls /media/ftp/aticatac:

220 Hello!
USER anonymous
230 OK
PWD
257 "/"
PASV
227 Entering Passive Mode (192,168,55,82,10,181).
TYPE A
200 OK
LIST -a
550 No such device
PASV
227 Entering Passive Mode (192,168,55,82,10,182).
LIST -a
550 No such device

which leads to I/O error at shell level.

Before fa4440b the error is the same.

With Tiramisu and ftpiiu_everwhere this looks as following

220 ftpii
USER anonymous
331 User name okay, need password.
PASS ftp@example.com
230 User logged in, proceed.
PWD
257 "/" is current directory.
PASV
227 Entering Passive Mode (192,168,55,82,4,0).
TYPE A
200 Type set to A.
LIST -a
150 Transferring data.
226 Closing data connection, transfer successful.
PASV
227 Entering Passive Mode (192,168,55,82,4,1).
LIST -a
150 Transferring data.
226 Closing data connection, transfer successful.

I hope this is of any help.