can plz anyone helps me with Connect to QBox Server using the local client, I spend 3 days but unable to do this proper
my previous post was can anyone answer them properly
just read error you will get it , it is saying that your vsftpd.log file does not contain any kind of connection establishment activity with local client or file transfer make sure your vsftpd.log file is capturing those logs when you are connecting with local client
I tried this, but somehow the log file is not able to keep track of the port connection information. How did you resolve this problem?
Make Sure you have followed instructions correctly and you have defined destination of vsftpd.log file into your vsftpd.conf file and still if you are not able to find out then search over forum you will find it out
vsftpd_log_file=/home/crio-user/workspace/vsftpd.log
log_ftp_protocol=YES
this is the path defined in the vsftpd.conf file. Using netstat command, I also checked that the 8081 port is listening. What else is missing?
second one. confirm_client_server_communication.py
ok so make sure your log files contains the logs of when you established connection by local_client or on same server using ftp and file transfer between then if it does not contain that then do it again and make sure your log file is capturing them and then copy and apste it again
Just now I deleted both the folders, ftp_server and ftp_cilent, went through the process again. Now I have successfully transferred both the files, i.e. upload.txt and download.txt.
Also, have a look at the log file readings:
Sat Feb 15 06:50:18 2020 [pid 2] CONNECT: Client β3.6.191.17β
Sat Feb 15 06:50:18 2020 [pid 2] FTP response: Client β3.6.191.17β, β220 (vsFTPd 3.0.3)β
Sat Feb 15 06:50:23 2020 [pid 2] FTP command: Client β3.6.191.17β, βUSER crio-userβ
Sat Feb 15 06:50:23 2020 [pid 2] [crio-user] FTP response: Client β3.6.191.17β, β331 Please specify the password.β
Sat Feb 15 06:50:27 2020 [pid 2] [crio-user] FTP command: Client β3.6.191.17β, "PASS "
Sat Feb 15 06:50:27 2020 [pid 1] [crio-user] OK LOGIN: Client β3.6.191.17β
Sat Feb 15 06:50:27 2020 [pid 3] [crio-user] FTP response: Client β3.6.191.17β, β230 Login successful.β
Sat Feb 15 06:50:27 2020 [pid 3] [crio-user] FTP command: Client β3.6.191.17β, βSYSTβ
Sat Feb 15 06:50:27 2020 [pid 3] [crio-user] FTP response: Client β3.6.191.17β, β215 UNIX Type: L8β
Sat Feb 15 06:50:38 2020 [pid 3] [crio-user] FTP command: Client β3.6.191.17β, βTYPE Iβ
Sat Feb 15 06:50:38 2020 [pid 3] [crio-user] FTP response: Client β3.6.191.17β, β200 Switching to Binary mode.β
Sat Feb 15 06:50:38 2020 [pid 3] [crio-user] FTP command: Client β3.6.191.17β, βPASVβ
Sat Feb 15 06:50:38 2020 [pid 3] [crio-user] FTP response: Client β3.6.191.17β, β227 Entering Passive Mode (192,168,64,202,31,146).β
Sat Feb 15 06:50:38 2020 [pid 3] [crio-user] FTP command: Client β3.6.191.17β, βSTOR upload.txtβ
Sat Feb 15 06:50:38 2020 [pid 3] [crio-user] FTP response: Client β3.6.191.17β, β150 Ok to send data.β
Sat Feb 15 06:50:38 2020 [pid 3] [crio-user] OK UPLOAD: Client β3.6.191.17β, β/home/crio-user/upload.txtβ, 40 bytes, 2.07Kbyte/sec
Sat Feb 15 06:50:38 2020 [pid 3] [crio-user] FTP response: Client β3.6.191.17β, β226 Transfer complete.β
Sat Feb 15 06:50:43 2020 [pid 3] [crio-user] FTP command: Client β3.6.191.17β, βPWDβ
Sat Feb 15 06:50:43 2020 [pid 3] [crio-user] FTP response: Client β3.6.191.17β, β257 β/home/crio-userβ is the current directoryβ
Sat Feb 15 06:51:10 2020 [pid 3] [crio-user] FTP command: Client β3.6.191.17β, βPASVβ
Sat Feb 15 06:51:10 2020 [pid 3] [crio-user] FTP response: Client β3.6.191.17β, β227 Entering Passive Mode (192,168,64,202,31,146).β
Sat Feb 15 06:51:10 2020 [pid 3] [crio-user] FTP command: Client β3.6.191.17β, βSTOR download.txtβ
Sat Feb 15 06:51:10 2020 [pid 3] [crio-user] FTP response: Client β3.6.191.17β, β150 Ok to send data.β
Sat Feb 15 06:51:10 2020 [pid 3] [crio-user] OK UPLOAD: Client β3.6.191.17β, β/home/crio-user/download.txtβ, 40 bytes, 1.78Kbyte/sec
Sat Feb 15 06:51:10 2020 [pid 3] [crio-user] FTP response: Client β3.6.191.17β, β226 Transfer complete.β
Sat Feb 15 06:51:27 2020 [pid 3] [crio-user] FTP command: Client β3.6.191.17β, βPASVβ
Sat Feb 15 06:51:27 2020 [pid 3] [crio-user] FTP response: Client β3.6.191.17β, β227 Entering Passive Mode (192,168,64,202,31,146).β
Sat Feb 15 06:51:27 2020 [pid 3] [crio-user] FTP command: Client β3.6.191.17β, βRETR upload.txtβ
Sat Feb 15 06:51:27 2020 [pid 3] [crio-user] FTP response: Client β3.6.191.17β, β150 Opening BINARY mode data connection for upload.txt (40 bytes).β
Sat Feb 15 06:51:27 2020 [pid 3] [crio-user] OK DOWNLOAD: Client β3.6.191.17β, β/home/crio-user/upload.txtβ, 40 bytes, 1.69Kbyte/sec
Sat Feb 15 06:51:27 2020 [pid 3] [crio-user] FTP response: Client β3.6.191.17β, β226 Transfer complete.β
Sat Feb 15 06:51:48 2020 [pid 3] [crio-user] FTP command: Client β3.6.191.17β, βPASVβ
Sat Feb 15 06:51:48 2020 [pid 3] [crio-user] FTP response: Client β3.6.191.17β, β227 Entering Passive Mode (192,168,64,202,31,146).β
Sat Feb 15 06:51:48 2020 [pid 3] [crio-user] FTP command: Client β3.6.191.17β, βRETR download.txtβ
Sat Feb 15 06:51:48 2020 [pid 3] [crio-user] FTP response: Client β3.6.191.17β, β150 Opening BINARY mode data connection for download.txt (40 bytes).β
Sat Feb 15 06:51:48 2020 [pid 3] [crio-user] OK DOWNLOAD: Client β3.6.191.17β, β/home/crio-user/download.txtβ, 40 bytes, 1.28Kbyte/sec
Sat Feb 15 06:51:48 2020 [pid 3] [crio-user] FTP response: Client β3.6.191.17β, β226 Transfer complete.β
Sat Feb 15 06:51:52 2020 [pid 3] [crio-user] FTP command: Client β3.6.191.17β, βQUITβ
Sat Feb 15 06:51:52 2020 [pid 3] [crio-user] FTP response: Client β3.6.191.17β, β221 Goodbye.β
My conf file contains the right address and the post 8081 is listening.
Look at the following output of netstat command:
crio-user@ayusha04:~/workspace/ftp_client$ netstat -lntp
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:38567 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:8081 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp6 0 0 :::111 :::* LISTEN -
Hey @Ayush_Agarwal you need to know there are three test cases which are looking for these three things
- server listening between local_client and QBox server this will be done using netstat -an command
2 connection between local_client and server and communication is happening between them this will be done by checking logs of vsftpd.log which will be present into the client_server
3 connection between external_client and server and communication is happening between them this will be done by checking logs of vsftpd.log which will be present into the client_server
now make sure you are doing and take care of all of these three things this is the best explanation that i can give you and still if this is not happening make sure then probably you are doing some minor mistake.
I have solved the problem. I solved it by using the 0.0.0.0 ip instead of workspace id. The assessments are done but I still donβt understand that why this change was necessary and what difference it made conceptually.
thanks @Ayush_Agarwal I too facing the same problem , and i totaly agree with you that there no change between this two