Nextcloud installation failed

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
didi
Posts: 29
Joined: Thu Dec 08, 2016 11:02 pm

Nextcloud installation failed

Post by didi »

Hi all,
I installed dietpi on a minipc using the UEFI x86_64 image and everything went well. When I try to install Nextcloud, however, it systematically goes into error and crashes, as shown in the screenshot.
photo6032608702462275171.jpg
I tried several times to redo a clean installation, installing only Nextcloud as the first software, and the problem reoccurs the same.

Even if after the error I try to restart and try again, the problem persists.
photo6032608702462275171.jpg
How can I fix it? Thank you.
Attachments
photo6032608702462275174.jpg
photo6032608702462275174.jpg
photo6032608702462275174.jpg
didi
Posts: 29
Joined: Thu Dec 08, 2016 11:02 pm

Re: Nextcloud installation failed

Post by didi »

Sorry, I do not understand why it makes me mess with attachments :(
User avatar
MichaIng
Site Admin
Posts: 2261
Joined: Sat Nov 18, 2017 6:21 pm

Re: Nextcloud installation failed

Post by MichaIng »

Jep known issue, resolved with v6.18. To resolve now, please do:

Code: Select all

sed -i "\|cp '/var/www/nextcloud/config/config.sample.php'|d" /DietPi/dietpi/dietpi-software
rm /var/www/nextcloud/config/config.php
rm /var/www/nextcloud/occ
dietpi-software install 114
About attachments:
Known issue with phpBB v3.2.2, resolved with phpBB 3.2.3, which we will install soon on server, I think after next DietPi release ;).
didi
Posts: 29
Joined: Thu Dec 08, 2016 11:02 pm

Re: Nextcloud installation failed

Post by didi »

Thanks for your precious help!
With the last DietPi, Nextcloud have successfully installed.
Unfortunately there is a new problem: trying dietpi-letsencrypt, after configuration I start but "The requested apache plugin does not appear to be installed" and everything ends immediately.

Code: Select all

[  OK  ] DietPi-LetsEncrypt | Apache2 webserver detected
[  OK  ] DietPi-LetsEncrypt | Desired setting in /etc/apache2/sites-available/000-default.conf was already set: ServerName xxxxxxx.org                                                                 
[  OK  ] DietPi-LetsEncrypt | systemctl restart apache2
Saving debug log to /var/log/letsencrypt/letsencrypt.log
The requested apache plugin does not appear to be installed
[FAILED] CertBot failed with error code (1), please check it's terminal output.
Aborting...
Can I do anything to fix it?
User avatar
MichaIng
Site Admin
Posts: 2261
Joined: Sat Nov 18, 2017 6:21 pm

Re: Nextcloud installation failed

Post by MichaIng »

Thanks for the report. Can you verify the mod-php module is installed:

Code: Select all

dpkg -l | grep 'libapache2-mod-php'
Will test it here myself.

EDIT:
Verified, current certbot does not detect the Apache mod-php module, even that it is installed and working well otherwise.
Reboot: Does not solve.

We need to do some research about this. Also I am not 100% if the mod-php module is meant or the certbot internal Apache authentication and config/install module. Perhaps they divided the packages or something. Need to work now but will investigate later.

Forwarded issue to GitHub: https://github.com/Fourdee/DietPi/issues/2295
User avatar
MichaIng
Site Admin
Posts: 2261
Joined: Sat Nov 18, 2017 6:21 pm

Re: Nextcloud installation failed

Post by MichaIng »

Ah wait, I think during my test, I installed certbot first, apache afterwards. Then the python-certbot-apache package is not installed.

Was this the the case on your install order as well?

Could you try:
apt-get -y install python-certbot-apache

And then rerun dietpi-letsencrypt.
didi
Posts: 29
Joined: Thu Dec 08, 2016 11:02 pm

Re: Nextcloud installation failed

Post by didi »

MichaIng wrote: Tue Nov 27, 2018 5:28 pm Ah wait, I think during my test, I installed certbot first, apache afterwards. Then the python-certbot-apache package is not installed. Was this the the case on your install order as well?
I installed certbot and apache at the same time from dietpi-software during the first start (at the first start when the automatic installation window is proposed).
MichaIng wrote:Could you try:
apt-get -y install python-certbot-apache
And then rerun dietpi-letsencrypt.
It works!!! I think it will be necessary to correct it in the next build :P
This development team is truly exceptional!
Post Reply