Friendica install fails

My YunoHost server

Hardware: VPS
YunoHost version: 3.6.5.3
I have access to my server : Through SSH, direct access via keyboard
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

Trying to install Friendica and it fails. The message seems to indicate the installer package is bad?

= /var/cache/yunohost/from_file/friendica_ynh-3396188976f75170f2217fcc0e6c9b5f61f7b9e9/scripts/../conf/app.src
2020-02-07 06:57:29,939: DEBUG - + local src_sumprg=sha256sum
2020-02-07 06:57:29,940: DEBUG - ++ cut -d= -f2-
2020-02-07 06:57:29,940: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/friendica_ynh-3396188976f75170f2217fcc0e6c9b5f61f7b9e9/scripts/../conf/app.src
2020-02-07 06:57:29,940: DEBUG - + local src_format=tar.gz
2020-02-07 06:57:29,940: DEBUG - ++ cut -d= -f2-
2020-02-07 06:57:29,940: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/friendica_ynh-3396188976f75170f2217fcc0e6c9b5f61f7b9e9/scripts/../conf/app.src
2020-02-07 06:57:29,940: DEBUG - + local src_extract=
2020-02-07 06:57:29,940: DEBUG - ++ cut -d= -f2-
2020-02-07 06:57:29,941: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/friendica_ynh-3396188976f75170f2217fcc0e6c9b5f61f7b9e9/scripts/../conf/app.src
2020-02-07 06:57:29,941: DEBUG - + local src_in_subdir=true
2020-02-07 06:57:29,941: DEBUG - ++ cut -d= -f2-
2020-02-07 06:57:29,941: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/friendica_ynh-3396188976f75170f2217fcc0e6c9b5f61f7b9e9/scripts/../conf/app.src
2020-02-07 06:57:29,941: DEBUG - + local src_filename=
2020-02-07 06:57:29,941: DEBUG - + src_sumprg=sha256sum
2020-02-07 06:57:29,942: DEBUG - + src_in_subdir=true
2020-02-07 06:57:29,942: DEBUG - + src_format=tar.gz
2020-02-07 06:57:29,942: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2020-02-07 06:57:29,942: DEBUG - ++ echo tar.gz
2020-02-07 06:57:29,942: DEBUG - + src_format=tar.gz
2020-02-07 06:57:29,942: DEBUG - + src_extract=true
2020-02-07 06:57:29,942: DEBUG - + '[' '' = '' ']'
2020-02-07 06:57:29,942: DEBUG - + src_filename=app.tar.gz
2020-02-07 06:57:29,942: DEBUG - + local local_src=/opt/yunohost-apps-src/friendica/app.tar.gz
2020-02-07 06:57:29,943: DEBUG - + test -e /opt/yunohost-apps-src/friendica/app.tar.gz
2020-02-07 06:57:29,943: DEBUG - ++ wget -nv -O app.tar.gz https://friendi.ca/wp-content/uploads/2019/02/friendica-full-2019.01.tar.gz
2020-02-07 06:57:30,444: DEBUG - + local 'out=wget: unable to resolve host address '\''friendi.ca'\'''
2020-02-07 06:57:30,445: WARNING - Corrupt source
2020-02-07 06:57:30,446: DEBUG - + sha256sum -c --status
2020-02-07 06:57:30,446: DEBUG - + echo '895025c0adf042b6139ed3e7c4674a49d3a0237ce3490a367be681e6310c92a3 app.tar.gz'
2020-02-07 06:57:30,446: DEBUG - + ynh_die '--message=Corrupt source'
2020-02-07 06:57:30,446: DEBUG - + local legacy_args=mc
2020-02-07 06:57:30,446: DEBUG - + args_array=([m]=message= [c]=ret_code=)
2020-02-07 06:57:30,446: DEBUG - + declare -Ar args_array
2020-02-07 06:57:30,447: DEBUG - + local message
2020-02-07 06:57:30,447: DEBUG - + local ret_code
2020-02-07 06:57:30,447: DEBUG - + ynh_handle_getopts_args '--message=Corrupt source'
2020-02-07 06:57:30,447: DEBUG - + set +x
2020-02-07 06:57:30,447: DEBUG - + echo 'Corrupt source'
2020-02-07 06:57:30,447: DEBUG - + exit 1
2020-02-07 06:57:30,447: DEBUG - + ynh_exit_properly
2020-02-07 06:57:30,448: DEBUG - + local exit_code=1
2020-02-07 06:57:30,448: DEBUG - + '[' 1 -eq 0 ']'
2020-02-07 06:57:30,448: DEBUG - + trap '' EXIT
2020-02-07 06:57:30,448: DEBUG - + set +eu
2020-02-07 06:57:30,449: DEBUG - + sleep 0.5
2020-02-07 06:57:30,951: DEBUG - + ynh_print_err '--message=!!\n  friendica'\''s script has encountered an error. Its execution was cancelled.\n!!'
2020-02-07 06:57:30,951: WARNING - /usr/share/yunohost/helpers.d/logging: line 90: args_array: readonly variable
2020-02-07 06:57:30,952: DEBUG - + local legacy_args=m
2020-02-07 06:57:30,952: DEBUG - + args_array=([m]=message=)
2020-02-07 06:57:30,444: DEBUG - + local 'out=wget: unable to resolve host address '\''friendi.ca'\'''

Your server was unable to solve friendi.ca . You need your server to be able to solve domain name.

Check

ping wikipedia.fr
ping6 wikipedia.fr

To fix it, watch status of dnsmasq and try to restart it:

systemctl status dnsmasq
systemctl restart dnsmasq

Next try to rerun the installation

admin@yuno:~$ sudo systemctl restart dnsmasq
admin@yuno:~$ ping6 wikipedia.fr
ping: wikipedia.fr: Name or service not known
admin@yuno:~$ ping wikipedia.fr
PING wikipedia.fr (78.109.84.114) 56(84) bytes of data.
64 bytes from wikimedia2.typhon.net (78.109.84.114): icmp_seq=1 ttl=55 time=144 ms
^C
wikipedia.fr ping statistics —
2 packets transmitted, 1 received, 50% packet loss, time 1000ms
rtt min/avg/max/mdev = 144.719/144.719/144.719/0.000 ms

So it seems that IPv6 is failing to resolve for wikipedia, but it’s fine for Friendica:

admin@yuno:~$ ping friendi.ca
PING friendi.ca(virtualhost.in-berlin.de (2001:bf0:c000:a::2:132)) 56 data bytes
64 bytes from virtualhost.in-berlin.de (2001:bf0:c000:a::2:132): icmp_seq=1 ttl=55 time=147 ms
64 bytes from virtualhost.in-berlin.de (2001:bf0:c000:a::2:132): icmp_seq=2 ttl=55 time=151 ms

admin@yuno:~$ ping6 friendi.ca
PING friendi.ca(virtualhost.in-berlin.de (2001:bf0:c000:a::2:132)) 56 data bytes
64 bytes from virtualhost.in-berlin.de (2001:bf0:c000:a::2:132): icmp_seq=1 ttl=55 time=152 ms
64 bytes from virtualhost.in-berlin.de (2001:bf0:c000:a::2:132): icmp_seq=2 ttl=55 time=150 ms

The strange thing is that after restarting dnsmasq (even though Friendica was pinging fine before restarting) it was able to install successfully afterward. It seems like dnsmasq has a number of issues with consistency in connections. Does this happen for others as well, or just an issue with my VPS?

I made a small mistake you should do it with wikipedia.org

It could be a small connection cut on your VPS or on friendi.ca. The setup procedure don’t retry to download if the first attempt failed

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