Difficultés avec mon Yunohost devenu instable

Mon serveur YunoHost

Matériel: Raspberry Pi à la maison / Brique Internet avec VPN + hdd attaché au Pi.
**Version de YunoHost 4.2.8.3 (stable)
J’ai accès à mon serveur : En SSH | Par la webadmin (partiellement)
Êtes-vous dans un contexte particulier ou avez-vous effectué des modifiiations particulières sur votre instance ? : non

Description du problème

Bonjour,

Ce matin j’ai retrouvé mon yunohost avec des souçis. L’administration web fonctionne mal, par exemple quand je clique sur ‘system update’ j’obtiens :

YunoHost encountered an internal error
Really sorry about that.
You should look for help on the forum or the chat to fix the situation, or report the bug on the bugtracker.
The following information might be useful for the person helping you:

Error: “500” Internal Server Error

Action: “PUT” /yunohost/api/update/all

Error message:
Unexpected server error

Traceback

Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/moulinette/interfaces/api.py”, line 484, in process
ret = self.actionsmap.process(arguments, timeout=30, route=_route)
File “/usr/lib/python3/dist-packages/moulinette/actionsmap.py”, line 600, in process
return func(**arguments)
File “/usr/lib/moulinette/yunohost/tools.py”, line 413, in tools_update
upgradable_apps = list(_list_upgradable_apps())
File “/usr/lib/moulinette/yunohost/tools.py”, line 426, in _list_upgradable_apps
app_dict = app_info(app_id, full=True)
File “/usr/lib/moulinette/yunohost/app.py”, line 198, in app_info
permissions = user_permission_list(full=True, absolute_urls=True, apps=[app])[
File “/usr/lib/moulinette/yunohost/permission.py”, line 82, in user_permission_list
for app in apps
File “/usr/lib/moulinette/yunohost/permission.py”, line 84, in
and app_setting(app, “domain”)
File “/usr/lib/moulinette/yunohost/app.py”, line 1396, in app_setting
app_settings = _get_app_settings(app) or {}
File “/usr/lib/moulinette/yunohost/app.py”, line 2182, in _get_app_settings
settings = yaml.safe_load(f)
File “/usr/lib/python3/dist-packages/yaml/init.py”, line 94, in safe_load
return load(stream, SafeLoader)
File “/usr/lib/python3/dist-packages/yaml/init.py”, line 72, in load
return loader.get_single_data()
File “/usr/lib/python3/dist-packages/yaml/constructor.py”, line 35, in get_single_data
node = self.get_single_node()
File “/usr/lib/python3/dist-packages/yaml/composer.py”, line 36, in get_single_node
document = self.compose_document()
File “/usr/lib/python3/dist-packages/yaml/composer.py”, line 55, in compose_document
node = self.compose_node(None, None)
File “/usr/lib/python3/dist-packages/yaml/composer.py”, line 84, in compose_node
node = self.compose_mapping_node(anchor)
File “/usr/lib/python3/dist-packages/yaml/composer.py”, line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
File “/usr/lib/python3/dist-packages/yaml/parser.py”, line 98, in check_event
self.current_event = self.state()
File “/usr/lib/python3/dist-packages/yaml/parser.py”, line 428, in parse_block_mapping_key
if self.check_token(KeyToken):
File “/usr/lib/python3/dist-packages/yaml/scanner.py”, line 116, in check_token
self.fetch_more_tokens()
File “/usr/lib/python3/dist-packages/yaml/scanner.py”, line 252, in fetch_more_tokens
return self.fetch_plain()
File “/usr/lib/python3/dist-packages/yaml/scanner.py”, line 676, in fetch_plain
self.tokens.append(self.scan_plain())
File “/usr/lib/python3/dist-packages/yaml/scanner.py”, line 1299, in scan_plain
“Please check http://pyyaml.org/wiki/YAMLColonInFlowContext for details.”)
yaml.scanner.ScannerError: while scanning a plain scalar
in “/etc/yunohost/apps/hotspot/settings.yml”, line 2, column 2
found unexpected ‘:’
in “/etc/yunohost/apps/hotspot/settings.yml”, line 2, column 16
Please check http://pyyaml.org/wiki/YAMLColonInFlowContext for details.

While processing the action the server said:
Fetching available upgrades for system packages…
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org/php buster InRelease: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key
W: Failed to fetch https://packages.sury.org/php/dists/buster/InRelease The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key
W: Some index files failed to download. They have been ignored, or old ones used instead.
Something went wrong while updating the cache of APT (Debian’s package manager). Here is a dump of the sources.list lines, which might help identify problematic lines:
sources.list:deb Index of /raspbian buster main contrib non-free rpi sources.list.d/weechat.list:deb Index of /raspbian buster main sources.list.d/weechat.list:deb-src Index of /raspbian buster main sources.list.d/raspi.list:deb Index of /debian buster main ui sources.list.d/yunohost.list:deb Index of /debian/ buster stable sources.list.d/extra_php_version.list:deb Index of /php/ buster main
Updating application catalog…
The application catalog has been updated!

Tous les services sont en marche.

Si je clique sur ‘users’ j’obtiens :

YunoHost encountered an internal error

Really sorry about that.

You should look for help on the forum or the chat to fix the situation, or report the bug on the bugtracker.
The following information might be useful for the person helping you:

Error: "500" Internal Server Error

Action: "GET" /yunohost/api/users/arnauld?locale=en

Error message:

Unexpected server error

Traceback

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/moulinette/interfaces/api.py", line 484, in process
    ret = self.actionsmap.process(arguments, timeout=30, route=_route)
  File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 600, in process
    return func(**arguments)
  File "/usr/lib/moulinette/yunohost/user.py", line 535, in user_info
    elif username not in user_permission_info("mail.main")["corresponding_users"]:
  File "/usr/lib/moulinette/yunohost/user.py", line 942, in user_permission_info
    return yunohost.permission.user_permission_info(permission)
  File "/usr/lib/moulinette/yunohost/permission.py", line 343, in user_permission_info
    existing_permission = user_permission_list(full=True)["permissions"].get(
  File "/usr/lib/moulinette/yunohost/permission.py", line 82, in user_permission_list
    for app in apps
  File "/usr/lib/moulinette/yunohost/permission.py", line 84, in <dictcomp>
    and app_setting(app, "domain")
  File "/usr/lib/moulinette/yunohost/app.py", line 1396, in app_setting
    app_settings = _get_app_settings(app) or {}
  File "/usr/lib/moulinette/yunohost/app.py", line 2182, in _get_app_settings
    settings = yaml.safe_load(f)
  File "/usr/lib/python3/dist-packages/yaml/__init__.py", line 94, in safe_load
    return load(stream, SafeLoader)
  File "/usr/lib/python3/dist-packages/yaml/__init__.py", line 72, in load
    return loader.get_single_data()
  File "/usr/lib/python3/dist-packages/yaml/constructor.py", line 35, in get_single_data
    node = self.get_single_node()
  File "/usr/lib/python3/dist-packages/yaml/composer.py", line 36, in get_single_node
    document = self.compose_document()
  File "/usr/lib/python3/dist-packages/yaml/composer.py", line 55, in compose_document
    node = self.compose_node(None, None)
  File "/usr/lib/python3/dist-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/lib/python3/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
    while not self.check_event(MappingEndEvent):
  File "/usr/lib/python3/dist-packages/yaml/parser.py", line 98, in check_event
    self.current_event = self.state()
  File "/usr/lib/python3/dist-packages/yaml/parser.py", line 428, in parse_block_mapping_key
    if self.check_token(KeyToken):
  File "/usr/lib/python3/dist-packages/yaml/scanner.py", line 116, in check_token
    self.fetch_more_tokens()
  File "/usr/lib/python3/dist-packages/yaml/scanner.py", line 252, in fetch_more_tokens
    return self.fetch_plain()
  File "/usr/lib/python3/dist-packages/yaml/scanner.py", line 676, in fetch_plain
    self.tokens.append(self.scan_plain())
  File "/usr/lib/python3/dist-packages/yaml/scanner.py", line 1299, in scan_plain
    "Please check http://pyyaml.org/wiki/YAMLColonInFlowContext for details.")
yaml.scanner.ScannerError: while scanning a plain scalar
  in "/etc/yunohost/apps/hotspot/settings.yml", line 2, column 2
found unexpected ':'
  in "/etc/yunohost/apps/hotspot/settings.yml", line 2, column 16
Please check http://pyyaml.org/wiki/YAMLColonInFlowContext for details.

Mes applications sont fonctionelles (Nextcloud, Roundcube, etc…)

Merci des conseils.

Peux-tu partager le contenu de ce fichier avec en ligne de commande cat /etc/yunohost/apps/hotspot/settings.yml?
(vérifie qu’il n’y a pas de données sensibles avant)

1 Like
sudo cat /etc/yunohost/apps/hotspot/settings.yml
apt_dependencies: php7.0-fpm,
checksum__etc_init.d_hostapd: 6cdf77220c5d31fc4e6011f502feab5e
checksum__etc_systemd_system_ynh-hotspot.service: 80bf8d598ab81ed2be0160ab86accfbb
checksum__var_www_hotspot_config.php: 3236400ffda9cf7cb8a2f5feae0b61e3
current_revision: ec919eb58fdc9c358ddbe17558874ae968a7f527
domain: arnauld.org
final_path: /var/www/hotspot
firmware_nonfree: '0'
fpm_config_dir: /etc/php/7.3/fpm
fpm_service: php7.3-fpm
id: hotspot
install_time: 1583584656
internet_device: tun0
ip4_dns0: 80.67.188.188
ip4_dns1: 80.67.169.12
ip4_nat_prefix: 10.0.242
ip6_addr: none
ip6_dns0: 2001:913::8
ip6_dns1: 2001:910:800::12
ip6_firewall: '1'
ip6_net: none
multissid: '1'
path: /wifiadmin
service_enabled: '1'
service_name: ynh-hotspot
vpnclient: 'yes'
wifi_channel: '6'
wifi_device: wlan0
wifi_passphrase: xxxxx
wifi_secure: '1'
wifi_ssid: brique

Un redémarrage a résolu mon problème.

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