Installing artifact - Unexpected EOF

134 views
Skip to first unread message

Sebastian Bauhaus

unread,
Aug 21, 2018, 9:23:03 AM8/21/18
to Mender List mender.io
Hello!

I am new to Mender and currently trying to deploy artifacts to a Raspberry Pi 3 device.
The full size of storage is set to approx. 25 GB resulting in 12 GB per partition.
The compressed artifact size is 50 MB. When I try to deploy the update, I can see that the activity-LED on the raspberry pi is lid for about 3h. The syslog of the raspberry:

Aug 21 12:21:58 raspberrypi3 mender[169]: level=info msg="State transition: check-wait [Idle] -> update-check [Sync]" module=mender  
Aug 21 12:21:58 raspberrypi3 mender[169]: level=info msg="Correct request for getting image from: https://s3.xxx.de:9000/xxx [name: 0x205050; devices: [raspberrypi3]]" module="client_update"  
Aug 21 12:21:58 raspberrypi3 mender[169]: level=info msg="State transition: update-check [Sync] -> update-fetch [Download]" module=mender  
Aug 21 12:22:00 raspberrypi3 mender[169]: level=info msg="State transition: update-fetch [Download] -> update-store [Download]" module=mender  
Aug 21 12:22:00 raspberrypi3 mender[169]: level=info msg="opening device /dev/mmcblk0p3 for writing" module="block_device"  
Aug 21 12:22:00 raspberrypi3 mender[169]: level=info msg="partition /dev/mmcblk0p3 size: 13006536704" module="block_device"  
Aug 21 12:30:06 raspberrypi3 mender[169]: level=error msg="Download connection broken: unexpected EOF" module="update_resumer"  
Aug 21 12:30:06 raspberrypi3 mender[169]: level=info msg="Resuming download in 1m0s" module="update_resumer"  
Aug 21 12:31:06 raspberrypi3 mender[169]: level=info msg="Attempting to resume artifact download from offset 39386666" module="update_resumer"  
Aug 21 12:37:33 raspberrypi3 mender[169]: level=error msg="Download connection broken: unexpected EOF" module="update_resumer"  
Aug 21 12:37:33 raspberrypi3 mender[169]: level=info msg="Resuming download in 1m0s" module="update_resumer"  
Aug 21 12:38:33 raspberrypi3 mender[169]: level=info msg="Attempting to resume artifact download from offset 40254486" module="update_resumer"  
Aug 21 12:41:27 raspberrypi3 mender[169]: level=error msg="Download connection broken: read tcp 192.168.105.231:48692->xxx:9000: read: connection reset by peer" module="update_resumer"  
Aug 21 12:41:27 raspberrypi3 mender[169]: level=info msg="Resuming download in 1m0s" module="update_resumer"  
Aug 21 12:42:27 raspberrypi3 mender[169]: level=info msg="Attempting to resume artifact download from offset 40630786" module="update_resumer"  
Aug 21 12:47:26 raspberrypi3 mender[169]: level=error msg="Download connection broken: unexpected EOF" module="update_resumer"  
Aug 21 12:47:26 raspberrypi3 mender[169]: level=info msg="Resuming download in 2m0s" module="update_resumer"  
Aug 21 12:49:26 raspberrypi3 mender[169]: level=info msg="Attempting to resume artifact download from offset 41301998" module="update_resumer"  
Aug 21 12:54:25 raspberrypi3 mender[169]: level=error msg="Download connection broken: unexpected EOF" module="update_resumer"  
Aug 21 12:54:25 raspberrypi3 mender[169]: level=info msg="Resuming download in 2m0s" module="update_resumer"  
Aug 21 12:56:25 raspberrypi3 mender[169]: level=info msg="Attempting to resume artifact download from offset 41973211" module="update_resumer"  
Aug 21 13:01:27 raspberrypi3 mender[169]: level=error msg="Download connection broken: unexpected EOF" module="update_resumer"  
Aug 21 13:01:28 raspberrypi3 mender[169]: level=info msg="Resuming download in 2m0s" module="update_resumer"  
Aug 21 13:03:28 raspberrypi3 mender[169]: level=info msg="Attempting to resume artifact download from offset 42644424" module="update_resumer"  
Aug 21 13:08:59 raspberrypi3 mender[169]: level=error msg="Download connection broken: unexpected EOF" module="update_resumer"  
Aug 21 13:08:59 raspberrypi3 mender[169]: level=info msg="Resuming download in 4m0s" module="update_resumer" 

I cannot tell if this update is going to end after a few more hours - is this normal behaviour? Do I need to decrease the size of space in the partition? 

Thank you
Sebastian

Vladimir Bashkirtsev

unread,
Aug 21, 2018, 9:31:08 AM8/21/18
to men...@lists.mender.io
1. You don't need to have 12GB partitions if your artifact is just 50MB. You should make A/B partition say 2GB (in case if your artifact will grow that far) and the rest used as data partition. A/B partitions should be read only and so making them extremely big is just waste of space.
2. Looking at your log I can say that it progresses forward and eventually likely to complete. If it will fail you will see it in Mender UI. Mender updates over slow/bad connections are not super fast but they are like a freight train: once they on the go they will likely arrive.


--
You received this message because you are subscribed to the Google Groups "Mender List mender.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mender+un...@lists.mender.io.
To post to this group, send email to men...@lists.mender.io.
Visit this group at https://groups.google.com/a/lists.mender.io/group/mender/.

Matthijs ter Woord

unread,
Aug 21, 2018, 9:40:29 AM8/21/18
to mender
Wriing 12GB might be slow on a raspberry, depending on the sd card used..


Op di 21 aug. 2018 om 15:31 schreef Vladimir Bashkirtsev <vbashk...@gmail.com>:

Mirza Krak

unread,
Aug 21, 2018, 9:42:40 AM8/21/18
to Mender List mender.io
On Tue, Aug 21, 2018 at 3:23 PM, Sebastian Bauhaus
<cenesco...@gmail.com> wrote:
> Hello!
>
> I am new to Mender and currently trying to deploy artifacts to a Raspberry
> Pi 3 device.
> The full size of storage is set to approx. 25 GB resulting in 12 GB per
> partition.
> The compressed artifact size is 50 MB. When I try to deploy the update, I
> can see that the activity-LED on the raspberry pi is lid for about 3h. The
> syslog of the raspberry:

Also take a look at this as well. https://tracker.mender.io/browse/MEN-1511

Which client version are you using?

--
Mirza Krak | Embedded Solutions Architect | https://mender.io

Northern.tech AS | @northerntechHQ

Sebastian Bauhaus

unread,
Aug 21, 2018, 10:46:15 AM8/21/18
to Mender List mender.io

Am Dienstag, 21. August 2018 15:31:08 UTC+2 schrieb Vladimir Bashkirtsev:
1. You don't need to have 12GB partitions if your artifact is just 50MB. You should make A/B partition say 2GB (in case if your artifact will grow that far) and the rest used as data partition. A/B partitions should be read only and so making them extremely big is just waste of space.
2. Looking at your log I can say that it progresses forward and eventually likely to complete. If it will fail you will see it in Mender UI. Mender updates over slow/bad connections are not super fast but they are like a freight train: once they on the go they will likely arrive.


Thank you. This is indeed much better. I moved the application data to /data and resized the partitions. Deployment is working now! :-)


Reply all
Reply to author
Forward
0 new messages