Problème : 'ascii' codec can't encode u'\xe9' (...) while trying to install Mailman

:uk:/:us:

Hi everyone !

My YunoHost server

Hardware: VPS chez OVH, starter
YunoHost version: 3.8.4.4
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

I am running some tests to create a small writing social group. On my VPS, I installed 1x Writefreely (single user), 1x Writefreely (multi-user), and 1x Mastodon instance. I know it may be too much for such a small VPS ? But I’m basically testing, and I think I still can upgrade the VPS if it appears it’s not handling the charge.

Well I tried to install Mailman. And I got an internal YNH error, I remember I got the same error with another app, framaform, even if my first point is to propose a newsletter subscription.

POST /apps
{"app":"mailman","args":"domain=mydomain.tld&path=%2Fmailman&admin_password=********&language=fr&is_public=1","label":"Mailman"}

and

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/api.py", line 489, in process
    ret = self.actionsmap.process(arguments, timeout=30, route=_route)
  File "/usr/lib/python2.7/dist-packages/moulinette/actionsmap.py", line 588, in process
    return func(**arguments)
  File "/usr/lib/moulinette/yunohost/log.py", line 303, in func_wrapper
    result = func(*args, **kwargs)
  File "/usr/lib/moulinette/yunohost/app.py", line 720, in app_install
    _validate_and_normalize_webpath(manifest, args_odict, extracted_app_folder)
  File "/usr/lib/moulinette/yunohost/app.py", line 2547, in _validate_and_normalize_webpath
    app_label=app_label,
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 12: ordinal not in range(128)

I hope my YNH is not broken ! I’d be glad if you found a way to help me.

Thanks a lot


:fr:

Mon serveur YunoHost

Matériel: VPS starter chez OVH
Version de YunoHost: 3.8.4.4
J’ai accès à mon serveur : En SSH | Par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non

Description du problème

Je suis en train de faire quelques essais pour créer un petit groupe d’écriture sur le fediverse. Sur mon VPS, j’ai installé 1x Writefreely (single user), 1x Writefreely (multi-users), et 1x instance Mastodon. Je sais que ça risque d’être un peu trop pour un petit VPS comme ça ? Bon, pour l’instant je fais des tests, et je pense que je pourrai toujours upgrader le VPS si la charge devient trop lourde pour lui.

Bon, donc j’ai essayé d’installer Mailman. Et j’ai eu une erreur interne de YNH, je me souviens avoir eu la même erreur juste après en essayant d’installer framaforms, même si mon idée première est de pouvoir proposer un système de newsletter.

POST /apps
{"app":"mailman","args":"domain=mydomain.tld&path=%2Fmailman&admin_password=********&language=fr&is_public=1","label":"Mailman"}

et

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/api.py", line 489, in process
    ret = self.actionsmap.process(arguments, timeout=30, route=_route)
  File "/usr/lib/python2.7/dist-packages/moulinette/actionsmap.py", line 588, in process
    return func(**arguments)
  File "/usr/lib/moulinette/yunohost/log.py", line 303, in func_wrapper
    result = func(*args, **kwargs)
  File "/usr/lib/moulinette/yunohost/app.py", line 720, in app_install
    _validate_and_normalize_webpath(manifest, args_odict, extracted_app_folder)
  File "/usr/lib/moulinette/yunohost/app.py", line 2547, in _validate_and_normalize_webpath
    app_label=app_label,
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 12: ordinal not in range(128)

J’espère que j’ai pas tout cassé ! J’ai fait plein de bidouilles en local pour bien prendre YNH en mains, et j’ai fait une installation propre sur le VPS, a priori je n’ai rien fait qui puisse causer cela. J’espère que vous pourrez m’aider…

Merci beaucoup !

Zblerg your yunohost is not, but the code of yunohost is, this is a small stupid bug é_è … which is in fact triggered by the fact that you have a “é” somewhere in an app label …

I pushed a fix here Fix encoding bullshit · YunoHost/yunohost@4c60012 · GitHub and we’ll release it at some point in the next hours/days but in the meantime the easiest thing to fix the issue is to edit the app label (In the webadmin, in Apps > the “problematic app” > Change label)

Back to what you were trying to do : the code is in fact trying to warn you that the app cannot be installed where you requested, most probably because an app is already installed at the root of the domain (the message would explain this with specific information about the conflict, but that’s the very message crashing the code …)

Sooooo idk either remove the app from the root domain, or install the app on a dedicated (sub)domain

(btw try to be careful about what you post, your initial message was containing a password which I redacted… (but usually yunohost auto-redact sensitive information in logs … just uh, not when that kind of error occurs…))

daaaaamn, thanks a lot, it was a dumb password I used to reproduce the logs, and I looked for the domain but forgot the password… lesson learned !

okay, thanks very much, I spotted the é ! I’ll try again

yup, there’s a Writefreely instance on the root domain and I thought it would be nice to access the mailman interface through the url domain.tld/newsletter ! I didn’t know it would be problematic, the yunohost user home is admin.domain.tld in order to welcome visitors on the root domain.tld. Do you think it’s a bad choice ?

Thanks very much for your quick answer !

Uh I don’t think so but I don’t understand how that would relate to the app installed ?

Yeah, sorry I think I misunderstood your point !
I thought you told me it’s a bad idea to install apps on the root domain (domain.tld).

Well, everything works now like a charm, I installed mailman, I deleted it after that because it’s a little bit too complex compared to what I expected, and my tests are now over. Fresh install, let’s tune what can be tuned now ! Can’t wait to welcome ppl in this writing group on the fediverse =D

Just to say, YNH is an AMAZING platform, I’m really impressed by the whole thing. Thank you so much ! I’ve not been that excited since I discovered nodeJS and its infinite possibilities ! :heart: :heart: :heart:

1 Like

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