Wiki.js installation fails to install due to invalid password

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.11 (stable)
What app is this about: Wiki.js

Describe your issue

When I try to install Wiki.js, I get the following error message in the logs:

2025-03-04 08:44:36,286: DEBUG - + yunohost user create svc_wikijs_ldap --fullname SvcWikijsLdap --domain wiki.maindomain.tld --password ********** -q 0
2025-03-04 08:44:36,287: WARNING - ERROR The password needs to be at least 12 characters long and contain a digit, upper, lower and special characters
2025-03-04 08:44:36,293: DEBUG - You are now about to define a new user password. The password should be at least 8 characters longā€”though it is good practice to use a longer password (i.e. a passphrase) and/or to a variation of characters (uppercase, lowercase, digits and special characters).
2025-03-04 08:44:36,294: DEBUG - + ynh_exit_properly
2025-03-04 08:44:36,295: DEBUG - + [[ install =~ ^install$|^upgrade$|^restore$ ]]
2025-03-04 08:44:36,892: ERROR - Unable to install wikijs: An error occurred inside the app installation script

Any assistance would be greatly appreciated :slightly_smiling_face: .

Kann auch Deutsch, aber ich verstehe besser als ich schreibe.

Share relevant logs or error messages

https://paste.yunohost.org/raw/zetuhepiho

Need a more complex password

Yes, I see that, but the password is being set by the app install script. Thereā€™s no obvious way for me to change it

You have changed the pzss8 setting in the yunohost webadmin > Tools>
YunoHost settings

Change it back to the first option, retry the install then revert the change

Thank you, I set it back and was able to install the wiki.

  1. I would consider this a bug in the installer script, since Iā€™d expect the script to respect this setting. Whatā€™s the correct place for me to report this: the app repo?
  2. now that the wiki has been installed, is it safe for me to change the password complexity setting back, or would this break the wiki install (because its service userā€™s password isnā€™t compliant) ?

Possible fix:

1 Like