Connect to QBox Server using the local client


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

1 Like

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?

in which test case you are getting build failure

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

  1. 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