YunoHost-Apps / simple-torrent_ynh

Simple Torrent package for YunoHost
GNU General Public License v3.0
6 stars 1 forks source link

Can't install on RPIs with Yunohost official image #71

Closed HappyClem closed 2 years ago

HappyClem commented 2 years ago

Describe the bug

It is impossible to install Simple-Torrent on a Raspberry pi (4) if you use the official Yunohost image on installation. It seems like it is a x32 OS but Raspberri pi 4 support x64 apps si while hardware is okay, software from the image makes it impossible.

WorkAround

User 'tituspijean' told me that flahsing Raspbian and then using the Yunohost install script would make this work (yet to try).

Context

Steps to reproduce

  1. Flash Yunohost image on Raspberry Pi
  2. Install Yunohost
  3. Try installing simple-torrent
  4. See error

Expected behavior

The app should install

Logs

args: app: simple-torrent args: domain=maindomain.tld&path=%2Fsimpletorrent&is_public=1 force: false label: Simple Torrent no_remove_on_failure: false ended_at: 2021-12-09 18:23:19.566645 env: YNH_APP_ARG_DOMAIN: maindomain.tld YNH_APP_ARG_IS_PUBLIC: '1' YNH_APP_ARG_PATH: /simpletorrent YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_d8k3l5l0 YNH_APP_ID: simple-torrent YNH_APP_INSTANCE_NAME: simple-torrent YNH_APP_INSTANCE_NUMBER: '1' YNH_APP_MANIFEST_VERSION: 1.3.9~ynh3 YNH_ARCH: armhf error: Une erreur est survenue dans le script d'installation de l'application interface: api operation: app_install parent: null related_to:

============

2021-12-09 18:23:17,199: INFO - Installation de simple-torrent... 2021-12-09 18:23:17,288: DEBUG - Nothing to update in LDAP 2021-12-09 18:23:17,289: DEBUG - Permission 'simple-torrent.main' mise à jour 2021-12-09 18:23:17,315: DEBUG - Journal complet de cette opération : ' Mise à jour de l'URL associée à l'autorisation 'simple-torrent' ' 2021-12-09 18:23:17,390: DEBUG - The permission database has been resynchronized 2021-12-09 18:23:17,440: DEBUG - La configuration de SSOwat a été regénérée 2021-12-09 18:23:17,500: DEBUG - Permission 'simple-torrent.main' créée 2021-12-09 18:23:17,501: DEBUG - Journal complet de cette opération : ' Créer permission 'simple-torrent' ' 2021-12-09 18:23:17,547: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./install" 7>&1']' 2021-12-09 18:23:17,570: DEBUG - + source _common.sh 2021-12-09 18:23:17,571: DEBUG - + source /usr/share/yunohost/helpers 2021-12-09 18:23:17,573: DEBUG - +++ set +o 2021-12-09 18:23:17,573: DEBUG - +++ grep xtrace 2021-12-09 18:23:17,578: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace' 2021-12-09 18:23:17,578: DEBUG - ++ XTRACE_ENABLE='set -o xtrace' 2021-12-09 18:23:17,655: DEBUG - + ynh_abort_if_errors 2021-12-09 18:23:17,656: DEBUG - + trap ynh_exit_properly EXIT 2021-12-09 18:23:17,657: DEBUG - + domain=maindomain.tld 2021-12-09 18:23:17,657: DEBUG - + path_url=/simpletorrent 2021-12-09 18:23:17,658: DEBUG - + is_public=1 2021-12-09 18:23:17,658: DEBUG - ++ ynh_detect_arch 2021-12-09 18:23:17,660: DEBUG - +++ uname -m 2021-12-09 18:23:17,661: DEBUG - +++ grep arm64 2021-12-09 18:23:17,667: DEBUG - ++ '[' -n '' ']' 2021-12-09 18:23:17,669: DEBUG - +++ uname -m 2021-12-09 18:23:17,669: DEBUG - +++ grep aarch64 2021-12-09 18:23:17,675: DEBUG - ++ '[' -n '' ']' 2021-12-09 18:23:17,677: DEBUG - +++ uname -m 2021-12-09 18:23:17,678: DEBUG - +++ grep 86 2021-12-09 18:23:17,683: DEBUG - ++ '[' -n '' ']' 2021-12-09 18:23:17,685: DEBUG - +++ uname -m 2021-12-09 18:23:17,686: DEBUG - +++ grep 64 2021-12-09 18:23:17,691: DEBUG - ++ '[' -n '' ']' 2021-12-09 18:23:17,692: DEBUG - ++ architecture=unknown 2021-12-09 18:23:17,692: DEBUG - ++ echo unknown 2021-12-09 18:23:17,692: DEBUG - + architecture=unknown 2021-12-09 18:23:17,693: DEBUG - + app=simple-torrent 2021-12-09 18:23:17,946: INFO - [....................] > Validating installation parameters... 2021-12-09 18:23:17,951: DEBUG - + '[' unknown == unknown ']' 2021-12-09 18:23:17,952: DEBUG - + ynh_die '--message=Sorry, this app cannot be installed on a 32-bit ARM machine.' 2021-12-09 18:23:18,025: WARNING - Sorry, this app cannot be installed on a 32-bit ARM machine. 2021-12-09 18:23:18,028: DEBUG - + ynh_exit_properly 2021-12-09 18:23:19,564: ERROR - Impossible d'installer simple-torrent : Une erreur est survenue dans le script d'installation de l'application

ericgaspar commented 2 years ago

In a terminal, what is the output of uname -m

HappyClem commented 2 years ago

In a terminal, what is the output of uname -m

armv7l

ericgaspar commented 2 years ago

upstream Simple-Torrent app doesn't support ARM32 bit architecture anymore.

HappyClem commented 2 years ago

upstream Simple-Torrent app doesn't support ARM32 bit architecture anymore.

But a RPI4 is ARM v8 64-bit on hardware. A user in the matric chat told me that could be caused by the yunohost image. I'm trying to install RPI OS and add yunohost trhough the sript to see if that helps.

ericgaspar commented 2 years ago

You have a 32bit system on a 64bit capable Raspberry board. My guess is that the YunoHost image for Raspberry is still in 32bits...

HappyClem commented 2 years ago

You have a 32bit system on a 64bit capable Raspberry board. My guess is that the YunoHost image for Raspberry is still in 32bits...

I think this is it as well, did not know before using so I thought x64 would work.