L'API YunoHost ne répond pas / Illegal instruction pendant la postinstall sur RPi 0 et 1

Bonjour, j’essaie depuis hier soir de me lancer sur yunohost.

Mon serveur YunoHost

Matériel: Raspberry Pi à la maison
Version de YunoHost: 5.4.51
J’ai accès à mon serveur : En SSH et Par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modifications particulières sur votre instance ? : oui
**Si oui, expliquer: j’ai configuré ma box côté DNS pour que tomber sur l’ip de ma machine quand je tape une url dans le navigateur, (par exemple maison.trololo) et ça marche, je tombe bien sur la phase post install de yunohost.

Description du problème

Je ne veux pas de domaine chez nohost.me (ou autre) et je souhaite utiliser un domaine local.
Quand je passe par l’interface web, je me retrouve en continu avec le bandeau :

L’API YunoHost ne répond pas. Peut-être que ‘yunohost-api’ est en panne ou a été redémarré ?

après avoir saisi mon domaine home.trololo dans la section “j’ai déjà un nom de domaine” et après avoir rentré le mot de passe que j’aimerai garder.

Côté command line, quand je saisis yunohost tools postinstall et que je complète par les même infos (home.trololo et mdp), je me retrouve avec le message “Illegal instruction”

Est-ce que j’ai mal compris comment ajouter un domaine local ?

J’en profite pour afficher mes dernières lignes de log.

Merci d’avance pour votre retour

2021-02-03 07:26:27,381 DEBUG    geventwebsocket.handler upgrade_websocket - Validating WebSocket request
2021-02-03 07:26:27,384 DEBUG    geventwebsocket.handler upgrade_websocket - Can only upgrade connection if using GET method.
2021-02-03 07:26:27,456 DEBUG    moulinette.core acquire - acquiring lock...
2021-02-03 07:26:28,031 DEBUG    moulinette.core acquire - lock has been acquired
2021-02-03 07:26:33,655 DEBUG    moulinette.actionsmap __init__ - loading actions map namespace 'yunohost'
2021-02-03 07:26:34,180 DEBUG    moulinette.actionsmap __init__ - extra parameter classes loaded: ['required', 'pattern']
2021-02-03 07:26:34,182 DEBUG    moulinette.interface __init__ - initializing base actions map parser for api
2021-02-03 07:26:37,043 DEBUG    moulinette.interface.api run - starting the server instance in localhost:6787 with websocket=True
2021-02-03 07:32:35,137 DEBUG    geventwebsocket.handler run_application - Initializing WebSocket
2021-02-03 07:32:35,140 DEBUG    geventwebsocket.handler upgrade_websocket - Validating WebSocket request
2021-02-03 07:32:35,143 DEBUG    geventwebsocket.handler upgrade_connection - Attempting to upgrade connection
2021-02-03 07:32:35,146 DEBUG    geventwebsocket.handler upgrade_connection - WebSocket request accepted, switching protocols
2021-02-03 07:32:35,293 DEBUG    geventwebsocket.handler run_application - Initializing WebSocket
2021-02-03 07:32:35,296 DEBUG    geventwebsocket.handler upgrade_websocket - Validating WebSocket request
2021-02-03 07:32:35,298 DEBUG    geventwebsocket.handler upgrade_websocket - Can only upgrade connection if using GET method.
2021-02-03 07:32:35,361 DEBUG    moulinette.core acquire - acquiring lock...
2021-02-03 07:32:35,887 DEBUG    moulinette.core acquire - stale lock file found
2021-02-03 07:32:35,890 DEBUG    moulinette.core acquire - lock has been acquired
2021-02-03 07:32:41,201 DEBUG    moulinette.actionsmap __init__ - loading actions map namespace 'yunohost'
2021-02-03 07:32:41,717 DEBUG    moulinette.actionsmap __init__ - extra parameter classes loaded: ['required', 'pattern']
2021-02-03 07:32:41,720 DEBUG    moulinette.interface __init__ - initializing base actions map parser for api
2021-02-03 07:32:44,722 DEBUG    moulinette.interface.api run - starting the server instance in localhost:6787 with websocket=True
2021-02-03 07:40:22,700 DEBUG    moulinette.interface __init__ - initializing base actions map parser for api
2021-02-03 07:40:22,751 DEBUG    moulinette.actionsmap __init__ - loading actions map namespace 'yunohost'
2021-02-03 07:40:22,754 DEBUG    moulinette.actionsmap generate_cache - generating cache for actions map namespace 'yunohost'
2021-02-03 07:40:43,734 DEBUG    moulinette.actionsmap _construct_parser - building parser...
2021-02-03 07:40:44,942 DEBUG    moulinette.actionsmap _construct_parser - building parser took 1.199s
2021-02-03 07:40:47,042 DEBUG    moulinette.interface.api run - starting the server instance in localhost:6787
2021-02-03 07:41:19,120 DEBUG    geventwebsocket.handler run_application - Initializing WebSocket
2021-02-03 07:41:19,123 DEBUG    geventwebsocket.handler upgrade_websocket - Validating WebSocket request
2021-02-03 07:41:19,139 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2021-02-03 07:41:19] "GET /installed HTTP/1.1" 200 160 0.023509
2021-02-03 07:41:19,265 DEBUG    geventwebsocket.handler run_application - Initializing WebSocket
2021-02-03 07:41:19,268 DEBUG    geventwebsocket.handler upgrade_websocket - Validating WebSocket request
2021-02-03 07:41:19,282 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2021-02-03 07:41:19] "GET /installed HTTP/1.1" 200 160 0.016205
2021-02-03 07:41:41,457 DEBUG    geventwebsocket.handler run_application - Initializing WebSocket
2021-02-03 07:41:41,459 DEBUG    geventwebsocket.handler upgrade_websocket - Validating WebSocket request
2021-02-03 07:41:41,462 DEBUG    geventwebsocket.handler upgrade_connection - Attempting to upgrade connection
2021-02-03 07:41:41,466 DEBUG    geventwebsocket.handler upgrade_connection - WebSocket request accepted, switching protocols
2021-02-03 07:41:41,499 DEBUG    geventwebsocket.handler run_application - Initializing WebSocket
2021-02-03 07:41:41,502 DEBUG    geventwebsocket.handler upgrade_websocket - Validating WebSocket request
2021-02-03 07:41:41,505 DEBUG    geventwebsocket.handler upgrade_websocket - Can only upgrade connection if using GET method.
2021-02-03 07:41:41,576 DEBUG    moulinette.core acquire - acquiring lock...
2021-02-03 07:41:42,123 DEBUG    moulinette.core acquire - stale lock file found
2021-02-03 07:41:42,126 DEBUG    moulinette.core acquire - lock has been acquired
2021-02-03 07:41:49,072 DEBUG    moulinette.interface __init__ - initializing base actions map parser for api
2021-02-03 07:41:49,091 DEBUG    moulinette.actionsmap __init__ - loading actions map namespace 'yunohost'
2021-02-03 07:41:49,628 DEBUG    moulinette.actionsmap _construct_parser - building parser...
2021-02-03 07:41:50,820 DEBUG    moulinette.actionsmap _construct_parser - building parser took 1.190s
2021-02-03 07:41:52,542 DEBUG    moulinette.interface.api run - starting the server instance in localhost:6787
2021-02-03 07:43:29,065 DEBUG    geventwebsocket.handler run_application - Initializing WebSocket
2021-02-03 07:43:29,068 DEBUG    geventwebsocket.handler upgrade_websocket - Validating WebSocket request
2021-02-03 07:43:29,084 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2021-02-03 07:43:29] "GET /installed HTTP/1.1" 200 160 0.019894
2021-02-03 07:43:37,040 DEBUG    geventwebsocket.handler run_application - Initializing WebSocket
2021-02-03 07:43:37,042 DEBUG    geventwebsocket.handler upgrade_websocket - Validating WebSocket request
2021-02-03 07:43:37,055 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2021-02-03 07:43:37] "GET /installed HTTP/1.1" 200 160 0.015091
2021-02-03 07:43:37,135 DEBUG    geventwebsocket.handler run_application - Initializing WebSocket
2021-02-03 07:43:37,138 DEBUG    geventwebsocket.handler upgrade_websocket - Validating WebSocket request
2021-02-03 07:43:37,150 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2021-02-03 07:43:37] "GET /installed HTTP/1.1" 200 160 0.015189
2021-02-03 07:43:52,046 DEBUG    geventwebsocket.handler run_application - Initializing WebSocket
2021-02-03 07:43:52,048 DEBUG    geventwebsocket.handler upgrade_websocket - Validating WebSocket request
2021-02-03 07:43:52,061 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2021-02-03 07:43:52] "GET /installed HTTP/1.1" 200 160 0.015032
2021-02-03 07:43:52,117 DEBUG    geventwebsocket.handler run_application - Initializing WebSocket
2021-02-03 07:43:52,119 DEBUG    geventwebsocket.handler upgrade_websocket - Validating WebSocket request
2021-02-03 07:43:52,132 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2021-02-03 07:43:52] "GET /installed HTTP/1.1" 200 160 0.014934
2021-02-03 07:44:42,091 DEBUG    geventwebsocket.handler run_application - Initializing WebSocket
2021-02-03 07:44:42,093 DEBUG    geventwebsocket.handler upgrade_websocket - Validating WebSocket request
2021-02-03 07:44:42,096 DEBUG    geventwebsocket.handler upgrade_connection - Attempting to upgrade connection
2021-02-03 07:44:42,099 DEBUG    geventwebsocket.handler upgrade_connection - WebSocket request accepted, switching protocols
2021-02-03 07:44:42,131 DEBUG    geventwebsocket.handler run_application - Initializing WebSocket
2021-02-03 07:44:42,134 DEBUG    geventwebsocket.handler upgrade_websocket - Validating WebSocket request
2021-02-03 07:44:42,136 DEBUG    geventwebsocket.handler upgrade_websocket - Can only upgrade connection if using GET method.
2021-02-03 07:44:42,209 DEBUG    moulinette.core acquire - acquiring lock...
2021-02-03 07:44:42,745 DEBUG    moulinette.core acquire - stale lock file found
2021-02-03 07:44:42,748 DEBUG    moulinette.core acquire - lock has been acquired
2021-02-03 07:44:48,137 DEBUG    moulinette.interface __init__ - initializing base actions map parser for api
2021-02-03 07:44:48,157 DEBUG    moulinette.actionsmap __init__ - loading actions map namespace 'yunohost'
2021-02-03 07:44:48,700 DEBUG    moulinette.actionsmap _construct_parser - building parser...
2021-02-03 07:44:49,925 DEBUG    moulinette.actionsmap _construct_parser - building parser took 1.222s
2021-02-03 07:44:51,659 DEBUG    moulinette.interface.api run - starting the server instance in localhost:6787
2021-02-03 08:01:05,066 DEBUG    geventwebsocket.handler run_application - Initializing WebSocket
2021-02-03 08:01:05,073 DEBUG    geventwebsocket.handler upgrade_websocket - Validating WebSocket request
2021-02-03 08:01:05,089 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2021-02-03 08:01:05] "GET /installed HTTP/1.1" 200 160 0.024391
2021-02-03 08:01:05,201 DEBUG    geventwebsocket.handler run_application - Initializing WebSocket
2021-02-03 08:01:05,206 DEBUG    geventwebsocket.handler upgrade_websocket - Validating WebSocket request
2021-02-03 08:01:05,219 INFO     geventwebsocket.handler log_request - 127.0.0.1 - - [2021-02-03 08:01:05] "GET /installed HTTP/1.1" 200 160 0.016945
2021-02-03 08:01:36,960 DEBUG    geventwebsocket.handler run_application - Initializing WebSocket
2021-02-03 08:01:36,963 DEBUG    geventwebsocket.handler upgrade_websocket - Validating WebSocket request
2021-02-03 08:01:36,965 DEBUG    geventwebsocket.handler upgrade_connection - Attempting to upgrade connection
2021-02-03 08:01:36,969 DEBUG    geventwebsocket.handler upgrade_connection - WebSocket request accepted, switching protocols
2021-02-03 08:01:37,003 DEBUG    geventwebsocket.handler run_application - Initializing WebSocket
2021-02-03 08:01:37,006 DEBUG    geventwebsocket.handler upgrade_websocket - Validating WebSocket request
2021-02-03 08:01:37,009 DEBUG    geventwebsocket.handler upgrade_websocket - Can only upgrade connection if using GET method.
2021-02-03 08:01:37,076 DEBUG    moulinette.core acquire - acquiring lock...
2021-02-03 08:01:37,603 DEBUG    moulinette.core acquire - stale lock file found
2021-02-03 08:01:37,606 DEBUG    moulinette.core acquire - lock has been acquired
2021-02-03 08:01:42,875 DEBUG    moulinette.interface __init__ - initializing base actions map parser for api
2021-02-03 08:01:42,895 DEBUG    moulinette.actionsmap __init__ - loading actions map namespace 'yunohost'
2021-02-03 08:01:43,411 DEBUG    moulinette.actionsmap _construct_parser - building parser...
2021-02-03 08:01:44,605 DEBUG    moulinette.actionsmap _construct_parser - building parser took 1.191s
2021-02-03 08:01:46,355 DEBUG    moulinette.interface.api run - starting the server instance in localhost:6787

Salut,

Tentons de débugger tout ça.

  1. Donne-nous le log de yunohost-api, ce que tu as mis ne montre rien d’intéressant hélas. ^^
  2. Tente de lancer la postinstall avec tes paramètres en ligne de commande avec yunohost tools postinstall --debug
  3. Choisis yunohost.local comme domaine principal lors de la postinstall. Si ça marche, tu pourras ajouter ton propre domaine ensuite.

Salut
Je pensais que c’était bien, voici toute les log de yunohost-api ici : hastebin

Je viens de retenter avec yunohost tools postinstall --debug
voici mon output :

1720 DEBUG initializing base actions map parser for cli
1755 DEBUG loading actions map namespace 'yunohost'
2272 DEBUG building parser...
2510 DEBUG building parser took 0.234s
Main domain: yunohost.local
New administration password: 
Confirm new administration password: 
13005 DEBUG acquiring lock...
13534 DEBUG stale lock file found
13539 DEBUG lock has been acquired
Illegal instruction

Je précise que j’ai tenté avec le yunohost.local comme domaine mais échec :confused:

Si t’as plus de billes, je suis preneur, merci d’avance :slight_smile:

Quelle est la version de ton RPi ?

Salut,
Il s’agit du Raspberry Pi Model B Plus Rev 1.2

Beh du coup je pense que c’est un RPi 1 et comme indiqué dans la doc d’install il y a des soucis connus : Yunohost is broken on RPi 0 and 1 because metronome builds are not armv6 compatible · Issue #1423 · YunoHost/issues · GitHub

Si tu veux tu peux essayer ces gros hack deguelasses pour que ça tombe en marche:

sed -i 's/import miniupnpc/#import miniupnpc/g' /usr/lib/moulinette/yunohost/firewall.py
mv /usr/bin/metronome{,.bkp}
mv /usr/bin/metronomectl{,.bkp} 
ln -s /usr/bin/true /usr/bin/metronome 
ln -s /usr/bin/true /usr/bin/metronomectl

En effet, c’était bien ça, j’ai pu débloqué mon installation merci beaucoup.
Il est possible de savoir le modèle de raspberry pi via une commande

cat /proc/cpuinfo | grep Model

Vu que ce souci ne concerne qu’une série connu de raspberry, il doit être possible (je suppose) de rajouter un if pour appliquer les commandes que tu m’as transmise pour ne pas bloquer les personnes qui installent ça sur de vieilles Raspberry (et donc moins de support via le forum :wink: )

Merci encore pour votre aide :pray:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.