Dietpi: Nextcloud certificate end problem

Created on 26 May 2018  路  5Comments  路  Source: MichaIng/DietPi

Creating a bug report/issue:

Required Information:

  • DietPi Version | ```cat /DietPi/dietpi/.version 6.8
  • SBC Device (EG: RPi 3) RPi 3
  • Power supply used EG: 5v 1A RAVpower
  • SD card used Sandisk ultra 32
  • Distro Jessie

Additional Information (if applicable):

  • Software title?certificate nextcloud
  • Can this issue be replicated on a fresh installation of DietPi :non

Expected behaviour:

nextcloud certificate end problem

Actual behaviour:

non

Steps to reproduce:

non

Did you submit a dietpi-bugreport? non

non

Extra details:

2018-05-26_073215

Not a DietPi issue Question

Most helpful comment

@ludji49
Ah I remember we changed your webserver root last time to have Nextcloud available directly at domain, instead of at domain/nextcloud. Yes as mentioned already that time this causes some incompatibility with DietPi.

But this one is easy to fix. DietPi-LetsEncrypt tries to use /var/www as webroot where yours is at /var/www/nextcloud. Let's try to call certbot directly with this adjusted. On next certificate renewal, this setting is saved:
certbot renew -a webroot -w /var/www/nextcloud

All 5 comments

@ludji49
You have a letsencrypt certificate I assume and as far as I remember from your last issue? 3 months duration fits to this.

Seems like the automated renewal is not active.

Please try to run dietpi-letsencrypt 1.

here is the result

2018-05-27_204510

@ludji49
Ah I remember we changed your webserver root last time to have Nextcloud available directly at domain, instead of at domain/nextcloud. Yes as mentioned already that time this causes some incompatibility with DietPi.

But this one is easy to fix. DietPi-LetsEncrypt tries to use /var/www as webroot where yours is at /var/www/nextcloud. Let's try to call certbot directly with this adjusted. On next certificate renewal, this setting is saved:
certbot renew -a webroot -w /var/www/nextcloud

here is the result
It must be good.

2018-05-28_062449
2018-05-28_063052

@Ludji49
Jep looking good. As mentioned, end of Juli the certbot cron job will perform the certificate renewal automatically with the new settings, so nothing more to do about this.
I will mark as closed.

Was this page helpful?
0 / 5 - 0 ratings