Error when trying to enter user information in admin panel

Hi, I installed YunoHost through ISO found on the site and also tried installing directly through the script in Debian.
The version of YunoHost I installed is: 3.7.1.3 (stable)
My problem is I manage to install and everything is fine even after the post-installation (although post-installation is not able to turn on the firewall but for me it does not matter)
But my real problem is that after I create a user it creates it without any problems but when I try to enter its information in admin panel I get the following error

**Yunohost encountered an internal error:/**
Action

GET /users/
{"username":"itay","locale":"he"}

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 527, in process
    return func(**arguments)
  File "/usr/lib/moulinette/yunohost/user.py", line 484, in user_info
    shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 219, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command 'doveadm -f flow quota get -u itay' returned non-zero exit status 75

I’ve tried reinstalling dozens of times and the problem still exists.
I searched the web and in the forum here. I found in the forum here, someone who had the same problem but the solution that was there didn’t help me.

Asking for your help! Because I want to use YunoHost very much but due to this problem I can’t.
Thanks
Itay

Please don’t reinstall for that kind of issue … I don’t know why so many people love reinstalling so much … 99.9% of the time it’s just not the right thing to do and won’t solve anything on the long run.

Can you check if you have any pending migration in Tools > Migrations

If you do and the migration fails, please provide the log of the migration.

If you don’t have any pending migration, please check the version of slapd with 'dpkg --list | grep slapd'

ii slapd 2.4.44+dfsg-5+deb9u4 amd64 OpenLDAP server (slapd)

So you confirm that you don’t have any pending migration …?

What about 'grep -nr "MemberOfMemberAD:" /etc/ldap' ?

Yes, I checked and I have no pending migration.

/etc/ldap/slapd.d/cn=config/olcDatabase={1}mdb/olcOverlay={2}memberof.ldif:11:olcMemberOfMemberAD: inheritPermission
/etc/ldap/slapd.d/cn=config/olcDatabase={1}mdb/olcOverlay={0}memberof.ldif:11:olcMemberOfMemberAD: member
/etc/ldap/slapd.d/cn=config/olcDatabase={1}mdb/olcOverlay={1}memberof.ldif:11:olcMemberOfMemberAD: groupPermission

Wokay so if you run manually doveadm -f flow quota get -u itay

what does it says ?

Fatal: Unknown command 'quota', but plugin quota exists. Try to set mail_plugins=quota

Hmokay …

Alors est-ce que

yunohost tools regen-conf dovecot --dry-run -d

raconte des choses ?

That’s what came out

Info: The configuration file '/etc/dovecot/dovecot.conf' is now managed by YunoHost (category dovecot).
Success! The configuration would have been updated for category 'dovecot'
dovecot:
  applied:
    /etc/dovecot/dovecot-ldap.conf:
      diff: @@ -0,0 +1,9 @@
+hosts = 127.0.0.1
+auth_bind = yes
+ldap_version = 3
+base = ou=users,dc=yunohost,dc=org
+user_attrs = uidNumber=500,gidNumber=8,mailuserquota=quota_rule=*:bytes=%$
+user_filter = (&(objectClass=inetOrgPerson)(uid=%n)(permission=cn=mail.main,ou=permission,dc=yunohost,dc=org))
+pass_filter = (&(objectClass=inetOrgPerson)(uid=%n)(permission=cn=mail.main,ou=permission,dc=yunohost,dc=org))
+default_pass_scheme = SSHA
+
      status: created
    /etc/dovecot/dovecot.conf:
      diff: @@ -1,102 +1,96 @@
-## Dovecot configuration file
+!include yunohost.d/pre-ext.conf

-# If you're in a hurry, see http://wiki2.dovecot.org/QuickConfiguration
+listen = *, ::
+auth_mechanisms = plain login

-# "doveconf -n" command gives a clean output of the changed settings. Use it
-# instead of copy&pasting files when posting to the Dovecot mailing list.
+mail_gid = 8
+mail_home = /var/mail/%n
+mail_location = maildir:/var/mail/%n
+mail_uid = 500

-# '#' character and everything after it is treated as comments. Extra spaces
-# and tabs are ignored. If you want to use either of these explicitly, put the
-# value inside quotes, eg.: key = "# char and trailing whitespace  "
+protocols = imap sieve

-# Most (but not all) settings can be overridden by different protocols and/or
-# source/destination IPs by placing the settings inside sections, for example:
-# protocol imap { }, local 127.0.0.1 { }, remote 10.0.0.0/8 { }
+mail_plugins = $mail_plugins quota

-# Default values are shown for each setting, it's not required to uncomment
-# those. These are exceptions to this though: No sections (e.g. namespace {})
-# or plugin settings are added by default, they're listed only as examples.
-# Paths are also just examples with the real defaults being based on configure
-# options. The paths listed here are for configure --prefix=/usr
-# --sysconfdir=/etc --localstatedir=/var

-# Enable installed protocols
-!include_try /usr/share/dovecot/protocols.d/*.protocol
+ssl = yes
+ssl_cert = </etc/yunohost/certs/examply.com/crt.pem
+ssl_key = </etc/yunohost/certs/examply.com/key.pem
+ssl_protocols = !SSLv3

-# A comma separated list of IPs or hosts where to listen in for connections.
-# "*" listens in all IPv4 interfaces, "::" listens in all IPv6 interfaces.
-# If you want to specify non-default ports or anything more complex,
-# edit conf.d/master.conf.
-#listen = *, ::
-
-# Base directory where to store runtime data.
-#base_dir = /var/run/dovecot/
-
-# Name of this instance. In multi-instance setup doveadm and other commands
-# can use -i <instance_name> to select which instance is used (an alternative
-# to -c <config_path>). The instance name is also added to Dovecot processes
-# in ps output.
-#instance_name = dovecot
-
-# Greeting message for clients.
-#login_greeting = Dovecot ready.
-
-# Space separated list of trusted network ranges. Connections from these
-# IPs are allowed to override their IP addresses and ports (for logging and
-# for authentication checks). disable_plaintext_auth is also ignored for
-# these networks. Typically you'd specify your IMAP proxy servers here.
-#login_trusted_networks =
-
-# Space separated list of login access check sockets (e.g. tcpwrap)
-#login_access_sockets =
-
-# With proxy_maybe=yes if proxy destination matches any of these IPs, don't do
-# proxying. This isn't necessary normally, but may be useful if the destination
-# IP is e.g. a load balancer's IP.
-#auth_proxy_self =
-
-# Show more verbose process titles (in ps). Currently shows user name and
-# IP address. Useful for seeing who are actually using the IMAP processes
-# (eg. shared mailboxes or if same uid is used for multiple accounts).
-#verbose_proctitle = no
-
-# Should all processes be killed when Dovecot master process shuts down.
-# Setting this to "no" means that Dovecot can be upgraded without
-# forcing existing client connections to close (although that could also be
-# a problem if the upgrade is e.g. because of a security fix).
-#shutdown_clients = yes
-
-# If non-zero, run mail commands via this many connections to doveadm server,
-# instead of running them directly in the same process.
-#doveadm_worker_count = 0
-# UNIX socket or host:port used for connecting to doveadm server
-#doveadm_socket_path = doveadm-server
-
-# Space separated list of environment variables that are preserved on Dovecot
-# startup and passed down to all of its child processes. You can also give
-# key=value pairs to always set specific settings.
-#import_environment = TZ
-
-##
-## Dictionary server settings
-##
-
-# Dictionary can be used to store key=value lists. This is used by several
-# plugins. The dictionary can be accessed either directly or though a
-# dictionary server. The following dict block maps dictionary names to URIs
-# when the server is used. These can then be referenced using URIs in format
-# "proxy::<name>".
-
-dict {
-  #quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
-  #expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext
+passdb {
+  args = /etc/dovecot/dovecot-ldap.conf
+  driver = ldap
 }

-# Most of the actual configuration gets included below. The filenames are
-# first sorted by their ASCII value and parsed in that order. The 00-prefixes
-# in filenames are intended to make it easier to understand the ordering.
-!include conf.d/*.conf
+userdb {
+  args = /etc/dovecot/dovecot-ldap.conf
+  driver = ldap
+}

-# A config file can also tried to be included without giving an error if
-# it's not found:
-!include_try local.conf
+protocol imap {
+  imap_client_workarounds =
+  mail_plugins = $mail_plugins imap_quota antispam
+}
+
+
+protocol lda {
+  auth_socket_path = /var/run/dovecot/auth-master
+  mail_plugins = quota sieve
+  postmaster_address = postmaster@examply.com
+}
+
+protocol sieve {
+}
+
+service auth {
+  unix_listener /var/spool/postfix/private/auth {
+    group = postfix
+    mode = 0660
+    user = postfix
+  }
+  unix_listener auth-master {
+    group = mail
+    mode = 0660
+    user = vmail
+  }
+}
+
+service quota-warning {
+  executable = script /usr/bin/quota-warning.sh
+  user = vmail
+  unix_listener quota-warning {
+  }
+}
+
+plugin {
+  sieve = /var/mail/sievescript/%n/.dovecot.sieve
+  sieve_dir = /var/mail/sievescript/%n/scripts/
+  sieve_before = /etc/dovecot/global_script/
+}
+
+plugin {
+  antispam_debug_target = syslog
+  antispam_verbose_debug = 0
+  antispam_backend = pipe
+  antispam_spam = Junk;SPAM
+  antispam_trash = Trash
+  antispam_pipe_program = /usr/bin/rspamc
+  antispam_pipe_program_args = -h;localhost:11334;-P;q1
+  antispam_pipe_program_spam_arg = learn_spam
+  antispam_pipe_program_notspam_arg = learn_ham
+}
+
+plugin {
+  quota = maildir:User quota
+  quota_rule2 = SPAM:ignore
+  quota_rule3 = Trash:ignore
+}
+
+plugin {
+  quota_warning = storage=95%% quota-warning 95 %u
+  quota_warning2 = storage=80%% quota-warning 80 %u
+  quota_warning3 = -storage=100%% quota-warning below %u # user is no longer over quota
+}
+
+!include yunohost.d/post-ext.conf
      status: new
    /etc/dovecot/global_script/dovecot.sieve:
      diff: @@ -0,0 +1,4 @@
+require "fileinto";
+    if header :contains "X-Spam-Flag" "YES" {
+        fileinto "Junk";
+    }
      status: created
    /etc/dovecot/yunohost.d/post-ext.conf:
      diff: @@ -0,0 +1 @@
+!include_try post-ext.d/*.conf
      status: created
    /etc/dovecot/yunohost.d/pre-ext.conf:
      diff: @@ -0,0 +1 @@
+!include_try pre-ext.d/*.conf
      status: created
  pending:

And please write in English so that I understand properly.

Ugh yeah sorry I’m constantly switching between french and english topics and sometimes get mixed up…

Anyway, don’t know why your dovecot configuration looks like this but imho we should just force it back to the recommended conf with :

yunohost tools regen-conf dovecot --force

Thanks!! It works
Now I found a new problem
I can’t install any app
For example, I tried to install Lstu
But it failed
log of installation

2020-05-12 17:53:08,317: INFO - Installing the app 'lstu'…
2020-05-12 17:53:08,396: DEBUG - The permission database has been resynchronized
2020-05-12 17:53:08,470: DEBUG - SSOwat configuration generated
2020-05-12 17:53:08,478: DEBUG - No default hook for action 'post_app_addaccess' in /usr/share/yunohost/hooks/
2020-05-12 17:53:08,478: DEBUG - No custom hook for action 'post_app_addaccess' in /etc/yunohost/hooks.d/
2020-05-12 17:53:08,479: DEBUG - Permission 'lstu.main' created
2020-05-12 17:53:08,479: DEBUG - Full log of this operation: '<a href="#/tools/logs/20200512-145308-permission_create-lstu" style="text-decoration:underline">Create permission 'lstu'</a>'
2020-05-12 17:53:08,482: DEBUG - Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/lstu_ynh-2d33783907d6de4486ac9e954ebc4b4028e11de8/scripts YNH_APP_ARG_THEME=milligram YNH_APP_INSTANCE_NAME=lstu YNH_STDINFO=/tmp/tmpvkp6sE/stdinfo YNH_APP_ARG_PASSWORD='**********' YNH_APP_ARG_IS_PUBLIC=0 YNH_INTERFACE=api YNH_APP_ID=lstu YNH_APP_ARG_PATH=/lstu YNH_STDRETURN=/tmp/tmppmLnD3/stdreturn YNH_APP_ARG_DOMAIN=examply.com BASH_XTRACEFD=7 /bin/bash -x "./install" examply.com /lstu 0 milligram '**********' lstu 7>&1'…
2020-05-12 17:53:08,482: DEBUG - About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/lstu_ynh-2d33783907d6de4486ac9e954ebc4b4028e11de8/scripts YNH_APP_ARG_THEME=milligram YNH_APP_INSTANCE_NAME=lstu YNH_STDINFO=/tmp/tmpvkp6sE/stdinfo YNH_APP_ARG_PASSWORD=\'I\xd7\x90\xd7\xa9\xd7\x98121233\' YNH_APP_ARG_IS_PUBLIC=0 YNH_INTERFACE=api YNH_APP_ID=lstu YNH_APP_ARG_PATH=/lstu YNH_STDRETURN=/tmp/tmppmLnD3/stdreturn YNH_APP_ARG_DOMAIN=examply.com BASH_XTRACEFD=7 /bin/bash -x "./install" examply.com /lstu 0 milligram \'I\xd7\x90\xd7\xa9\xd7\x98121233\' lstu 7>&1']'
2020-05-12 17:53:08,591: DEBUG - + source _common.sh
2020-05-12 17:53:08,592: INFO - Validating installation parameters...
2020-05-12 17:53:08,593: DEBUG - + source /usr/share/yunohost/helpers
2020-05-12 17:53:08,593: DEBUG - +++ run-parts --list /usr/share/yunohost/helpers.d
2020-05-12 17:53:08,593: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-05-12 17:53:08,593: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/apt ']'
2020-05-12 17:53:08,593: DEBUG - ++ . /usr/share/yunohost/helpers.d/apt
2020-05-12 17:53:08,593: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-05-12 17:53:08,594: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/backup ']'
2020-05-12 17:53:08,594: DEBUG - ++ . /usr/share/yunohost/helpers.d/backup
2020-05-12 17:53:08,594: DEBUG - +++ CAN_BIND=1
2020-05-12 17:53:08,594: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-05-12 17:53:08,594: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/fail2ban ']'
2020-05-12 17:53:08,594: DEBUG - ++ . /usr/share/yunohost/helpers.d/fail2ban
2020-05-12 17:53:08,594: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-05-12 17:53:08,594: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
2020-05-12 17:53:08,595: DEBUG - ++ . /usr/share/yunohost/helpers.d/getopts
2020-05-12 17:53:08,595: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-05-12 17:53:08,595: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logging ']'
2020-05-12 17:53:08,595: DEBUG - ++ . /usr/share/yunohost/helpers.d/logging
2020-05-12 17:53:08,595: DEBUG - +++ increment_progression=0
2020-05-12 17:53:08,595: DEBUG - +++ previous_weight=0
2020-05-12 17:53:08,595: DEBUG - +++ max_progression=-1
2020-05-12 17:53:08,595: DEBUG - +++ progress_scale=20
2020-05-12 17:53:08,596: DEBUG - +++ progress_string2='####################'
2020-05-12 17:53:08,596: DEBUG - +++ progress_string1=++++++++++++++++++++
2020-05-12 17:53:08,596: DEBUG - +++ progress_string0=....................
2020-05-12 17:53:08,596: DEBUG - ++++ date +%s
2020-05-12 17:53:08,596: DEBUG - +++ base_time=1589295188
2020-05-12 17:53:08,596: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-05-12 17:53:08,596: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logrotate ']'
2020-05-12 17:53:08,596: DEBUG - ++ . /usr/share/yunohost/helpers.d/logrotate
2020-05-12 17:53:08,596: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-05-12 17:53:08,597: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
2020-05-12 17:53:08,597: DEBUG - ++ . /usr/share/yunohost/helpers.d/mysql
2020-05-12 17:53:08,597: DEBUG - +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
2020-05-12 17:53:08,597: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-05-12 17:53:08,597: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
2020-05-12 17:53:08,597: DEBUG - ++ . /usr/share/yunohost/helpers.d/network
2020-05-12 17:53:08,598: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-05-12 17:53:08,598: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nginx ']'
2020-05-12 17:53:08,598: DEBUG - ++ . /usr/share/yunohost/helpers.d/nginx
2020-05-12 17:53:08,598: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-05-12 17:53:08,598: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
2020-05-12 17:53:08,598: DEBUG - ++ . /usr/share/yunohost/helpers.d/nodejs
2020-05-12 17:53:08,598: DEBUG - +++ n_install_dir=/opt/node_n
2020-05-12 17:53:08,598: DEBUG - +++ node_version_path=/opt/node_n/n/versions/node
2020-05-12 17:53:08,599: DEBUG - +++ export N_PREFIX=/opt/node_n
2020-05-12 17:53:08,599: DEBUG - +++ N_PREFIX=/opt/node_n
2020-05-12 17:53:08,599: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-05-12 17:53:08,599: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/php ']'
2020-05-12 17:53:08,599: DEBUG - ++ . /usr/share/yunohost/helpers.d/php
2020-05-12 17:53:08,599: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-05-12 17:53:08,599: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/postgresql ']'
2020-05-12 17:53:08,599: DEBUG - ++ . /usr/share/yunohost/helpers.d/postgresql
2020-05-12 17:53:08,599: DEBUG - +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql
2020-05-12 17:53:08,600: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-05-12 17:53:08,600: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
2020-05-12 17:53:08,600: DEBUG - ++ . /usr/share/yunohost/helpers.d/setting
2020-05-12 17:53:08,600: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-05-12 17:53:08,600: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
2020-05-12 17:53:08,600: DEBUG - ++ . /usr/share/yunohost/helpers.d/string
2020-05-12 17:53:08,600: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-05-12 17:53:08,600: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']'
2020-05-12 17:53:08,601: DEBUG - ++ . /usr/share/yunohost/helpers.d/systemd
2020-05-12 17:53:08,601: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-05-12 17:53:08,601: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
2020-05-12 17:53:08,601: DEBUG - ++ . /usr/share/yunohost/helpers.d/user
2020-05-12 17:53:08,601: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-05-12 17:53:08,601: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
2020-05-12 17:53:08,601: DEBUG - ++ . /usr/share/yunohost/helpers.d/utils
2020-05-12 17:53:08,601: DEBUG - + ynh_abort_if_errors
2020-05-12 17:53:08,602: DEBUG - + set -eu
2020-05-12 17:53:08,602: DEBUG - + trap ynh_exit_properly EXIT
2020-05-12 17:53:08,602: DEBUG - + domain=examply.com
2020-05-12 17:53:08,602: DEBUG - + path_url=/lstu
2020-05-12 17:53:08,602: DEBUG - + is_public=0
2020-05-12 17:53:08,602: DEBUG - + theme=milligram
2020-05-12 17:53:08,602: DEBUG - + password=**********
2020-05-12 17:53:08,602: DEBUG - + app=lstu
2020-05-12 17:53:08,602: DEBUG - + ynh_print_info 'Validating installation parameters...'
2020-05-12 17:53:08,603: DEBUG - + local legacy_args=m
2020-05-12 17:53:08,603: DEBUG - + args_array=([m]=message=)
2020-05-12 17:53:08,603: DEBUG - + declare -Ar args_array
2020-05-12 17:53:08,603: DEBUG - + local message
2020-05-12 17:53:08,603: DEBUG - + ynh_handle_getopts_args 'Validating installation parameters...'
2020-05-12 17:53:08,603: DEBUG - + set +x
2020-05-12 17:53:08,603: DEBUG - + echo '! Helper used in legacy mode !'
2020-05-12 17:53:08,603: DEBUG - + set +x
2020-05-12 17:53:08,603: DEBUG - + echo 'Validating installation parameters...'
2020-05-12 17:53:08,604: DEBUG - + final_path=/var/www/lstu
2020-05-12 17:53:08,604: DEBUG - + test '!' -e /var/www/lstu
2020-05-12 17:53:08,604: DEBUG - ++ ynh_normalize_url_path /lstu
2020-05-12 17:53:08,604: DEBUG - ++ local legacy_args=p
2020-05-12 17:53:08,604: DEBUG - ++ args_array=([p]=path_url=)
2020-05-12 17:53:08,604: DEBUG - ++ declare -Ar args_array
2020-05-12 17:53:08,604: DEBUG - ++ local path_url
2020-05-12 17:53:08,604: DEBUG - ++ ynh_handle_getopts_args /lstu
2020-05-12 17:53:08,604: DEBUG - ++ set +x
2020-05-12 17:53:08,605: DEBUG - ++ echo '! Helper used in legacy mode !'
2020-05-12 17:53:08,605: DEBUG - ++ set +x
2020-05-12 17:53:08,605: DEBUG - ++ test -n /lstu
2020-05-12 17:53:08,605: DEBUG - ++ '[' / '!=' / ']'
2020-05-12 17:53:08,605: DEBUG - ++ '[' u == / ']'
2020-05-12 17:53:08,605: DEBUG - ++ echo /lstu
2020-05-12 17:53:08,605: DEBUG - + path_url=/lstu
2020-05-12 17:53:08,605: DEBUG - + ynh_webpath_available examply.com /lstu
2020-05-12 17:53:08,606: DEBUG - + local legacy_args=dp
2020-05-12 17:53:08,606: DEBUG - + args_array=([d]=domain= [p]=path_url=)
2020-05-12 17:53:08,606: DEBUG - + declare -Ar args_array
2020-05-12 17:53:08,606: DEBUG - + local domain
2020-05-12 17:53:08,606: DEBUG - + local path_url
2020-05-12 17:53:08,606: DEBUG - + ynh_handle_getopts_args examply.com /lstu
2020-05-12 17:53:08,606: DEBUG - + set +x
2020-05-12 17:53:08,606: DEBUG - + echo '! Helper used in legacy mode !'
2020-05-12 17:53:08,606: DEBUG - + set +x
2020-05-12 17:53:08,607: DEBUG - + yunohost domain url-available examply.com /lstu
2020-05-12 17:53:08,707: DEBUG - + ynh_exit_properly
2020-05-12 17:53:08,707: WARNING - Traceback (most recent call last):
2020-05-12 17:53:08,708: DEBUG - + local exit_code=1
2020-05-12 17:53:08,708: WARNING -   File "/usr/bin/yunohost", line 218, in <module>
2020-05-12 17:53:08,708: DEBUG - + '[' 1 -eq 0 ']'
2020-05-12 17:53:08,708: WARNING -     timeout=opts.timeout,
2020-05-12 17:53:08,709: DEBUG - + trap '' EXIT
2020-05-12 17:53:08,709: WARNING -   File "/usr/lib/python2.7/dist-packages/moulinette/__init__.py", line 132, in cli
2020-05-12 17:53:08,709: DEBUG - + set +eu
2020-05-12 17:53:08,709: WARNING -     'parser_kwargs': parser_kwargs,
2020-05-12 17:53:08,709: DEBUG - + sleep 0.5
2020-05-12 17:53:08,710: WARNING -   File "/usr/lib/python2.7/dist-packages/moulinette/core.py", line 398, in init_interface
2020-05-12 17:53:08,710: WARNING -     return interface(amap, **kwargs)
2020-05-12 17:53:08,710: WARNING -   File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/cli.py", line 387, in __init__
2020-05-12 17:53:08,711: WARNING -     m18n.set_locale(get_locale())
2020-05-12 17:53:08,711: WARNING -   File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/cli.py", line 171, in get_locale
2020-05-12 17:53:08,711: WARNING -     lang = locale.getdefaultlocale()[0]
2020-05-12 17:53:08,712: WARNING -   File "/usr/lib/python2.7/locale.py", line 545, in getdefaultlocale
2020-05-12 17:53:08,712: WARNING -     return _parse_localename(localename)
2020-05-12 17:53:08,712: WARNING -   File "/usr/lib/python2.7/locale.py", line 477, in _parse_localename
2020-05-12 17:53:08,712: WARNING -     raise ValueError, 'unknown locale: %s' % localename
2020-05-12 17:53:08,713: WARNING - ValueError: unknown locale: en_IL
2020-05-12 17:53:09,215: DEBUG - + type -t ynh_clean_setup
2020-05-12 17:53:09,215: WARNING - 
2020-05-12 17:53:09,215: DEBUG - + ynh_clean_setup
2020-05-12 17:53:09,215: DEBUG - + ynh_clean_check_starting
2020-05-12 17:53:09,215: DEBUG - + '[' -n '' ']'
2020-05-12 17:53:09,216: DEBUG - + '[' -n '' ']'
2020-05-12 17:53:09,216: DEBUG - + true
2020-05-12 17:53:09,216: DEBUG - + ynh_die
2020-05-12 17:53:09,216: DEBUG - + local legacy_args=mc
2020-05-12 17:53:09,216: DEBUG - + args_array=([m]=message= [c]=ret_code=)
2020-05-12 17:53:09,216: DEBUG - + declare -Ar args_array
2020-05-12 17:53:09,216: DEBUG - + local message
2020-05-12 17:53:09,216: DEBUG - + local ret_code
2020-05-12 17:53:09,216: DEBUG - + ynh_handle_getopts_args
2020-05-12 17:53:09,217: DEBUG - + set +x
2020-05-12 17:53:09,217: DEBUG - + echo ''
2020-05-12 17:53:09,217: DEBUG - + exit 1
2020-05-12 17:53:09,352: ERROR - Could not install lstu: An error occurred inside the app installation script

I don’t understand why this locale is unknown but apparently this is a recurring issue on the internet in other contexts …

I’ll try to push a fix for next Yunohost versions …

In the meantime, I think a workaround is to connect using SSH and run :

update-locale LANG=en_US.UTF-8

Okay thank you

I ran it but it still takes the locale: en_IL during installation

Ugh … Locale issues are always crazy …

Did you try the install through the webadmin ? If so maybe you need to run 'systemctl restart yunohost-api' (to propagate the change)

I managed to fix the Locale problem after I ran the command and saw that it didn’t work so I restarted and the error disappeared!
But then he was unable to create the app file in nginx because the domain directory did not exist in conf.d
So I created the folder and then the installation completed successfully but now I have no access to the app when I try to enter its url it takes me back to the admin panel.

@Aleks Can you help me with the last problem I mentioned?

Meh I dunno it’s too fuzzy to be able to help … what url exactly are you trying, and when you say “the admin panel” do you really mean “the admin panel” or do you mean “the user/SSO portal”

@Aleks Ok,
Like I said I installed Lstu. (I thought to mention it again - when installing I had to manually create mydomain.com.conf.d folder in nginx)
So after it’s successfully installed I try to enter mydomain.com/Lstu and it takes me straight to the admin panel - mydomain.com/yunohost/admin/#/

UP for help

Hmokay maybe you have a redirection in /etc/ssowat/conf.json.persistent (too complicated to explain why it’s there but I have some ideas, that kind of issue should be fixed in 3.8)

You can confirm this by running

cat /etc/ssowat/conf.json.persistent

And if there’s no other important bits, you can safely run

rm /etc/ssowat/conf.json.persistent