Vero 4k WiFi problems

sorry,the config rule is here:

listen=yes
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
ftpd_banner=OSMC FTP Server
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/private/vsftpd.pem

And as last, just to prevent a passive mode issue on the ftp server on 4K:

sudo ftp 127.0.0.1 (and login as user osmc/osmc)
passive
dir
exit

In case of a passive mode bug, this should fail as well using the loopback device in the 4K itself.

@isslayne: I’ve just have had a quick look at the FlashFXP forum FlashFXP Forums - Powered by vBulletin and could easily identfiy threads and bug tickets regarding chinese characters and extreme slow sftp performance.

Do we talk all the time about bugs and issues of this tool? In that case it would have been a really waste of my time.
So, please, try to use a good tool like https://filezilla-project.org/ just to confirm that the issue is not isolated to “FlashFXP”.

I know I’m a bit late coming into this thread but, having read through it twice, I’d just like to make a few points:

  1. The OP originally tried to sftp onto the box using some Windows application called flashFTP. (BTW, I found FlasFXP for Windows and FlashFTP for OSX.) When the sftp failed, OP tried ftp, but this was too slow to be usable.
  2. The OP can SSH to the box, so this strongly suggests that the flashFTP application is either in need of further configuration or, perhaps, of replacement. Sam mentioned WinSCP in passing, but not as a possible replacement for FlashFTP. We know WinSCP generally works. I see that @JimKnopf is now recommending a different FTP client. Good call Jim.
  3. The most sensible route at this point would have been, either to try WinSCP (or something with a proven track record) or, failing that, to see what’s happening with sftp on the system log but nobody mentioned the system log.
  4. Successful debugging should try to focus in on the problem. Installing vsftpd in an effort to sidestep the issue seems to me to have been premature - and just seems to have complicated matters.
1 Like

@JimKnopf @dillthedog I have tried to use WINSCP ,same as flashftp, so the problem is not the ftp tool,still tips Error listing directory ‘/home/osmc’.

Restart from scratch: Let me summarize your issues as far as I understood it

Your’re using a Vero 4K with latest greatest OSMC and have two problems accessing the Vero from your Win 10 PC, only cable and switches but no router and firewalls in between. From your first post one can get:

  1. SFTP, you cannot connect from your PC at all and you get a timeout (on the Vero, this starts a openssh/sftp-server process)

  2. FTP, the first try to get a directory list is succesful but extreme slow, a further try fails with a timeout. (this is handled by the vsftpd service on OSMC)

You have tested this with client software FlashFXP which has open threads and tickets in its forum regarding slow SFTP and Chinese characters and the well-known SW WinSCP on the Win 10, both showing the exact same behaviour.

You have not tested this locally on the Vero 4k itsself like

  1. SFTP:
osmc@osmc-vero:~$ sftp osmc@127.0.0.1
osmc@127.0.0.1's password:
Connected to 127.0.0.1.
sftp> dir
Movies     Music      Pictures   TV Shows 
sftp> exit
  1. FTP:

osmc@osmc-vero:~$ ftp 127.0.0.1
Connected to 127.0.0.1.
220 OSMC FTP Server
Name (127.0.0.1:osmc): osmc
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
drwxr-xr-x 2 1000 1000 4096 Jan 28 06:41 Movies
drwxr-xr-x 2 1000 1000 4096 Jan 28 06:41 Music
drwxr-xr-x 2 1000 1000 4096 Jan 28 06:41 Pictures
drwxr-xr-x 2 1000 1000 4096 Jan 28 06:41 TV Shows
226 Directory send OK.
ftp> exit
221 Goodbye.

  1. There are still no logs provided like suggested in the thread How to submit a useful support request

So, give points 1.-3. a try and look who answers then.

I’ve just tried ftp to Vero4K (app store ftp) with filezilla, and also command-line on my Mac.
Both working perfectly.

(suggest renaming this post :slight_smile: )

I’ve reinstalled osmc and tried ftp by command-line on my mac,also log

“150 comes the directory listing”

this‘s detail log

. 2017-04-06 10:01:26.412 --------------------------------------------------------------------------
. 2017-04-06 10:01:26.412 WinSCP Version 5.9.4 (Build 7333) (OS 10.0.14393 - Windows 10 Pro)
. 2017-04-06 10:01:26.413 Configuration: D:\Program Files (x86)\winscp\WinSCP.ini
. 2017-04-06 10:01:26.414 Log level: Debug 1
. 2017-04-06 10:01:26.414 Local account: ASUS-HTPC\layne
. 2017-04-06 10:01:26.414 Working directory: D:\Program Files (x86)\winscp
. 2017-04-06 10:01:26.414 Process ID: 98588
. 2017-04-06 10:01:26.414 Command-line: “D:\Program Files (x86)\winscp\WinSCP.exe”
. 2017-04-06 10:01:26.414 Time zone: Current: GMT+8 (中国标准时间), No DST
. 2017-04-06 10:01:26.415 Login time: 2017年4月6日 10:01:26
. 2017-04-06 10:01:26.415 --------------------------------------------------------------------------
. 2017-04-06 10:01:26.415 Session name: osmc@192.168.2.123 (Ad-Hoc site)
. 2017-04-06 10:01:26.415 Host name: 192.168.2.123 (Port: 21)
. 2017-04-06 10:01:26.415 User name: osmc (Password: Yes, Key file: No, Passphrase: No)
. 2017-04-06 10:01:26.415 Transfer Protocol: FTP
. 2017-04-06 10:01:26.415 Ping type: Dummy, Ping interval: 30 sec; Timeout: 15 sec
. 2017-04-06 10:01:26.415 Disable Nagle: No
. 2017-04-06 10:01:26.415 Proxy: None
. 2017-04-06 10:01:26.415 Send buffer: 262144
. 2017-04-06 10:01:26.415 UTF: Auto
. 2017-04-06 10:01:26.415 FTPS: None [Client certificate: No]
. 2017-04-06 10:01:26.415 FTP: Passive: Yes [Force IP: Auto]; MLSD: Auto [List all: Auto]; HOST: Auto
. 2017-04-06 10:01:26.415 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2017-04-06 10:01:26.415 Cache directory changes: Yes, Permanent: Yes
. 2017-04-06 10:01:26.415 Recycle bin: Delete to: No, Overwritten to: No, Bin path:
. 2017-04-06 10:01:26.415 Timezone offset: 0h 0m
. 2017-04-06 10:01:26.415 --------------------------------------------------------------------------
. 2017-04-06 10:01:26.427 Session upkeep
. 2017-04-06 10:01:26.857 Connecting to 192.168.2.123 …
. 2017-04-06 10:01:26.857 Connected with 192.168.2.123. Waiting for welcome message…
< 2017-04-06 10:01:26.857 220 OSMC FTP Server

2017-04-06 10:01:26.857 USER osmc
< 2017-04-06 10:01:26.857 331 Please specify the password.
2017-04-06 10:01:26.857 PASS ****
< 2017-04-06 10:01:26.857 230 Login successful.
2017-04-06 10:01:26.857 SYST
< 2017-04-06 10:01:26.857 215 UNIX Type: L8
2017-04-06 10:01:26.857 FEAT
< 2017-04-06 10:01:26.857 211-Features:
< 2017-04-06 10:01:26.857 EPRT
< 2017-04-06 10:01:26.857 EPSV
< 2017-04-06 10:01:26.857 MDTM
< 2017-04-06 10:01:26.857 PASV
< 2017-04-06 10:01:26.857 REST STREAM
< 2017-04-06 10:01:26.857 SIZE
< 2017-04-06 10:01:26.857 TVFS
< 2017-04-06 10:01:26.857 211 End
. 2017-04-06 10:01:26.909 Connected
. 2017-04-06 10:01:26.909 Got reply 1 to the command 1
. 2017-04-06 10:01:26.909 --------------------------------------------------------------------------
. 2017-04-06 10:01:26.909 Using FTP protocol.
. 2017-04-06 10:01:26.910 Doing startup conversation with host.
2017-04-06 10:01:26.962 PWD
< 2017-04-06 10:01:26.973 257 “/home/osmc”
. 2017-04-06 10:01:26.973 Got reply 1 to the command 16
. 2017-04-06 10:01:26.973 Getting current directory name.
. 2017-04-06 10:01:27.113 Retrieving directory listing…
2017-04-06 10:01:27.113 TYPE A
< 2017-04-06 10:01:27.123 200 Switching to ASCII mode.
2017-04-06 10:01:27.123 PASV
< 2017-04-06 10:01:27.133 227 Entering Passive Mode (192,168,2,123,238,148).
2017-04-06 10:01:27.133 LIST -a
. 2017-04-06 10:01:27.134 Connecting to 192.168.2.123:61076 …
< 2017-04-06 10:01:27.153 150 Here comes the directory listing.
. 2017-04-06 10:01:42.404 Timeout detected. (data connection)
. 2017-04-06 10:01:42.404 Could not retrieve directory listing
. 2017-04-06 10:01:42.404 Got reply 1004 to the command 2
. 2017-04-06 10:01:42.404 LIST with -a failed, will try pure LIST
. 2017-04-06 10:01:42.431 Session upkeep
. 2017-04-06 10:01:42.491 Connecting to 192.168.2.123 …
. 2017-04-06 10:01:42.491 Connected with 192.168.2.123. Waiting for welcome message…
< 2017-04-06 10:01:42.491 220 OSMC FTP Server
2017-04-06 10:01:42.491 USER osmc
< 2017-04-06 10:01:42.491 331 Please specify the password.
2017-04-06 10:01:42.491 PASS ****
< 2017-04-06 10:01:42.649 230 Login successful.
2017-04-06 10:01:42.650 SYST
< 2017-04-06 10:01:42.663 215 UNIX Type: L8
2017-04-06 10:01:42.663 FEAT
< 2017-04-06 10:01:42.673 211-Features:
< 2017-04-06 10:01:42.673 EPRT
< 2017-04-06 10:01:42.673 EPSV
< 2017-04-06 10:01:42.673 MDTM
< 2017-04-06 10:01:42.673 PASV
< 2017-04-06 10:01:42.673 REST STREAM
< 2017-04-06 10:01:42.673 SIZE
< 2017-04-06 10:01:42.673 TVFS
< 2017-04-06 10:01:42.673 211 End
. 2017-04-06 10:01:42.703 Connected
. 2017-04-06 10:01:42.703 Got reply 1 to the command 1
. 2017-04-06 10:01:42.705 Doing startup conversation with host.
2017-04-06 10:01:42.761 PWD
< 2017-04-06 10:01:42.773 257 “/home/osmc”
. 2017-04-06 10:01:42.773 Got reply 1 to the command 16
. 2017-04-06 10:01:42.773 Changing directory to “/home/osmc”.
2017-04-06 10:01:42.773 CWD /home/osmc
< 2017-04-06 10:01:42.783 250 Directory successfully changed.
. 2017-04-06 10:01:42.783 Got reply 1 to the command 16
. 2017-04-06 10:01:42.783 Getting current directory name.
2017-04-06 10:01:42.783 PWD
< 2017-04-06 10:01:42.793 257 “/home/osmc”
. 2017-04-06 10:01:42.793 Got reply 1 to the command 16
. 2017-04-06 10:01:42.793 Startup conversation with host finished.
. 2017-04-06 10:01:42.870 Retrieving directory listing…
2017-04-06 10:01:42.870 TYPE A
< 2017-04-06 10:01:42.883 200 Switching to ASCII mode.
2017-04-06 10:01:42.883 PASV
< 2017-04-06 10:01:42.893 227 Entering Passive Mode (192,168,2,123,30,226).
2017-04-06 10:01:42.893 LIST
. 2017-04-06 10:01:42.893 Connecting to 192.168.2.123:7906 …
< 2017-04-06 10:01:42.913 150 Here comes the directory listing.
. 2017-04-06 10:01:57.404 Timeout detected. (data connection)
. 2017-04-06 10:01:57.405 Could not retrieve directory listing
. 2017-04-06 10:01:57.405 Got reply 1004 to the command 2

  • 2017-04-06 10:01:57.535 (EFatal) Lost connection.
  • 2017-04-06 10:01:57.535 Timeout detected. (data connection)
  • 2017-04-06 10:01:57.535 Could not retrieve directory listing
  • 2017-04-06 10:01:57.535 Error listing directory ‘/home/osmc’.
    . 2017-04-06 10:02:02.622 Connecting to 192.168.2.123 …
    . 2017-04-06 10:02:02.622 Connected with 192.168.2.123. Waiting for welcome message…
    < 2017-04-06 10:02:02.622 220 OSMC FTP Server

2017-04-06 10:02:02.622 USER osmc
< 2017-04-06 10:02:02.622 331 Please specify the password.
2017-04-06 10:02:02.622 PASS ****
< 2017-04-06 10:02:02.790 230 Login successful.
2017-04-06 10:02:02.790 SYST
< 2017-04-06 10:02:02.803 215 UNIX Type: L8
2017-04-06 10:02:02.803 FEAT
< 2017-04-06 10:02:02.813 211-Features:
< 2017-04-06 10:02:02.813 EPRT
< 2017-04-06 10:02:02.813 EPSV
< 2017-04-06 10:02:02.813 MDTM
< 2017-04-06 10:02:02.813 PASV
< 2017-04-06 10:02:02.813 REST STREAM
< 2017-04-06 10:02:02.813 SIZE
< 2017-04-06 10:02:02.813 TVFS
< 2017-04-06 10:02:02.813 211 End
. 2017-04-06 10:02:02.813 Session upkeep
. 2017-04-06 10:02:02.834 Connected
. 2017-04-06 10:02:02.834 Got reply 1 to the command 1
. 2017-04-06 10:02:02.836 Doing startup conversation with host.
2017-04-06 10:02:02.900 PWD
< 2017-04-06 10:02:02.914 257 “/home/osmc”
. 2017-04-06 10:02:02.914 Got reply 1 to the command 16
. 2017-04-06 10:02:02.914 Getting current directory name.
. 2017-04-06 10:02:03.064 Retrieving directory listing…
2017-04-06 10:02:03.064 TYPE A
< 2017-04-06 10:02:03.074 200 Switching to ASCII mode.
2017-04-06 10:02:03.074 PASV
< 2017-04-06 10:02:03.084 227 Entering Passive Mode (192,168,2,123,237,178).
2017-04-06 10:02:03.084 LIST
. 2017-04-06 10:02:03.084 Connecting to 192.168.2.123:60850 …
< 2017-04-06 10:02:03.103 150 Here comes the directory listing.
< 2017-04-06 10:02:03.104 226 Directory send OK.
. 2017-04-06 10:02:18.404 Timeout detected. (data connection)
. 2017-04-06 10:02:18.404 Could not retrieve directory listing
. 2017-04-06 10:02:18.404 Got reply 1004 to the command 2

  • 2017-04-06 10:02:18.562 (EFatal) Lost connection.
  • 2017-04-06 10:02:18.562 Timeout detected. (data connection)
  • 2017-04-06 10:02:18.562 Could not retrieve directory listing
  • 2017-04-06 10:02:18.562 Error listing directory ‘/home/osmc’.
    . 2017-04-06 10:02:27.909 Connecting to 192.168.2.123 …
    . 2017-04-06 10:02:27.909 Connected with 192.168.2.123. Waiting for welcome message…
    < 2017-04-06 10:02:27.909 220 OSMC FTP Server

2017-04-06 10:02:27.909 USER osmc
< 2017-04-06 10:02:27.909 331 Please specify the password.
2017-04-06 10:02:27.909 PASS ****
< 2017-04-06 10:02:27.960 230 Login successful.
2017-04-06 10:02:27.960 SYST
< 2017-04-06 10:02:27.974 215 UNIX Type: L8
2017-04-06 10:02:27.974 FEAT
< 2017-04-06 10:02:27.983 211-Features:
< 2017-04-06 10:02:27.984 EPRT
< 2017-04-06 10:02:27.984 EPSV
< 2017-04-06 10:02:27.984 MDTM
< 2017-04-06 10:02:27.984 PASV
< 2017-04-06 10:02:27.984 REST STREAM
< 2017-04-06 10:02:27.984 SIZE
< 2017-04-06 10:02:27.984 TVFS
< 2017-04-06 10:02:27.984 211 End
. 2017-04-06 10:02:27.984 Session upkeep
. 2017-04-06 10:02:28.020 Connected
. 2017-04-06 10:02:28.020 Got reply 1 to the command 1
. 2017-04-06 10:02:28.021 Doing startup conversation with host.
2017-04-06 10:02:28.075 PWD
< 2017-04-06 10:02:28.084 257 “/home/osmc”
. 2017-04-06 10:02:28.084 Got reply 1 to the command 16
. 2017-04-06 10:02:28.084 Getting current directory name.
. 2017-04-06 10:02:28.230 Retrieving directory listing…
2017-04-06 10:02:28.230 TYPE A
< 2017-04-06 10:02:28.244 200 Switching to ASCII mode.
2017-04-06 10:02:28.244 PASV
< 2017-04-06 10:02:28.254 227 Entering Passive Mode (192,168,2,123,250,237).
2017-04-06 10:02:28.254 LIST
. 2017-04-06 10:02:28.254 Connecting to 192.168.2.123:64237 …
< 2017-04-06 10:02:28.274 150 Here comes the directory listing.
. 2017-04-06 10:02:43.406 Timeout detected. (data connection)
. 2017-04-06 10:02:43.407 Could not retrieve directory listing
. 2017-04-06 10:02:43.407 Got reply 1004 to the command 2

  • 2017-04-06 10:02:43.572 (EFatal) Lost connection.
  • 2017-04-06 10:02:43.572 Timeout detected. (data connection)
  • 2017-04-06 10:02:43.572 Could not retrieve directory listing
  • 2017-04-06 10:02:43.572 Error listing directory ‘/home/osmc’.
    . 2017-04-06 10:02:52.800 Connecting to 192.168.2.123 …
    . 2017-04-06 10:02:52.800 Connected with 192.168.2.123. Waiting for welcome message…
    < 2017-04-06 10:02:52.800 220 OSMC FTP Server

2017-04-06 10:02:52.800 USER osmc
< 2017-04-06 10:02:52.800 331 Please specify the password.
2017-04-06 10:02:52.800 PASS ****
< 2017-04-06 10:02:52.911 230 Login successful.
2017-04-06 10:02:52.911 SYST
< 2017-04-06 10:02:52.924 215 UNIX Type: L8
2017-04-06 10:02:52.924 FEAT
< 2017-04-06 10:02:52.934 211-Features:
< 2017-04-06 10:02:52.934 EPRT
< 2017-04-06 10:02:52.934 EPSV
< 2017-04-06 10:02:52.934 MDTM
< 2017-04-06 10:02:52.934 PASV
< 2017-04-06 10:02:52.934 REST STREAM
< 2017-04-06 10:02:52.934 SIZE
< 2017-04-06 10:02:52.934 TVFS
< 2017-04-06 10:02:52.934 211 End
. 2017-04-06 10:02:52.934 Session upkeep
. 2017-04-06 10:02:52.979 Connected
. 2017-04-06 10:02:52.979 Got reply 1 to the command 1
. 2017-04-06 10:02:52.980 Doing startup conversation with host.
2017-04-06 10:02:53.042 PWD
< 2017-04-06 10:02:53.054 257 “/home/osmc”
. 2017-04-06 10:02:53.054 Got reply 1 to the command 16
. 2017-04-06 10:02:53.054 Getting current directory name.
. 2017-04-06 10:02:53.208 Retrieving directory listing…
2017-04-06 10:02:53.208 TYPE A
< 2017-04-06 10:02:53.214 200 Switching to ASCII mode.
2017-04-06 10:02:53.214 PASV
< 2017-04-06 10:02:53.224 227 Entering Passive Mode (192,168,2,123,157,25).
2017-04-06 10:02:53.224 LIST
. 2017-04-06 10:02:53.224 Connecting to 192.168.2.123:40217 …
< 2017-04-06 10:02:53.244 150 Here comes the directory listing.
. 2017-04-06 10:03:08.408 Timeout detected. (data connection)
. 2017-04-06 10:03:08.408 Could not retrieve directory listing
. 2017-04-06 10:03:08.408 Got reply 1004 to the command 2

  • 2017-04-06 10:03:08.565 (EFatal) Lost connection.
  • 2017-04-06 10:03:08.565 Timeout detected. (data connection)
  • 2017-04-06 10:03:08.565 Could not retrieve directory listing
  • 2017-04-06 10:03:08.565 Error listing directory ‘/home/osmc’.

As requested previously, we need logs to get a better understanding of the problem. Please see http://osmc.tv/wiki/general/how-to-submit-a-useful-support-request/

Also, you were asked if you are connected Wired or Wifi, and you didn’t answer.

I’m suspecting that you have a network issue, but without the requested logs and information it will be difficult to help you.

yes,I connected wifi,the system log I will send later,thank you very much

Can you try connecting wired? If it works wired then we will have a better idea of what to do next.

I think you have a network problem (ie tcp/ip not ftp).
It could be either a firewall/port blocker shutting down the connection.
Or else, maybe your wifi connection is dropping.

on the Vero4K, use
dmesg -T, and look for any wifi errors around this time: (10:01:27)
2017-04-06 10:01:27.153 150 Here comes the directory listing.
. 2017-04-06 10:01:42.404 Timeout detected. (data connection)
. 2017-04-06 10:01:42.404 Could not retrieve directory listing

I would also try with wired connection. And continue testing with Mac command-line.
Trying other applications is just making it more difficult to track down the root cause.

Respectfully, I think this thread got off on the wrong foot and is yet to recover.

The OP had some sftp issues, yet could ssh to OSMC. That should have been (and should still be) the starting point for troubleshooting this issue. In the unlikely event that we simply can’t get sftp to work, only then should we even consider moving to vsftp.

OP needs to provide logs. Perhaps because of language issues, they have not yet been provided. @isslayne please try once more to sftp to OSMC and then run grab-logs -A . Please post the link returned by the grab-logs command.

1 Like

@dillthedog @JimKnopf @fzinken @anbodearg @bmillham, now I connect wired, it works well ftp and sftp , but it still don’t work when I connect wifi, this is the log.Thank you very much
http://paste.osmc.io/azatodakec

Well that at least proof it is not a bug or a misconfiguration.
You need to improve your wifi connection. Install wavemon sudo apt-get install wavemon to check the connection quality.
And you can install iperf3 to check connection throughput.

I run “sudo wavemon” command line, show this log

can not get range information: Bad address

what does it mean ?

I haven’t tried wavemon, but here is some info about it.
http://www.raspberrypi-spy.co.uk/2014/10/how-to-use-wavemon-to-monitor-your-wifi-connection/

There is also some info about iwconfig, which will give you a quick
status on the wifi link quality

bad address usually means there is another device on your network with the same IP address.

could you tell me the command that can refresh vero 4k ip?