error purging survey data Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
User avatar
MichaIng
Site Admin
Posts: 3514
Joined: Sat Nov 18, 2017 6:21 pm

Re: error purging survey data

Post by MichaIng »

Can you try:

Code: Select all

> "$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.
0utl4w
Posts: 8
Joined: Mon Oct 18, 2021 11:46 am

Re: error purging survey data

Post by 0utl4w »

Sorry for my late reply. Here is the result:

Code: Select all

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
0utl4w
Posts: 8
Joined: Mon Oct 18, 2021 11:46 am

Re: error purging survey data

Post by 0utl4w »

Any news?
User avatar
MichaIng
Site Admin
Posts: 3514
Joined: Sat Nov 18, 2017 6:21 pm

Re: error purging survey data

Post by MichaIng »

I have no idea. Which Debian version do you actually use? Probably reinstalling the underlying SSH library helps:

Code: Select all

apt install --reinstall libssh2-1
0utl4w
Posts: 8
Joined: Mon Oct 18, 2021 11:46 am

Re: error purging survey data

Post by 0utl4w »

Sorry, that didn't help. But thanks again.
User avatar
MichaIng
Site Admin
Posts: 3514
Joined: Sat Nov 18, 2017 6:21 pm

Re: error purging survey data

Post by MichaIng »

Found another relatively new report at the cURL repo itself. Does this work?

Code: Select all

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?

Code: Select all

curl -V
Do you have a second server where you could test SFTP uploads to?
0utl4w
Posts: 8
Joined: Mon Oct 18, 2021 11:46 am

Re: error purging survey data

Post by 0utl4w »

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.
User avatar
MichaIng
Site Admin
Posts: 3514
Joined: Sat Nov 18, 2017 6:21 pm

Re: error purging survey data

Post by MichaIng »

Did we already try to reinstall cURL packages, and to be sure some packages it depends on?

Code: Select all

apt install --reinstall curl libcurl4 zlib1g libc6 libssl1.1 libgcrypt20
Post Reply