YunoHost-Apps / wordpress_ynh

WordPress package for YunoHost
https://wordpress.org/
GNU General Public License v3.0
26 stars 30 forks source link

Installation fails #44

Closed s0r00t closed 6 years ago

s0r00t commented 6 years ago
Warning: 2018-04-26 22:17:47 URL:https://wordpress.org/wordpress-4.9.1.tar.gz [9638827/9638827] -> "app.tar.gz" [1]
Warning: Please wait during Wordpress installation
Warning: 2018-04-26 22:17:53 URL:https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar [4577919/4577919] -> "/var/www/wordpress__3/wp-cli.phar" [1]
Warning: Content-Type: text/plain; charset=UTF-8: No such file or directory
Warning: !!
Warning:   wordpress__3's script has encountered an error. Its execution was cancelled.
Warning: !!
Warning: 
Warning: Removing database wordpress__3
Warning: Remove the user wordpress__3
Success! The SSOwat configuration has been generated
Error: Installation failed
maniackcrudelis commented 6 years ago

Well, that's a strange issue about an email supposed to be send at the end of the install process.

Have a look here, that's the same issue, without solution so far though... Can you try the same things than isAAAC please ?

s0r00t commented 6 years ago

Installing mailutils & running from a locally cloned repo did not help ([MAIL] is self censor I made) :

---
Automatic diagnosis data from YunoHost

host: Debian 8.10
kernel: 3.16.0-5-amd64
packages:
  yunohost:
    repo: stable
    version: 2.7.10
  yunohost-admin:
    repo: stable
    version: 2.7.7
  moulinette:
    repo: stable
    version: 2.7.7
  ssowat:
    repo: stable
    version: 2.7.7
backports:
  - certbot
  - php-net-ldap3
  - python-acme
  - python-certbot
  - python-cffi-backend
  - python-configargparse
  - python-cryptography
  - python-funcsigs
  - python-idna
  - python-ipaddress
  - python-mock
  - python-openssl
  - python-pbr
  - python-pkg-resources
  - python-psutil
  - python-pyasn1
  - python-rfc3339
  - python-setuptools
  - python-six
system:
  disks:
    vda1: Mounted on /, 29.4GiB (14.3GiB free)
Warning: Content-Type: text/plain; charset=UTF-8: No such file or directory
  memory:
    ram: 1000.3MiB (500.6MiB free)
Warning: !!
Warning:   wordpress__3's script has encountered an error. Its execution was cancelled.
Warning: !!
Warning: 
    swap: 4.0GiB (4.0GiB free)
nginx:
  - nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
  - nginx: configuration file /etc/nginx/nginx.conf test is successful'
+ mail -a 'Content-Type: text/plain; charset=UTF-8' -s '☁️🆈🅽🅷☁️: `wordpress__3` was just installed!' '  [MAIL]'
+ echo 'This is an automated message from your beloved YunoHost server.

Specific information for the application wordpress__3.

If you facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/wordpress_ynh

---
maniackcrudelis commented 6 years ago

Well, could you try a man mail And look what say the options -a and, if you have -A

Well... Maybe I have found out something... Could you give the results of these commands:

apt-cache policy bsd-mailx
apt-cache policy mailutils

And also

ls -alh /usr/bin/mail
ls -alh /etc/alternatives/mail

Seems that we have a little confusion between /usr/bin/mail.mailutils and /usr/bin/bsd-mailx which both use /usr/bin/mail. Depending on which one have been here first...

s0r00t commented 6 years ago

man mail :

-A name
    Executes an account command (see below) for name after the startup files have been read.

-a file
    Attach the given file to the message.

apt-cache policy bsd-mailx :

bsd-mailx:
  Installed: 8.1.2-0.20141216cvs-2
  Candidate: 8.1.2-0.20141216cvs-2
  Version table:
 *** 8.1.2-0.20141216cvs-2 0
        500 http://mirrors.digitalocean.com/debian/ jessie/main amd64 Packages
        100 /var/lib/dpkg/status

apt-cache policy mailutils :

mailutils:
  Installed: 1:2.99.98-2
  Candidate: 1:2.99.98-2
  Version table:
 *** 1:2.99.98-2 0
        500 http://mirrors.digitalocean.com/debian/ jessie/main amd64 Packages
        100 /var/lib/dpkg/status

ls -alh /usr/bin/mail :

lrwxrwxrwx 1 root root 22 May  3  2013 /usr/bin/mail -> /etc/alternatives/mail

ls -alh /etc/alternatives/mail :

lrwxrwxrwx 1 root root 23 May  3  2013 /etc/alternatives/mail -> /usr/bin/heirloom-mailx
maniackcrudelis commented 6 years ago

/usr/bin/heirloom-mailx ... What the hell this fucking mail command doing here !!!?

Well..., I'm going to fix the command by using a real binary instead of /usr/bin/mail, which seems everyone is using with this own mail command...

In your case, you can either patch your install script or remove the package heirloom-mailx

maniackcrudelis commented 6 years ago

You can have a look here https://github.com/YunoHost-Apps/wordpress_ynh/pull/45/files if you want to patch the script before installing wordpress.

Oddyza commented 6 years ago

Hi I've got the same symptoms : install, send "success mail", uninstall but I found this

Automatic diagnosis data from YunoHost

host: Debian 8.10 kernel: 3.16.0-6-amd64 packages: yunohost: repo: stable version: 2.7.10 yunohost-admin: repo: stable version: 2.7.7 moulinette: repo: stable version: 2.7.7 ssowat: Warning: _common.sh: line 222: echo: write error: Broken pipe repo: stable version: 2.7.7 Warning: !! Warning: wordpress's script has encountered an error. Its execution was cancelled. Warning: !!

[EDIT] After looking at https://forum.yunohost.org/t/bug-a-la-fin-des-installations-dapps-ssowat/4676 and installing mailutils, installation worked but I've no idea why (I'm not on Rasberry like on the above post)

isAAAc commented 6 years ago

same trouble here, on a VPS, mailutils installed

2018-05-11 12:20:22,424 INFO     yunohost.hook <lambda> - [25401.1] nginx:
2018-05-11 12:20:22,424 INFO     yunohost.hook <lambda> - [25401.1]   - nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
2018-05-11 12:20:22,424 INFO     yunohost.hook <lambda> - [25401.1]   - nginx: configuration file /etc/nginx/nginx.conf test is successful'
2018-05-11 12:20:22,429 INFO     yunohost.hook <lambda> - [25401.1] + mail -a 'Content-Type: text/plain; charset=UTF-8' -s '☁️🆈🅽🅷☁️: `wordpress__3` was just installed!' '  isaaac@krashboyz.org'
2018-05-11 12:20:22,433 INFO     yunohost.hook <lambda> - [25401.1] + echo 'This is an automated message from your beloved YunoHost server.
2018-05-11 12:20:22,433 INFO     yunohost.hook <lambda> - [25401.1] 
2018-05-11 12:20:22,433 INFO     yunohost.hook <lambda> - [25401.1] Specific information for the application wordpress__3.
2018-05-11 12:20:22,433 INFO     yunohost.hook <lambda> - [25401.1] 
2018-05-11 12:20:22,433 INFO     yunohost.hook <lambda> - [25401.1] If you facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/wordpress_ynh
2018-05-11 12:20:22,433 INFO     yunohost.hook <lambda> - [25401.1] 
2018-05-11 12:20:22,434 INFO     yunohost.hook <lambda> - [25401.1] ---
2018-05-11 12:20:22,434 INFO     yunohost.hook <lambda> - [25401.1] Automatic diagnosis data from YunoHost
2018-05-11 12:20:22,434 INFO     yunohost.hook <lambda> - [25401.1] 
2018-05-11 12:20:22,434 INFO     yunohost.hook <lambda> - [25401.1] host: Debian 8.10
2018-05-11 12:20:22,434 INFO     yunohost.hook <lambda> - [25401.1] kernel: 3.16.0-6-amd64
2018-05-11 12:20:22,434 INFO     yunohost.hook <lambda> - [25401.1] packages:
2018-05-11 12:20:22,434 INFO     yunohost.hook <lambda> - [25401.1]   yunohost:
2018-05-11 12:20:22,434 INFO     yunohost.hook <lambda> - [25401.1]     repo: stable
2018-05-11 12:20:22,434 INFO     yunohost.hook <lambda> - [25401.1]     version: 2.7.12
2018-05-11 12:20:22,434 INFO     yunohost.hook <lambda> - [25401.1]   yunohost-admin:
2018-05-11 12:20:22,434 INFO     yunohost.hook <lambda> - [25401.1]     repo: stable
2018-05-11 12:20:22,434 INFO     yunohost.hook <lambda> - [25401.1]     version: 2.7.12
2018-05-11 12:20:22,434 INFO     yunohost.hook <lambda> - [25401.1]   moulinette:
2018-05-11 12:20:22,435 INFO     yunohost.hook <lambda> - [25401.1]     repo: stable
2018-05-11 12:20:22,435 INFO     yunohost.hook <lambda> - [25401.1]     version: 2.7.12
2018-05-11 12:20:22,435 INFO     yunohost.hook <lambda> - [25401.1]   ssowat:
2018-05-11 12:20:22,435 INFO     yunohost.hook <lambda> - [25401.1]     repo: stable
2018-05-11 12:20:22,435 INFO     yunohost.hook <lambda> - [25401.1]     version: 2.7.12
2018-05-11 12:20:22,435 INFO     yunohost.hook <lambda> - [25401.1] backports:
2018-05-11 12:20:22,435 INFO     yunohost.hook <lambda> - [25401.1]   - certbot
2018-05-11 12:20:22,435 INFO     yunohost.hook <lambda> - [25401.1]   - php-net-ldap3
2018-05-11 12:20:22,435 INFO     yunohost.hook <lambda> - [25401.1]   - python-acme
2018-05-11 12:20:22,435 INFO     yunohost.hook <lambda> - [25401.1]   - python-certbot
2018-05-11 12:20:22,435 INFO     yunohost.hook <lambda> - [25401.1]   - python-cffi
2018-05-11 12:20:22,438 INFO     yunohost.hook <lambda> - [25401.1]   - python-cffi-backend
2018-05-11 12:20:22,438 INFO     yunohost.hook <lambda> - [25401.1]   - python-configargparse
2018-05-11 12:20:22,438 INFO     yunohost.hook <lambda> - [25401.1]   - python-cryptography
2018-05-11 12:20:22,438 INFO     yunohost.hook <lambda> - [25401.1]   - python-dialog
2018-05-11 12:20:22,438 INFO     yunohost.hook <lambda> - [25401.1]   - python-idna
2018-05-11 12:20:22,439 INFO     yunohost.hook <lambda> - [25401.1]   - python-ipaddress
2018-05-11 12:20:22,439 INFO     yunohost.hook <lambda> - [25401.1]   - python-openssl
2018-05-11 12:20:22,439 INFO     yunohost.hook <lambda> - [25401.1]   - python-pkg-resources
2018-05-11 12:20:22,439 INFO     yunohost.hook <lambda> - [25401.1]   - python-psutil
2018-05-11 12:20:22,439 INFO     yunohost.hook <lambda> - [25401.1]   - python-pyasn1
2018-05-11 12:20:22,440 INFO     yunohost.hook <lambda> - [25401.1]   - python-rfc3339
2018-05-11 12:20:22,440 INFO     yunohost.hook <lambda> - [25401.1]   - python-setuptools
2018-05-11 12:20:22,440 INFO     yunohost.hook <lambda> - [25401.1]   - sogo-common
2018-05-11 12:20:22,440 INFO     yunohost.hook <lambda> - [25401.1] system:
2018-05-11 12:20:22,440 INFO     yunohost.hook <lambda> - [25401.1]   disks:
2018-05-11 12:20:22,440 INFO     yunohost.hook <lambda> - [25401.1]     xvda1: Mounted on /, 123.0GiB (59.9GiB free)
2018-05-11 12:20:22,441 INFO     yunohost.hook <lambda> - [25401.1]   memory:
2018-05-11 12:20:22,441 INFO     yunohost.hook <lambda> - [25401.1]     ram: 2.0GiB (1022.2MiB free)
2018-05-11 12:20:22,441 INFO     yunohost.hook <lambda> - [25401.1]     swap: 724.0MiB (720.6MiB free)
2018-05-11 12:20:22,441 INFO     yunohost.hook <lambda> - [25401.1] nginx:
2018-05-11 12:20:22,441 INFO     yunohost.hook <lambda> - [25401.1]   - nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
2018-05-11 12:20:22,442 INFO     yunohost.hook <lambda> - [25401.1]   - nginx: configuration file /etc/nginx/nginx.conf test is successful'
2018-05-11 12:20:22,454 WARNING  yunohost.hook <lambda> - [25401.1] Content-Type: text/plain; charset=UTF-8: Aucun fichier ou dossier de ce type
2018-05-11 12:20:22,458 INFO     yunohost.hook <lambda> - [25401.1] + ynh_exit_properly
2018-05-11 12:20:22,458 INFO     yunohost.hook <lambda> - [25401.1] + local exit_code=1
2018-05-11 12:20:22,458 INFO     yunohost.hook <lambda> - [25401.1] + '[' 1 -eq 0 ']'
2018-05-11 12:20:22,458 INFO     yunohost.hook <lambda> - [25401.1] + trap '' EXIT
2018-05-11 12:20:22,458 INFO     yunohost.hook <lambda> - [25401.1] + set +eu
2018-05-11 12:20:22,458 INFO     yunohost.hook <lambda> - [25401.1] + echo -e '!!\n  wordpress__3'\''s script has encountered an error. Its execution was cancelled.\n!!'
2018-05-11 12:20:22,459 INFO     yunohost.hook <lambda> - [25401.1] + type -t ynh_clean_setup
2018-05-11 12:20:22,459 INFO     yunohost.hook <lambda> - [25401.1] + ynh_die
2018-05-11 12:20:22,459 INFO     yunohost.hook <lambda> - [25401.1] + echo ''
2018-05-11 12:20:22,459 INFO     yunohost.hook <lambda> - [25401.1] + exit 1
2018-05-11 12:20:22,459 WARNING  yunohost.hook <lambda> - [25401.1] !!
2018-05-11 12:20:22,459 WARNING  yunohost.hook <lambda> - [25401.1]   wordpress__3's script has encountered an error. Its execution was cancelled.
2018-05-11 12:20:22,459 WARNING  yunohost.hook <lambda> - [25401.1] !!
2018-05-11 12:20:22,459 WARNING  yunohost.hook <lambda> - [25401.1] 
2018-05-11 12:20:22,565 INFO     yunohost.hook hook_exec - [25401.1] Exécution du script « /var/cache/yunohost/from_file/wordpress_ynh-e697540452ef428ffc60de4bab7f0d6df41e9b44/scripts/remove »...

apt-cache policy bsd-mailx

bsd-mailx:
  Installé : (aucun)
  Candidat : 8.1.2-0.20141216cvs-2
 Table de version :
     8.1.2-0.20141216cvs-2 0
        500 http://mirrors.gandi.net/debian/ jessie/main amd64 Packages
     8.1.2-0.20111106cvs-1+deb7u1 0
        500 http://ftp.us.debian.org/debian/ wheezy/main amd64 Packages

apt-cache policy mailutils

mailutils:
  Installé : 1:2.99.98-2
  Candidat : 1:2.99.98-2
 Table de version :
 *** 1:2.99.98-2 0
        500 http://mirrors.gandi.net/debian/ jessie/main amd64 Packages
        100 /var/lib/dpkg/status
     1:2.99.97-3 0
        500 http://ftp.us.debian.org/debian/ wheezy/main amd64 Packages

should i install bsd-mailx ? but i don't understand why the trouble could come from mail stuff, the install mail confirmation is sended without trouble before the "auto" uninstallation

maniackcrudelis commented 6 years ago

That's because you have another mail software installed. And the mail command is a fucking symbolic link...

So, either you can have a look at who's behind /etc/alternatives/mail and remove the package. Or you can try the current testing version of this app which fix this issue. https://forum.yunohost.org/t/official-app-wordpress/3961/5

isAAAc commented 6 years ago

yes, no trouble with the current testing version of this app ;)

thx a lot