error purging survey data Topic is solved

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

Re: error purging survey data

Post by manilx »

Joulinar wrote: Thu Apr 29, 2021 11:03 pm hmm I was using dietpi-survey to goggle between OPTED IN/OPTED OUT and it was working without issues. :?

Code: Select all

root@DietPi3:~# dietpi-survey
[  OK  ] DietPi-Survey | Setting in /boot/dietpi.txt adjusted: SURVEY_OPTED_IN=1
[  OK  ] DietPi-Survey | Sending survey data
root@DietPi3:~#
root@DietPi3:~#
root@DietPi3:~# dietpi-survey
[  OK  ] DietPi-Survey | Setting in /boot/dietpi.txt adjusted: SURVEY_OPTED_IN=0
[  OK  ] DietPi-Survey | Purging survey data
root@DietPi3:~#

Code: Select all

root@piHole:~# dietpi-survey
[  OK  ] DietPi-Survey | Setting in /boot/dietpi.txt adjusted: SURVEY_OPTED_IN=0
[FAILED] DietPi-Survey | Purging survey data
 - Command: curl -m 20 -sT 3709cbe9-41b6-436e-b393-d86a27a12a97.txt sftp://dietpi-survey:upload2dietpi@ssh.dietpi.com/survey/
root@piHole:~# dietpi-survey
[  OK  ] DietPi-Survey | Setting in /boot/dietpi.txt adjusted: SURVEY_OPTED_IN=1
[FAILED] DietPi-Survey | Sending survey data
 - Command: curl -m 20 -sT 3709cbe9-41b6-436e-b393-d86a27a12a97.txt sftp://dietpi-survey:upload2dietpi@ssh.dietpi.com/survey/
User avatar
Joulinar
Posts: 4536
Joined: Sat Nov 16, 2019 12:49 am

Re: error purging survey data

Post by Joulinar »

can you check how the certificate look from your side

Code: Select all

openssl s_client -showcerts -connect ssh.dietpi.com:443
It might be a long answer. Just try to copy whole output.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
manilx
Posts: 77
Joined: Mon Dec 07, 2020 11:02 am

Re: error purging survey data

Post by manilx »

Code: Select all

root@piHole:~# openssl s_client -showcerts -connect ssh.dietpi.com:443
CONNECTED(00000003)
depth=2 O = Digital Signature Trust Co., CN = DST Root CA X3
verify return:1
depth=1 C = US, O = Let's Encrypt, CN = R3
verify return:1
depth=0 CN = dietpi.com
verify return:1
---
Certificate chain
 0 s:CN = dietpi.com
   i:C = US, O = Let's Encrypt, CN = R3
-----BEGIN CERTIFICATE-----
MIIErDCCA5SgAwIBAgISBENyYQe4cJno44PcuuzQwALlMA0GCSqGSIb3DQEBCwUA
MDIxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MQswCQYDVQQD
EwJSMzAeFw0yMTAzMTMyMzI1NTBaFw0yMTA2MTEyMzI1NTBaMBUxEzARBgNVBAMT
CmRpZXRwaS5jb20wdjAQBgcqhkjOPQIBBgUrgQQAIgNiAARevH7iBpwoHIGwHTH7
rKJtyvjwADQxI20qcgVKnDVEwKuJMtcor+N9PMB/ei/kkgzT+lH8iTOwF81nbn7H
5MbBKjWbFEWPDErqTC+xlexoXHmkg49CO2AaPy8T5eoR7GCjggKFMIICgTAOBgNV
HQ8BAf8EBAMCB4AwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMAwGA1Ud
EwEB/wQCMAAwHQYDVR0OBBYEFNoGDBDy/CvYisa6ObHInV/oALhBMB8GA1UdIwQY
MBaAFBQusxe3WFbLrlAJQOYfr52LFMLGMFUGCCsGAQUFBwEBBEkwRzAhBggrBgEF
BQcwAYYVaHR0cDovL3IzLm8ubGVuY3Iub3JnMCIGCCsGAQUFBzAChhZodHRwOi8v
cjMuaS5sZW5jci5vcmcvMEMGA1UdEQQ8MDqCCmRpZXRwaS5jb22CC2Z1em9uLmNv
LnVrgg5zc2guZGlldHBpLmNvbYIPd3d3LmZ1em9uLmNvLnVrMBEGCCsGAQUFBwEY
BAUwAwIBBTBMBgNVHSAERTBDMAgGBmeBDAECATA3BgsrBgEEAYLfEwEBATAoMCYG
CCsGAQUFBwIBFhpodHRwOi8vY3BzLmxldHNlbmNyeXB0Lm9yZzCCAQMGCisGAQQB
1nkCBAIEgfQEgfEA7wB1APZclC/RdzAiFFQYCDCUVo7jTRMZM7/fDC8gC8xO8WTj
AAABeC4f+iYAAAQDAEYwRAIgKM8nSzfOaqABaO3a1ssdMmNQw4PYHtbOCv2Q/pbB
M+cCIDOVJk3LV8gWEE01iTvCPdHIwV8YLXe1Jd/aTGGaC6tYAHYAb1N2rDHwMRnY
mQCkURX/dxUcEdkCwQApBo2yCJo32RMAAAF4Lh/8YQAABAMARzBFAiB3J+vUQ/Jy
k7GbBcxSFHukkVeEaj9D2RxMdXuQpfXY7gIhAMcAZtQyyFl1SrUW+wSvFPcjmIHG
1DJ0cfl39mxpRaW7MA0GCSqGSIb3DQEBCwUAA4IBAQBu3dLDywKG7t4JL3mHZLdy
EK22oScmIzitFq7V9+q+b/wPck/djYkE854hMco8mIXGFWYvxNJiarjFd1gynRHa
bNnCGqYvvhYNwl5cw969ANciqgwamYVGG3rzMEMm5EO5X7qatlP3RH0r9BsQlnB3
j3OAD1+xgy9gMLwSzev+poTNFxRRVy5hyH/u8fnVANZi04n6Wkb/hp1Y4XUjl6cQ
OyTFlyOFIqDC5vxWUo5he11abiSx/6NvyaVN5YNH3zvhual4qVpiwGiYqxzOQQDT
+YUJXNID7Ot1LGhfW3V/7Iqgc7XDUBEfpnITff26EByRFXnAC8Ie6XqNUVjtAE4n
-----END CERTIFICATE-----
 1 s:C = US, O = Let's Encrypt, CN = R3
   i:O = Digital Signature Trust Co., CN = DST Root CA X3
-----BEGIN CERTIFICATE-----
MIIEZTCCA02gAwIBAgIQQAF1BIMUpMghjISpDBbN3zANBgkqhkiG9w0BAQsFADA/
MSQwIgYDVQQKExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAMT
DkRTVCBSb290IENBIFgzMB4XDTIwMTAwNzE5MjE0MFoXDTIxMDkyOTE5MjE0MFow
MjELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUxldCdzIEVuY3J5cHQxCzAJBgNVBAMT
AlIzMIIBIjANBgkqhkiG9w0B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EPGOaEOa1eePynBgPayvUfL
qjBstzLhWVQLGAkXXmNs+5ZnPBxzDJOLxhF2JIbeQAcH5H0tZrUlo5ZYyOqA7s9p
O5b85o3AM/OJ+CktFBQtfvBhcJVd9wvlwPsk+uyOy2HI7mNxKKgsBTt375teA2Tw
UdHkhVNcsAKX1H7GNNLOEADksd86wuoXvg==
-----END CERTIFICATE-----
---
Server certificate
subject=CN = dietpi.com

issuer=C = US, O = Let's Encrypt, CN = R3

---
No client certificate CA names sent
Peer signing digest: SHA384
Peer signature type: ECDSA
Server Temp Key: X25519, 253 bits
---
SSL handshake has read 2737 bytes and written 386 bytes
Verification: OK
---
New, TLSv1.3, Cipher is TLS_AES_256_GCM_SHA384
Server public key is 384 bit
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 0 (ok)
---
---
Post-Handshake New Session Ticket arrived:
SSL-Session:
    Protocol  : TLSv1.3
    Cipher    : TLS_AES_256_GCM_SHA384
    Session-ID: B7DC6CAD69A2A4CEB3186AC6F2754EFEB34A7B4451220E2DCBF55BECE1E7B523
    Session-ID-ctx:
    Resumption PSK: 90154615130CAC43106CB55CF26621883094D094FAFE0162F20D4ED2638E6D838A4EF7772970EFC3CCB17DE36784275F
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    TLS session ticket lifetime hint: 300 (seconds)
    TLS session ticket:
    0000 - 55 a6 3e 04 01 b1 68 ec-99 5c 00 5c 9c 60 ff de   U.>...h..\.\.`..
    0010 - b6 ff e3 af 42 0a 5d 21-7d cb 4c 0f cd db cd 3b   ....B.]!}.L....;

    Start Time: 1619733617
    Timeout   : 7200 (sec)
    Verify return code: 0 (ok)
    Extended master secret: no
    Max Early Data: 0
---
read R BLOCK
---
Post-Handshake New Session Ticket arrived:
SSL-Session:
    Protocol  : TLSv1.3
    Cipher    : TLS_AES_256_GCM_SHA384
    Session-ID: AD42105D862F4BB4D598A84523D5B756C8B8A26A1252391C4D5EA5CF7F1AE645
    Session-ID-ctx:
    Resumption PSK: 23EFEC05D4E31AA55EA53CC7AF5123627EB0879377396AC645B5B6887041D55D65EC51BDA46BAD0E18679D35201E7200
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    TLS session ticket lifetime hint: 300 (seconds)
    TLS session ticket:
    0000 - 88 35 a0 3d 3f 37 4c ba-34 2c ab 8c 7f 73 e5 34   .5.=?7L.4,...s.4
    0010 - 95 28 38 f0 1b 51 1e 2b-7f 0e 4e 8e 34 7e 31 f4   .(8..Q.+..N.4~1.

    Start Time: 1619733617
    Timeout   : 7200 (sec)
    Verify return code: 0 (ok)
    Extended master secret: no
    Max Early Data: 0
---
read R BLOCK
User avatar
Joulinar
Posts: 4536
Joined: Sat Nov 16, 2019 12:49 am

Re: error purging survey data

Post by Joulinar »

hmm certificate looks fine

@MichaIng
any ideas?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2924
Joined: Sat Nov 18, 2017 6:21 pm

Re: error purging survey data

Post by MichaIng »

Is the known SSH hosts entry present and correct?

Code: Select all

grep 'ssh\.dietpi\.com' /root/.ssh/known_hosts
manilx
Posts: 77
Joined: Mon Dec 07, 2020 11:02 am

Re: error purging survey data

Post by manilx »

root@piHole:~# grep 'ssh\.dietpi\.com' /root/.ssh/known_hosts
grep: /root/.ssh/known_hosts: No such file or directory

Something is wrong....
manilx
Posts: 77
Joined: Mon Dec 07, 2020 11:02 am

Re: error purging survey data

Post by manilx »

Copied the file from another server and opted in: fixed!
User avatar
MichaIng
Site Admin
Posts: 2924
Joined: Sat Nov 18, 2017 6:21 pm

Re: error purging survey data

Post by MichaIng »

Okay great, and many thanks for opting in btw. Probably other users read my words/question above so that it was not only knocking down open doors :D.

Probably worth to write some https://dietpi.com/blog/ post about it :?.
manilx
Posts: 77
Joined: Mon Dec 07, 2020 11:02 am

Re: error purging survey data

Post by manilx »

I've opted in all my installations now:
1 pie4
2 VM's
1 x86
User avatar
Joulinar
Posts: 4536
Joined: Sat Nov 16, 2019 12:49 am

Re: error purging survey data

Post by Joulinar »

MichaIng wrote: Fri Apr 30, 2021 2:51 pm Probably worth to write some https://dietpi.com/blog/ post about it :?.
and publish it on all social media channels :)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply