Log file contents:
Spider mode enabled. Check if remote file exists.
--2018-07-28 03:14:08-- http://dietpi.com/
Resolving dietpi.com (dietpi.com)... 185.101.93.93
Connecting to dietpi.com (dietpi.com)|185.101.93.93|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://dietpi.com/ [following]
Spider mode enabled. Check if remote file exists.
--2018-07-28 03:14:08-- https://dietpi.com/
Connecting to dietpi.com (dietpi.com)|185.101.93.93|:443... connected.
Unable to establish SSL connection.
@ftokc
Works well here, I guess it was a temporary connection issue.
@Fourdee
Shall we check URL on /DietPi/dietpi/dietpi-survey 1 silently (G_USER_INPUTS=0 G_RUN_CMD_INFO_ONLY=1 G_CHECK_URL dietpi.com && echo yes || echo no works well for this)? Survey should not bother user at all, if not interactively started.
@MichaIng
There is already some info checks after curl command:
curl --connect-timeout 4 --retry 1 --retry-delay 4 -sT "$UPLOAD_FILENAME" sftp://"$SFTP_USER":"$SFTP_PASS"@"$SFTP_ADDR"/survey/
if (( $? )); then
# Silently fail, in case of non-interactive mode
(( ! $INPUT )) && G_DIETPI-NOTIFY 1 'Failed to connect to SFTP server. Please try again later or report this to DietPi forum or GitHub repo in the first place.'
But yeah, I'll add your changes to the script 👍
🈯️
root@DietPi:~# dietpi-survey 1
[FAILED] DietPi-Survey | Connection test: dietpi.comx
[FAILED] DietPi-Survey | Failed to connect to SFTP server. Please try again later or report this to DietPi forum or GitHub repo in the first place.
root@DietPi:~# echo $G_USER_INPUTS
1
I'll mark this as completed, with temp net issue experienced by @ftokc
@ftokc
If problems persist, please reopen this ticket and we'll investigate.
Most helpful comment
@ftokc
Works well here, I guess it was a temporary connection issue.
@Fourdee
Shall we check URL on
/DietPi/dietpi/dietpi-survey 1silently (G_USER_INPUTS=0 G_RUN_CMD_INFO_ONLY=1 G_CHECK_URL dietpi.com && echo yes || echo noworks well for this)? Survey should not bother user at all, if not interactively started.