Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lufi does not install using web admin if anonymous acces not enable #65

Open
pascal-levasseur opened this issue Sep 24, 2021 · 3 comments

Comments

@pascal-levasseur
Copy link

On an installation of Yunohost the installation of "Lufi" application using web admin failed.

Hardware : Intel miniITX board with pentium processor, 8 Gb RAM
Acces : Installation made with web admin
Version : Updated Yunohost 4.2.8.3
Special context : Other applications installed with no issues : Peertube, Transmission, Roundcube
No tweaking at all.

Observation : The choosen domain name is lufi.bonus-communis.eu, but Lufi seems to stick with lufi.bonus.communis.eu

2021-09-24 11:21:25,854: DEBUG - ++ echo lufi.bonus-communis.eu
2021-09-24 11:21:25,854: DEBUG - ++ sed s@-@.@g
2021-09-24 11:21:25,857: DEBUG - + domain_regex=lufi.bonus.communis.eu
2021-09-24 11:21:25,857: DEBUG - + ynh_app_setting_set --app=lufi --key=protected_regex '--value=lufi.bonus.communis.eu/lufi/stats$,lufi.bonus.communis.eu/lufi/manifest.webapp$,lufi.bonus.communis.eu/lufi/$,lufi.bonus.communis.eu/lufi/d/.$,lufi.bonus.communis.eu/lufi/m/.$'

Complete Log

2021-09-24 11:21:18,033: DEBUG - + test -n lufi
2021-09-24 11:21:18,033: DEBUG - + ynh_replace_string --match_string=NAME --replace_string=lufi --target_file=/etc/cron.d/lufi
2021-09-24 11:21:18,113: DEBUG - + local delimit=@
2021-09-24 11:21:18,113: DEBUG - + match_string=NAME
2021-09-24 11:21:18,113: DEBUG - + replace_string=lufi
2021-09-24 11:21:18,113: DEBUG - + sed --in-place s@NAME@lufi@g /etc/cron.d/lufi
2021-09-24 11:21:18,115: DEBUG - + ynh_replace_string --match_string=NAMETOCHANGE --replace_string=lufi --target_file=/etc/cron.d/lufi
2021-09-24 11:21:18,195: DEBUG - + local delimit=@
2021-09-24 11:21:18,195: DEBUG - + match_string=NAMETOCHANGE
2021-09-24 11:21:18,196: DEBUG - + replace_string=lufi
2021-09-24 11:21:18,196: DEBUG - + sed --in-place s@NAMETOCHANGE@lufi@g /etc/cron.d/lufi
2021-09-24 11:21:18,199: DEBUG - + ynh_replace_string --match_string=USER --replace_string=lufi --target_file=/etc/cron.d/lufi
2021-09-24 11:21:18,278: DEBUG - + local delimit=@
2021-09-24 11:21:18,278: DEBUG - + match_string=USER
2021-09-24 11:21:18,278: DEBUG - + replace_string=lufi
2021-09-24 11:21:18,278: DEBUG - + sed --in-place s@USER@lufi@g /etc/cron.d/lufi
2021-09-24 11:21:18,281: DEBUG - + test -n /var/www/lufi
2021-09-24 11:21:18,281: DEBUG - + ynh_replace_string --match_string=FINALPATH --replace_string=/var/www/lufi --target_file=/etc/cron.d/lufi
2021-09-24 11:21:18,363: DEBUG - + local delimit=@
2021-09-24 11:21:18,363: DEBUG - + match_string=FINALPATH
2021-09-24 11:21:18,363: DEBUG - + replace_string=/var/www/lufi
2021-09-24 11:21:18,363: DEBUG - + sed --in-place s@FINALPATH@/var/www/lufi@g /etc/cron.d/lufi
2021-09-24 11:21:18,365: DEBUG - + test -n 7.3
2021-09-24 11:21:18,366: DEBUG - + ynh_replace_string --match_string=PHPVERSION --replace_string=7.3 --target_file=/etc/cron.d/lufi
2021-09-24 11:21:18,446: DEBUG - + local delimit=@
2021-09-24 11:21:18,447: DEBUG - + match_string=PHPVERSION
2021-09-24 11:21:18,447: DEBUG - + replace_string=7.3
2021-09-24 11:21:18,447: DEBUG - + sed --in-place s@PHPVERSION@7.3@g /etc/cron.d/lufi
2021-09-24 11:21:18,449: DEBUG - + test -n ''
2021-09-24 11:21:18,449: DEBUG - + uniques_vars=($(grep -oP '[A-Z0-9]+?[A-Z0-9_]?[A-Z0-9]?' $file | sort --unique | sed "s@([^.]*)@\L\1@g" ))
2021-09-24 11:21:18,450: DEBUG - ++ grep -oP '[A-Z0-9]+?[A-Z0-9_]?[A-Z0-9]?' /etc/cron.d/lufi
2021-09-24 11:21:18,450: DEBUG - ++ sed 's@([^.]*)@\L\1@g'
2021-09-24 11:21:18,453: DEBUG - ++ sort --unique
2021-09-24 11:21:18,456: DEBUG - + local delimit=@
2021-09-24 11:21:18,456: DEBUG - + ynh_store_file_checksum --file=/etc/cron.d/lufi
2021-09-24 11:21:18,466: DEBUG - + local checksum_setting_name=checksum__etc_cron.d_lufi
2021-09-24 11:21:18,467: DEBUG - ++ md5sum /etc/cron.d/lufi
2021-09-24 11:21:18,467: DEBUG - ++ cut '--delimiter= ' --fields=1
2021-09-24 11:21:18,480: DEBUG - + ynh_app_setting_set --app=lufi --key=checksum__etc_cron.d_lufi --value=395e4e497e12d558c9523b341e49011b
2021-09-24 11:21:18,557: DEBUG - + [[ checksum__etc_cron.d_lufi =~ (unprotected|protected|skipped)_ ]]
2021-09-24 11:21:18,557: DEBUG - + ynh_app_setting set lufi checksum__etc_cron.d_lufi 395e4e497e12d558c9523b341e49011b
2021-09-24 11:21:18,617: DEBUG - + '[' -n '' ']'
2021-09-24 11:21:18,617: DEBUG - + unset backup_file_checksum
2021-09-24 11:21:18,617: DEBUG - + chmod +x /var/www/lufi/script/lufi
2021-09-24 11:21:18,672: DEBUG - + echo '[############+.......] > Configuring a systemd service...'
2021-09-24 11:21:18,673: DEBUG - + ynh_add_systemd_config
2021-09-24 11:21:18,673: INFO - [############+.......] > Configuring a systemd service...
2021-09-24 11:21:18,675: DEBUG - + service=lufi
2021-09-24 11:21:18,675: DEBUG - + template=systemd.service
2021-09-24 11:21:18,676: DEBUG - + others_var=
2021-09-24 11:21:18,676: DEBUG - + [[ -z '' ]]
2021-09-24 11:21:18,676: DEBUG - + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_10liftqd/conf/systemd.service --destination=/etc/systemd/system/lufi.service
2021-09-24 11:21:18,712: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_10liftqd/conf//var/cache/yunohost/app_tmp_work_dirs/app_10liftqd/conf/systemd.service ']'
2021-09-24 11:21:18,713: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_10liftqd/conf/systemd.service ']'
2021-09-24 11:21:18,713: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_10liftqd/conf/systemd.service
2021-09-24 11:21:18,713: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/systemd/system/lufi.service
2021-09-24 11:21:18,724: DEBUG - + local checksum_setting_name=checksum__etc_systemd_system_lufi.service
2021-09-24 11:21:18,724: DEBUG - ++ ynh_app_setting_get --app=lufi --key=checksum__etc_systemd_system_lufi.service
2021-09-24 11:21:18,764: DEBUG - ++ [[ checksum__etc_systemd_system_lufi.service =~ (unprotected|protected|skipped)_ ]]
2021-09-24 11:21:18,764: DEBUG - ++ ynh_app_setting get lufi checksum__etc_systemd_system_lufi.service
2021-09-24 11:21:18,823: DEBUG - + local checksum_value=
2021-09-24 11:21:18,823: DEBUG - + backup_file_checksum=
2021-09-24 11:21:18,823: DEBUG - + '[' -n '' ']'
2021-09-24 11:21:18,823: DEBUG - + touch /etc/systemd/system/lufi.service
2021-09-24 11:21:18,824: DEBUG - + chown root:root /etc/systemd/system/lufi.service
2021-09-24 11:21:18,825: DEBUG - + chmod 640 /etc/systemd/system/lufi.service
2021-09-24 11:21:18,826: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_10liftqd/conf/systemd.service /etc/systemd/system/lufi.service
2021-09-24 11:21:18,828: DEBUG - + ynh_apply_default_permissions /etc/systemd/system/lufi.service
2021-09-24 11:21:18,828: DEBUG - + local target=/etc/systemd/system/lufi.service
2021-09-24 11:21:18,829: DEBUG - ++ tr -d '>= '
2021-09-24 11:21:18,829: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_10liftqd/manifest.json
2021-09-24 11:21:18,834: DEBUG - + local ynh_requirement=4.2.0
2021-09-24 11:21:18,834: DEBUG - + '[' -z 4.2.0 ']'
2021-09-24 11:21:18,834: DEBUG - + '[' 4.2.0 == null ']'
2021-09-24 11:21:18,835: DEBUG - + dpkg --compare-versions 4.2.0 ge 4.2
2021-09-24 11:21:18,836: DEBUG - + chmod o-rwx /etc/systemd/system/lufi.service
2021-09-24 11:21:18,837: DEBUG - + chmod g-w /etc/systemd/system/lufi.service
2021-09-24 11:21:18,838: DEBUG - + chown -R root:root /etc/systemd/system/lufi.service
2021-09-24 11:21:18,840: DEBUG - + ynh_system_user_exists lufi
2021-09-24 11:21:18,850: DEBUG - + getent passwd lufi
2021-09-24 11:21:18,852: DEBUG - + chown lufi:lufi /etc/systemd/system/lufi.service
2021-09-24 11:21:18,853: DEBUG - + ynh_replace_vars --file=/etc/systemd/system/lufi.service
2021-09-24 11:21:18,865: DEBUG - + test -n /lufi
2021-09-24 11:21:18,865: DEBUG - + local path_url_slash_less=/lufi
2021-09-24 11:21:18,865: DEBUG - + ynh_replace_string --match_string=PATH/ --replace_string=/lufi/ --target_file=/etc/systemd/system/lufi.service
2021-09-24 11:21:18,940: DEBUG - + local delimit=@
2021-09-24 11:21:18,940: DEBUG - + match_string=PATH/
2021-09-24 11:21:18,940: DEBUG - + replace_string=/lufi/
2021-09-24 11:21:18,940: DEBUG - + sed --in-place s@PATH/@/lufi/@g /etc/systemd/system/lufi.service
2021-09-24 11:21:18,942: DEBUG - + ynh_replace_string --match_string=PATH --replace_string=/lufi --target_file=/etc/systemd/system/lufi.service
2021-09-24 11:21:19,025: DEBUG - + local delimit=@
2021-09-24 11:21:19,026: DEBUG - + match_string=PATH
2021-09-24 11:21:19,026: DEBUG - + replace_string=/lufi
2021-09-24 11:21:19,026: DEBUG - + sed --in-place s@PATH@/lufi@g /etc/systemd/system/lufi.service
2021-09-24 11:21:19,028: DEBUG - + test -n lufi
2021-09-24 11:21:19,028: DEBUG - + ynh_replace_string --match_string=NAME --replace_string=lufi --target_file=/etc/systemd/system/lufi.service
2021-09-24 11:21:19,107: DEBUG - + local delimit=@
2021-09-24 11:21:19,108: DEBUG - + match_string=NAME
2021-09-24 11:21:19,108: DEBUG - + replace_string=lufi
2021-09-24 11:21:19,108: DEBUG - + sed --in-place s@NAME@lufi@g /etc/systemd/system/lufi.service
2021-09-24 11:21:19,110: DEBUG - + ynh_replace_string --match_string=NAMETOCHANGE --replace_string=lufi --target_file=/etc/systemd/system/lufi.service
2021-09-24 11:21:19,188: DEBUG - + local delimit=@
2021-09-24 11:21:19,189: DEBUG - + match_string=NAMETOCHANGE
2021-09-24 11:21:19,189: DEBUG - + replace_string=lufi
2021-09-24 11:21:19,189: DEBUG - + sed --in-place s@NAMETOCHANGE@lufi@g /etc/systemd/system/lufi.service
2021-09-24 11:21:19,192: DEBUG - + ynh_replace_string --match_string=USER --replace_string=lufi --target_file=/etc/systemd/system/lufi.service
2021-09-24 11:21:19,274: DEBUG - + local delimit=@
2021-09-24 11:21:19,274: DEBUG - + match_string=USER
2021-09-24 11:21:19,275: DEBUG - + replace_string=lufi
2021-09-24 11:21:19,275: DEBUG - + sed --in-place s@USER@lufi@g /etc/systemd/system/lufi.service
2021-09-24 11:21:19,278: DEBUG - + test -n /var/www/lufi
2021-09-24 11:21:19,278: DEBUG - + ynh_replace_string --match_string=FINALPATH --replace_string=/var/www/lufi --target_file=/etc/systemd/system/lufi.service
2021-09-24 11:21:19,357: DEBUG - + local delimit=@
2021-09-24 11:21:19,358: DEBUG - + match_string=FINALPATH
2021-09-24 11:21:19,358: DEBUG - + replace_string=/var/www/lufi
2021-09-24 11:21:19,358: DEBUG - + sed --in-place s@FINALPATH@/var/www/lufi@g /etc/systemd/system/lufi.service
2021-09-24 11:21:19,360: DEBUG - + test -n 7.3
2021-09-24 11:21:19,360: DEBUG - + ynh_replace_string --match_string=PHPVERSION --replace_string=7.3 --target_file=/etc/systemd/system/lufi.service
2021-09-24 11:21:19,443: DEBUG - + local delimit=@
2021-09-24 11:21:19,443: DEBUG - + match_string=PHPVERSION
2021-09-24 11:21:19,443: DEBUG - + replace_string=7.3
2021-09-24 11:21:19,443: DEBUG - + sed --in-place s@PHPVERSION@7.3@g /etc/systemd/system/lufi.service
2021-09-24 11:21:19,445: DEBUG - + test -n ''
2021-09-24 11:21:19,445: DEBUG - + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9
]?[A-Z0-9]?' $file | sort --unique | sed "s@([^.])@\L\1@g" ))
2021-09-24 11:21:19,447: DEBUG - ++ grep -oP '
[A-Z0-9]+?[A-Z0-9_]
?[A-Z0-9]?' /etc/systemd/system/lufi.service
2021-09-24 11:21:19,447: DEBUG - ++ sort --unique
2021-09-24 11:21:19,449: DEBUG - ++ sed 's@
([^.]
)__@\L\1@g'
2021-09-24 11:21:19,452: DEBUG - + local delimit=@
2021-09-24 11:21:19,452: DEBUG - + for one_var in "${uniques_vars[@]}"
2021-09-24 11:21:19,453: DEBUG - + [[ -v app ]]
2021-09-24 11:21:19,453: DEBUG - + match_string=APP
2021-09-24 11:21:19,453: DEBUG - + match_string=APP
2021-09-24 11:21:19,453: DEBUG - + replace_string=lufi
2021-09-24 11:21:19,453: DEBUG - + replace_string=lufi
2021-09-24 11:21:19,453: DEBUG - + replace_string=lufi
2021-09-24 11:21:19,454: DEBUG - + sed --in-place s@APP@lufi@g /etc/systemd/system/lufi.service
2021-09-24 11:21:19,456: DEBUG - + ynh_store_file_checksum --file=/etc/systemd/system/lufi.service
2021-09-24 11:21:19,469: DEBUG - + local checksum_setting_name=checksum__etc_systemd_system_lufi.service
2021-09-24 11:21:19,469: DEBUG - ++ md5sum /etc/systemd/system/lufi.service
2021-09-24 11:21:19,470: DEBUG - ++ cut '--delimiter= ' --fields=1
2021-09-24 11:21:19,472: DEBUG - + ynh_app_setting_set --app=lufi --key=checksum__etc_systemd_system_lufi.service --value=02c73cca38ac64204ace8335130e8ac7
2021-09-24 11:21:19,553: DEBUG - + [[ checksum__etc_systemd_system_lufi.service =~ (unprotected|protected|skipped)_ ]]
2021-09-24 11:21:19,553: DEBUG - + ynh_app_setting set lufi checksum__etc_systemd_system_lufi.service 02c73cca38ac64204ace8335130e8ac7
2021-09-24 11:21:19,615: DEBUG - + '[' -n '' ']'
2021-09-24 11:21:19,616: DEBUG - + unset backup_file_checksum
2021-09-24 11:21:19,616: DEBUG - + systemctl enable lufi --quiet
2021-09-24 11:21:19,843: DEBUG - + systemctl daemon-reload
2021-09-24 11:21:20,091: DEBUG - + echo '[#############+......] > Configuring log rotation...'
2021-09-24 11:21:20,092: INFO - [#############+......] > Configuring log rotation...
2021-09-24 11:21:20,093: DEBUG - + ynh_use_logrotate
2021-09-24 11:21:20,094: DEBUG - + logfile=
2021-09-24 11:21:20,094: DEBUG - + nonappend=0
2021-09-24 11:21:20,094: DEBUG - + specific_user=
2021-09-24 11:21:20,095: DEBUG - + '[' 0 -gt 0 ']'
2021-09-24 11:21:20,095: DEBUG - + '[' 0 -gt 1 ']'
2021-09-24 11:21:20,095: DEBUG - + '[' 0 -gt 0 ']'
2021-09-24 11:21:20,095: DEBUG - + local 'customtee=tee --append'
2021-09-24 11:21:20,095: DEBUG - + '[' 0 -eq 1 ']'
2021-09-24 11:21:20,095: DEBUG - + '[' -n '' ']'
2021-09-24 11:21:20,096: DEBUG - + logfile='/var/log/lufi/.log'
2021-09-24 11:21:20,096: DEBUG - + local su_directive=
2021-09-24 11:21:20,096: DEBUG - + [[ -n '' ]]
2021-09-24 11:21:20,096: DEBUG - + cat
2021-09-24 11:21:20,097: DEBUG - ++ dirname '/var/log/lufi/
.log'
2021-09-24 11:21:20,098: DEBUG - + mkdir --parents /var/log/lufi
2021-09-24 11:21:20,100: DEBUG - + tee --append /etc/logrotate.d/lufi
2021-09-24 11:21:20,100: DEBUG - + cat lufi-logrotate
2021-09-24 11:21:20,152: DEBUG - + echo '[##############+.....] > Integrating service in YunoHost...'
2021-09-24 11:21:20,152: INFO - [##############+.....] > Integrating service in YunoHost...
2021-09-24 11:21:20,153: DEBUG - + yunohost service add lufi '--description=Lufi service' --log=/var/www/lufi/log/production.log
2021-09-24 11:21:20,384: DEBUG - Le service 'lufi' a été ajouté
2021-09-24 11:21:20,463: DEBUG - + echo '[###############+....] > Starting a systemd service...'
2021-09-24 11:21:20,463: INFO - [###############+....] > Starting a systemd service...
2021-09-24 11:21:20,464: DEBUG - + ynh_systemd_action --service_name=lufi --action=start '--line_match=Creating process id file' --log_path=/var/www/lufi/log/production.log
2021-09-24 11:21:20,667: DEBUG - + service_name=lufi
2021-09-24 11:21:20,668: DEBUG - + action=start
2021-09-24 11:21:20,668: DEBUG - + line_match='Creating process id file'
2021-09-24 11:21:20,668: DEBUG - + length=20
2021-09-24 11:21:20,668: DEBUG - + log_path=/var/www/lufi/log/production.log
2021-09-24 11:21:20,669: DEBUG - + timeout=300
2021-09-24 11:21:20,669: DEBUG - + '[' start == stop ']'
2021-09-24 11:21:20,669: DEBUG - + [[ -n Creating process id file ]]
2021-09-24 11:21:20,669: DEBUG - ++ mktemp
2021-09-24 11:21:20,670: DEBUG - + local templog=/tmp/tmp.wG2Po4DdoS
2021-09-24 11:21:20,670: DEBUG - + '[' /var/www/lufi/log/production.log == systemd ']'
2021-09-24 11:21:20,671: DEBUG - + local pid_tail=19345
2021-09-24 11:21:20,671: DEBUG - + '[' start == reload ']'
2021-09-24 11:21:20,671: DEBUG - + tail --follow=name --retry --lines=0 /var/www/lufi/log/production.log
2021-09-24 11:21:20,671: DEBUG - + systemctl start lufi
2021-09-24 11:21:22,850: DEBUG - + [[ -n Creating process id file ]]
2021-09-24 11:21:24,972: DEBUG - + echo 'The service lufi has correctly executed the action start.'
2021-09-24 11:21:24,973: DEBUG - + break
2021-09-24 11:21:24,973: DEBUG - + '[' 3 -ge 3 ']'
2021-09-24 11:21:24,973: DEBUG - + echo ''
2021-09-24 11:21:24,973: DEBUG - + '[' 3 -eq 300 ']'
2021-09-24 11:21:24,973: DEBUG - + ynh_clean_check_starting
2021-09-24 11:21:24,974: DEBUG - + '[' -n 19345 ']'
2021-09-24 11:21:24,974: DEBUG - + kill -SIGTERM 19345
2021-09-24 11:21:24,974: DEBUG - + '[' -n /tmp/tmp.wG2Po4DdoS ']'
2021-09-24 11:21:24,974: DEBUG - + ynh_secure_remove --file=/tmp/tmp.wG2Po4DdoS
2021-09-24 11:21:24,975: INFO - The service lufi has correctly executed the action start.
2021-09-24 11:21:24,975: DEBUG -
2021-09-24 11:21:24,988: DEBUG - + local 'forbidden_path= /var/www /home/yunohost.app'
2021-09-24 11:21:24,988: DEBUG - + '[' 1 -ge 2 ']'
2021-09-24 11:21:24,988: DEBUG - + [[ -z /tmp/tmp.wG2Po4DdoS ]]
2021-09-24 11:21:24,988: DEBUG - + [[ /var/www /home/yunohost.app =~ /tmp/tmp.wG2Po4DdoS ]]
2021-09-24 11:21:24,989: DEBUG - + [[ /tmp/tmp.wG2Po4DdoS =~ ^/[[:alnum:]]+$ ]]
2021-09-24 11:21:24,989: DEBUG - + [[ S = / ]]
2021-09-24 11:21:24,989: DEBUG - + '[' -e /tmp/tmp.wG2Po4DdoS ']'
2021-09-24 11:21:24,989: DEBUG - + rm --recursive /tmp/tmp.wG2Po4DdoS
2021-09-24 11:21:25,045: DEBUG - + echo '[################+...] > Configuring permissions...'
2021-09-24 11:21:25,046: DEBUG - + ynh_permission_update --permission=main --add=visitors
2021-09-24 11:21:25,047: INFO - [################+...] > Configuring permissions...
2021-09-24 11:21:25,157: DEBUG - + add=visitors
2021-09-24 11:21:25,157: DEBUG - + remove=
2021-09-24 11:21:25,157: DEBUG - + label=
2021-09-24 11:21:25,157: DEBUG - + show_tile=
2021-09-24 11:21:25,158: DEBUG - + protected=
2021-09-24 11:21:25,158: DEBUG - + [[ -n visitors ]]
2021-09-24 11:21:25,158: DEBUG - + add=',add=['''visitors''']'
2021-09-24 11:21:25,158: DEBUG - + [[ -n '' ]]
2021-09-24 11:21:25,158: DEBUG - + [[ -n '' ]]
2021-09-24 11:21:25,159: DEBUG - + [[ -n '' ]]
2021-09-24 11:21:25,159: DEBUG - + [[ -n '' ]]
2021-09-24 11:21:25,159: DEBUG - + yunohost tools shell -c 'from yunohost.permission import user_permission_update; user_permission_update('''lufi.main''' ,add=['''visitors'''] , force=True)'
2021-09-24 11:21:25,854: DEBUG - + '[' 0 -eq 0 ']'
2021-09-24 11:21:25,854: DEBUG - + '[' /lufi == / ']'
2021-09-24 11:21:25,854: DEBUG - ++ echo lufi.bonus-communis.eu
2021-09-24 11:21:25,854: DEBUG - ++ sed s@-@.@g
2021-09-24 11:21:25,857: DEBUG - + domain_regex=lufi.bonus.communis.eu
2021-09-24 11:21:25,857: DEBUG - + ynh_app_setting_set --app=lufi --key=protected_regex '--value=lufi.bonus.communis.eu/lufi/stats$,lufi.bonus.communis.eu/lufi/manifest.webapp$,lufi.bonus.communis.eu/lufi/$,lufi.bonus.communis.eu/lufi/d/.$,lufi.bonus.communis.eu/lufi/m/.$'
2021-09-24 11:21:25,939: DEBUG - + [[ protected_regex =~ (unprotected|protected|skipped)_ ]]
2021-09-24 11:21:25,939: DEBUG - + yunohost app setting lufi protected_regex -v 'lufi.bonus.communis.eu/lufi/stats$,lufi.bonus.communis.eu/lufi/manifest.webapp$,lufi.bonus.communis.eu/lufi/$,lufi.bonus.communis.eu/lufi/d/.$,lufi.bonus.communis.eu/lufi/m/.$'
2021-09-24 11:21:26,359: DEBUG - L’opération 'Créer permission 'lufi'' a échoué ! Pour obtenir de l’aide, merci de partager le journal de l’opération en utilisant la commande 'yunohost log share 20210924-092126-permission_create-lufi'
2021-09-24 11:21:26,368: WARNING - Domaine 'lufi.bonus.communis.eu' inconnu
2021-09-24 11:21:26,413: DEBUG - + ynh_exit_properly
2021-09-24 11:21:26,414: DEBUG - + local exit_code=1
2021-09-24 11:21:26,414: DEBUG - + rm -rf /var/cache/yunohost/download/
2021-09-24 11:21:26,415: DEBUG - + '[' 1 -eq 0 ']'
2021-09-24 11:21:26,415: DEBUG - + trap '' EXIT
2021-09-24 11:21:26,415: DEBUG - + set +o errexit
2021-09-24 11:21:26,415: DEBUG - + set +o nounset
2021-09-24 11:21:26,415: DEBUG - + sleep 0.5
2021-09-24 11:21:26,917: DEBUG - + type -t ynh_clean_setup
2021-09-24 11:21:26,917: DEBUG - + ynh_clean_setup
2021-09-24 11:21:26,917: DEBUG - + ynh_clean_check_starting
2021-09-24 11:21:26,918: DEBUG - + '[' -n '' ']'
2021-09-24 11:21:26,918: DEBUG - + '[' -n '' ']'
2021-09-24 11:21:26,918: DEBUG - + exit 1
2021-09-24 11:21:27,920: ERROR - Impossible d’installer lufi : Une erreur est survenue dans le script d’installation de l’application

@pascal-levasseur pascal-levasseur changed the title Lufi doe not install using web admin Lufi does not install using web admin if anonymous acces not enable Sep 24, 2021
@pascal-levasseur
Copy link
Author

If anonymous acces is enable, Lufi is installed correctly, but the install script complains about

! Installing Net::SSLeay failed. See /.cpanm/work/1632485822.9915/build.log for details. Retry with --force to force install it.
! Couldn't find module or a distribution GSSAPI

@pascal-levasseur
Copy link
Author

The internet domain selected for the installation contain a dash (bonus-communis.eu).

The installation script seems to have swapped the dash by a dot (bonus.communis.eu)

2021-09-24 11:21:25,857: DEBUG - + domain_regex=lufi.bonus.communis.eu
2021-09-24 11:21:25,857: DEBUG - + ynh_app_setting_set --app=lufi --key=protected_regex '--value=lufi.bonus.communis.eu/lufi/stats$,lufi.bonus.communis.eu/lufi/manifest.webapp$,lufi.bonus.communis.eu/lufi/$,lufi.bonus.communis.eu/lufi/d/.$,lufi.bonus.communis.eu/lufi/m/.$'
2021-09-24 11:21:25,939: DEBUG - + [[ protected_regex =~ (unprotected|protected|skipped)_ ]]
2021-09-24 11:21:25,939: DEBUG - + yunohost app setting lufi protected_regex -v 'lufi.bonus.communis.eu/lufi/stats$,lufi.bonus.communis.eu/lufi/manifest.webapp$,lufi.bonus.communis.eu/lufi/$,lufi.bonus.communis.eu/lufi/d

@pascal-levasseur
Copy link
Author

The web install script display this warning message

Domaine 'lufi.bonus.communis.eu' inconnu

The choosen domain was lufi.bonus-communis.eu

The dash in the domain name seems to be an issue for the install script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant