error 200 running dietpi-update?

DietPi-Update
─────────────────────────────────────────────────────
 Phase: Applying pre-patches

[  OK  ] DietPi-Update | Downloading pre-patch file
[  OK  ] DietPi-Update | Applying execute permission
[ INFO ] Pre-patch 25 | Running DietPi v7 pre-patches
[  OK  ] DietPi-Update | Successfully applied pre-patches

 DietPi-Update
─────────────────────────────────────────────────────
 Phase: Upgrading APT packages

[ INFO ] DietPi-Update | APT update, please wait...
Get:1 http://packages.microsoft.com/repos/code stable InRelease [10.4 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Get:3 https://archive.raspberrypi.org/debian buster InRelease [32.9 kB]
Get:4 http://packages.microsoft.com/repos/code stable/main amd64 Packages [17.8 kB]
Get:5 http://packages.microsoft.com/repos/code stable/main armhf Packages [18.2 kB]
Get:6 http://packages.microsoft.com/repos/code stable/main arm64 Packages [18.4 kB]
Get:7 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]
Get:8 https://archive.raspberrypi.org/debian buster/main armhf Packages [367 kB]
Fetched 13.5 MB in 39s (349 kB/s)
Reading package lists...
[  OK  ] DietPi-Update | APT update
[ INFO ] DietPi-Update | APT upgrade, please wait...
client_loop: send disconnect: I/O error
NaCl plugin exited with status code 255.
(R)econnect, (C)hoose another connection, or E(x)it?
Loading NaCl plugin... done.

I’'ve ran the dietpi-update a couple times, and keeps exiting on me?

[ SUB2 ] DietPi-Update > Upgrading APT packages
[ INFO ] DietPi-Update | APT update, please wait...
Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:2 https://archive.raspberrypi.org/debian buster InRelease
Reading package lists...client_loop: send disconnect: I/O error
NaCl plugin exited with status code 255.
(R)econnect, (C)hoose another connection, or E(x)it?

is another error message.

and another

 DietPi-Update
─────────────────────────────────────────────────────
 Phase: Applying incremental patches

[ INFO ] DietPi-Update | Current version : v6.34.3
[ INFO ] DietPi-Update | Latest version  : v7.0.2
[  OK  ] DietPi-Patch | cd /tmp
[  OK  ] DietPi-Patch | rm -Rf /tmp/DietPi-Update /tmp/DietPi-Patch
[  OK  ] DietPi-Patch | Restarting DietPi-Update with new code...

[ SUB2 ] DietPi-Update > Checking for available DietPi update
[ INFO ] DietPi-Update | Getting repository version: https://raw.githubusercontent.com/MichaIng/DietPi/master/.update/version
[  OK  ] DietPi-Update | Got valid repository version
[  OK  ] DietPi-Update | Update available:
[ INFO ] DietPi-Update | Current version : v6.34.3
[ INFO ] DietPi-Update | Latest version  : v7.0.2
[ SUB2 ] DietPi-Update > Checking for update pre-requirements
[  OK  ] DietPi-Update | DietPi-Userdata validation: /mnt/dietpi_userdata
[  OK  ] DietPi-Update | Free space check: path=/ | available=11478 MiB | required=100 MiB
[ SUB3 ] DietPi-Services > stop 
[  OK  ] DietPi-Services | stop : cron
[  OK  ] DietPi-Services | stop : lighttpd
[  OK  ] DietPi-Services | stop : php7.3-fpm
[ SUB2 ] DietPi-Update > Applying pre-patches
[  OK  ] DietPi-Update | Downloading pre-patches
[  OK  ] DietPi-Update | Applying execute permission
[ INFO ] Pre-patch 25 | Running DietPi v7 pre-patches
[  OK  ] DietPi-Update | Successfully applied pre-patches
[ SUB2 ] DietPi-Update > Upgrading APT packages
[ INFO ] DietPi-Update | APT update, please wait...
Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:2 https://archive.raspberrypi.org/debian buster InRelease
Reading package lists...client_loop: send disconnect: I/O error
NaCl plugin exited with status code 255.
(R)econnect, (C)hoose another connection, or E(x)it?
Loading NaCl plugin... done.
Connecting to root@192.168.0.12...
root@192.168.0.12's password: 
Connection closed by UNKNOWN port -1
NaCl plugin exited with status code 255.
(R)econnect, (C)hoose another connection, or E(x)it?
Loading NaCl plugin... done.[/quote]

error 200 and error 255?

FWIW Im on 6.34.3 and attempting to update to 7.0.2

i just ran it again, and a new one:

Loading NaCl plugin... done.
Connecting to root@192.168.0.12...
root@192.168.0.12's password: 
Linux DietPi 5.10.11+ #1399 Thu Jan 28 12:02:28 GMT 2021 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Mar 18 08:26:40 2021 from 192.168.0.10
 ─────────────────────────────────────────────────────
 DietPi v6.34.3 : Update available
 ─────────────────────────────────────────────────────
 - Device model : RPi Zero (armv6l)
 - CPU temp : 47'C : 116'F (Optimal temperature)
 - LAN IP : 192.168.0.12 (wlan0)
 - MOTD : Enjoy our new DietPi v7.0 <3
 ─────────────────────────────────────────────────────

 DietPi Team     : MichaIng (lead), Daniel Knight (founder), Joulinar (support)
 Image           : DietPi Core Team (pre-image: Raspbian Lite)
 Web             : https://dietpi.com | https://twitter.com/DietPi_
 Patreon Legends : Camry2731
 Donate          : https://dietpi.com/#donate
 DietPi Hosting  : Powered by https://myvirtualserver.com

 dietpi-update   : Run now to update DietPi from v6.34.3 to v7.0.2.

 dietpi-launcher : All the DietPi programs in one place.
 dietpi-config   : Feature rich configuration tool for your device.
 dietpi-software : Select optimized software for installation.
 htop            : Resource monitor.
 cpu             : Shows CPU information and stats.

root@DietPi:~# htop
root@DietPi:~# dietpi-update

 DietPi-Update
─────────────────────────────────────────────────────
 Phase: Checking for available DietPi update

[ INFO ] DietPi-Update | Getting repository version: https://raw.githubusercontent.com/MichaIng/DietPi/master/.update/version
[  OK  ] DietPi-Update | Got valid repository version
[  OK  ] DietPi-Update | Update available:
[ INFO ] DietPi-Update | Current version : v6.34.3
[ INFO ] DietPi-Update | Latest version  : v7.0.2

 DietPi-Update
─────────────────────────────────────────────────────
 Phase: Checking for update pre-requirements

[  OK  ] DietPi-Update | DietPi-Userdata validation: /mnt/dietpi_userdata
[  OK  ] DietPi-Update | Free space check: path=/ | available=11478 MiB | required=100 MiB
[ SUB1 ] DietPi-Services > stop 
[  OK  ] DietPi-Services | stop : cron
[  OK  ] DietPi-Services | stop : lighttpd
[  OK  ] DietPi-Services | stop : php7.3-fpm

 DietPi-Update
─────────────────────────────────────────────────────
 Phase: Applying pre-patches

[  OK  ] DietPi-Update | Downloading pre-patches
[  OK  ] DietPi-Update | Applying execute permission
[ INFO ] Pre-patch 25 | Running DietPi v7 pre-patches
[  OK  ] DietPi-Update | Successfully applied pre-patches

 DietPi-Update
─────────────────────────────────────────────────────
 Phase: Upgrading APT packages

[ INFO ] DietPi-Update | APT update, please wait...
Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:2 https://archive.raspberrypi.org/debian buster InRelease
Reading package lists...
[  OK  ] DietPi-Update | APT update
[ INFO ] DietPi-Update | APT upgrade, please wait...
client_loop: send disconnect: I/O error
NaCl plugin exited with status code 255.

one thing i noticed, is there are a lot less “branches”’ downloading now? So it perhaps “updated” some of them, and just seems stuck now…

[ INFO ] DietPi-Update | APT update, please wait...
Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:2 https://archive.raspberrypi.org/debian buster InRelease

There was like 9 or so of those Hit: lines. that needed updates. so some of the updates did go thru, it’s just down to the last 2? but the remaining 2 look like major updates lol

ok…seems it just needed to be ran in “stages”? cause after the 5 or 6 time running dietpi-update, it finally completed…lol :sunglasses:


solved :stuck_out_tongue:

well the issue was not with dietpi-update. It was more the apt update && apt upgrade which is executed in front of DietPi script update

Looks like in all cases you had a client_loop: send disconnect: I/O error. Maybe this was due to the higher number of packages and the time needed to be download.

Could it be that you SSH client is disconnecting after a specific time frame you are not doing anything? At least if I do a Google search for NaCl plugin exited with status code 255., it’s pointing to SSH issues.

[ INFO ] DietPi-Update | APT update, please wait…
Hit:1 Index of /raspbian buster InRelease
Hit:2 Index of /debian buster InRelease

>

This doesn't indicate an update of packages. It just show that you system is connecting to the RPi apt repository and checking for updates. Nothing else.