error purging survey data Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
manilx
Posts: 143
Joined: Mon Dec 07, 2020 11:02 am

Re: error purging survey data

Post by manilx »

Already converted other users ;)
User avatar
MichaIng
Site Admin
Posts: 3516
Joined: Sat Nov 18, 2017 6:21 pm

Re: error purging survey data

Post by MichaIng »

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

Re: error purging survey data

Post by 0utl4w »

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?

MichaIng wrote: Thu Apr 29, 2021 2:02 pm That should upload an empty file and overwrite any existing data by this. If it fails, no data is purged, but probably none was there anyway.

But I had a look and that data is still on the server, last change on March 12.

Can you run the command manually from console and check the error message:

Code: Select all

# Create an empty file
> 3709cbe9-41b6-436e-b393-d86a27a12a97.txt
# Upload it
curl -m 20 -T 3709cbe9-41b6-436e-b393-d86a27a12a97.txt sftp://dietpi-survey:upload2dietpi@ssh.dietpi.com/survey/
But now, may I ask why you want to opt out?

This data is very valuable for us, as we can see
  • which DietPi versions users use, hence how long we must keep upgrade/migration code
  • which SBCs are used how often and which not at all (we just had such an case, zero users, hence only a waste of time to generate and maintain the related image)
  • which software titles we should prioritise or keep compatible when e.g. upstream changes or abandoned projects make it difficult
  • and of course the the benchmarks are interesting to compare own results against and get a rough idea about the performance of different SBCs.
  • All uploaded data is transparently seen in the script and public here as combined statistics: https://dietpi.com/survey/
We see a downwards trend in percentage of opted in users since the beginning, which decreases the value and statistical certainty of the data. E.g. even that we do not see any reported use of a specific SBC or software, with 86% of users not telling it, there might be still some. Especially the lower numbers might be very different. So I tried here and there do advertise dietpi-survey, but without any effect on the downwards trend. So I'm very interested in what exactly leads to the opt out decision and if we can e.g. change something about how, when or what is uploaded to act against it, e.g. raising users trust.

Best regards :).
User avatar
Joulinar
Posts: 6448
Joined: Sat Nov 16, 2019 12:49 am

Re: error purging survey data

Post by Joulinar »

what version of DietPi you are running?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
0utl4w
Posts: 8
Joined: Mon Oct 18, 2021 11:46 am

Re: error purging survey data

Post by 0utl4w »

I am running 7.7.3
User avatar
Joulinar
Posts: 6448
Joined: Sat Nov 16, 2019 12:49 am

Re: error purging survey data

Post by Joulinar »

could you test following and post the output

Code: Select all

> "$G_HW_UUID.txt"
curl --key '' -m 20 -T "$G_HW_UUID.txt" 'sftp://dietpi-survey:upload2dietpi@ssh.dietpi.com/survey/'
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
0utl4w
Posts: 8
Joined: Mon Oct 18, 2021 11:46 am

Re: error purging survey data

Post by 0utl4w »

sure:

Code: Select all

> "$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
User avatar
Joulinar
Posts: 6448
Joined: Sat Nov 16, 2019 12:49 am

Re: error purging survey data

Post by Joulinar »

ok let's try if we could get some more information out of it

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/'
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
0utl4w
Posts: 8
Joined: Mon Oct 18, 2021 11:46 am

Re: error purging survey data

Post by 0utl4w »

And here ist the result:

Code: Select all

  % 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
User avatar
Joulinar
Posts: 6448
Joined: Sat Nov 16, 2019 12:49 am

Re: error purging survey data

Post by Joulinar »

@MichaIng
could you have a look pls.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply