Résolution de nom de domaine local via yunohost

Si tu peux déjà réinstaller Pi-Hole avec --verbose ou juste regarder le log d’installation.
Il y a peut-être des infos sur ce qui a fait échouer l’installation.

on fait comment stp :

EDIT :slight_smile:
désolé voici comment installer en verbose :

sudo yunohost app install https://github.com/YunoHost-Apps/pihole_ynh/ --verbose

Voici la log entiére :

pi@raspberrypi:~ $ sudo yunohost app install https://github.com/YunoHost-Apps/pihole_ynh/  --verbose
Downloading...
Extracting...
Done
Checking required packages...
Available domains:
- domaine.fr
- youtube.domaine.fr
Choose a domain for the admin interface of Pi-hole (default: domaine.fr):
Choose a path for the admin interface of Pi-hole (default: /pihole):
Choose the Pi-hole administrator (must be an existing YunoHost user): user01
Do you want to log queries ? [0 | 1] (default: 0): 1
Do you want to set Pi-hole as your DHCP server ? [0 | 1] (default: 0):
Executing script '/var/cache/yunohost/from_file/pihole_ynh-master/scripts/install'...
+ source _common.sh
++ n_install_dir=/opt/node_n
++ node_version_path=/opt/node_n/n/versions/node
++ export N_PREFIX=/opt/node_n
++ N_PREFIX=/opt/node_n
+ source /usr/share/yunohost/helpers
+++ run-parts --list /usr/share/yunohost/helpers.d
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
++ . /usr/share/yunohost/helpers.d/backend
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
++ . /usr/share/yunohost/helpers.d/filesystem
+++ CAN_BIND=1
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
++ . /usr/share/yunohost/helpers.d/ip
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
++ . /usr/share/yunohost/helpers.d/mysql
+++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/network ']'
++ . /usr/share/yunohost/helpers.d/network
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/package ']'
++ . /usr/share/yunohost/helpers.d/package
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/print ']'
++ . /usr/share/yunohost/helpers.d/print
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
++ . /usr/share/yunohost/helpers.d/setting
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/string ']'
++ . /usr/share/yunohost/helpers.d/string
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/system ']'
++ . /usr/share/yunohost/helpers.d/system
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/user ']'
++ . /usr/share/yunohost/helpers.d/user
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
++ . /usr/share/yunohost/helpers.d/utils
+ source _variables
++ app_depencencies=dhcpcd5
+ ynh_abort_if_errors
+ set -eu
+ trap ynh_exit_properly EXIT
+ domain=domaine.fr
+ path_url=/pihole
+ admin=user01
+ query_logging=1
+ enable_dhcp=0
+ app=pihole
+ final_path=/var/www/pihole
+ test '!' -e /var/www/pihole
++ ynh_normalize_url_path /pihole
++ path_url=/pihole
++ test -n /pihole
++ '[' / '!=' / ']'
++ '[' e == / ']'
++ echo /pihole
+ path_url=/pihole
+ ynh_webpath_available domaine.fr /pihole
+ local domain=domaine.fr
+ local path=/pihole
+ sudo yunohost domain url-available domaine.fr /pihole
True
+ ynh_webpath_register pihole domaine.fr /pihole
+ local app=pihole
+ local domain=domaine.fr
+ local path=/pihole
+ sudo yunohost app register-url pihole domaine.fr /pihole
+ ynh_app_setting_set pihole domain domaine.fr
+ sudo yunohost app setting pihole domain --value=domaine.fr --quiet
+ ynh_app_setting_set pihole path /pihole
+ sudo yunohost app setting pihole path --value=/pihole --quiet
+ ynh_app_setting_set pihole admin user01
+ sudo yunohost app setting pihole admin --value=user01 --quiet
+ ynh_app_setting_set pihole query_logging 1
+ sudo yunohost app setting pihole query_logging --value=1 --quiet
+ ynh_app_setting_set pihole enable_dhcp 0
+ sudo yunohost app setting pihole enable_dhcp --value=0 --quiet
++ ynh_find_port 4711
++ port=4711
++ test -n 4711
++ netcat -z 127.0.0.1 4711
++ echo 4711
+ port=4711
+ '[' 4711 -gt 4720 ']'
+ ynh_exec_fully_quiet yunohost firewall allow --no-upnp TCP 4711
+ eval yunohost firewall allow --no-upnp TCP 4711
++ yunohost firewall allow --no-upnp TCP 4711
+ ynh_app_setting_set pihole port 4711
+ sudo yunohost app setting pihole port --value=4711 --quiet
+ ynh_exec_fully_quiet yunohost firewall disallow Both 53 --no-reload
+ eval yunohost firewall disallow Both 53 --no-reload
++ yunohost firewall disallow Both 53 --no-reload
+ ynh_exec_fully_quiet yunohost firewall allow Both 53 --no-upnp
+ eval yunohost firewall allow Both 53 --no-upnp
++ yunohost firewall allow Both 53 --no-upnp
+ ynh_install_app_dependencies dhcpcd5
+ dependencies=dhcpcd5
+ manifest_path=../manifest.json
+ '[' '!' -e ../manifest.json ']'
++ grep '\"version\": ' ../manifest.json
++ cut -d '"' -f 4
+ version=3.1.4~ynh2
+ dep_app=pihole
+ ynh_package_is_installed pihole-ynh-deps
+ dpkg-query -W -f '${Status}' pihole-ynh-deps
+ grep -c 'ok installed'
+ cat
+ ynh_package_install_from_equivs /tmp/pihole-ynh-deps.control
+ controlfile=/tmp/pihole-ynh-deps.control
+ ynh_package_is_installed equivs
+ dpkg-query -W -f '${Status}' equivs
+ grep -c 'ok installed'
++ grep '^Package: ' /tmp/pihole-ynh-deps.control
++ cut '-d ' -f 2
+ pkgname=pihole-ynh-deps
++ grep '^Version: ' /tmp/pihole-ynh-deps.control
++ cut '-d ' -f 2
+ pkgversion=3.1.4~ynh2
+ [[ -z pihole-ynh-deps ]]
+ [[ -z 3.1.4~ynh2 ]]
+ ynh_package_update
+ ynh_apt update
+ DEBIAN_FRONTEND=noninteractive
+ sudo apt-get -y -qq update
++ mktemp -d
+ TMPDIR=/tmp/tmp.K0IVCigyrG
+ cp /tmp/pihole-ynh-deps.control /tmp/tmp.K0IVCigyrG/control
+ cd /tmp/tmp.K0IVCigyrG
+ equivs-build ./control
Warning: dh_install: Compatibility levels before 9 are deprecated (level 7 in use)
Warning: dh_installdocs: Compatibility levels before 9 are deprecated (level 7 in use)
Warning: dh_installdeb: Compatibility levels before 9 are deprecated (level 7 in use)
+ sudo dpkg --force-depends -i ./pihole-ynh-deps_3.1.4~ynh2_all.deb
Selecting previously unselected package pihole-ynh-deps.
(Reading database ... 57382 files and directories currently installed.)
Preparing to unpack .../pihole-ynh-deps_3.1.4~ynh2_all.deb ...
Unpacking pihole-ynh-deps (3.1.4~ynh2) ...
Setting up pihole-ynh-deps (3.1.4~ynh2) ...
+ ynh_package_install -f
+ ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
+ DEBIAN_FRONTEND=noninteractive
+ sudo apt-get -y -qq --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
+ [[ -n /tmp/tmp.K0IVCigyrG ]]
+ rm -rf /tmp/tmp.K0IVCigyrG
+ ynh_package_is_installed pihole-ynh-deps
+ dpkg-query -W -f '${Status}' pihole-ynh-deps
+ grep -c 'ok installed'
+ rm /tmp/pihole-ynh-deps.control
+ ynh_app_setting_set pihole apt_dependencies dhcpcd5
+ sudo yunohost app setting pihole apt_dependencies --value=dhcpcd5 --quiet
+ ynh_app_setting_set pihole final_path /var/www/pihole
+ sudo yunohost app setting pihole final_path --value=/var/www/pihole --quiet
+ pihole_local_repo=/etc/.pihole
+ ynh_setup_source /etc/.pihole
+ local dest_dir=/etc/.pihole
+ local src_id=app
++ grep SOURCE_URL= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/app.src
++ cut -d= -f2-
+ local src_url=https://github.com/pi-hole/pi-hole/archive/v3.1.4.tar.gz
++ grep SOURCE_SUM= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/app.src
++ cut -d= -f2-
+ local src_sum=e231722332116b7ffab316d5c66a828e
++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/app.src
++ cut -d= -f2-
+ local src_sumprg=md5sum
++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/app.src
++ cut -d= -f2-
+ local src_format=tar.gz
++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/app.src
++ cut -d= -f2-
+ local src_in_subdir=true
++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/app.src
++ cut -d= -f2-
+ local src_filename=
+ src_sumprg=md5sum
+ src_in_subdir=true
+ src_format=tar.gz
++ echo tar.gz
++ tr '[:upper:]' '[:lower:]'
+ src_format=tar.gz
+ '[' '' = '' ']'
+ src_filename=app.tar.gz
+ local local_src=/opt/yunohost-apps-src/pihole/app.tar.gz
+ test -e /opt/yunohost-apps-src/pihole/app.tar.gz
+ wget -nv -O app.tar.gz https://github.com/pi-hole/pi-hole/archive/v3.1.4.tar.gz
Warning: 2018-01-13 18:29:08 URL:https://codeload.github.com/pi-hole/pi-hole/tar.gz/v3.1.4 [82435] -> "app.tar.gz" [1]
+ echo 'e231722332116b7ffab316d5c66a828e app.tar.gz'
+ md5sum -c --status
+ mkdir -p /etc/.pihole
+ '[' tar.gz = zip ']'
+ local strip=
+ true
+ strip='--strip-components 1'
+ [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
+ tar -xf app.tar.gz -C /etc/.pihole --strip-components 1
++ find /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../sources/patches/ -type f -name 'app-*.patch'
++ wc -l
+ ((  0 > 0  ))
+ test -e /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../sources/extra_files/app
+ ynh_setup_source /var/www/pihole admin_dashboard
+ local dest_dir=/var/www/pihole
+ local src_id=admin_dashboard
++ grep SOURCE_URL= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/admin_dashboard.src
++ cut -d= -f2-
+ local src_url=https://github.com/pi-hole/AdminLTE/archive/v3.1.tar.gz
++ grep SOURCE_SUM= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/admin_dashboard.src
++ cut -d= -f2-
+ local src_sum=2c0bf61ec96bdb85edeb9fd2cc2f330b
++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/admin_dashboard.src
++ cut -d= -f2-
+ local src_sumprg=md5sum
++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/admin_dashboard.src
++ cut -d= -f2-
+ local src_format=tar.gz
++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/admin_dashboard.src
++ cut -d= -f2-
+ local src_in_subdir=true
++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/admin_dashboard.src
++ cut -d= -f2-
+ local src_filename=
+ src_sumprg=md5sum
+ src_in_subdir=true
+ src_format=tar.gz
++ echo tar.gz
++ tr '[:upper:]' '[:lower:]'
+ src_format=tar.gz
+ '[' '' = '' ']'
+ src_filename=admin_dashboard.tar.gz
+ local local_src=/opt/yunohost-apps-src/pihole/admin_dashboard.tar.gz
+ test -e /opt/yunohost-apps-src/pihole/admin_dashboard.tar.gz
+ wget -nv -O admin_dashboard.tar.gz https://github.com/pi-hole/AdminLTE/archive/v3.1.tar.gz
Warning: 2018-01-13 18:29:14 URL:https://codeload.github.com/pi-hole/AdminLTE/tar.gz/v3.1 [2242189] -> "admin_dashboard.tar.gz" [1]
+ echo '2c0bf61ec96bdb85edeb9fd2cc2f330b admin_dashboard.tar.gz'
+ md5sum -c --status
+ mkdir -p /var/www/pihole
+ '[' tar.gz = zip ']'
+ local strip=
+ true
+ strip='--strip-components 1'
+ [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
+ tar -xf admin_dashboard.tar.gz -C /var/www/pihole --strip-components 1
++ find /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../sources/patches/ -type f -name 'admin_dashboard-*.patch'
++ wc -l
+ ((  0 > 0  ))
+ test -e /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../sources/extra_files/admin_dashboard
+ '[' /pihole '!=' / ']'
+ ynh_replace_string '^#sub_path_only' '' ../conf/nginx.conf
+ local delimit=@
+ local 'match_string=^#sub_path_only'
+ local replace_string=
+ local workfile=../conf/nginx.conf
+ match_string='^#sub_path_only'
+ replace_string=
+ match_string='^#sub_path_only'
+ replace_string=
+ match_string='^#sub_path_only'
+ replace_string=
+ sudo sed --in-place 's@^#sub_path_only@@g' ../conf/nginx.conf
+ ynh_add_nginx_config
+ finalnginxconf=/etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ ynh_backup_if_checksum_is_different /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ local file=/etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ local checksum_setting_name=checksum__etc_nginx_conf.d_domaine.fr.d_pihole.conf
++ ynh_app_setting_get pihole checksum__etc_nginx_conf.d_domaine.fr.d_pihole.conf
++ sudo yunohost app setting pihole checksum__etc_nginx_conf.d_domaine.fr.d_pihole.conf --output-as plain --quiet
+ local checksum_value=
+ '[' -n '' ']'
+ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ test -n /pihole
+ path_url_slash_less=/pihole
+ ynh_replace_string __PATH__/ /pihole/ /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ local delimit=@
+ local match_string=__PATH__/
+ local replace_string=/pihole/
+ local workfile=/etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ match_string=__PATH__/
+ replace_string=/pihole/
+ match_string=__PATH__/
+ replace_string=/pihole/
+ match_string=__PATH__/
+ replace_string=/pihole/
+ sudo sed --in-place s@__PATH__/@/pihole/@g /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ ynh_replace_string __PATH__ /pihole /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ local delimit=@
+ local match_string=__PATH__
+ local replace_string=/pihole
+ local workfile=/etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ match_string=__PATH__
+ replace_string=/pihole
+ match_string=__PATH__
+ replace_string=/pihole
+ match_string=__PATH__
+ replace_string=/pihole
+ sudo sed --in-place s@__PATH__@/pihole@g /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ test -n domaine.fr
+ ynh_replace_string __DOMAIN__ domaine.fr /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ local delimit=@
+ local match_string=__DOMAIN__
+ local replace_string=domaine.fr
+ local workfile=/etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ match_string=__DOMAIN__
+ replace_string=domaine.fr
+ match_string=__DOMAIN__
+ replace_string=domaine.fr
+ match_string=__DOMAIN__
+ replace_string=domaine.fr
+ sudo sed --in-place s@__DOMAIN__@domaine.fr@g /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ test -n 4711
+ ynh_replace_string __PORT__ 4711 /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ local delimit=@
+ local match_string=__PORT__
+ local replace_string=4711
+ local workfile=/etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ match_string=__PORT__
+ replace_string=4711
+ match_string=__PORT__
+ replace_string=4711
+ match_string=__PORT__
+ replace_string=4711
+ sudo sed --in-place s@__PORT__@4711@g /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ test -n pihole
+ ynh_replace_string __NAME__ pihole /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ local delimit=@
+ local match_string=__NAME__
+ local replace_string=pihole
+ local workfile=/etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ match_string=__NAME__
+ replace_string=pihole
+ match_string=__NAME__
+ replace_string=pihole
+ match_string=__NAME__
+ replace_string=pihole
+ sudo sed --in-place s@__NAME__@pihole@g /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ test -n /var/www/pihole
+ ynh_replace_string __FINALPATH__ /var/www/pihole /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ local delimit=@
+ local match_string=__FINALPATH__
+ local replace_string=/var/www/pihole
+ local workfile=/etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ match_string=__FINALPATH__
+ replace_string=/var/www/pihole
+ match_string=__FINALPATH__
+ replace_string=/var/www/pihole
+ match_string=__FINALPATH__
+ replace_string=/var/www/pihole
+ sudo sed --in-place s@__FINALPATH__@/var/www/pihole@g /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ ynh_store_file_checksum /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ local checksum_setting_name=checksum__etc_nginx_conf.d_domaine.fr.d_pihole.conf
++ sudo md5sum /etc/nginx/conf.d/domaine.fr.d/pihole.conf
++ cut '-d ' -f1
+ ynh_app_setting_set pihole checksum__etc_nginx_conf.d_domaine.fr.d_pihole.conf 2d6482d203a217153efb124d940ddbbd
+ sudo yunohost app setting pihole checksum__etc_nginx_conf.d_domaine.fr.d_pihole.conf --value=2d6482d203a217153efb124d940ddbbd --quiet
+ sudo systemctl reload nginx
+ ynh_system_user_create pihole
+ ynh_system_user_exists pihole
+ getent passwd pihole
+ '[' 1 -ge 2 ']'
+ user_home_dir=--no-create-home
+ sudo useradd --no-create-home --system --user-group pihole --shell /usr/sbin/nologin
+ ynh_add_fpm_config
+ finalphpconf=/etc/php5/fpm/pool.d/pihole.conf
+ ynh_backup_if_checksum_is_different /etc/php5/fpm/pool.d/pihole.conf
+ local file=/etc/php5/fpm/pool.d/pihole.conf
+ local checksum_setting_name=checksum__etc_php5_fpm_pool.d_pihole.conf
++ ynh_app_setting_get pihole checksum__etc_php5_fpm_pool.d_pihole.conf
++ sudo yunohost app setting pihole checksum__etc_php5_fpm_pool.d_pihole.conf --output-as plain --quiet
+ local checksum_value=
+ '[' -n '' ']'
+ sudo cp ../conf/php-fpm.conf /etc/php5/fpm/pool.d/pihole.conf
+ ynh_replace_string __NAMETOCHANGE__ pihole /etc/php5/fpm/pool.d/pihole.conf
+ local delimit=@
+ local match_string=__NAMETOCHANGE__
+ local replace_string=pihole
+ local workfile=/etc/php5/fpm/pool.d/pihole.conf
+ match_string=__NAMETOCHANGE__
+ replace_string=pihole
+ match_string=__NAMETOCHANGE__
+ replace_string=pihole
+ match_string=__NAMETOCHANGE__
+ replace_string=pihole
+ sudo sed --in-place s@__NAMETOCHANGE__@pihole@g /etc/php5/fpm/pool.d/pihole.conf
+ ynh_replace_string __FINALPATH__ /var/www/pihole /etc/php5/fpm/pool.d/pihole.conf
+ local delimit=@
+ local match_string=__FINALPATH__
+ local replace_string=/var/www/pihole
+ local workfile=/etc/php5/fpm/pool.d/pihole.conf
+ match_string=__FINALPATH__
+ replace_string=/var/www/pihole
+ match_string=__FINALPATH__
+ replace_string=/var/www/pihole
+ match_string=__FINALPATH__
+ replace_string=/var/www/pihole
+ sudo sed --in-place s@__FINALPATH__@/var/www/pihole@g /etc/php5/fpm/pool.d/pihole.conf
+ ynh_replace_string __USER__ pihole /etc/php5/fpm/pool.d/pihole.conf
+ local delimit=@
+ local match_string=__USER__
+ local replace_string=pihole
+ local workfile=/etc/php5/fpm/pool.d/pihole.conf
+ match_string=__USER__
+ replace_string=pihole
+ match_string=__USER__
+ replace_string=pihole
+ match_string=__USER__
+ replace_string=pihole
+ sudo sed --in-place s@__USER__@pihole@g /etc/php5/fpm/pool.d/pihole.conf
+ sudo chown root: /etc/php5/fpm/pool.d/pihole.conf
+ ynh_store_file_checksum /etc/php5/fpm/pool.d/pihole.conf
+ local checksum_setting_name=checksum__etc_php5_fpm_pool.d_pihole.conf
++ sudo md5sum /etc/php5/fpm/pool.d/pihole.conf
++ cut '-d ' -f1
+ ynh_app_setting_set pihole checksum__etc_php5_fpm_pool.d_pihole.conf e38dff768396633b3da6ca0e9282395e
+ sudo yunohost app setting pihole checksum__etc_php5_fpm_pool.d_pihole.conf --value=e38dff768396633b3da6ca0e9282395e --quiet
+ '[' -e ../conf/php-fpm.ini ']'
+ finalphpini=/etc/php5/fpm/conf.d/20-pihole.ini
+ ynh_backup_if_checksum_is_different /etc/php5/fpm/conf.d/20-pihole.ini
+ local file=/etc/php5/fpm/conf.d/20-pihole.ini
+ local checksum_setting_name=checksum__etc_php5_fpm_conf.d_20-pihole.ini
++ ynh_app_setting_get pihole checksum__etc_php5_fpm_conf.d_20-pihole.ini
++ sudo yunohost app setting pihole checksum__etc_php5_fpm_conf.d_20-pihole.ini --output-as plain --quiet
+ local checksum_value=
+ '[' -n '' ']'
+ sudo cp ../conf/php-fpm.ini /etc/php5/fpm/conf.d/20-pihole.ini
+ sudo chown root: /etc/php5/fpm/conf.d/20-pihole.ini
+ ynh_store_file_checksum /etc/php5/fpm/conf.d/20-pihole.ini
+ local checksum_setting_name=checksum__etc_php5_fpm_conf.d_20-pihole.ini
++ sudo md5sum /etc/php5/fpm/conf.d/20-pihole.ini
++ cut '-d ' -f1
+ ynh_app_setting_set pihole checksum__etc_php5_fpm_conf.d_20-pihole.ini 7efbf4605d50f2513e7b73e2b155c0e6
+ sudo yunohost app setting pihole checksum__etc_php5_fpm_conf.d_20-pihole.ini --value=7efbf4605d50f2513e7b73e2b155c0e6 --quiet
+ sudo systemctl reload php5-fpm
+ pihole_storage=/etc/pihole
+ mkdir -p /etc/pihole
+ chown pihole: -R /etc/pihole
+ pihole_dir=/opt/pihole
+ mkdir -p /opt/pihole
+ cp -a /etc/.pihole/gravity.sh /opt/pihole/
+ cp -a /etc/.pihole/advanced/Scripts/chronometer.sh /etc/.pihole/advanced/Scripts/list.sh /etc/.pihole/advanced/Scripts/piholeCheckout.sh /etc/.pihole/advanced/Scripts/piholeDebug.sh /etc/.pihole/advanced/Scripts/piholeLogFlush.sh /etc/.pihole/advanced/Scripts/setupLCD.sh /etc/.pihole/advanced/Scripts/update.sh /etc/.pihole/advanced/Scripts/version.sh /etc/.pihole/advanced/Scripts/webpage.sh /opt/pihole/
+ cp -a /etc/.pihole/pihole /usr/local/bin/
+ cp -a /etc/.pihole/advanced/bash-completion/pihole /etc/bash_completion.d/pihole
+ touch /var/log/pihole.log
+ chmod 644 /var/log/pihole.log
++ grep DNSMASQ_USER= /etc/init.d/dnsmasq
++ cut '-d"' -f2
+ dnsmasq_user=dnsmasq
+ chown dnsmasq:root /var/log/pihole.log
+ cp /etc/.pihole/advanced/pihole.sudo /etc/sudoers.d/pihole
+ echo 'pihole ALL=NOPASSWD: /usr/local/bin/pihole'
+ chmod 0440 /etc/sudoers.d/pihole
+ cp /etc/.pihole/advanced/logrotate /etc/pihole/logrotate
+ sed -i '/# su #/d;' /etc/pihole/logrotate
+ git clone https://github.com/pi-hole/FTL
Warning: Cloning into 'FTL'...
+ cd FTL
+ ynh_exec_warn_less make
+ eval make
++ make
Making FTL version on branch master - v2.13.2 (2018-01-07 17:34:24 -0800)
mkdir -p obj
gcc -c -o obj/main.o main.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/structs.o structs.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/log.o log.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/daemon.o daemon.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/parser.o parser.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/signals.o signals.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/socket.o socket.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/request.o request.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/grep.o grep.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/setupVars.o setupVars.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/args.o args.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/flush.o flush.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/threads.o threads.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/gc.o gc.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/config.o config.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/database.o database.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/sqlite3.o sqlite3.c -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
sqlite3.c: In function ‘exprAnalyze’:
sqlite3.c:131527:39: warning: ‘pLeft’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         pNewTerm->u.leftColumn = pLeft->iColumn;
                                       ^
sqlite3.c:93128:39: warning: ‘pRight’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   return p ? exprDup(db, p, flags, 0) : 0;
                                       ^
sqlite3.c:131506:11: note: ‘pRight’ was declared here
     Expr *pRight, *pLeft;
           ^
sqlite3.c:131529:28: warning: ‘eOp2’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         pNewTerm->eMatchOp = eOp2;
                            ^
gcc -v -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB -o pihole-FTL obj/main.o obj/structs.o obj/log.o obj/daemon.o obj/parser.o obj/signals.o obj/socket.o obj/request.o obj/grep.o obj/setupVars.o obj/args.o obj/flush.o obj/threads.o obj/gc.o obj/config.o obj/database.o obj/sqlite3.o -pthread
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Raspbian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 4.9.2 (Raspbian 4.9.2-10)
COMPILER_PATH=/usr/lib/gcc/arm-linux-gnueabihf/4.9/:/usr/lib/gcc/arm-linux-gnueabihf/4.9/:/usr/lib/gcc/arm-linux-gnueabihf/:/usr/lib/gcc/arm-linux-gnueabihf/4.9/:/usr/lib/gcc/arm-linux-gnueabihf/
LIBRARY_PATH=/usr/lib/gcc/arm-linux-gnueabihf/4.9/:/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf/:/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../:/lib/arm-linux-gnueabihf/:/lib/:/usr/lib/arm-linux-gnueabihf/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-I' '.' '-Wall' '-Wextra' '-Wno-unused-parameter' '-D' '_FILE_OFFSET_BITS=64' '-fstack-protector' '-D' '_FORTIFY_SOURCE=2' '-O3' '-pie' '-fPIE' '-rdynamic' '-fno-omit-frame-pointer' '-D' 'SQLITE_OMIT_LOAD_EXTENSION' '-D' 'SQLITE_DEFAULT_MEMSTATUS=0' '-D' 'SQLITE_OMIT_DEPRECATED' '-D' 'SQLITE_OMIT_PROGRESS_CALLBACK' '-D' 'SQLITE_OMIT_MEMORYDB' '-o' 'pihole-FTL' '-pthread' '-march=armv6' '-mfloat-abi=hard' '-mfpu=vfp' '-mtls-dialect=gnu'
 /usr/lib/gcc/arm-linux-gnueabihf/4.9/collect2 -plugin /usr/lib/gcc/arm-linux-gnueabihf/4.9/liblto_plugin.so -plugin-opt=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper -plugin-opt=-fresolution=/tmp/cc9KRsqY.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lpthread -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/ --build-id --eh-frame-hdr -export-dynamic -dynamic-linker /lib/ld-linux-armhf.so.3 -X --hash-style=gnu -m armelf_linux_eabi -pie -o pihole-FTL /usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf/Scrt1.o /usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf/crti.o /usr/lib/gcc/arm-linux-gnueabihf/4.9/crtbeginS.o -L/usr/lib/gcc/arm-linux-gnueabihf/4.9 -L/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf -L/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../.. -L/lib/arm-linux-gnueabihf -L/usr/lib/arm-linux-gnueabihf -z relro -z now obj/main.o obj/structs.o obj/log.o obj/daemon.o obj/parser.o obj/signals.o obj/socket.o obj/request.o obj/grep.o obj/setupVars.o obj/args.o obj/flush.o obj/threads.o obj/gc.o obj/config.o obj/database.o obj/sqlite3.o -lgcc --as-needed -lgcc_s --no-as-needed -lpthread -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/arm-linux-gnueabihf/4.9/crtendS.o /usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf/crtn.o
+ ynh_exec_warn_less make install
+ eval make install
++ make install
install -m 0755 pihole-FTL /usr/bin
touch /var/log/pihole-FTL.log /var/run/pihole-FTL.pid /var/run/pihole-FTL.port
chown pihole:pihole /var/log/pihole-FTL.log /run/pihole-FTL.pid /run/pihole-FTL.port
chmod 0644 /var/log/pihole-FTL.log /var/run/pihole-FTL.pid /var/run/pihole-FTL.port
+ cp -a /etc/.pihole/advanced/pihole-FTL.service /etc/init.d/pihole-FTL
+ chmod +x /etc/init.d/pihole-FTL
+ ynh_exec_warn_less systemctl enable pihole-FTL
+ eval systemctl enable pihole-FTL
++ systemctl enable pihole-FTL
Synchronizing state for pihole-FTL.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d pihole-FTL defaults
insserv: warning: current start runlevel(s) (empty) of script `pihole-FTL' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `pihole-FTL' overrides LSB defaults (0 1 6).
Executing /usr/sbin/update-rc.d pihole-FTL enable
+ setupVars=/etc/pihole/setupVars.conf
++ route
++ grep default
++ awk '{print $8;}'
++ head -n1
+ main_iface=eth0
+ echo PIHOLE_INTERFACE=eth0
+ echo IPV4_ADDRESS=127.0.0.1
+ echo IPV6_ADDRESS=
+ echo PIHOLE_DNS_1=
+ echo PIHOLE_DNS_2=
+ '[' 1 -eq 1 ']'
+ query_logging=true
+ echo QUERY_LOGGING=true
+ echo INSTALL_WEB=true
+ ynh_store_file_checksum /etc/pihole/setupVars.conf
+ local checksum_setting_name=checksum__etc_pihole_setupVars.conf
++ sudo md5sum /etc/pihole/setupVars.conf
++ cut '-d ' -f1
+ ynh_app_setting_set pihole checksum__etc_pihole_setupVars.conf c59422d8a83249821ab5229ae38a6979
+ sudo yunohost app setting pihole checksum__etc_pihole_setupVars.conf --value=c59422d8a83249821ab5229ae38a6979 --quiet
+ systemctl stop dnsmasq
+ pihole_dnsmasq_config=/etc/dnsmasq.d/01-pihole.conf
+ cp /etc/.pihole/advanced/01-pihole.conf /etc/dnsmasq.d/01-pihole.conf
+ ynh_replace_string @DNS1@ '' /etc/dnsmasq.d/01-pihole.conf
+ local delimit=@
+ local match_string=@DNS1@
+ local replace_string=
+ local workfile=/etc/dnsmasq.d/01-pihole.conf
+ match_string=@DNS1@
+ replace_string=
+ match_string=@DNS1@
+ replace_string=
+ match_string='\@DNS1\@'
+ replace_string=
+ sudo sed --in-place 's@\@DNS1\@@@g' /etc/dnsmasq.d/01-pihole.conf
+ ynh_replace_string @DNS2@ '' /etc/dnsmasq.d/01-pihole.conf
+ local delimit=@
+ local match_string=@DNS2@
+ local replace_string=
+ local workfile=/etc/dnsmasq.d/01-pihole.conf
+ match_string=@DNS2@
+ replace_string=
+ match_string=@DNS2@
+ replace_string=
+ match_string='\@DNS2\@'
+ replace_string=
+ sudo sed --in-place 's@\@DNS2\@@@g' /etc/dnsmasq.d/01-pihole.conf
+ ynh_replace_string '^no-resolv' '#no-resolv' /etc/dnsmasq.d/01-pihole.conf
+ local delimit=@
+ local 'match_string=^no-resolv'
+ local replace_string=#no-resolv
+ local workfile=/etc/dnsmasq.d/01-pihole.conf
+ match_string='^no-resolv'
+ replace_string='#no-resolv'
+ match_string='^no-resolv'
+ replace_string='#no-resolv'
+ match_string='^no-resolv'
+ replace_string='#no-resolv'
+ sudo sed --in-place 's@^no-resolv@#no-resolv@g' /etc/dnsmasq.d/01-pihole.conf
+ ynh_replace_string @INT@ eth0 /etc/dnsmasq.d/01-pihole.conf
+ local delimit=@
+ local match_string=@INT@
+ local replace_string=eth0
+ local workfile=/etc/dnsmasq.d/01-pihole.conf
+ match_string=@INT@
+ replace_string=eth0
+ match_string=@INT@
+ replace_string=eth0
+ match_string='\@INT\@'
+ replace_string=eth0
+ sudo sed --in-place 's@\@INT\@@eth0@g' /etc/dnsmasq.d/01-pihole.conf
+ '[' true = true ']'
+ ynh_replace_string '^#log-queries' log-queries /etc/dnsmasq.d/01-pihole.conf
+ local delimit=@
+ local 'match_string=^#log-queries'
+ local replace_string=log-queries
+ local workfile=/etc/dnsmasq.d/01-pihole.conf
+ match_string='^#log-queries'
+ replace_string=log-queries
+ match_string='^#log-queries'
+ replace_string=log-queries
+ match_string='^#log-queries'
+ replace_string=log-queries
+ sudo sed --in-place 's@^#log-queries@log-queries@g' /etc/dnsmasq.d/01-pihole.conf
+ ynh_store_file_checksum /etc/dnsmasq.d/01-pihole.conf
+ local checksum_setting_name=checksum__etc_dnsmasq.d_01-pihole.conf
++ sudo md5sum /etc/dnsmasq.d/01-pihole.conf
++ cut '-d ' -f1
+ ynh_app_setting_set pihole checksum__etc_dnsmasq.d_01-pihole.conf 53e204384b63c19ff7c9158be86f5233
+ sudo yunohost app setting pihole checksum__etc_dnsmasq.d_01-pihole.conf --value=53e204384b63c19ff7c9158be86f5233 --quiet
+ ynh_replace_string '^cache-size=' '#pihole# cache-size=' /etc/dnsmasq.conf
+ local delimit=@
+ local 'match_string=^cache-size='
+ local 'replace_string=#pihole# cache-size='
+ local workfile=/etc/dnsmasq.conf
+ match_string='^cache-size='
+ replace_string='#pihole# cache-size='
+ match_string='^cache-size='
+ replace_string='#pihole# cache-size='
+ match_string='^cache-size='
+ replace_string='#pihole# cache-size='
+ sudo sed --in-place 's@^cache-size=@#pihole# cache-size=@g' /etc/dnsmasq.conf
++ ifconfig
++ tail -1
++ grep -A 1 eth0
++ awk '{print $2;}'
++ cut -d: -f2
+ localipv4=192.168.50.50
++ yunohost domain list
++ grep '\.'
++ sed 's/.*: \|.*- //'
+ read perdomain
+ ynh_replace_string '^127.0.0.1.*domaine.fr' '#Commented by pihole# &' /etc/hosts
+ local delimit=@
+ local 'match_string=^127.0.0.1.*domaine.fr'
+ local 'replace_string=#Commented by pihole# &'
+ local workfile=/etc/hosts
+ match_string='^127.0.0.1.*domaine.fr'
+ replace_string='#Commented by pihole# &'
+ match_string='^127.0.0.1.*domaine.fr'
+ replace_string='#Commented by pihole# \&'
+ match_string='^127.0.0.1.*domaine.fr'
+ replace_string='#Commented by pihole# \&'
+ sudo sed --in-place 's@^127.0.0.1.*domaine.fr@#Commented by pihole# \&@g' /etc/hosts
+ grep -q '^192.168.50.50.*domaine.fr' /etc/hosts
+ read perdomain
+ ynh_replace_string '^127.0.0.1.*youtube.domaine.fr' '#Commented by pihole# &' /etc/hosts
+ local delimit=@
+ local 'match_string=^127.0.0.1.*youtube.domaine.fr'
+ local 'replace_string=#Commented by pihole# &'
+ local workfile=/etc/hosts
+ match_string='^127.0.0.1.*youtube.domaine.fr'
+ replace_string='#Commented by pihole# &'
+ match_string='^127.0.0.1.*youtube.domaine.fr'
+ replace_string='#Commented by pihole# \&'
+ match_string='^127.0.0.1.*youtube.domaine.fr'
+ replace_string='#Commented by pihole# \&'
+ sudo sed --in-place 's@^127.0.0.1.*youtube.domaine.fr@#Commented by pihole# \&@g' /etc/hosts
+ grep -q '^192.168.50.50.*youtube.domaine.fr' /etc/hosts
+ echo '192.168.50.50   youtube.domaine.fr #Added by pihole#'
+ read perdomain
+ '[' 0 -eq 1 ']'
+ ynh_exec_fully_quiet yunohost firewall allow UDP 67 --no-upnp
+ eval yunohost firewall allow UDP 67 --no-upnp
++ yunohost firewall allow UDP 67 --no-upnp
+ systemctl start dnsmasq
Warning: Job for dnsmasq.service failed. See 'systemctl status dnsmasq.service' and 'journalctl -xn' for details.
+ ynh_exit_properly
+ exit_code=1
Warning: !!
+ '[' 1 -eq 0 ']'
Warning:   pihole's script has encountered an error. Its execution was cancelled.
+ trap '' EXIT
+ set +eu
Warning: !!
+ echo -e '!!\n  pihole'\''s script has encountered an error. Its execution was cancelled.\n!!'
Warning:
+ type -t ynh_clean_setup
+ ynh_die
+ echo ''
+ exit 1
Executing script '/var/cache/yunohost/from_file/pihole_ynh-master/scripts/remove'...
+ source _common.sh
++ n_install_dir=/opt/node_n
++ node_version_path=/opt/node_n/n/versions/node
++ export N_PREFIX=/opt/node_n
++ N_PREFIX=/opt/node_n
+ source /usr/share/yunohost/helpers
+++ run-parts --list /usr/share/yunohost/helpers.d
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
++ . /usr/share/yunohost/helpers.d/backend
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
++ . /usr/share/yunohost/helpers.d/filesystem
+++ CAN_BIND=1
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
++ . /usr/share/yunohost/helpers.d/ip
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
++ . /usr/share/yunohost/helpers.d/mysql
+++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/network ']'
++ . /usr/share/yunohost/helpers.d/network
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/package ']'
++ . /usr/share/yunohost/helpers.d/package
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/print ']'
++ . /usr/share/yunohost/helpers.d/print
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
++ . /usr/share/yunohost/helpers.d/setting
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/string ']'
++ . /usr/share/yunohost/helpers.d/string
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/system ']'
++ . /usr/share/yunohost/helpers.d/system
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/user ']'
++ . /usr/share/yunohost/helpers.d/user
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
++ . /usr/share/yunohost/helpers.d/utils
+ app=pihole
++ ynh_app_setting_get pihole domain
++ sudo yunohost app setting pihole domain --output-as plain --quiet
+ domain=domaine.fr
++ ynh_app_setting_get pihole port
++ sudo yunohost app setting pihole port --output-as plain --quiet
+ port=4711
+ yunohost service status
+ grep -q pihole-FTL
+ systemctl stop pihole-FTL
+ ynh_exec_warn_less systemctl disable pihole-FTL
+ eval systemctl disable pihole-FTL
++ systemctl disable pihole-FTL
Synchronizing state for pihole-FTL.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d pihole-FTL defaults
Executing /usr/sbin/update-rc.d pihole-FTL disable
insserv: warning: current start runlevel(s) (empty) of script `pihole-FTL' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `pihole-FTL' overrides LSB defaults (0 1 6).
+ rm -f /etc/init.d/pihole-FTL /usr/bin/pihole-FTL /var/run/pihole-FTL.pid /var/run/pihole-FTL.port
+ ynh_remove_app_dependencies
+ dep_app=pihole
+ ynh_package_autopurge pihole-ynh-deps
+ ynh_apt autoremove --purge pihole-ynh-deps
+ DEBIAN_FRONTEND=noninteractive
+ sudo apt-get -y -qq autoremove --purge pihole-ynh-deps
[master 36a8243] saving uncommitted changes in /etc prior to apt run
 6 files changed, 9 insertions(+), 9 deletions(-)
(Reading database ... 57385 files and directories currently installed.)
                                                                       Removing pihole-ynh-deps (3.1.4~ynh2) ...
                                                                                                                + ynh_secure_remove /etc/pihole
+ path_to_remove=/etc/pihole
+ forbidden_path='      /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /etc/pihole ]]
+ [[ /etc/pihole =~ ^/[[:alnum:]]+$ ]]
+ [[ e = \/ ]]
+ '[' -e /etc/pihole ']'
+ sudo rm -R /etc/pihole
+ ynh_secure_remove /opt/pihole
+ path_to_remove=/opt/pihole
+ forbidden_path='      /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /opt/pihole ]]
+ [[ /opt/pihole =~ ^/[[:alnum:]]+$ ]]
+ [[ e = \/ ]]
+ '[' -e /opt/pihole ']'
+ sudo rm -R /opt/pihole
+ ynh_secure_remove /var/www/pihole
+ path_to_remove=/var/www/pihole
+ forbidden_path='      /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /var/www/pihole ]]
+ [[ /var/www/pihole =~ ^/[[:alnum:]]+$ ]]
+ [[ e = \/ ]]
+ '[' -e /var/www/pihole ']'
+ sudo rm -R /var/www/pihole
+ ynh_secure_remove /etc/.pihole
+ path_to_remove=/etc/.pihole
+ forbidden_path='      /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /etc/\.pihole ]]
+ [[ /etc/.pihole =~ ^/[[:alnum:]]+$ ]]
+ [[ e = \/ ]]
+ '[' -e /etc/.pihole ']'
+ sudo rm -R /etc/.pihole
+ ynh_remove_nginx_config
+ ynh_secure_remove /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ path_to_remove=/etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ forbidden_path='      /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /etc/nginx/conf\.d/domaine\.fr\.d/pihole\.conf ]]
+ [[ /etc/nginx/conf.d/domaine.fr.d/pihole.conf =~ ^/[[:alnum:]]+$ ]]
+ [[ f = \/ ]]
+ '[' -e /etc/nginx/conf.d/domaine.fr.d/pihole.conf ']'
+ sudo rm -R /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ sudo systemctl reload nginx
+ ynh_remove_fpm_config
+ ynh_secure_remove /etc/php5/fpm/pool.d/pihole.conf
+ path_to_remove=/etc/php5/fpm/pool.d/pihole.conf
+ forbidden_path='      /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /etc/php5/fpm/pool\.d/pihole\.conf ]]
+ [[ /etc/php5/fpm/pool.d/pihole.conf =~ ^/[[:alnum:]]+$ ]]
+ [[ f = \/ ]]
+ '[' -e /etc/php5/fpm/pool.d/pihole.conf ']'
+ sudo rm -R /etc/php5/fpm/pool.d/pihole.conf
+ ynh_secure_remove /etc/php5/fpm/conf.d/20-pihole.ini
+ path_to_remove=/etc/php5/fpm/conf.d/20-pihole.ini
+ forbidden_path='      /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /etc/php5/fpm/conf\.d/20-pihole\.ini ]]
+ [[ /etc/php5/fpm/conf.d/20-pihole.ini =~ ^/[[:alnum:]]+$ ]]
+ [[ i = \/ ]]
+ '[' -e /etc/php5/fpm/conf.d/20-pihole.ini ']'
+ sudo rm -R /etc/php5/fpm/conf.d/20-pihole.ini
+ sudo systemctl reload php5-fpm
+ yunohost firewall list
+ grep -q '\- 4711$'
+ ynh_print_info 'Close port 4711'
Warning: [INFO] Close port 4711
+ ynh_print_log '[INFO] Close port 4711'
+ echo '[INFO] Close port 4711'
+ ynh_exec_quiet yunohost firewall disallow TCP 4711
+ eval yunohost firewall disallow TCP 4711
++ yunohost firewall disallow TCP 4711
+ yunohost firewall list
+ grep -q '\- 67$'
Warning: [INFO] Close port 67
+ ynh_print_info 'Close port 67'
+ ynh_print_log '[INFO] Close port 67'
+ echo '[INFO] Close port 67'
+ ynh_exec_quiet yunohost firewall disallow UDP 67
+ eval yunohost firewall disallow UDP 67
++ yunohost firewall disallow UDP 67
+ ynh_secure_remove /etc/cron.d/pihole
+ path_to_remove=/etc/cron.d/pihole
+ forbidden_path='      /var/www        /home/yunohost.app'
Warning: /etc/cron.d/pihole wasn't deleted because it doesn't exist.
+ [[    /var/www        /home/yunohost.app =~ /etc/cron\.d/pihole ]]
+ [[ /etc/cron.d/pihole =~ ^/[[:alnum:]]+$ ]]
+ [[ e = \/ ]]
+ '[' -e /etc/cron.d/pihole ']'
+ echo '/etc/cron.d/pihole wasn'\''t deleted because it doesn'\''t exist.'
+ ynh_secure_remove /var/log/pihole.log
+ path_to_remove=/var/log/pihole.log
+ forbidden_path='      /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /var/log/pihole\.log ]]
+ [[ /var/log/pihole.log =~ ^/[[:alnum:]]+$ ]]
+ [[ g = \/ ]]
+ '[' -e /var/log/pihole.log ']'
+ sudo rm -R /var/log/pihole.log
+ ynh_secure_remove /var/log/pihole-FTL.log
+ path_to_remove=/var/log/pihole-FTL.log
+ forbidden_path='      /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /var/log/pihole-FTL\.log ]]
+ [[ /var/log/pihole-FTL.log =~ ^/[[:alnum:]]+$ ]]
+ [[ g = \/ ]]
+ '[' -e /var/log/pihole-FTL.log ']'
+ sudo rm -R /var/log/pihole-FTL.log
+ ynh_secure_remove /usr/local/bin/pihole
+ path_to_remove=/usr/local/bin/pihole
+ forbidden_path='      /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /usr/local/bin/pihole ]]
+ [[ /usr/local/bin/pihole =~ ^/[[:alnum:]]+$ ]]
+ [[ e = \/ ]]
+ '[' -e /usr/local/bin/pihole ']'
+ sudo rm -R /usr/local/bin/pihole
+ ynh_secure_remove /etc/bash_completion.d/pihole
+ path_to_remove=/etc/bash_completion.d/pihole
+ forbidden_path='      /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /etc/bash_completion\.d/pihole ]]
+ [[ /etc/bash_completion.d/pihole =~ ^/[[:alnum:]]+$ ]]
+ [[ e = \/ ]]
+ '[' -e /etc/bash_completion.d/pihole ']'
+ sudo rm -R /etc/bash_completion.d/pihole
+ ynh_secure_remove /etc/sudoers.d/pihole
+ path_to_remove=/etc/sudoers.d/pihole
+ forbidden_path='      /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /etc/sudoers\.d/pihole ]]
+ [[ /etc/sudoers.d/pihole =~ ^/[[:alnum:]]+$ ]]
+ [[ e = \/ ]]
+ '[' -e /etc/sudoers.d/pihole ']'
+ sudo rm -R /etc/sudoers.d/pihole
+ systemctl stop dnsmasq
+ rm -f /etc/dnsmasq.d/01-pihole.conf
+ rm -f /etc/dnsmasq.d/02-pihole-dhcp.conf
+ rm -f /etc/dnsmasq.d/03-pihole-wildcard.conf
+ rm -f /etc/dnsmasq.d/04-pihole-static-dhcp.conf
+ ynh_replace_string '#pihole# ' '' /etc/dnsmasq.conf
+ local delimit=@
+ local 'match_string=#pihole# '
+ local replace_string=
+ local workfile=/etc/dnsmasq.conf
+ match_string='#pihole# '
+ replace_string=
+ match_string='#pihole# '
+ replace_string=
+ match_string='#pihole# '
+ replace_string=
+ sudo sed --in-place 's@#pihole# @@g' /etc/dnsmasq.conf
+ sed -i 's/#Commented by pihole# //g' /etc/hosts
+ sed -i '/#Added by pihole#/d' /etc/hosts
+ systemctl start dnsmasq
+ ynh_secure_remove /usr/share/yunohost/hooks/conf_regen/50-dnsmasq_pihole
+ path_to_remove=/usr/share/yunohost/hooks/conf_regen/50-dnsmasq_pihole
+ forbidden_path='      /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /usr/share/yunohost/hooks/conf_regen/50-dnsmasq_pihole ]]
+ [[ /usr/share/yunohost/hooks/conf_regen/50-dnsmasq_pihole =~ ^/[[:alnum:]]+$ ]]
+ [[ e = \/ ]]
+ '[' -e /usr/share/yunohost/hooks/conf_regen/50-dnsmasq_pihole ']'
+ echo '/usr/share/yunohost/hooks/conf_regen/50-dnsmasq_pihole wasn'\''t deleted because it doesn'\''t exist.'
+ ynh_system_user_delete pihole
+ ynh_system_user_exists pihole
+ getent passwd pihole
Warning: /usr/share/yunohost/hooks/conf_regen/50-dnsmasq_pihole wasn't deleted because it doesn't exist.
Warning: Remove the user pihole
+ echo 'Remove the user pihole'
+ sudo userdel pihole
Success! The SSOwat configuration has been generated
Error: Installation failed

qu’en pense tu stp

Ici, regarde le log de dnsmasq, tu devrais savoir pourquoi il a échoué.
D’ailleurs il faudrait un helper pour pondre un log du service dans ce genre de situation.

c’est du chinois pour moi la :

pi@raspberrypi:~ $ systemctl status dnsmasq.service
● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
   Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled)
  Drop-In: /run/systemd/generator/dnsmasq.service.d
           └─50-dnsmasq-$named.conf, 50-insserv.conf-$named.conf
   Active: active (running) since Sat 2018-01-13 18:36:33 CET; 16min ago
  Process: 11032 ExecStartPost=/etc/init.d/dnsmasq systemd-start-resolvconf (code=exited, status=0/SUCCESS)
  Process: 11023 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=0/SUCCESS)
  Process: 11021 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCCESS)
 Main PID: 11031 (dnsmasq)
   CGroup: /system.slice/dnsmasq.service
           └─11031 /usr/sbin/dnsmasq -x /run/dnsmasq/dnsmasq.pid -u dnsmasq -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service --trust-anchor=.,19036,8,2,49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5
pi@raspberrypi:~ $ journalctl -xn
No journal files were found.

un helper ???

Le helper c’est plutôt une info pour moi et le groupe Apps.

Regarde sudo journalctl -u dnsmasq ou éventuellement /var/log/dnsmasq.log si tu as.

pi@raspberrypi:~ $ journalctl -u dnsmasq
No journal files were found.
pi@raspberrypi:~ $ sudo tail -f /var/log/dnsmasq.log
Jan 13 18:36:33 dnsmasq[11031]: using nameserver 84.200.69.80#53
Jan 13 18:36:33 dnsmasq[11031]: using nameserver 89.233.43.71#53
Jan 13 18:36:33 dnsmasq[11031]: using nameserver 89.234.186.18#53
Jan 13 18:36:33 dnsmasq[11031]: using nameserver 141.255.128.101#53
Jan 13 18:36:33 dnsmasq[11031]: using nameserver 80.67.169.40#53
Jan 13 18:36:33 dnsmasq[11031]: using nameserver 80.67.169.12#53
Jan 13 18:36:33 dnsmasq[11031]: using nameserver 141.255.128.100#53
Jan 13 18:36:33 dnsmasq[11031]: using nameserver 213.73.91.35#53
Jan 13 18:36:33 dnsmasq[11031]: using nameserver 89.234.141.66#53
Jan 13 18:36:33 dnsmasq[11031]: read /etc/hosts - 9 addresses

non aucune information de type helper

Pas un tail, on a besoin de trouver le moment ou le service n’a pas démarré, ce qui est probablement plus tôt dans le journal.
Ou alors un tail -n 100

voici ce que j’ai trouvé :

Jan 13 19:42:29 dnsmasq[11031]: forwarded 254.50.168.192.in-addr.arpa to XX.XX.XX.XXX
Jan 13 19:42:29 dnsmasq[11031]: reply 192.168.50.254 is NXDOMAIN
Jan 13 19:42:32 dnsmasq[11031]: exiting on receipt of SIGTERM
Jan 13 19:43:49 dnsmasq[14124]: started, version 2.76 cachesize 256
Jan 13 19:43:49 dnsmasq[14124]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
Jan 13 19:43:49 dnsmasq[14124]: reading /etc/resolv.dnsmasq.conf

Là je vois juste l’arrêt de dnsmasq, à 19:42:32, puis le redémarrage à 19:43:49.
Mais après ça, il n’y a rien ?
Rien non plus dans syslog ?
Ce serait surprenant que le service échoue au démarrage sans rien loguer nul part.

Il n’y rien non plus dans ce log, c’est un peu surprenant que le service échoue au démarrage mais ne log rien.
Et dnsmasq tourne correctement après que Pi-Hole est échoué à s’installer ?

en local oui mais sur mes machine qui on en paramétré mon yunohst comme serveur DNS

pas de réponse de sa pars

Tu peux me remontrer le contenu de /etc/dnsmasq.conf et aussi si tu as des confs dans /etc/dnsmasq.d/

Il doit y avoir un conflit quelque part.

voici mes fichier :

pi@raspberrypi:~ $ ls /etc/dnsmasq.d/
domaine.fr  README  youtube.domaine.fr
pi@raspberrypi:~ $ cd /etc/dnsmasq.d/
pi@raspberrypi:/etc/dnsmasq.d $ ls
domaine.fr  README  youtube.domaine.fr
pi@raspberrypi:/etc/dnsmasq.d $ more domaine.fr
address=/domaine.fr/XX.XX.XX.XXX
txt-record=domaine.fr,"v=spf1 mx a -all"
mx-host=domaine.fr,domaine.fr,5
srv-host=_xmpp-client._tcp.domaine.fr,domaine.fr,5222,0,5
srv-host=_xmpp-server._tcp.domaine.fr,domaine.fr,5269,0,5
pi@raspberrypi:/etc/dnsmasq.d $ more youtube.domaine.fr
address=/youtube.domaine.fr/XX.XX.XX.XXX
txt-record=youtube.domaine.fr,"v=spf1 mx a -all"
mx-host=youtube.domaine.fr,youtube.domaine.fr,5
srv-host=_xmpp-client._tcp.youtube.domaine.fr,youtube.domaine.fr,5222,0,5
srv-host=_xmpp-server._tcp.youtube.domaine.fr,youtube.domaine.fr,5269,0,5
pi@raspberrypi:/etc/dnsmasq.d $ more /etc/dnsmasq.conf
domain-needed
expand-hosts

listen-address=127.0.0.1
resolv-file=/etc/resolv.dnsmasq.conf
cache-size=256


log-facility=/var/log/dnsmasq.log
log-queries

Ok, supprime ou commente log-facility et log-queries, ce sont ces lignes qui sont en conflit. Dnsmasq ne supporte pas 2 fois la même option dans 2 fichiers de config…

ça n’a pas marché,

bon je vais repartir sur une install propre
je stress un peux de tout reinstallé, mais ça va valloir le coup

le plus dur ça vas etre tvheadend :’(

Je suis parti sur une install viérge de yunohst et ça ne fonctionne pas :

Exécution du script « /var/cache/yunohost/from_file/pihole_ynh-master/scripts/remove »...

!!

pihole's script has encountered an error. Its execution was cancelled.

!!

_common.sh: line 569: mail: command not found

Cloning into 'FTL'...

2018-01-27 22:06:00 URL:https://codeload.github.com/pi-hole/AdminLTE/tar.gz/v3.1 [2242189] -> "admin_dashboard.tar.gz" [1]

2018-01-27 22:05:42 URL:https://codeload.github.com/pi-hole/pi-hole/tar.gz/v3.1.4 [82435] -> "app.tar.gz" [1]

dh_installdeb: Compatibility levels before 9 are deprecated (level 7 in use)

dh_installdocs: Compatibility levels before 9 are deprecated (level 7 in use)

dh_install: Compatibility levels before 9 are deprecated (level 7 in use)

++ cut '-d ' -f 2

++ grep '^Version: ' /tmp/pihole-ynh-deps.control

+ local pkgname=pihole-ynh-deps

++ cut '-d ' -f 2

++ grep '^Package: ' /tmp/pihole-ynh-deps.control

Il te manque le paquet mailutils.

Hello,

ça fonctionne enfin :slight_smile:

par contre je ne vois ou je peux configurer mes dns local ?

j’ai un youtube.domaine.fr --> ip

qui pointe sur une machine local, mais je paramétre ça ou sur pihole ?

a non mais ça fonctionne

je sais pas par qu’elle magie, mais ça marche