-
Bug
-
Resolution: Done
-
Critical
-
RH342 - RHEL 7.2 0 20160301
-
None
-
1
-
ILT
-
en-US (English)
URL:
Reporter RHNID:
Section: -
Language: en-US (English)
Workaround: Here's indication that setting net:max-retries to 2 may resolve this issue.
[student@workstation ~]$ lftp servera
lftp servera:~> set net:reconnect-interval-base 5
lftp servera:~> set net:max-retries 2
lftp servera:~> ls
drwxr-xr-x 2 0 0 32 Mar 02 14:49 pub
lftp servera:/> bye
Description: Grading script fails on all checks due to 'set net:max-retries 1' command in lftp session.
[student@workstation ~]$ lab troubleshootingintro solve
Resetting the lab on servera:
- Removing ftp service........................................ SUCCESS
- Performing some magic....................................... SUCCESS
- Removing left over files.................................... SUCCESS
Setting up servera for lab exercise work:
- Install FTP server.......................................... SUCCESS
- Enabling and starting FTP................................... SUCCESS
- Creating files.............................................. SUCCESS
Setting up workstation for lab exercise work:
- Installing lftp............................................. SUCCESS
Overall setup.................................................. SUCCESS
Solving the lab on servera:
- Performing some magic....................................... SUCCESS
- Performing some more magic.................................. SUCCESS
[student@workstation ~]$ lab troubleshootingintro grade
Grading the student's work on servera:
- Attempting to connect to FTP on servera..................... FAIL
Could not connect to FTP on servera - Attempting to read 'pub/noclip' on servera.................. FAIL
Could read pub/noclip - Attempting to read 'pub/noclip' on servera.................. FAIL
Could read pub/getall
Overall lab grade.............................................. FAIL
Here's the manual testing which narrowed the issue down to the net:max-retries parameter in the grading script.
[student@workstation ~]$ grep max-retries /usr/local/lib/lab-troubleshootingintro
if ! lftp -e 'set net:reconnect-interval-base 5; set net:max-retries 1; ls; bye' ${target} &> /dev/null
if ! lftp -e 'set net:reconnect-interval-base 5; set net:max-retries 1; cat pub/noclip; bye' ${target} 2> /dev/null | grep -q idspispopd
if ! lftp -e 'set net:reconnect-interval-base 5; set net:max-retries 1; cat pub/getall; bye' ${target} 2> /dev/null | grep -q idkfa
[student@workstation ~]$ lftp -e 'set net:reconnect-interval-base 5; set net:max-retries 1; ls; bye' servera
ls: Fatal error: max-retries exceeded
[student@workstation ~]$ lftp servera
lftp servera:~> set net:reconnect-interval-base 5
lftp servera:~> set net:max-retries 1
lftp servera:~> ls
ls: Fatal error: max-retries exceeded
lftp servera:~> bye