/ french below
Hello !
I don’t know if I need to open an issue on github for that. Just tell me what is best.
Sincerlly.
My YunoHost server
Hardware: Intel nuc used as an internet cube (vpn, wifi hotspot)
YunoHost version: 3.6.4.5
I have access to my server : Through SSH or through the webadmin or through Shell in a box
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
Description of my issue
I applied the last update for yunohost (from 3.6.4.3 to 3.6.4.5 I think). Since, I can’t access the logs page from the webadmin, and I get this error message :
Action
GET /logs
{"with_details":"","limit":"25"}
Traceback
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/api.py", line 439, in process
ret = self.actionsmap.process(arguments, timeout=30, route=_route)
File "/usr/lib/python2.7/dist-packages/moulinette/actionsmap.py", line 523, in process
return func(**arguments)
File "/usr/lib/moulinette/yunohost/log.py", line 106, in log_list
metadata = read_yaml(md_path)
File "/usr/lib/python2.7/dist-packages/moulinette/utils/filesystem.py", line 73, in read_yaml
loaded_yaml = yaml.safe_load(file_content)
File "/usr/lib/python2.7/dist-packages/yaml/__init__.py", line 93, in safe_load
return load(stream, SafeLoader)
File "/usr/lib/python2.7/dist-packages/yaml/__init__.py", line 71, in load
return loader.get_single_data()
File "/usr/lib/python2.7/dist-packages/yaml/constructor.py", line 37, in get_single_data
node = self.get_single_node()
File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 64, in compose_node
if self.check_event(AliasEvent):
File "/usr/lib/python2.7/dist-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/usr/lib/python2.7/dist-packages/yaml/parser.py", line 449, in parse_block_mapping_value
if not self.check_token(KeyToken, ValueToken, BlockEndToken):
File "/usr/lib/python2.7/dist-packages/yaml/scanner.py", line 116, in check_token
self.fetch_more_tokens()
File "/usr/lib/python2.7/dist-packages/yaml/scanner.py", line 224, in fetch_more_tokens
return self.fetch_alias()
File "/usr/lib/python2.7/dist-packages/yaml/scanner.py", line 607, in fetch_alias
self.tokens.append(self.scan_anchor(AliasToken))
File "/usr/lib/python2.7/dist-packages/yaml/scanner.py", line 926, in scan_anchor
% ch.encode('utf-8'), self.get_mark())
ScannerError: while scanning an alias
in "", line 12, column 32:
YNH_APP_ARG_WIFI_PASSPHRASE: **********
^
expected alphabetic or numeric character, but found '*'
in "", line 12, column 33:
YNH_APP_ARG_WIFI_PASSPHRASE: **********
^
Apparently, the problem comes from the hotspot application. I tried to uninstall it but the log page still return the same error.
It is not a critical bug, since the other services seems to work fine.
English above
Salut !
Je ne sais pas si je dois ouvrir un ticket sur github pour ça. Dit moi ce que vous préférez.
Cordialement
Mon serveur YunoHost
Matériel: Intel nuc utilisé *comme une * brique internet (vpn, hotspot wifi)
Version de YunoHost: 3.6.4.5
J’ai accès à mon serveur : En SSH ou Par la webadmin ou avec Shell in a box
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non
Description du problème
J’ai appliqué la dernière mise à jour (depuis 3.6.4.3 vers 3.6.4.5 im me semble). Depuis, je n’ai plus accès à aux logs depuis le webadmin, et j’ai le message d’erreur suivant :
Action
GET /logs
{"with_details":"","limit":"25"}
Traceback
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/api.py", line 439, in process
ret = self.actionsmap.process(arguments, timeout=30, route=_route)
File "/usr/lib/python2.7/dist-packages/moulinette/actionsmap.py", line 523, in process
return func(**arguments)
File "/usr/lib/moulinette/yunohost/log.py", line 106, in log_list
metadata = read_yaml(md_path)
File "/usr/lib/python2.7/dist-packages/moulinette/utils/filesystem.py", line 73, in read_yaml
loaded_yaml = yaml.safe_load(file_content)
File "/usr/lib/python2.7/dist-packages/yaml/__init__.py", line 93, in safe_load
return load(stream, SafeLoader)
File "/usr/lib/python2.7/dist-packages/yaml/__init__.py", line 71, in load
return loader.get_single_data()
File "/usr/lib/python2.7/dist-packages/yaml/constructor.py", line 37, in get_single_data
node = self.get_single_node()
File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 64, in compose_node
if self.check_event(AliasEvent):
File "/usr/lib/python2.7/dist-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/usr/lib/python2.7/dist-packages/yaml/parser.py", line 449, in parse_block_mapping_value
if not self.check_token(KeyToken, ValueToken, BlockEndToken):
File "/usr/lib/python2.7/dist-packages/yaml/scanner.py", line 116, in check_token
self.fetch_more_tokens()
File "/usr/lib/python2.7/dist-packages/yaml/scanner.py", line 224, in fetch_more_tokens
return self.fetch_alias()
File "/usr/lib/python2.7/dist-packages/yaml/scanner.py", line 607, in fetch_alias
self.tokens.append(self.scan_anchor(AliasToken))
File "/usr/lib/python2.7/dist-packages/yaml/scanner.py", line 926, in scan_anchor
% ch.encode('utf-8'), self.get_mark())
ScannerError: while scanning an alias
in "", line 12, column 32:
YNH_APP_ARG_WIFI_PASSPHRASE: **********
^
expected alphabetic or numeric character, but found '*'
in "", line 12, column 33:
YNH_APP_ARG_WIFI_PASSPHRASE: **********
^
Il semble qu’il y ai un problème avec l’application hotspot. J’ai essayé de la desinstaller, mais cela n’a pas corrigé le problème.
Ce bug n’est pas critique, puisque tous les autres services semblent fonctionner correctement.