Cannot install LimeSurvey app

My YunoHost server

Hardware: Raspberry Pi 3B at home
YunoHost version: 4.0.6.1
I have access to my server : Through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If yes, please explain:

Description of my issue

I was trying to install LimeSurvey through the web interface. I wanted it to be installed on a subdomain that I configured and added a Let’s Encrypt cert to in Yunohost expecially for the application. (I don’t think the subdomain is relevant, but just providing the full picture).

When clicking install for the LimeSurvey app it didn’t work, with the error message Could not complete the operation 'Install the 'limesurvey' app'. Please provide the full log of this operation by clicking here to get help
Then I updated all the applications on the ynh instance and and did a pending migration to arrive at the ynh version number that you can see above.
Again I installed LimeSurvey but got a similar (if not the same) error. The install failed. Please see the logs below.

I did see this thread, but it seems not to apply because it is about a much older Ynh version and very hacky.

I need do surveys for user research for an open source project. So I would really appreciate if someone could help me with installing LimeSurvey :smiley:

Thanks a lot in advance!

Short log in the web interface

Could not complete the operation 'Install the 'limesurvey' app'. Please provide the full log of this operation by clicking here to get help
The user limesurvey was not found
'/etc/php/7.3/fpm/pool.d/limesurvey.conf' wasn't deleted because it doesn't exist.
'/etc/nginx/conf.d/survey.woutermoraal.nl.d/limesurvey.conf' wasn't deleted because it doesn't exist.
'/home/yunohost.app/limesurvey' wasn't deleted because it doesn't exist.
dpkg: warning: while removing php7.0-fpm, directory '/etc/php/7.0/fpm/conf.d' not empty so not removed
dpkg: warning: while removing php7.0-fpm, directory '/etc/php/7.0/fpm/pool.d' not empty so not removed
Removing the app following the installation failure...
Could not complete the operation 'Install the 'limesurvey' app'. Please provide the full log of this operation by clicking here to get help
Could not install limesurvey: An error occurred inside the app installation script
jinja2.exceptions.UndefinedError: 'path_url' is undefined
{% if path_url != "/" %}
File "/var/cache/yunohost/from_file/limesurvey_ynh-da4959616e67f89ef907a223f7c84607dc4771e5/conf/nginx.conf.j2", line 1, in top-level template code
reraise(exc_type, exc_value, tb)
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 780, in handle_exception
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 1008, in render
.render(context) \
File "/usr/local/lib/python2.7/dist-packages/j2cli/cli.py", line 87, in render
result = renderer.render(args.template, context)
File "/usr/local/lib/python2.7/dist-packages/j2cli/cli.py", line 186, in render_command
sys.argv[1:]
File "/usr/local/lib/python2.7/dist-packages/j2cli/cli.py", line 206, in main
sys.exit(main())
File "/usr/local/bin/j2", line 11, in 
Traceback (most recent call last):
Configuring nginx web server... [00h01m,03s]
Setting up source files... [00h00m,02s]
Creating a MySQL database... [00h00m,32s]
Creating config file /etc/php/7.3/mods-available/imap.ini with new version
Installing dependencies... [00h00m,05s]
Storing installation settings... [00h00m,02s]
Validating installation parameters... [00h00m,01s]
Installing limesurvey...

Detailed Log

args:
  app: limesurvey
  args: domain=domain2.tld&path=%2F&admin=wouter&language=en&is_public=0
  force: false
  label: LimeSurvey
  no_remove_on_failure: false
ended_at: 2020-09-02 12:37:39.479790
env:
  YNH_APP_ARG_ADMIN: [name]
  YNH_APP_ARG_DOMAIN: domain2.tld
  YNH_APP_ARG_IS_PUBLIC: 0
  YNH_APP_ARG_LANGUAGE: en
  YNH_APP_ARG_PATH: /
  YNH_APP_ID: limesurvey
  YNH_APP_INSTANCE_NAME: limesurvey
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_CWD: /var/cache/yunohost/from_file/limesurvey_ynh-da4959616e67f89ef907a223f7c84607dc4771e5/scripts
  YNH_INTERFACE: api
  YNH_STDINFO: /tmp/tmpEaQEr0/stdinfo
  YNH_STDRETURN: /tmp/tmpPHURVS/stdreturn
error: An error occurred inside the app installation script
operation: app_install
related_to:
- - app
  - limesurvey
started_at: 2020-09-02 12:35:51.058996
success: false
yunohost_version: 4.0.6.1

============

2020-09-02 13:35:51,096: INFO - Installing limesurvey...
2020-09-02 13:35:51,270: DEBUG - The permission database has been resynchronized
2020-09-02 13:35:51,314: DEBUG - SSOwat configuration generated
2020-09-02 13:35:51,357: DEBUG - No default hook for action 'post_app_addaccess' in /usr/share/yunohost/hooks/
2020-09-02 13:35:51,358: DEBUG - No custom hook for action 'post_app_addaccess' in /etc/yunohost/hooks.d/
2020-09-02 13:35:51,359: DEBUG - Permission 'limesurvey.main' created
2020-09-02 13:35:51,370: DEBUG - Full log of this operation: '<a href="#/tools/logs/20200902-123551-permission_create-limesurvey" style="text-decoration:underline">Create permission 'limesurvey'</a>'
2020-09-02 13:35:51,413: DEBUG - Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ARG_LANGUAGE=en YNH_APP_INSTANCE_NAME=limesurvey YNH_STDINFO=/tmp/tmpEaQEr0/stdinfo YNH_CWD=/var/cache/yunohost/from_file/limesurvey_ynh-da4959616e67f89ef907a223f7c84607dc4771e5/scripts YNH_APP_ARG_IS_PUBLIC=0 YNH_APP_ARG_ADMIN=wouter YNH_INTERFACE=api YNH_APP_ID=limesurvey YNH_APP_ARG_PATH=/ YNH_STDRETURN=/tmp/tmpPHURVS/stdreturn YNH_APP_ARG_DOMAIN=domain2.tld BASH_XTRACEFD=7 /bin/bash -x "./install" domain2.tld / wouter en 0 limesurvey 7>&1'...
2020-09-02 13:35:51,414: DEBUG - About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ARG_LANGUAGE=en YNH_APP_INSTANCE_NAME=limesurvey YNH_STDINFO=/tmp/tmpEaQEr0/stdinfo YNH_CWD=/var/cache/yunohost/from_file/limesurvey_ynh-da4959616e67f89ef907a223f7c84607dc4771e5/scripts YNH_APP_ARG_IS_PUBLIC=0 YNH_APP_ARG_ADMIN=wouter YNH_INTERFACE=api YNH_APP_ID=limesurvey YNH_APP_ARG_PATH=/ YNH_STDRETURN=/tmp/tmpPHURVS/stdreturn YNH_APP_ARG_DOMAIN=domain2.tld BASH_XTRACEFD=7 /bin/bash -x "./install" domain2.tld / wouter en 0 limesurvey 7>&1']'
2020-09-02 13:35:51,459: DEBUG - + source /usr/share/yunohost/helpers
2020-09-02 13:35:51,462: DEBUG - +++ run-parts --list /usr/share/yunohost/helpers.d
2020-09-02 13:35:51,462: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-09-02 13:35:51,463: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/apt ']'
2020-09-02 13:35:51,464: DEBUG - ++ . /usr/share/yunohost/helpers.d/apt
2020-09-02 13:35:51,565: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-09-02 13:35:51,566: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/backup ']'
2020-09-02 13:35:51,567: DEBUG - ++ . /usr/share/yunohost/helpers.d/backup
2020-09-02 13:35:51,567: DEBUG - +++ CAN_BIND=1
2020-09-02 13:35:51,568: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-09-02 13:35:51,569: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/fail2ban ']'
2020-09-02 13:35:51,569: DEBUG - ++ . /usr/share/yunohost/helpers.d/fail2ban
2020-09-02 13:35:51,570: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-09-02 13:35:51,570: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
2020-09-02 13:35:51,571: DEBUG - ++ . /usr/share/yunohost/helpers.d/getopts
2020-09-02 13:35:51,571: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-09-02 13:35:51,572: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/hardware ']'
2020-09-02 13:35:51,573: DEBUG - ++ . /usr/share/yunohost/helpers.d/hardware
2020-09-02 13:35:51,573: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-09-02 13:35:51,574: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logging ']'
2020-09-02 13:35:51,575: DEBUG - ++ . /usr/share/yunohost/helpers.d/logging
2020-09-02 13:35:51,575: DEBUG - +++ increment_progression=0
2020-09-02 13:35:51,576: DEBUG - +++ previous_weight=0
2020-09-02 13:35:51,576: DEBUG - +++ max_progression=-1
2020-09-02 13:35:51,577: DEBUG - +++ progress_scale=20
2020-09-02 13:35:51,578: DEBUG - +++ progress_string2='####################'
2020-09-02 13:35:51,578: DEBUG - +++ progress_string1=++++++++++++++++++++
2020-09-02 13:35:51,579: DEBUG - +++ progress_string0=....................
2020-09-02 13:35:51,579: DEBUG - ++++ date +%s
2020-09-02 13:35:51,580: DEBUG - +++ base_time=1599050151
2020-09-02 13:35:51,580: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-09-02 13:35:51,581: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logrotate ']'
2020-09-02 13:35:51,581: DEBUG - ++ . /usr/share/yunohost/helpers.d/logrotate
2020-09-02 13:35:51,582: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-09-02 13:35:51,583: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
2020-09-02 13:35:51,583: DEBUG - ++ . /usr/share/yunohost/helpers.d/mysql
2020-09-02 13:35:51,584: DEBUG - +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
2020-09-02 13:35:51,585: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-09-02 13:35:51,585: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
2020-09-02 13:35:51,586: DEBUG - ++ . /usr/share/yunohost/helpers.d/network
2020-09-02 13:35:51,586: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-09-02 13:35:51,587: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nginx ']'
2020-09-02 13:35:51,588: DEBUG - ++ . /usr/share/yunohost/helpers.d/nginx
2020-09-02 13:35:51,588: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-09-02 13:35:51,589: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
2020-09-02 13:35:51,589: DEBUG - ++ . /usr/share/yunohost/helpers.d/nodejs
2020-09-02 13:35:51,590: DEBUG - +++ n_version=6.5.1
2020-09-02 13:35:51,590: DEBUG - +++ n_install_dir=/opt/node_n
2020-09-02 13:35:51,591: DEBUG - +++ node_version_path=/opt/node_n/n/versions/node
2020-09-02 13:35:51,591: DEBUG - +++ export N_PREFIX=/opt/node_n
2020-09-02 13:35:51,592: DEBUG - +++ N_PREFIX=/opt/node_n
2020-09-02 13:35:51,592: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-09-02 13:35:51,593: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/php ']'
2020-09-02 13:35:51,594: DEBUG - ++ . /usr/share/yunohost/helpers.d/php
2020-09-02 13:35:51,594: DEBUG - +++ readonly YNH_DEFAULT_PHP_VERSION=7.3
2020-09-02 13:35:51,595: DEBUG - +++ YNH_DEFAULT_PHP_VERSION=7.3
2020-09-02 13:35:51,595: DEBUG - +++ YNH_PHP_VERSION=7.3
2020-09-02 13:35:51,596: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-09-02 13:35:51,596: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/postgresql ']'
2020-09-02 13:35:51,597: DEBUG - ++ . /usr/share/yunohost/helpers.d/postgresql
2020-09-02 13:35:51,598: DEBUG - +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql
2020-09-02 13:35:51,598: DEBUG - +++ PSQL_VERSION=11
2020-09-02 13:35:51,599: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-09-02 13:35:51,599: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
2020-09-02 13:35:51,600: DEBUG - ++ . /usr/share/yunohost/helpers.d/setting
2020-09-02 13:35:51,601: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-09-02 13:35:51,602: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
2020-09-02 13:35:51,602: DEBUG - ++ . /usr/share/yunohost/helpers.d/string
2020-09-02 13:35:51,603: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-09-02 13:35:51,604: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']'
2020-09-02 13:35:51,605: DEBUG - ++ . /usr/share/yunohost/helpers.d/systemd
2020-09-02 13:35:51,606: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-09-02 13:35:51,606: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
2020-09-02 13:35:51,607: DEBUG - ++ . /usr/share/yunohost/helpers.d/user
2020-09-02 13:35:51,607: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-09-02 13:35:51,608: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
2020-09-02 13:35:51,608: DEBUG - ++ . /usr/share/yunohost/helpers.d/utils
2020-09-02 13:35:51,609: DEBUG - + source _common.sh
2020-09-02 13:35:51,610: DEBUG - +++ cd ../
2020-09-02 13:35:51,610: DEBUG - +++ pwd
2020-09-02 13:35:51,611: DEBUG - ++ PKG_DIR=/var/cache/yunohost/from_file/limesurvey_ynh-da4959616e67f89ef907a223f7c84607dc4771e5
2020-09-02 13:35:51,611: DEBUG - ++ pkg_dependencies='php7.3-cli php7.3-imap python-pip php7.3-gd php7.3-ldap'
2020-09-02 13:35:51,712: DEBUG - + ynh_abort_if_errors
2020-09-02 13:35:51,713: DEBUG - + set -o errexit
2020-09-02 13:35:51,714: DEBUG - + set -o nounset
2020-09-02 13:35:51,715: DEBUG - + trap ynh_exit_properly EXIT
2020-09-02 13:35:51,717: DEBUG - + export app=limesurvey
2020-09-02 13:35:51,718: DEBUG - + app=limesurvey
2020-09-02 13:35:51,720: DEBUG - + ynh_export domain path_url admin is_public language
2020-09-02 13:35:51,721: DEBUG - + local ynh_arg=
2020-09-02 13:35:51,723: DEBUG - + for var in $@
2020-09-02 13:35:51,725: DEBUG - ++ echo domain
2020-09-02 13:35:51,727: DEBUG - ++ awk '{print toupper($0)}'
2020-09-02 13:35:51,729: DEBUG - + ynh_arg=DOMAIN
2020-09-02 13:35:51,730: DEBUG - + '[' domain == path_url ']'
2020-09-02 13:35:51,732: DEBUG - + ynh_arg=YNH_APP_ARG_DOMAIN
2020-09-02 13:35:51,733: DEBUG - + export domain=domain2.tld
2020-09-02 13:35:51,735: DEBUG - + domain=domain2.tld
2020-09-02 13:35:51,736: DEBUG - + for var in $@
2020-09-02 13:35:51,738: DEBUG - ++ echo path_url
2020-09-02 13:35:51,739: DEBUG - ++ awk '{print toupper($0)}'
2020-09-02 13:35:51,741: DEBUG - + ynh_arg=PATH_URL
2020-09-02 13:35:51,742: DEBUG - + '[' path_url == path_url ']'
2020-09-02 13:35:51,744: DEBUG - + ynh_arg=PATH
2020-09-02 13:35:51,745: DEBUG - + ynh_arg=YNH_APP_ARG_PATH
2020-09-02 13:35:51,747: DEBUG - + export path_url=/
2020-09-02 13:35:51,749: DEBUG - + path_url=/
2020-09-02 13:35:51,750: DEBUG - + for var in $@
2020-09-02 13:35:51,752: DEBUG - ++ echo admin
2020-09-02 13:35:51,753: DEBUG - ++ awk '{print toupper($0)}'
2020-09-02 13:35:51,755: DEBUG - + ynh_arg=ADMIN
2020-09-02 13:35:51,756: DEBUG - + '[' admin == path_url ']'
2020-09-02 13:35:51,757: DEBUG - + ynh_arg=YNH_APP_ARG_ADMIN
2020-09-02 13:35:51,759: DEBUG - + export admin=wouter
2020-09-02 13:35:51,760: DEBUG - + admin=wouter
2020-09-02 13:35:51,762: DEBUG - + for var in $@
2020-09-02 13:35:51,763: DEBUG - ++ echo is_public
2020-09-02 13:35:51,766: DEBUG - ++ awk '{print toupper($0)}'
2020-09-02 13:35:51,768: DEBUG - + ynh_arg=IS_PUBLIC
2020-09-02 13:35:51,769: DEBUG - + '[' is_public == path_url ']'
2020-09-02 13:35:51,771: DEBUG - + ynh_arg=YNH_APP_ARG_IS_PUBLIC
2020-09-02 13:35:51,772: DEBUG - + export is_public=0
2020-09-02 13:35:51,774: DEBUG - + is_public=0
2020-09-02 13:35:51,775: DEBUG - + for var in $@
2020-09-02 13:35:51,776: DEBUG - ++ echo language
2020-09-02 13:35:51,778: DEBUG - ++ awk '{print toupper($0)}'
2020-09-02 13:35:51,779: DEBUG - + ynh_arg=LANGUAGE
2020-09-02 13:35:51,780: DEBUG - + '[' language == path_url ']'
2020-09-02 13:35:51,782: DEBUG - + ynh_arg=YNH_APP_ARG_LANGUAGE
2020-09-02 13:35:51,784: DEBUG - + export language=en
2020-09-02 13:35:51,786: DEBUG - + language=en
2020-09-02 13:35:51,788: DEBUG - + export prefix=lime_
2020-09-02 13:35:51,789: DEBUG - + prefix=lime_
2020-09-02 13:35:51,790: DEBUG - ++ ynh_sanitize_dbid limesurvey
2020-09-02 13:35:51,804: DEBUG - ++ echo limesurvey
2020-09-02 13:35:51,806: DEBUG - + export db_name=limesurvey
2020-09-02 13:35:51,807: DEBUG - + db_name=limesurvey
2020-09-02 13:35:51,808: DEBUG - + export db_user=limesurvey
2020-09-02 13:35:51,810: DEBUG - + db_user=limesurvey
2020-09-02 13:35:52,219: DEBUG - + echo '[+...................] > Validating installation parameters... [00h00m,01s]'
2020-09-02 13:35:52,221: DEBUG - + export final_path=/var/www/limesurvey
2020-09-02 13:35:52,221: INFO - [+...................] > Validating installation parameters... [00h00m,01s]
2020-09-02 13:35:52,225: DEBUG - + final_path=/var/www/limesurvey
2020-09-02 13:35:52,225: DEBUG - + test '!' -e /var/www/limesurvey
2020-09-02 13:35:52,226: DEBUG - + ynh_webpath_register limesurvey domain2.tld /
2020-09-02 13:35:52,454: DEBUG - + yunohost app register-url limesurvey domain2.tld /
2020-09-02 13:35:54,265: DEBUG - + echo '[#++.................] > Storing installation settings... [00h00m,02s]'
2020-09-02 13:35:54,267: DEBUG - + ynh_save_args domain admin is_public language final_path prefix path_url db_name db_user
2020-09-02 13:35:54,268: DEBUG - + for var in $@
2020-09-02 13:35:54,268: DEBUG - + local setting_var=domain
2020-09-02 13:35:54,269: DEBUG - + '[' domain == path_url ']'
2020-09-02 13:35:54,270: DEBUG - + ynh_app_setting_set limesurvey domain domain2.tld
2020-09-02 13:35:54,481: INFO - [#++.................] > Storing installation settings... [00h00m,02s]
2020-09-02 13:35:54,483: DEBUG - + ynh_app_setting set limesurvey domain domain2.tld
2020-09-02 13:35:54,484: DEBUG - + [[ set == \d\e\l\e\t\e ]]
2020-09-02 13:35:54,484: DEBUG - + ACTION=set
2020-09-02 13:35:54,485: DEBUG - + APP=limesurvey
2020-09-02 13:35:54,485: DEBUG - + KEY=domain
2020-09-02 13:35:54,486: DEBUG - + VALUE=domain2.tld
2020-09-02 13:35:54,486: DEBUG - + python2.7 -
2020-09-02 13:35:54,788: DEBUG - + [[ domain =~ ^(unprotected|skipped)_ ]]
2020-09-02 13:35:54,789: DEBUG - + for var in $@
2020-09-02 13:35:54,790: DEBUG - + local setting_var=admin
2020-09-02 13:35:54,791: DEBUG - + '[' admin == path_url ']'
2020-09-02 13:35:54,792: DEBUG - + ynh_app_setting_set limesurvey admin wouter
2020-09-02 13:35:55,003: DEBUG - + ynh_app_setting set limesurvey admin wouter
2020-09-02 13:35:55,004: DEBUG - + [[ set == \d\e\l\e\t\e ]]
2020-09-02 13:35:55,005: DEBUG - + ACTION=set
2020-09-02 13:35:55,005: DEBUG - + APP=limesurvey
2020-09-02 13:35:55,006: DEBUG - + KEY=admin
2020-09-02 13:35:55,007: DEBUG - + VALUE=wouter
2020-09-02 13:35:55,007: DEBUG - + python2.7 -
2020-09-02 13:35:55,410: DEBUG - + [[ admin =~ ^(unprotected|skipped)_ ]]
2020-09-02 13:35:55,411: DEBUG - + for var in $@
2020-09-02 13:35:55,412: DEBUG - + local setting_var=is_public
2020-09-02 13:35:55,412: DEBUG - + '[' is_public == path_url ']'
2020-09-02 13:35:55,414: DEBUG - + ynh_app_setting_set limesurvey is_public 0
2020-09-02 13:35:55,626: DEBUG - + ynh_app_setting set limesurvey is_public 0
2020-09-02 13:35:55,627: DEBUG - + [[ set == \d\e\l\e\t\e ]]
2020-09-02 13:35:55,627: DEBUG - + ACTION=set
2020-09-02 13:35:55,628: DEBUG - + APP=limesurvey
2020-09-02 13:35:55,628: DEBUG - + KEY=is_public
2020-09-02 13:35:55,629: DEBUG - + VALUE=0
2020-09-02 13:35:55,630: DEBUG - + python2.7 -
2020-09-02 13:35:55,931: DEBUG - + [[ is_public =~ ^(unprotected|skipped)_ ]]
2020-09-02 13:35:55,932: DEBUG - + for var in $@
2020-09-02 13:35:55,932: DEBUG - + local setting_var=language
2020-09-02 13:35:55,933: DEBUG - + '[' language == path_url ']'
2020-09-02 13:35:55,934: DEBUG - + ynh_app_setting_set limesurvey language en
2020-09-02 13:35:56,143: DEBUG - + ynh_app_setting set limesurvey language en
2020-09-02 13:35:56,144: DEBUG - + [[ set == \d\e\l\e\t\e ]]
2020-09-02 13:35:56,144: DEBUG - + ACTION=set
2020-09-02 13:35:56,145: DEBUG - + APP=limesurvey
2020-09-02 13:35:56,146: DEBUG - + KEY=language
2020-09-02 13:35:56,147: DEBUG - + VALUE=en
2020-09-02 13:35:56,147: DEBUG - + python2.7 -
2020-09-02 13:35:56,550: DEBUG - + [[ language =~ ^(unprotected|skipped)_ ]]
2020-09-02 13:35:56,551: DEBUG - + for var in $@
2020-09-02 13:35:56,551: DEBUG - + local setting_var=final_path
2020-09-02 13:35:56,552: DEBUG - + '[' final_path == path_url ']'
2020-09-02 13:35:56,553: DEBUG - + ynh_app_setting_set limesurvey final_path /var/www/limesurvey
2020-09-02 13:35:56,765: DEBUG - + ynh_app_setting set limesurvey final_path /var/www/limesurvey
2020-09-02 13:35:56,766: DEBUG - + [[ set == \d\e\l\e\t\e ]]
2020-09-02 13:35:56,766: DEBUG - + ACTION=set
2020-09-02 13:35:56,767: DEBUG - + APP=limesurvey
2020-09-02 13:35:56,767: DEBUG - + KEY=final_path
2020-09-02 13:35:56,768: DEBUG - + VALUE=/var/www/limesurvey
2020-09-02 13:35:56,768: DEBUG - + python2.7 -
2020-09-02 13:35:57,070: DEBUG - + [[ final_path =~ ^(unprotected|skipped)_ ]]
2020-09-02 13:35:57,071: DEBUG - + for var in $@
2020-09-02 13:35:57,072: DEBUG - + local setting_var=prefix
2020-09-02 13:35:57,073: DEBUG - + '[' prefix == path_url ']'
2020-09-02 13:35:57,074: DEBUG - + ynh_app_setting_set limesurvey prefix lime_
2020-09-02 13:35:57,286: DEBUG - + ynh_app_setting set limesurvey prefix lime_
2020-09-02 13:35:57,286: DEBUG - + [[ set == \d\e\l\e\t\e ]]
2020-09-02 13:35:57,287: DEBUG - + ACTION=set
2020-09-02 13:35:57,288: DEBUG - + APP=limesurvey
2020-09-02 13:35:57,288: DEBUG - + KEY=prefix
2020-09-02 13:35:57,289: DEBUG - + VALUE=lime_
2020-09-02 13:35:57,290: DEBUG - + python2.7 -
2020-09-02 13:35:57,692: DEBUG - + [[ prefix =~ ^(unprotected|skipped)_ ]]
2020-09-02 13:35:57,693: DEBUG - + for var in $@
2020-09-02 13:35:57,694: DEBUG - + local setting_var=path_url
2020-09-02 13:35:57,695: DEBUG - + '[' path_url == path_url ']'
2020-09-02 13:35:57,696: DEBUG - + setting_var=path
2020-09-02 13:35:57,697: DEBUG - + ynh_app_setting_set limesurvey path /
2020-09-02 13:35:57,908: DEBUG - + ynh_app_setting set limesurvey path /
2020-09-02 13:35:57,908: DEBUG - + [[ set == \d\e\l\e\t\e ]]
2020-09-02 13:35:57,909: DEBUG - + ACTION=set
2020-09-02 13:35:57,909: DEBUG - + APP=limesurvey
2020-09-02 13:35:57,910: DEBUG - + KEY=path
2020-09-02 13:35:57,910: DEBUG - + VALUE=/
2020-09-02 13:35:57,911: DEBUG - + python2.7 -
2020-09-02 13:35:58,212: DEBUG - + [[ path =~ ^(unprotected|skipped)_ ]]
2020-09-02 13:35:58,213: DEBUG - + for var in $@
2020-09-02 13:35:58,214: DEBUG - + local setting_var=db_name
2020-09-02 13:35:58,215: DEBUG - + '[' db_name == path_url ']'
2020-09-02 13:35:58,216: DEBUG - + ynh_app_setting_set limesurvey db_name limesurvey
2020-09-02 13:35:58,426: DEBUG - + ynh_app_setting set limesurvey db_name limesurvey
2020-09-02 13:35:58,427: DEBUG - + [[ set == \d\e\l\e\t\e ]]
2020-09-02 13:35:58,427: DEBUG - + ACTION=set
2020-09-02 13:35:58,428: DEBUG - + APP=limesurvey
2020-09-02 13:35:58,429: DEBUG - + KEY=db_name
2020-09-02 13:35:58,430: DEBUG - + VALUE=limesurvey
2020-09-02 13:35:58,430: DEBUG - + python2.7 -
2020-09-02 13:35:58,833: DEBUG - + [[ db_name =~ ^(unprotected|skipped)_ ]]
2020-09-02 13:35:58,834: DEBUG - + for var in $@
2020-09-02 13:35:58,834: DEBUG - + local setting_var=db_user
2020-09-02 13:35:58,835: DEBUG - + '[' db_user == path_url ']'
2020-09-02 13:35:58,836: DEBUG - + ynh_app_setting_set limesurvey db_user limesurvey
2020-09-02 13:35:59,045: DEBUG - + ynh_app_setting set limesurvey db_user limesurvey
2020-09-02 13:35:59,046: DEBUG - + [[ set == \d\e\l\e\t\e ]]
2020-09-02 13:35:59,047: DEBUG - + ACTION=set
2020-09-02 13:35:59,048: DEBUG - + APP=limesurvey
2020-09-02 13:35:59,049: DEBUG - + KEY=db_user
2020-09-02 13:35:59,050: DEBUG - + VALUE=limesurvey
2020-09-02 13:35:59,051: DEBUG - + python2.7 -
2020-09-02 13:35:59,453: DEBUG - + [[ db_user =~ ^(unprotected|skipped)_ ]]
2020-09-02 13:35:59,758: INFO - [###+................] > Installing dependencies... [00h00m,05s]
2020-09-02 13:35:59,761: DEBUG - + echo '[###+................] > Installing dependencies... [00h00m,05s]'
2020-09-02 13:35:59,762: DEBUG - + ynh_install_app_dependencies php7.3-cli php7.3-imap python-pip php7.3-gd php7.3-ldap
2020-09-02 13:35:59,762: DEBUG - + local 'dependencies=php7.3-cli php7.3-imap python-pip php7.3-gd php7.3-ldap'
2020-09-02 13:35:59,763: DEBUG - ++ echo 'php7.3-cli php7.3-imap python-pip php7.3-gd php7.3-ldap'
2020-09-02 13:35:59,764: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2020-09-02 13:35:59,765: DEBUG - + dependencies='php7.3-cli, php7.3-imap, python-pip, php7.3-gd, php7.3-ldap'
2020-09-02 13:35:59,765: DEBUG - + local 'dependencies=php7.3-cli, php7.3-imap, python-pip, php7.3-gd, php7.3-ldap'
2020-09-02 13:35:59,766: DEBUG - + local manifest_path=../manifest.json
2020-09-02 13:35:59,766: DEBUG - + '[' '!' -e ../manifest.json ']'
2020-09-02 13:35:59,767: DEBUG - ++ grep '\"version\": ' ../manifest.json
2020-09-02 13:35:59,768: DEBUG - ++ cut '--delimiter="' --fields=4
2020-09-02 13:35:59,768: DEBUG - + local version=3.17.1~ynh1
2020-09-02 13:35:59,769: DEBUG - + '[' 11 -eq 0 ']'
2020-09-02 13:35:59,769: DEBUG - + local dep_app=limesurvey
2020-09-02 13:35:59,770: DEBUG - + [[ php7.3-cli, php7.3-imap, python-pip, php7.3-gd, php7.3-ldap =~ [<=>] ]]
2020-09-02 13:35:59,771: DEBUG - + echo php7.3-cli, php7.3-imap, python-pip, php7.3-gd, php7.3-ldap
2020-09-02 13:35:59,771: DEBUG - + grep --quiet php
2020-09-02 13:35:59,772: DEBUG - + dpkg --list
2020-09-02 13:35:59,772: DEBUG - + grep php7.0
2020-09-02 13:35:59,773: DEBUG - + grep --quiet --invert-match 7.0.33-0+deb9
2020-09-02 13:35:59,874: DEBUG - + cat
2020-09-02 13:35:59,875: DEBUG - + ynh_package_install_from_equivs /tmp/limesurvey-ynh-deps.control
2020-09-02 13:35:59,875: DEBUG - + local controlfile=/tmp/limesurvey-ynh-deps.control
2020-09-02 13:35:59,876: DEBUG - ++ grep '^Package: ' /tmp/limesurvey-ynh-deps.control
2020-09-02 13:35:59,877: DEBUG - ++ cut '--delimiter= ' --fields=2
2020-09-02 13:35:59,877: DEBUG - + local pkgname=limesurvey-ynh-deps
2020-09-02 13:35:59,878: DEBUG - ++ grep '^Version: ' /tmp/limesurvey-ynh-deps.control
2020-09-02 13:35:59,878: DEBUG - ++ cut '--delimiter= ' --fields=2
2020-09-02 13:35:59,879: DEBUG - + local pkgversion=3.17.1~ynh1
2020-09-02 13:35:59,879: DEBUG - + [[ -z limesurvey-ynh-deps ]]
2020-09-02 13:35:59,880: DEBUG - + [[ -z 3.17.1~ynh1 ]]
2020-09-02 13:35:59,880: DEBUG - + ynh_package_update
2020-09-02 13:35:59,881: DEBUG - + ynh_apt update
2020-09-02 13:35:59,881: DEBUG - + ynh_wait_dpkg_free
2020-09-02 13:36:00,184: DEBUG - + return 0
2020-09-02 13:36:00,185: DEBUG - + LC_ALL=C
2020-09-02 13:36:00,185: DEBUG - + DEBIAN_FRONTEND=noninteractive
2020-09-02 13:36:00,186: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2020-09-02 13:36:00,587: DEBUG - Hit:1 http://forge.yunohost.org/debian buster InRelease
2020-09-02 13:36:00,588: DEBUG - Hit:2 http://archive.raspberrypi.org/debian buster InRelease
2020-09-02 13:36:00,690: DEBUG - Hit:3 http://raspbian.raspberrypi.org/raspbian buster InRelease
2020-09-02 13:36:06,508: DEBUG - Reading package lists...
2020-09-02 13:36:06,710: DEBUG - ++ mktemp --directory
2020-09-02 13:36:06,711: DEBUG - + local TMPDIR=/tmp/tmp.SYQ3ysKSxt
2020-09-02 13:36:06,711: DEBUG - + echo 10
2020-09-02 13:36:06,712: DEBUG - + ynh_wait_dpkg_free
2020-09-02 13:36:06,914: DEBUG - + return 0
2020-09-02 13:36:06,915: DEBUG - + cp /tmp/limesurvey-ynh-deps.control /tmp/tmp.SYQ3ysKSxt/control
2020-09-02 13:36:06,916: DEBUG - + cd /tmp/tmp.SYQ3ysKSxt
2020-09-02 13:36:06,917: DEBUG - + LC_ALL=C
2020-09-02 13:36:06,917: DEBUG - + equivs-build ./control
2020-09-02 13:36:14,540: DEBUG - + dpkg --force-depends --install ./limesurvey-ynh-deps_3.17.1~ynh1_all.deb
2020-09-02 13:36:15,144: DEBUG - Selecting previously unselected package limesurvey-ynh-deps.
2020-09-02 13:36:15,245: DEBUG - (Reading database ... 55206 files and directories currently installed.)
2020-09-02 13:36:15,246: DEBUG - Preparing to unpack .../limesurvey-ynh-deps_3.17.1~ynh1_all.deb ...
2020-09-02 13:36:15,247: DEBUG - Unpacking limesurvey-ynh-deps (3.17.1~ynh1) ...
2020-09-02 13:36:15,348: DEBUG - dpkg: limesurvey-ynh-deps: dependency problems, but configuring anyway as you requested:
2020-09-02 13:36:15,349: DEBUG -  limesurvey-ynh-deps depends on php7.3-imap; however:
2020-09-02 13:36:15,351: DEBUG -   Package php7.3-imap is not installed.
2020-09-02 13:36:15,352: DEBUG - 
2020-09-02 13:36:15,353: DEBUG - Setting up limesurvey-ynh-deps (3.17.1~ynh1) ...
2020-09-02 13:36:15,455: DEBUG - + ynh_package_install --fix-broken
2020-09-02 13:36:15,457: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2020-09-02 13:36:15,458: DEBUG - + ynh_wait_dpkg_free
2020-09-02 13:36:15,864: DEBUG - + return 0
2020-09-02 13:36:15,865: DEBUG - + LC_ALL=C
2020-09-02 13:36:15,866: DEBUG - + DEBIAN_FRONTEND=noninteractive
2020-09-02 13:36:15,866: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2020-09-02 13:36:16,469: DEBUG - Reading package lists...
2020-09-02 13:36:17,373: DEBUG - Building dependency tree...
2020-09-02 13:36:17,574: DEBUG - Reading state information...
2020-09-02 13:36:18,478: DEBUG - Correcting dependencies... Done
2020-09-02 13:36:19,682: DEBUG - The following packages were automatically installed and are no longer required:
2020-09-02 13:36:19,784: DEBUG -   libmcrypt4 php-mcrypt php7.0-fpm php7.0-mcrypt
2020-09-02 13:36:19,785: DEBUG - Use 'apt autoremove' to remove them.
2020-09-02 13:36:19,785: DEBUG - The following additional packages will be installed:
2020-09-02 13:36:19,786: DEBUG -   libc-client2007e mlock php7.3-imap
2020-09-02 13:36:19,787: DEBUG - Suggested packages:
2020-09-02 13:36:19,787: DEBUG -   uw-mailutils
2020-09-02 13:36:19,888: DEBUG - The following NEW packages will be installed:
2020-09-02 13:36:19,889: DEBUG -   libc-client2007e mlock php7.3-imap
2020-09-02 13:36:20,292: DEBUG - 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
2020-09-02 13:36:20,293: DEBUG - Need to get 615 kB of archives.
2020-09-02 13:36:20,293: DEBUG - After this operation, 1473 kB of additional disk space will be used.
2020-09-02 13:36:20,294: DEBUG - Get:1 http://mirror.serverius.net/raspbian/raspbian buster/main armhf mlock armhf 8:2007f~dfsg-6 [35.3 kB]
2020-09-02 13:36:20,395: DEBUG - Get:2 http://mirror.serverius.net/raspbian/raspbian buster/main armhf libc-client2007e armhf 8:2007f~dfsg-6 [555 kB]
2020-09-02 13:36:20,697: DEBUG - Get:3 http://mirror.serverius.net/raspbian/raspbian buster/main armhf php7.3-imap armhf 7.3.19-1~deb10u1 [24.7 kB]
2020-09-02 13:36:22,905: DEBUG - Fetched 615 kB in 1s (877 kB/s)
2020-09-02 13:36:23,007: DEBUG - Selecting previously unselected package mlock.
2020-09-02 13:36:23,108: DEBUG - (Reading database ... 55210 files and directories currently installed.)
2020-09-02 13:36:23,111: DEBUG - Preparing to unpack .../mlock_8%3a2007f~dfsg-6_armhf.deb ...
2020-09-02 13:36:23,112: DEBUG - Unpacking mlock (8:2007f~dfsg-6) ...
2020-09-02 13:36:23,313: DEBUG - Selecting previously unselected package libc-client2007e.
2020-09-02 13:36:23,314: DEBUG - Preparing to unpack .../libc-client2007e_8%3a2007f~dfsg-6_armhf.deb ...
2020-09-02 13:36:23,315: DEBUG - Unpacking libc-client2007e (8:2007f~dfsg-6) ...
2020-09-02 13:36:23,717: DEBUG - Selecting previously unselected package php7.3-imap.
2020-09-02 13:36:23,718: DEBUG - Preparing to unpack .../php7.3-imap_7.3.19-1~deb10u1_armhf.deb ...
2020-09-02 13:36:23,719: DEBUG - Unpacking php7.3-imap (7.3.19-1~deb10u1) ...
2020-09-02 13:36:24,021: DEBUG - Setting up mlock (8:2007f~dfsg-6) ...
2020-09-02 13:36:24,022: DEBUG - Setting up libc-client2007e (8:2007f~dfsg-6) ...
2020-09-02 13:36:24,023: DEBUG - Setting up php7.3-imap (7.3.19-1~deb10u1) ...
2020-09-02 13:36:24,124: DEBUG - /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2020-09-02 13:36:24,727: DEBUG - /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2020-09-02 13:36:24,929: WARNING - 
2020-09-02 13:36:24,930: WARNING - Creating config file /etc/php/7.3/mods-available/imap.ini with new version
2020-09-02 13:36:25,333: DEBUG - /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2020-09-02 13:36:25,735: DEBUG - Processing triggers for libc-bin (2.28-10+rpi1) ...
2020-09-02 13:36:25,837: DEBUG - Processing triggers for man-db (2.8.5-2) ...
2020-09-02 13:36:27,644: DEBUG - Processing triggers for php7.3-fpm (7.3.19-1~deb10u1) ...
2020-09-02 13:36:29,851: DEBUG - + [[ -n /tmp/tmp.SYQ3ysKSxt ]]
2020-09-02 13:36:29,852: DEBUG - + rm --recursive --force /tmp/tmp.SYQ3ysKSxt
2020-09-02 13:36:29,853: DEBUG - + ynh_package_is_installed limesurvey-ynh-deps
2020-09-02 13:36:29,858: DEBUG - + ynh_wait_dpkg_free
2020-09-02 13:36:30,160: DEBUG - + return 0
2020-09-02 13:36:30,162: DEBUG - + dpkg-query --show '--showformat=${Status}' limesurvey-ynh-deps
2020-09-02 13:36:30,163: DEBUG - + grep --count 'ok installed'
2020-09-02 13:36:30,264: DEBUG - + rm /tmp/limesurvey-ynh-deps.control
2020-09-02 13:36:30,265: DEBUG - + ynh_app_setting_set --app=limesurvey --key=apt_dependencies '--value=php7.3-cli, php7.3-imap, python-pip, php7.3-gd, php7.3-ldap'
2020-09-02 13:36:30,475: DEBUG - + ynh_app_setting set limesurvey apt_dependencies 'php7.3-cli, php7.3-imap, python-pip, php7.3-gd, php7.3-ldap'
2020-09-02 13:36:30,476: DEBUG - + [[ set == \d\e\l\e\t\e ]]
2020-09-02 13:36:30,477: DEBUG - + ACTION=set
2020-09-02 13:36:30,478: DEBUG - + APP=limesurvey
2020-09-02 13:36:30,478: DEBUG - + KEY=apt_dependencies
2020-09-02 13:36:30,480: DEBUG - + VALUE='php7.3-cli, php7.3-imap, python-pip, php7.3-gd, php7.3-ldap'
2020-09-02 13:36:30,480: DEBUG - + python2.7 -
2020-09-02 13:36:30,883: DEBUG - + [[ apt_dependencies =~ ^(unprotected|skipped)_ ]]
2020-09-02 13:36:31,190: DEBUG - + echo '[####++..............] > Creating a MySQL database... [00h00m,32s]'
2020-09-02 13:36:31,192: DEBUG - + ynh_mysql_setup_db limesurvey limesurvey
2020-09-02 13:36:31,198: DEBUG - + db_pwd=
2020-09-02 13:36:31,302: INFO - [####++..............] > Creating a MySQL database... [00h00m,32s]
2020-09-02 13:36:31,306: DEBUG - ++ ynh_string_random
2020-09-02 13:36:31,313: DEBUG - ++ length=24
2020-09-02 13:36:31,314: DEBUG - ++ dd if=/dev/urandom bs=1 count=1000
2020-09-02 13:36:31,314: DEBUG - ++ sed --quiet 's/\(.\{24\}\).*/\1/p'
2020-09-02 13:36:31,315: DEBUG - ++ tr --complement --delete A-Za-z0-9
2020-09-02 13:36:31,416: DEBUG - + local new_db_pwd=**********
2020-09-02 13:36:31,417: DEBUG - + db_pwd=**********
2020-09-02 13:36:31,418: DEBUG - + ynh_mysql_create_db limesurvey limesurvey **********
2020-09-02 13:36:31,418: DEBUG - + local db=limesurvey
2020-09-02 13:36:31,419: DEBUG - + local 'sql=CREATE DATABASE limesurvey;'
2020-09-02 13:36:31,420: DEBUG - + [[ 3 -gt 1 ]]
2020-09-02 13:36:31,421: DEBUG - + sql+=' GRANT ALL PRIVILEGES ON limesurvey.* TO '\''limesurvey'\''@'\''localhost'\'''
2020-09-02 13:36:31,421: DEBUG - + [[ -n ********** ]]
2020-09-02 13:36:31,422: DEBUG - + sql+=' IDENTIFIED BY '\''**********'\'''
2020-09-02 13:36:31,423: DEBUG - + sql+=' WITH GRANT OPTION;'
2020-09-02 13:36:31,423: DEBUG - + ynh_mysql_execute_as_root '--sql=CREATE DATABASE limesurvey; GRANT ALL PRIVILEGES ON limesurvey.* TO '\''limesurvey'\''@'\''localhost'\'' IDENTIFIED BY '\''**********'\'' WITH GRANT OPTION;'
2020-09-02 13:36:31,431: DEBUG - + database=
2020-09-02 13:36:31,432: DEBUG - + '[' -n '' ']'
2020-09-02 13:36:31,433: DEBUG - ++ cat /etc/yunohost/mysql
2020-09-02 13:36:31,434: DEBUG - + ynh_mysql_connect_as --user=root --password=**********
2020-09-02 13:36:31,542: DEBUG - + database=
2020-09-02 13:36:31,543: DEBUG - + mysql --user=root --password=********** --batch ''
2020-09-02 13:36:32,045: DEBUG - + ynh_app_setting_set --app=limesurvey --key=mysqlpwd --value=**********
2020-09-02 13:36:32,262: DEBUG - + ynh_app_setting set limesurvey mysqlpwd **********
2020-09-02 13:36:32,263: DEBUG - + [[ set == \d\e\l\e\t\e ]]
2020-09-02 13:36:32,264: DEBUG - + ACTION=set
2020-09-02 13:36:32,264: DEBUG - + APP=limesurvey
2020-09-02 13:36:32,265: DEBUG - + KEY=mysqlpwd
2020-09-02 13:36:32,266: DEBUG - + VALUE=**********
2020-09-02 13:36:32,267: DEBUG - + python2.7 -
2020-09-02 13:36:32,669: DEBUG - + [[ mysqlpwd =~ ^(unprotected|skipped)_ ]]
2020-09-02 13:36:32,670: DEBUG - ++ ynh_app_setting_get limesurvey mysqlpwd
2020-09-02 13:36:32,777: DEBUG - ++ ynh_app_setting get limesurvey mysqlpwd
2020-09-02 13:36:32,777: DEBUG - ++ [[ get == \d\e\l\e\t\e ]]
2020-09-02 13:36:32,778: DEBUG - ++ ACTION=get
2020-09-02 13:36:32,779: DEBUG - ++ APP=limesurvey
2020-09-02 13:36:32,779: DEBUG - ++ KEY=mysqlpwd
2020-09-02 13:36:32,780: DEBUG - ++ VALUE=
2020-09-02 13:36:32,781: DEBUG - ++ python2.7 -
2020-09-02 13:36:33,184: DEBUG - ++ [[ mysqlpwd =~ ^(unprotected|skipped)_ ]]
2020-09-02 13:36:33,185: DEBUG - + export db_pwd=**********
2020-09-02 13:36:33,185: DEBUG - + db_pwd=**********
2020-09-02 13:36:33,490: INFO - [######+.............] > Setting up source files... [00h00m,02s]
2020-09-02 13:36:33,492: DEBUG - + echo '[######+.............] > Setting up source files... [00h00m,02s]'
2020-09-02 13:36:33,495: DEBUG - + ynh_setup_source /var/www/limesurvey
2020-09-02 13:36:33,505: DEBUG - + source_id=app
2020-09-02 13:36:33,506: DEBUG - + local src_file_path=/var/cache/yunohost/from_file/limesurvey_ynh-da4959616e67f89ef907a223f7c84607dc4771e5/scripts/../conf/app.src
2020-09-02 13:36:33,507: DEBUG - + '[' '!' -e /var/cache/yunohost/from_file/limesurvey_ynh-da4959616e67f89ef907a223f7c84607dc4771e5/scripts/../conf/app.src ']'
2020-09-02 13:36:33,509: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/from_file/limesurvey_ynh-da4959616e67f89ef907a223f7c84607dc4771e5/scripts/../conf/app.src
2020-09-02 13:36:33,510: DEBUG - ++ cut --delimiter== --fields=2-
2020-09-02 13:36:33,511: DEBUG - + local src_url=https://github.com/LimeSurvey/LimeSurvey/archive/3.17.1+190408.tar.gz
2020-09-02 13:36:33,512: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/limesurvey_ynh-da4959616e67f89ef907a223f7c84607dc4771e5/scripts/../conf/app.src
2020-09-02 13:36:33,514: DEBUG - ++ cut --delimiter== --fields=2-
2020-09-02 13:36:33,515: DEBUG - + local src_sum=a2c63a5a28f7f724f5bd7017959caf76e845c7fce9d8b1177075d030641fdbac
2020-09-02 13:36:33,516: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/limesurvey_ynh-da4959616e67f89ef907a223f7c84607dc4771e5/scripts/../conf/app.src
2020-09-02 13:36:33,517: DEBUG - ++ cut --delimiter== --fields=2-
2020-09-02 13:36:33,518: DEBUG - + local src_sumprg=
2020-09-02 13:36:33,519: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/limesurvey_ynh-da4959616e67f89ef907a223f7c84607dc4771e5/scripts/../conf/app.src
2020-09-02 13:36:33,521: DEBUG - ++ cut --delimiter== --fields=2-
2020-09-02 13:36:33,622: DEBUG - + local src_format=
2020-09-02 13:36:33,623: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/limesurvey_ynh-da4959616e67f89ef907a223f7c84607dc4771e5/scripts/../conf/app.src
2020-09-02 13:36:33,624: DEBUG - ++ cut --delimiter== --fields=2-
2020-09-02 13:36:33,625: DEBUG - + local src_extract=
2020-09-02 13:36:33,625: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/limesurvey_ynh-da4959616e67f89ef907a223f7c84607dc4771e5/scripts/../conf/app.src
2020-09-02 13:36:33,626: DEBUG - ++ cut --delimiter== --fields=2-
2020-09-02 13:36:33,627: DEBUG - + local src_in_subdir=
2020-09-02 13:36:33,627: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/limesurvey_ynh-da4959616e67f89ef907a223f7c84607dc4771e5/scripts/../conf/app.src
2020-09-02 13:36:33,628: DEBUG - ++ cut --delimiter== --fields=2-
2020-09-02 13:36:33,629: DEBUG - + local src_filename=limesurvey-3.17.1+190408.tar.gz
2020-09-02 13:36:33,629: DEBUG - + src_sumprg=sha256sum
2020-09-02 13:36:33,630: DEBUG - + src_in_subdir=true
2020-09-02 13:36:33,630: DEBUG - + src_format=tar.gz
2020-09-02 13:36:33,631: DEBUG - ++ echo tar.gz
2020-09-02 13:36:33,632: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2020-09-02 13:36:33,632: DEBUG - + src_format=tar.gz
2020-09-02 13:36:33,633: DEBUG - + src_extract=true
2020-09-02 13:36:33,634: DEBUG - + '[' limesurvey-3.17.1+190408.tar.gz = '' ']'
2020-09-02 13:36:33,634: DEBUG - + local local_src=/opt/yunohost-apps-src/limesurvey/limesurvey-3.17.1+190408.tar.gz
2020-09-02 13:36:33,635: DEBUG - + test -e /opt/yunohost-apps-src/limesurvey/limesurvey-3.17.1+190408.tar.gz
2020-09-02 13:36:33,636: DEBUG - ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=limesurvey-3.17.1+190408.tar.gz https://github.com/LimeSurvey/LimeSurvey/archive/3.17.1+190408.tar.gz
2020-09-02 13:37:19,978: DEBUG - + out='2020-09-02 13:37:19 URL:https://codeload.github.com/LimeSurvey/LimeSurvey/tar.gz/3.17.1%2B190408 [70225682] -> "limesurvey-3.17.1+190408.tar.gz" [1]'
2020-09-02 13:37:19,979: DEBUG - + echo 'a2c63a5a28f7f724f5bd7017959caf76e845c7fce9d8b1177075d030641fdbac limesurvey-3.17.1+190408.tar.gz'
2020-09-02 13:37:19,980: DEBUG - + sha256sum --check --status
2020-09-02 13:37:21,184: DEBUG - + mkdir --parents /var/www/limesurvey
2020-09-02 13:37:21,185: DEBUG - + true
2020-09-02 13:37:21,186: DEBUG - + '[' tar.gz = zip ']'
2020-09-02 13:37:21,187: DEBUG - + local strip=
2020-09-02 13:37:21,187: DEBUG - + '[' true '!=' false ']'
2020-09-02 13:37:21,188: DEBUG - + '[' true == true ']'
2020-09-02 13:37:21,189: DEBUG - + local sub_dirs=1
2020-09-02 13:37:21,189: DEBUG - + strip='--strip-components 1'
2020-09-02 13:37:21,190: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2020-09-02 13:37:21,191: DEBUG - + tar --extract --file=limesurvey-3.17.1+190408.tar.gz --directory=/var/www/limesurvey --strip-components 1
2020-09-02 13:37:36,340: DEBUG - ++ find /var/cache/yunohost/from_file/limesurvey_ynh-da4959616e67f89ef907a223f7c84607dc4771e5/scripts/../sources/patches/ -type f -name 'app-*.patch'
2020-09-02 13:37:36,342: DEBUG - ++ wc --lines
2020-09-02 13:37:36,344: DEBUG - + ((  0 > 0  ))
2020-09-02 13:37:36,345: DEBUG - + test -e /var/cache/yunohost/from_file/limesurvey_ynh-da4959616e67f89ef907a223f7c84607dc4771e5/scripts/../sources/extra_files/app
2020-09-02 13:37:36,752: DEBUG - + echo '[#######++...........] > Configuring nginx web server... [00h01m,03s]'
2020-09-02 13:37:36,754: DEBUG - + ynh_add_nginx_config
2020-09-02 13:37:36,755: DEBUG - + finalnginxconf=/etc/nginx/conf.d/domain2.tld.d/limesurvey.conf
2020-09-02 13:37:36,755: DEBUG - + ynh_backup_if_checksum_is_different /etc/nginx/conf.d/domain2.tld.d/limesurvey.conf
2020-09-02 13:37:36,760: INFO - [#######++...........] > Configuring nginx web server... [00h01m,03s]
2020-09-02 13:37:36,766: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_domain2.tld.d_limesurvey.conf
2020-09-02 13:37:36,769: DEBUG - ++ ynh_app_setting_get --app=limesurvey --key=checksum__etc_nginx_conf.d_domain2.tld.d_limesurvey.conf
2020-09-02 13:37:36,982: DEBUG - ++ ynh_app_setting get limesurvey checksum__etc_nginx_conf.d_domain2.tld.d_limesurvey.conf
2020-09-02 13:37:36,983: DEBUG - ++ [[ get == \d\e\l\e\t\e ]]
2020-09-02 13:37:36,984: DEBUG - ++ ACTION=get
2020-09-02 13:37:36,984: DEBUG - ++ APP=limesurvey
2020-09-02 13:37:36,985: DEBUG - ++ KEY=checksum__etc_nginx_conf.d_domain2.tld.d_limesurvey.conf
2020-09-02 13:37:36,986: DEBUG - ++ VALUE=
2020-09-02 13:37:36,986: DEBUG - ++ python2.7 -
2020-09-02 13:37:37,389: DEBUG - ++ [[ checksum__etc_nginx_conf.d_domain2.tld.d_limesurvey.conf =~ ^(unprotected|skipped)_ ]]
2020-09-02 13:37:37,389: DEBUG - + local checksum_value=
2020-09-02 13:37:37,390: DEBUG - + backup_file_checksum=
2020-09-02 13:37:37,390: DEBUG - + '[' -n '' ']'
2020-09-02 13:37:37,391: DEBUG - + ynh_configure nginx.conf /etc/nginx/conf.d/domain2.tld.d/limesurvey.conf
2020-09-02 13:37:37,392: DEBUG - + local TEMPLATE=nginx.conf
2020-09-02 13:37:37,392: DEBUG - + local DEST=/etc/nginx/conf.d/domain2.tld.d/limesurvey.conf
2020-09-02 13:37:37,393: DEBUG - + type j2
2020-09-02 13:37:37,393: DEBUG - j2 is /usr/local/bin/j2
2020-09-02 13:37:37,394: DEBUG - + j2 /var/cache/yunohost/from_file/limesurvey_ynh-da4959616e67f89ef907a223f7c84607dc4771e5/conf/nginx.conf.j2
2020-09-02 13:37:38,899: DEBUG - + ynh_exit_properly
2020-09-02 13:37:38,900: WARNING - Traceback (most recent call last):
2020-09-02 13:37:38,901: DEBUG - + local exit_code=1
2020-09-02 13:37:38,902: WARNING -   File "/usr/local/bin/j2", line 11, in <module>
2020-09-02 13:37:38,903: DEBUG - + '[' 1 -eq 0 ']'
2020-09-02 13:37:38,904: WARNING -     sys.exit(main())
2020-09-02 13:37:38,905: DEBUG - + trap '' EXIT
2020-09-02 13:37:38,906: WARNING -   File "/usr/local/lib/python2.7/dist-packages/j2cli/cli.py", line 206, in main
2020-09-02 13:37:38,907: DEBUG - + set +o errexit
2020-09-02 13:37:38,908: WARNING -     sys.argv[1:]
2020-09-02 13:37:38,909: DEBUG - + set +o nounset
2020-09-02 13:37:38,910: WARNING -   File "/usr/local/lib/python2.7/dist-packages/j2cli/cli.py", line 186, in render_command
2020-09-02 13:37:38,911: DEBUG - + sleep 0.5
2020-09-02 13:37:38,912: WARNING -     result = renderer.render(args.template, context)
2020-09-02 13:37:38,913: WARNING -   File "/usr/local/lib/python2.7/dist-packages/j2cli/cli.py", line 87, in render
2020-09-02 13:37:38,915: WARNING -     .render(context) \
2020-09-02 13:37:38,916: WARNING -   File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 1008, in render
2020-09-02 13:37:38,918: WARNING -     return self.environment.handle_exception(exc_info, True)
2020-09-02 13:37:38,919: WARNING -   File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 780, in handle_exception
2020-09-02 13:37:38,920: WARNING -     reraise(exc_type, exc_value, tb)
2020-09-02 13:37:38,922: WARNING -   File "/var/cache/yunohost/from_file/limesurvey_ynh-da4959616e67f89ef907a223f7c84607dc4771e5/conf/nginx.conf.j2", line 1, in top-level template code
2020-09-02 13:37:38,923: WARNING -     {% if path_url != "/" %}
2020-09-02 13:37:38,925: WARNING - jinja2.exceptions.UndefinedError: 'path_url' is undefined
2020-09-02 13:37:39,429: DEBUG - + type -t ynh_clean_setup
2020-09-02 13:37:39,430: DEBUG - + exit 1
2020-09-02 13:37:39,478: ERROR - Could not install limesurvey: An error occurred inside the app installation script

It’s a bug, i will try to fix it tomorow and friday

1 Like

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