Already converted other users
Exactly . Might be a bit overkill in some eyes, but for us not only the trend/ratio is helpful but a statistical certainty as well, when it comes to harder decisions whether to keep support for old devices, Debian versions, DietPi versions or software options, when effort to keep up compatibility raises.
Hi,
the dietpi-survey doesn’t work for me, too.
I receive the message [FAILED] DietPi-Survey | Sending survey data
And when I execute the commands you recommended I receive the following message: curl: (79) Error in the SSH layer
Any ideas?
what version of DietPi you are running?
I am running 7.7.3
could you test following and post the output
> "$G_HW_UUID.txt"
curl --key '' -m 20 -T "$G_HW_UUID.txt" 'sftp://dietpi-survey:upload2dietpi@ssh.dietpi.com/survey/'
sure:
> "$G_HW_UUID.txt"
curl --key '' -m 20 -T "$G_HW_UUID.txt" 'sftp://dietpi-survey:upload2dietpi@ssh.dietpi.com/survey/'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (79) Error in the SSH layer
ok let’s try if we could get some more information out of it
> "$G_HW_UUID.txt"
curl --verbose --key '' -m 20 -T "$G_HW_UUID.txt" 'sftp://dietpi-survey:upload2dietpi@ssh.dietpi.com/survey/'
And here ist the result:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Trying 2a06:1c40:3::142:22...
* Trying 185.101.93.93:22...
* Connected to ssh.dietpi.com (185.101.93.93) port 22 (#0)
* Found host ssh.dietpi.com in /root/.ssh/known_hosts
* Set "ecdsa-sha2-nistp256" as SSH hostkey type
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Closing connection 0
curl: (79) Error in the SSH layer
MichaIng
could you have a look pls.
Can you try:
> "$G_HW_UUID.txt"
curl --verbose --key '' -m 20 -T "$G_HW_UUID.txt" "sftp://dietpi-survey:upload2dietpi@ssh.dietpi.com/survey/$G_HW_UUID.txt"
Using not only a directory path but a target file name as well is what pops up as first solutions for this error message. But its strange since we never did this and never faced an issue like that and I cannot replicate on any system . However, let’s see if that even helps.
Sorry for my late reply. Here is the result:
root@DietPi:~# > "$G_HW_UUID.txt"
curl --verbose --key '' -m 20 -T "$G_HW_UUID.txt" "sftp://dietpi-survey:upload2dietpi@ssh.dietpi.com/survey/$G_HW_UUID.txt"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 185.101.93.93:22...
* Connected to ssh.dietpi.com (185.101.93.93) port 22 (#0)
* Found host ssh.dietpi.com in /root/.ssh/known_hosts
* Set "ecdsa-sha2-nistp256" as SSH hostkey type
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Closing connection 0
curl: (79) Error in the SSH layer
Any news?
I have no idea. Which Debian version do you actually use? Probably reinstalling the underlying SSH library helps:
apt install --reinstall libssh2-1
Sorry, that didn’t help. But thanks again.
Found another relatively new report at the cURL repo itself. Does this work?
cd /tmp
> "$G_HW_UUID.txt"
curl --verbose --append --key '' -m 20 -T "$G_HW_UUID.txt" 'sftp://dietpi-survey:upload2dietpi@ssh.dietpi.com/survey/'
Though it should have been fixed already with the curl version you use. This is v7.74, right?
curl -V
Do you have a second server where you could test SFTP uploads to?
Yes, I use the version 7.74.0.
The other code you posted brings up the same error in the ssh layer.
Unfortunately I do not have another server to test SFTP uploads.
Did we already try to reinstall cURL packages, and to be sure some packages it depends on?
apt install --reinstall curl libcurl4 zlib1g libc6 libssl1.1 libgcrypt20
I tried your suggestion but without success
dietpi-survey
[ OK ] DietPi-Survey | Setting in /boot/dietpi.txt adjusted: SURVEY_OPTED_IN=1
[FAILED] DietPi-Survey | Sending survey data
- Command: curl --key -m 20 -sT 8a921b45-158a-45e2-8644-2b577ea94018.txt sftp://dietpi-survey:upload2dietpi@ssh.dietpi.com/survey/
Here is a more detailed report:
curl --verbose --append --key '' -m 20 -T "8a921b45-158a-45e2-8644-2b577ea94018.txt" 'sftp://dietpi-survey:upload2dietpi@ssh.dietpi.com/survey/'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 2a06:1c40:3::142:22...
* Connected to ssh.dietpi.com (2a06:1c40:3::142) port 22 (#0)
* Found host ssh.dietpi.com in /root/.ssh/known_hosts
* Set "ecdsa-sha2-nistp256" as SSH hostkey type
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Closing connection 0
curl: (79) Error in the SSH layer