linuxserver / docker-webgrabplus

GNU General Public License v3.0
22 stars 21 forks source link

[BUG] Locale bug when extracting site package #62

Closed epichub closed 1 year ago

epichub commented 1 year ago

Is there an existing issue for this?

Current Behavior

I am getting an error installing the webgrabplus container (also while building locally). Error while running docker-compose;

 ⠙ webgrabplus 6 layers [⣿⣿⣿⣿⣿⣿]   133MB/133MB   Pulling                             9.2s 
   ✔ be71678e1edd Already exists                                                     0.0s 
   ✔ d2e3055e0657 Already exists                                                     0.0s 
   ✔ 9091c7de5477 Already exists                                                     0.0s 
   ✔ d9031a99c884 Already exists                                                     0.0s 
   ⠿ 368adc32dd67 Extracting         133MB/133MB                                     7.6s 
   ✔ 72c873ffbe41 Download complete                                                  0.5s 
failed to register layer: ApplyLayer exit status 1 stdout:  stderr: open /defaults/ini/siteini.pack/International/sat.tv.channels.13�E-Arabesque.xml: invalid or incomplete multibyte or wide character

Error while running docker build:

**** download siteini.pack ****
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 92.6M  100 92.6M    0     0  4003k      0  0:00:23  0:00:23 --:--:-- 4778k
error:  cannot create /defaults/ini/siteini.pack/International/sat.tv.channels.13?E-Arabesque.xml
        Illegal byte sequence
error:  cannot create /defaults/ini/siteini.pack/International/sat.tv.channels.13?E-International.xml
        Illegal byte sequence
The command '/bin/sh -c echo "**** install packages ****" &&   apk -U --update --no-cache add     icu-libs     iputils     unzip &&   echo "**** install dotnet sdk ****" &&   mkdir -p /app/dotnet &&   curl -o /tmp/dotnet-install.sh -L     https://dot.net/v1/dotnet-install.sh &&   chmod +x /tmp/dotnet-install.sh &&   /tmp/dotnet-install.sh -c 6.0 --install-dir /app/dotnet --runtime dotnet &&   echo "**** install webgrabplus ****" &&   if [ -z "$WEBGRAB_VER" ]; then     WEBGRAB_VER=$(curl -fsL http://webgrabplus.com/download/sw | grep -m1 /download/sw/v | sed 's|.*/download/sw/v\(.*\)">V.*|\1|');   fi &&   echo "Found Webgrabplus version ${WEBGRAB_VER}" &&   WEBGRAB_URL=$(curl -fsL http://webgrabplus.com/download/sw/v${WEBGRAB_VER} | grep '>Linux</a>' | sed 's|.*\(http://webgrab.*tar\.gz\).*|\1|') &&   mkdir -p     /app/wg++ &&   curl -o /tmp/wg++.tar.gz -L     "${WEBGRAB_URL}" &&   tar xzf     /tmp/wg++.tar.gz -C     /app/wg++ --strip-components=1 &&   echo "**** download siteini.pack ****" &&   curl -o     /tmp/ini.zip -L     http://www.webgrabplus.com/sites/default/files/download/ini/SiteIniPack_current.zip &&   unzip -q /tmp/ini.zip -d /defaults/ini/ &&   echo "**** cleanup ****" &&   rm -rf     /tmp/*' returned a non-zero code: 50

Expected Behavior

It should be able to unzip that file. I have tested locally on the same machine with locale set (LANG=en_US.UTF-8) which is the same locale active when running the above commands

Steps To Reproduce

  1. Using up to date arch linux with docker/docker compose Docker version 23.0.6, build ef23cbc431 - Docker Compose version 2.17.3
  2. run the above commands with LANG=en_US.UTF-8
  3. get the same error ?

Environment

- OS: Arch
- How docker service was installed: pacman

CPU architecture

x86-64

Docker creation

docker build . -t mywebgrabplus

Container logs

not applicable - container never builds.
github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 year ago

This issue is locked due to inactivity