Assessment Failure Even Though it works locally

Here’s my vsftpd_v1.log and the unit_testing.log. Both local and external upload/download works in workspace.

UNIT TESTING LOG

2020-02-09 11:12:17,306 unitTesting INFO Running command_runner
2020-02-09 11:12:17,365 unitTesting INFO Running setup.sh…
2020-02-09 11:12:26,106 unitTesting INFO Module setup complete!
2020-02-09 11:12:26,125 unitTesting INFO Starting assessment…
2020-02-09 11:12:26,134 unitTesting INFO Assessing confirm_server_listening.py
2020-02-09 11:12:26,386 unitTesting INFO File: confirm_server_listening.py | Status: TEST_STATUS_SUCCESS
2020-02-09 11:12:26,423 unitTesting INFO Assessing confirm_client_server_communication.py
2020-02-09 11:12:26,710 unitTesting INFO Failure: Local Client hasn’t successfully connected to Server

2020-02-09 11:12:26,730 unitTesting INFO File: confirm_client_server_communication.py | Status: TEST_STATUS_FAILURE
2020-02-09 11:12:26,739 unitTesting INFO Assessing confirm_external_client_server_communication.py
2020-02-09 11:12:26,978 unitTesting INFO Failure: External Client hasn’t successfully connected to Server

2020-02-09 11:12:27,010 unitTesting INFO File: confirm_external_client_server_communication.py | Status: TEST_STATUS_FAILURE
2020-02-09 11:12:27,020 unitTesting INFO Assessment finished!
2020-02-09 11:12:27,029 unitTesting INFO Starting cleanup…
2020-02-09 11:12:27,076 unitTesting INFO Running cleanup.sh…

VSFTPD.log
Sun Feb 9 11:05:35 2020 1 127.0.0.1 40 /home/crio-user/workspace/ftp_server/upload.txt b _ i r crio-user ftp 0 * c
Sun Feb 9 11:05:52 2020 1 127.0.0.1 40 /home/crio-user/workspace/ftp_server/download.txt b _ o r crio-user ftp 0 * c
Sun Feb 9 11:06:56 2020 1 103.28.159.150 34441 /home/crio-user/workspace/ftp_server/ionizer.png b _ i r crio-user ftp 0 * c
Sun Feb 9 11:07:28 2020 1 103.28.159.150 34441 /home/crio-user/workspace/ftp_server/ionizer.png b _ o r crio-user ftp 0 * c
Sun Feb 9 11:10:14 2020 61 103.28.159.150 0 /home/crio-user/workspace/ftp_server/Angular.jpg b _ i r crio-user ftp 0 * i

try all the milestones after writing log_ftp_protocol=YES in vsftpd.conf.

Hey @Aryan these are the possible errors which can happen

Sir I am also having the same failure in asssement though I have tried uploads/downloads through externally and locally and also my vsftpd_v1 log file is updated then why my assements is failing ??

Hey It should also able to capture the connection establishment logs between QBox server and local client so you have to restart the server and then initialise connection between local client and server and then track logs they are captured or not you will get it

hey did you solve the problem? getting the same error inspite of log file capturing all the connection and transfer of files

unit testing log

2020-02-10 20:14:53,965 unitTesting INFO Running command_runner
2020-02-10 20:14:54,107 unitTesting INFO Running setup.sh…
2020-02-10 20:14:55,162 unitTesting INFO Module setup complete!
2020-02-10 20:14:55,169 unitTesting INFO Starting assessment…
2020-02-10 20:14:55,171 unitTesting INFO Assessing confirm_server_listening.py
2020-02-10 20:14:55,476 unitTesting INFO Failure: Could not find the entries to confirm that server is listening in file /divyashahi139-ME_QBOX-fca5aa7a-4c41-11ea-9ccf-112d2ddac5b9/divyashahi139-ME_QBOX/client_server/server_connections

2020-02-10 20:14:55,480 unitTesting INFO File: confirm_server_listening.py | Status: TEST_STATUS_FAILURE
2020-02-10 20:14:55,482 unitTesting INFO Assessing confirm_client_server_communication.py
2020-02-10 20:14:55,735 unitTesting INFO Failure: Local Client hasn’t successfully connected to Server

2020-02-10 20:14:55,740 unitTesting INFO File: confirm_client_server_communication.py | Status: TEST_STATUS_FAILURE
2020-02-10 20:14:55,742 unitTesting INFO Assessing confirm_external_client_server_communication.py
2020-02-10 20:14:56,069 unitTesting INFO Failure: External Client hasn’t successfully connected to Server

2020-02-10 20:14:56,076 unitTesting INFO File: confirm_external_client_server_communication.py | Status: TEST_STATUS_FAILURE
2020-02-10 20:14:56,080 unitTesting INFO Assessment finished!
2020-02-10 20:14:56,085 unitTesting INFO Starting cleanup…
2020-02-10 20:14:56,144 unitTesting INFO Running cleanup.sh…

vsftpd.log

Mon Feb 10 15:37:43 2020 [pid 3] [crio-user] FTP response: Client “115.96.117.217”, “227 Entering Passive Mode (192,168,87,204,31,146).”
Mon Feb 10 15:37:43 2020 [pid 3] [crio-user] FTP command: Client “115.96.117.217”, “RETR pic1.PNG”
Mon Feb 10 15:37:43 2020 [pid 3] [crio-user] FTP response: Client “115.96.117.217”, “150 Opening BINARY mode data connection for pic1.PNG (18007 bytes).”
Mon Feb 10 15:37:43 2020 [pid 3] [crio-user] OK DOWNLOAD: Client “115.96.117.217”, “/home/crio-user/workspace/pic1.PNG”, 18007 bytes, 121.80Kbyte/sec
Mon Feb 10 15:37:43 2020 [pid 3] [crio-user] FTP response: Client “115.96.117.217”, “226 Transfer complete.”
Mon Feb 10 15:38:11 2020 [pid 3] [crio-user] FTP command: Client “115.96.117.217”, “PASV”

Mon Feb 10 16:24:06 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, " SIZE??"
Mon Feb 10 16:24:06 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, " TVFS??"
Mon Feb 10 16:24:06 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, " UTF8??"
Mon Feb 10 16:24:06 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “211 End”
Mon Feb 10 16:24:06 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “PWD”
Mon Feb 10 16:24:06 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “257 “/home/crio-user” is the current directory”
Mon Feb 10 16:24:06 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “NOOP”
Mon Feb 10 16:24:06 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “200 NOOP ok.”
Mon Feb 10 16:24:06 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “CWD /home/crio-user”
Mon Feb 10 16:24:06 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “250 Directory successfully changed.”
Mon Feb 10 16:24:06 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “FEAT”
Mon Feb 10 16:24:06 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “211-Features:”
Mon Feb 10 16:24:06 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, " EPRT??"
Mon Feb 10 16:24:06 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, " EPSV??"
Mon Feb 10 16:24:06 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, " MDTM??"
Mon Feb 10 16:24:06 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, " PASV??"
Mon Feb 10 16:24:06 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, " REST STREAM??"
Mon Feb 10 16:24:06 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, " SIZE??"
Mon Feb 10 16:24:06 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, " TVFS??"
Mon Feb 10 16:24:06 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, " UTF8??"
Mon Feb 10 16:24:06 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “211 End”
Mon Feb 10 16:24:06 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “SYST”
Mon Feb 10 16:24:06 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “215 UNIX Type: L8”
Mon Feb 10 16:24:07 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “PASV”

Mon Feb 10 16:25:27 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “150 Here comes the directory listing.”
Mon Feb 10 16:25:27 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “226 Directory send OK.”
Mon Feb 10 16:25:35 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “NOOP”
Mon Feb 10 16:25:35 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “200 NOOP ok.”
Mon Feb 10 16:25:35 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “TYPE I”
Mon Feb 10 16:25:35 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “200 Switching to Binary mode.”
Mon Feb 10 16:25:35 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “CWD /home/crio-user/workspace”
Mon Feb 10 16:25:35 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “250 Directory successfully changed.”
Mon Feb 10 16:25:35 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “PASV”
Mon Feb 10 16:25:35 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “227 Entering Passive Mode (192,168,87,204,31,146).”
Mon Feb 10 16:25:35 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “LIST”
Mon Feb 10 16:25:35 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “150 Here comes the directory listing.”
Mon Feb 10 16:25:35 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “226 Directory send OK.”
Mon Feb 10 16:25:35 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “PASV”
Mon Feb 10 16:25:35 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “227 Entering Passive Mode (192,168,87,204,31,146).”
Mon Feb 10 16:25:35 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “LIST”
Mon Feb 10 16:25:35 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “150 Here comes the directory listing.”
Mon Feb 10 16:25:36 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “226 Directory send OK.”
Mon Feb 10 16:25:36 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “PASV”
Mon Feb 10 16:25:36 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “227 Entering Passive Mode (192,168,87,204,31,147).”
Mon Feb 10 16:25:36 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “STOR GSoC Organisation name.txt”
Mon Feb 10 16:25:36 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “150 Ok to send data.”
Mon Feb 10 16:25:36 2020 [pid 3] [crio-user] OK UPLOAD: Client “203.163.234.143”, “/home/crio-user/workspace/GSoC Organisation name.txt”, 489 bytes, 3.90Kbyte/sec
Mon Feb 10 16:25:36 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “226 Transfer complete.”
Mon Feb 10 16:25:43 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “NOOP”
Mon Feb 10 16:25:43 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “200 NOOP ok.”
Mon Feb 10 16:25:43 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “CWD /home/crio-user/workspace”
Mon Feb 10 16:25:43 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “250 Directory successfully changed.”
Mon Feb 10 16:25:43 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “PASV”
Mon Feb 10 16:25:43 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “227 Entering Passive Mode (192,168,87,204,31,147).”
Mon Feb 10 16:25:44 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “LIST”
Mon Feb 10 16:25:44 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “150 Here comes the directory listing.”
Mon Feb 10 16:25:44 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “226 Directory send OK.”
Mon Feb 10 16:26:06 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “NOOP”
Mon Feb 10 16:26:06 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “200 NOOP ok.”
Mon Feb 10 16:26:06 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “TYPE I”
Mon Feb 10 16:26:06 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “200 Switching to Binary mode.”
Mon Feb 10 16:26:06 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “TYPE I”
Mon Feb 10 16:26:06 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “200 Switching to Binary mode.”
Mon Feb 10 16:26:08 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “NOOP”
Mon Feb 10 16:26:08 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “200 NOOP ok.”
Mon Feb 10 16:26:08 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “CWD /home/crio-user/workspace”
Mon Feb 10 16:26:08 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “250 Directory successfully changed.”
Mon Feb 10 16:26:08 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “PASV”
Mon Feb 10 16:26:08 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “227 Entering Passive Mode (192,168,87,204,31,147).”
Mon Feb 10 16:26:08 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “LIST”
Mon Feb 10 16:26:08 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “150 Here comes the directory listing.”
Mon Feb 10 16:26:08 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “226 Directory send OK.”
Mon Feb 10 16:26:27 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “NOOP”
Mon Feb 10 16:26:27 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “200 NOOP ok.”
Mon Feb 10 16:26:27 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “CWD /home/crio-user”
Mon Feb 10 16:26:27 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “250 Directory successfully changed.”
Mon Feb 10 16:26:27 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “PASV”
Mon Feb 10 16:26:27 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “227 Entering Passive Mode (192,168,87,204,31,147).”
Mon Feb 10 16:26:27 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “LIST”
Mon Feb 10 16:26:27 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “150 Here comes the directory listing.”
Mon Feb 10 16:26:27 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “226 Directory send OK.”
Mon Feb 10 16:26:41 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “NOOP”
Mon Feb 10 16:26:41 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “200 NOOP ok.”
Mon Feb 10 16:26:41 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “CWD /home”
Mon Feb 10 16:26:41 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “250 Directory successfully changed.”
Mon Feb 10 16:26:41 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “PASV”
Mon Feb 10 16:26:41 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “227 Entering Passive Mode (192,168,87,204,31,146).”
Mon Feb 10 16:26:41 2020 [pid 3] [crio-user] FTP command: Client “203.163.234.143”, “LIST”
Mon Feb 10 16:26:41 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “150 Here comes the directory listing.”
Mon Feb 10 16:26:41 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “226 Directory send OK.”
Mon Feb 10 16:31:41 2020 [pid 3] [crio-user] FTP response: Client “203.163.234.143”, “421 Timeout.”

My log file is recording everything above one is edited because of the size than why my cases failed I am into this module for 6 days now, with 14+ hours everyday , accoriding to me it worked every way , than why it failed here @amanagar

Hey @divs30 everything is right just looked into your code-sync repo, are you following instructions correctly and copying your vsftpd.log file at mentioned destination and then commiting follow instructions correctly.

@amanagar in module two we are given two commands
1.mkdir -p ~/workspace/ftp_server
mkdir -p ~/workspace/ftp_client

2.cp ~/workspace/vsftpd.log ~/workspace/divyashahi139-ME_QBOX/client_server/

My question is client_server is diff folder or it is one among ftp_client or ftp_server and and second thing after client_server there should be a file like vsftpd.log
clear it please as I am lagging badly

Hey @divs30 you should understand the difference client_server is the folder which you have got when you pulled that tasks for module 3 when you are submitting your task for assessment crio-server will check in same folder after pushing on origin/master so there is no meaning or relation of ftp_server or ftp_client and please read instructions carefully and follow them.