error during installation of tar.gz archive

187 views
Skip to first unread message

Adducchio Maximilian

unread,
May 12, 2021, 10:33:47 AM5/12/21
to swup...@googlegroups.com

Hi,

 

currently I am using swupdate version 2020.04 with a yocto linux (dunfell release).

I ran into the following error when swupdate should install a compressed archive:

 

[ERROR] : SWUPDATE failed [0] ERROR handlers/archive_handler.c : extract : 144 : archive_read_next_header(): Pathname can't be converted from UTF-8 to current locale. 1

[ERROR] : SWUPDATE failed [0] ERROR handlers/archive_handler.c : install_archive_image : 337 : copyimage status code is -14

 

I’ve also experimented with the CONFIG_LOCALE within the defconfig, but that did not help to solve the issue.

 

Do you have any idea what the problem is?

 

Best regards

Maximilian Adducchio

 


Mit freundlichen Grüßen

i. A. Maximilian Adducchio
Entwicklung / Development


Kontron Electronics GmbH     

Kantstraße 10
D-72663 Großbettlingen
www.kontron-electronics.de    
Telefon: +49 7022 4057-93
maximilian...@kontron.de  
  
Geschäftsführer: Holger Wußmann, Jochen Gimple
Sitz der Gesellschaft: Großbettlingen
Amtsgericht Stuttgart HRB 723782
Steuernummer 74051/19126
USt.Id-Nr.: DE256296817






 


 

Stefano Babic

unread,
May 12, 2021, 11:11:21 AM5/12/21
to Adducchio Maximilian, swup...@googlegroups.com
Hi Maximilian,

On 12.05.21 16:33, Adducchio Maximilian wrote:
> Hi,
>
> currently I am using swupdate version 2020.04 with a yocto linux
> (dunfell release).
>
> I ran into the following error when swupdate should install a compressed
> archive:
>
> [ERROR] : SWUPDATE failed [0] ERROR handlers/archive_handler.c : extract
> : 144 : archive_read_next_header(): Pathname can't be converted from
> UTF-8 to current locale. 1
>

This was once reported to the Mailing List, I have found the old thread:

https://groups.google.com/g/swupdate/c/zUOSqmkk7cA/m/bQpZbAHhCQAJ

it seems an issue inside libarchive, in the thread there are some hints
how to avoid it (setting LC_). CONFIG_LOCALE should do this, it is maybe
insufficient in your case.

But I have a dunfell project with pITX-imx8m, I have not seen this (I
have never seen this issue myself, I know just from ML).

> [ERROR] : SWUPDATE failed [0] ERROR handlers/archive_handler.c :
> install_archive_image : 337 : copyimage status code is -14
>
> I’ve also experimented with the CONFIG_LOCALE within the defconfig, but
> that did not help to solve the issue.
>
> Do you have any idea what the problem is?

It is related to Locale - as you are the one who can reproduce it, you
can maybe follow the thread and try setting locale before running
SWUpdate, and check if this helps.

Best regards,
Stefano Babic

>
> Best regards
>
> Maximilian Adducchio
>
>
> Mit freundlichen Grüßen
>
> i. A. Maximilian Adducchio
> Entwicklung / Development
>
>
> *Kontron Electronics GmbH **
> *Kantstraße 10
> D-72663 Großbettlingen
> www.kontron-electronics.de <www.kontron-electronics.de/>
> <mailto:maximilian...@kontron.de>
> Geschäftsführer: Holger Wußmann, Jochen Gimple
> Sitz der Gesellschaft: Großbettlingen
> Amtsgericht Stuttgart HRB 723782
> Steuernummer 74051/19126
> USt.Id-Nr.: DE256296817
>
>
>
>
>
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "swupdate" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to swupdate+u...@googlegroups.com
> <mailto:swupdate+u...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/swupdate/AM9PR10MB4545C5B889A832A40B07F5CAFF529%40AM9PR10MB4545.EURPRD10.PROD.OUTLOOK.COM
> <https://groups.google.com/d/msgid/swupdate/AM9PR10MB4545C5B889A832A40B07F5CAFF529%40AM9PR10MB4545.EURPRD10.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>.


--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=====================================================================

Stefano Babic

unread,
May 13, 2021, 5:51:48 AM5/13/21
to Adducchio Maximilian, swup...@googlegroups.com
Just to extend: are there "Umlaut" in the filenames ? Can this be the
trigger of the issue ?

Best regards,
Stefano Babic

James Hilliard

unread,
May 13, 2021, 8:10:26 PM5/13/21
to Adducchio Maximilian, swup...@googlegroups.com
On Wed, May 12, 2021 at 8:33 AM Adducchio Maximilian
<Maximilian...@kontron.de> wrote:
>
> Hi,
>
>
>
> currently I am using swupdate version 2020.04 with a yocto linux (dunfell release).
>
> I ran into the following error when swupdate should install a compressed archive:
>
>
>
> [ERROR] : SWUPDATE failed [0] ERROR handlers/archive_handler.c : extract : 144 : archive_read_next_header(): Pathname can't be converted from UTF-8 to current locale. 1
I run swupdate in systemd and have to set this to make it work when using glibc,
also make sure your system has a UTF-8 locale of some sort installed:
Environment=LC_CTYPE=en_US.UTF-8
>
> [ERROR] : SWUPDATE failed [0] ERROR handlers/archive_handler.c : install_archive_image : 337 : copyimage status code is -14
>
>
>
> I’ve also experimented with the CONFIG_LOCALE within the defconfig, but that did not help to solve the issue.
>
>
>
> Do you have any idea what the problem is?
>
>
>
> Best regards
>
> Maximilian Adducchio
>
>
>
>
> Mit freundlichen Grüßen
>
> i. A. Maximilian Adducchio
> Entwicklung / Development
>
>
> Kontron Electronics GmbH
> Kantstraße 10
> D-72663 Großbettlingen
> www.kontron-electronics.de
> Telefon: +49 7022 4057-93
> maximilian...@kontron.de
>
> Geschäftsführer: Holger Wußmann, Jochen Gimple
> Sitz der Gesellschaft: Großbettlingen
> Amtsgericht Stuttgart HRB 723782
> Steuernummer 74051/19126
> USt.Id-Nr.: DE256296817
>
>
>
>
>
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "swupdate" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to swupdate+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/swupdate/AM9PR10MB4545C5B889A832A40B07F5CAFF529%40AM9PR10MB4545.EURPRD10.PROD.OUTLOOK.COM.

Adducchio Maximilian

unread,
May 18, 2021, 10:40:59 AM5/18/21
to James Hilliard, swup...@googlegroups.com
Hi James,

thanks for your support. I was able to solve the issue by installing and setting a utf-8 locale.
As I am using yocto I had to set the variable IMAGE_LINGUAS = "de-de" within the image recipe.
I also had to set export LANG=de_DE.UTF8 in the environment before installing the file.

Thanks for your help.

Best regards
Maximilian




-----Ursprüngliche Nachricht-----
Von: James Hilliard <james.h...@gmail.com>
Gesendet: Freitag, 14. Mai 2021 02:10
An: Adducchio Maximilian <Maximilian...@kontron.de>
Cc: swup...@googlegroups.com
Betreff: Re: [swupdate] error during installation of tar.gz archive

On Wed, May 12, 2021 at 8:33 AM Adducchio Maximilian <Maximilian...@kontron.de> wrote:
>
> Hi,
>
>
>
> currently I am using swupdate version 2020.04 with a yocto linux (dunfell release).
>
> I ran into the following error when swupdate should install a compressed archive:
>
>
>
> [ERROR] : SWUPDATE failed [0] ERROR handlers/archive_handler.c :
> extract : 144 : archive_read_next_header(): Pathname can't be
> converted from UTF-8 to current locale. 1
I run swupdate in systemd and have to set this to make it work when using glibc, also make sure your system has a UTF-8 locale of some sort installed:
Environment=LC_CTYPE=en_US.UTF-8
>
> [ERROR] : SWUPDATE failed [0] ERROR handlers/archive_handler.c :
> install_archive_image : 337 : copyimage status code is -14
>
>
>
> I've also experimented with the CONFIG_LOCALE within the defconfig, but that did not help to solve the issue.
>
>
>
> Do you have any idea what the problem is?
>
>
>
> Best regards
>
> Maximilian Adducchio
>
>
>
>
> Mit freundlichen Grüßen
>
> i. A. Maximilian Adducchio
> Entwicklung / Development
>
>
> Kontron Electronics GmbH
> Kantstraße 10
> D-72663 Großbettlingen
> https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.k
> ontron-electronics.de%2F&amp;data=04%7C01%7CMaximilian.Adducchio%40kon
> tron.de%7C41a79ad7edd34c196a0c08d9166cadaa%7C8c9d3c973fd941c8a2b1646f3
> 942daf1%7C0%7C0%7C637565478310403857%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiM
> C4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;s
> data=ofyRNdjwEDCvOVAGqlpRWxlSh55ensAlSUfqsbTB%2F2w%3D&amp;reserved=0
> Telefon: +49 7022 4057-93
> maximilian...@kontron.de
>
> Geschäftsführer: Holger Wußmann, Jochen Gimple Sitz der Gesellschaft:
> Großbettlingen Amtsgericht Stuttgart HRB 723782 Steuernummer
> 74051/19126
> USt.Id-Nr.: DE256296817
>
>
>
>
>
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "swupdate" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to swupdate+u...@googlegroups.com.
> To view this discussion on the web visit https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fswupdate%2FAM9PR10MB4545C5B889A832A40B07F5CAFF529%2540AM9PR10MB4545.EURPRD10.PROD.OUTLOOK.COM&amp;data=04%7C01%7CMaximilian.Adducchio%40kontron.de%7C41a79ad7edd34c196a0c08d9166cadaa%7C8c9d3c973fd941c8a2b1646f3942daf1%7C0%7C0%7C637565478310403857%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Cy%2BFUis9cqtnW9FZxdUaSf0dL3eAujrB6KC%2FBvO7csA%3D&amp;reserved=0.
Reply all
Reply to author
Forward
0 new messages