RPI 2 Model B Rev 1.1 wrong RAM size ? Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
mtheofy
Posts: 10
Joined: Sun May 16, 2021 10:52 am
Location: Athens, Greece

Re: RPI 2 Model B Rev 1.1 wrong RAM size ?

Post by mtheofy »

I get an error that the file is not found

Code: Select all

curl -m 20 -sT ba398bb0-31e3-435a-b4b0-b5a5b2a8b67d.txt sftp://dietpi-survey:upload2dietpi@ssh.dietpi.com/survey/
curl: Can't open 'ba398bb0-31e3-435a-b4b0-b5a5b2a8b67d.txt'!
curl: try 'curl --help' or 'curl --manual' for more information
but if I create a dummy file it succeeds

Code: Select all

# touch ba398bb0-31e3-435a-b4b0-b5a5b2a8b67d.txt
# curl -m 20 -sT ba398bb0-31e3-435a-b4b0-b5a5b2a8b67d.txt sftp://dietpi-survey:upload2dietpi@ssh.dietpi.com/survey/
-- Marcos
User avatar
Joulinar
Posts: 4867
Joined: Sat Nov 16, 2019 12:49 am

Re: RPI 2 Model B Rev 1.1 wrong RAM size ?

Post by Joulinar »

you can try to disable and enable the survey to see if it's working now. Just run dietpi-survey to switch settings
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
mtheofy
Posts: 10
Joined: Sun May 16, 2021 10:52 am
Location: Athens, Greece

Re: RPI 2 Model B Rev 1.1 wrong RAM size ?

Post by mtheofy »

Joulinar wrote: Mon May 17, 2021 11:19 am you can try to disable and enable the survey to see if it's working now. Just run dietpi-survey to switch settings
Here's the output

Code: Select all

# 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 ba398bb0-31e3-435a-b4b0-b5a5b2a8b67d.txt sftp://dietpi-survey:upload2dietpi@ssh.dietpi.com/survey/
# 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 ba398bb0-31e3-435a-b4b0-b5a5b2a8b67d.txt sftp://dietpi-survey:upload2dietpi@ssh.dietpi.com/survey/
-- Marcos
User avatar
Joulinar
Posts: 4867
Joined: Sat Nov 16, 2019 12:49 am

Re: RPI 2 Model B Rev 1.1 wrong RAM size ?

Post by Joulinar »

hmm strange, the file is generated at run time in /tmp/DietPi-Survey and get removed afterwards. In your case it seems the file did not generate

can you open dietpi-survey and select Show. Does it display some data?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
mtheofy
Posts: 10
Joined: Sun May 16, 2021 10:52 am
Location: Athens, Greece

Re: RPI 2 Model B Rev 1.1 wrong RAM size ?

Post by mtheofy »

Yes it does - here's the dump

Code: Select all

┌───────────────────────┤ DietPi-Survey | File viewer ├────────────────────────┐
│                                                                              │
│ #!/bin/bash                                                                  │
│ ((aDIETPI_VERSION[7.1]++))                                                   │
│ ((aGIT_BRANCH[MichaIng/master]++))                                           │
│ ((aDEVICE_NAME[RPi 2 Model B (armv7l)]++))                                   │
│ ((aCPU_ARCH[armv7l]++))                                                      │
│ ((aCPU_COUNT[4]++))                                                          │
│ ((aDISTRO_VERSION[buster]++))                                                │
│ ((aAUTOSTART_OPTION[${aAUTOSTART_NAME[0]:=0}]++))                            │
│ ((aAUTO_SETUP_AUTOMATED[0]++))                                               │
│ ((aNETWORK_INTERFACE[eth0]++))                                               │
│ ((aRASPBIAN[1]++))                                                           │
│ # -------------------------                                                  │
│ # DietPi-Software installs                                                   │
│ # -------------------------                                                  │
│ ((aSOFTWARE[${aSOFTWARE_NAME7_1[0]:=0}]++))                                  │
│ ((aSOFTWARE[${aSOFTWARE_NAME7_1[13]:=13}]++))                                │
│ ((aSOFTWARE[${aSOFTWARE_NAME7_1[15]:=15}]++))                                │
│ ((aSOFTWARE[${aSOFTWARE_NAME7_1[16]:=16}]++))                                │
│ ((aSOFTWARE[${aSOFTWARE_NAME7_1[17]:=17}]++))                                │
│ ((aSOFTWARE[${aSOFTWARE_NAME7_1[20]:=20}]++))                                │
│ ((aSOFTWARE[${aSOFTWARE_NAME7_1[21]:=21}]++))                                │
│ ((aSOFTWARE[${aSOFTWARE_NAME7_1[103]:=103}]++))                              │
│ ((aSOFTWARE[${aSOFTWARE_NAME7_1[105]:=105}]++))                              │
│ ((aSOFTWARE[${aSOFTWARE_NAME7_1[110]:=110}]++))                              │
│ ((aSOFTWARE[${aSOFTWARE_NAME7_1[130]:=130}]++))                              │
│ # -------------------------                                                  │
│ # DietPi-Benchmark                                                           │
│ # -------------------------                                                  │
│ BENCH_VERSION=2                                                              │
│ BENCH_HW_MODEL=2                                                             │
│ BENCH_CPU='Not tested'                                                       │
│ BENCH_ROOTFS_WRITE='13'                                                      │
│ BENCH_ROOTFS_READ='20'                                                       │
│ BENCH_RAM_WRITE='Not tested'                                                 │
│ BENCH_RAM_READ='Not tested'                                                  │
│ BENCH_CUSTOMFS_WRITE='10'                                                    │
│ BENCH_CUSTOMFS_READ='11'                                                     │
│ BENCH_CPU_TEMP_START='Not tested'                                            │
│ BENCH_CPU_TEMP_END='Not tested'                                              │
│ BENCH_NET_LAN_SPEED='Not tested'                                             │
│                                                                              │
│                                    <Ok>                                      │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘
-- Marcos
User avatar
Joulinar
Posts: 4867
Joined: Sat Nov 16, 2019 12:49 am

Re: RPI 2 Model B Rev 1.1 wrong RAM size ?

Post by Joulinar »

Strange

@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: 3041
Joined: Sat Nov 18, 2017 6:21 pm

Re: RPI 2 Model B Rev 1.1 wrong RAM size ?

Post by MichaIng »

Strange, we'd need to add some debug code so that the curl (error) output is shown:

Code: Select all

sed -i 's/G_EXEC_NOHALT=1/G_EXEC_OUTPUT=1/' /boot/dietpi/dietpi-survey
dietpi-survey 1
About GPU memory: I think we decided against setting GPU memory to minimum when headless gets selected as e.g. the RPi camera module or video encoding requires GPU memory as well but does not necessarily require a local screen. E.g. camera can be streamed to a website instead via mjpg-streamer or such.
But maybe we can reset GPU memory to min when the RPi camera module/extended GPU features are not enabled, i.e. the start_x=1 flag in /boot/config.txt :?.
mtheofy
Posts: 10
Joined: Sun May 16, 2021 10:52 am
Location: Athens, Greece

Re: RPI 2 Model B Rev 1.1 wrong RAM size ?

Post by mtheofy »

Replying from a mobile phone. Hope it comes through OK :roll:

Code: Select all

Hardware       | RPi 2 Model B (armv7l) (ID=2)
- Kernel version | Linux pollock 5.10.17-v7+ #1414 SMP Fri Apr 30 13:18:35 BST 2021 armv7l GNU/Linux
- Distro         | buster (ID=5,RASPBIAN=1)
- Command        | curl -m 20 -sT ba398bb0-31e3-435a-b4b0-b5a5b2a8b67d.txt sftp://dietpi-survey:upload2dietpi@ssh.dietpi.com/survey/
- Exit code      | 60
- Software title | DietPi-Survey
About the configuration options and the GPU memory allocation, I would vote in favour of your suggestion.. But, I am very new to the project.
-- Marcos
User avatar
MichaIng
Site Admin
Posts: 3041
Joined: Sat Nov 18, 2017 6:21 pm

Re: RPI 2 Model B Rev 1.1 wrong RAM size ?

Post by MichaIng »

Exit code 60 means "Peer certificate cannot be authenticated with known CA certificates.": https://manpages.debian.org/curl#EXIT_CODES
Probably the SSH host key has been removed. Please try:

Code: Select all

mkdir -p /root/.ssh
>> /root/.ssh/known_hosts
G_CONFIG_INJECT 'ssh.dietpi.com[[:blank:]]' 'ssh.dietpi.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDE6aw3r6aOEqendNu376iiCHr9tGBIWPgfrLkzjXjEsHGyVSUFNnZt6pftrDeK7UX+qX4FxOwQlugG4fymOHbimRCFiv6cf7VpYg1Ednquq9TLb7/cIIbX8a6AuRmX4fjdGuqwmBq3OG7ZksFcYEFKt5U4mAJIaL8hXiM2iXjgY02LqiQY/QWATsHI4ie9ZOnwrQE+Rr6mASN1BVFuIgyHIbwX54jsFSnZ/7CdBMkuAd9B8JkxppWVYpYIFHE9oWNfjh/epdK8yv9Oo6r0w5Rb+4qaAc5g+RAaknHeV6Gp75d2lxBdCm5XknKKbGma2+/DfoE8WZTSgzXrYcRlStYN' /root/.ssh/known_hosts
dietpi-survey 1
mtheofy
Posts: 10
Joined: Sun May 16, 2021 10:52 am
Location: Athens, Greece

Re: RPI 2 Model B Rev 1.1 wrong RAM size ?

Post by mtheofy »

MichaIng wrote: Sun May 23, 2021 7:45 pm Exit code 60 means "Peer certificate cannot be authenticated with known CA certificates.": https://manpages.debian.org/curl#EXIT_CODES
Probably the SSH host key has been removed. Please try:

Code: Select all

mkdir -p /root/.ssh
>> /root/.ssh/known_hosts
G_CONFIG_INJECT 'ssh.dietpi.com[[:blank:]]' 'ssh.dietpi.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDE6aw3r6aOEqendNu376iiCHr9tGBIWPgfrLkzjXjEsHGyVSUFNnZt6pftrDeK7UX+qX4FxOwQlugG4fymOHbimRCFiv6cf7VpYg1Ednquq9TLb7/cIIbX8a6AuRmX4fjdGuqwmBq3OG7ZksFcYEFKt5U4mAJIaL8hXiM2iXjgY02LqiQY/QWATsHI4ie9ZOnwrQE+Rr6mASN1BVFuIgyHIbwX54jsFSnZ/7CdBMkuAd9B8JkxppWVYpYIFHE9oWNfjh/epdK8yv9Oo6r0w5Rb+4qaAc5g+RAaknHeV6Gp75d2lxBdCm5XknKKbGma2+/DfoE8WZTSgzXrYcRlStYN' /root/.ssh/known_hosts
dietpi-survey 1
Bingo! Probably the first thing I did after setting up Dietpi was to revert to sshd and copy known_hosts under ~/.ssh/

Just ran the "G_CONFIG_INJECT... " command and the key is now set.

thanks!
-- Marcos
Post Reply