Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during dd. Return code 1. #59

Open
DarumasLegs opened this issue Nov 2, 2024 · 1 comment
Open

Error during dd. Return code 1. #59

DarumasLegs opened this issue Nov 2, 2024 · 1 comment

Comments

@DarumasLegs
Copy link

I have never been able to get this to work - I always am getting this same error. Does this system even work anymore for ANYONE??????

@maxnet
Copy link
Collaborator

maxnet commented Nov 2, 2024

Need to connect a HDMI display to the board you are trying to provision to see the exact error message.

Could be something wrong with your input file.
Did you try a standard RPI OS image file instead of your own?
E.g. https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-10-28/2024-10-22-raspios-bookworm-arm64-lite.img.xz

Or the server closing the connection because the image download has stalled for too long.
The last can happen if you are using large disk images with a lot of empty space in it, that compresses very well.
The image write script downloads the image from the server, uncompresses it and writes it to storage on the fly, streaming it, without using temporary files.
In the case the image has a lot of empty space, it is taking a very long time to write all those zeroes to eMMC, but it doesn't download anything new from the server during that time, because the part of the compressed .img.gz that has all those zeroes is very small, and was already downloaded and it doesn't need to download the rest yet.
If the server doesn't sees any progress on the download for a minute it will drop the connection.
If that is happening, you can try raising the timeout in the nginx server settings.

E.g.:

  • on the cmprovision server, edit /etc/nginx/sites-available/cmprovision and toss in the "server" section:

send_timeout 600s;

Run "sudo systemctl restart nginx" afterwards.

(Would probably be better if someone would fix that in the cmprovision package)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants