-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nextberry letsencrypt certificate installation didnt work #100
Comments
Thank you this seems like a scripting error on amd repo vs arm. Fixing this... |
Could you run this: sudo apt-get install python-certbot-apache -t jessie-backports Then: sudo bash /var/scripts/ |
Thank you, but unfortunatelly not sucessfull: ncadmin@nextberry:~$ sudo apt-get install python-certbot-apache -t jessie-backports I also ran the activate.ssl script, but as extected with the same errors: |
We'll get this working, try this: sudo apt-get install python-certbot-apache -y And if.its succesfull then run activate-ssl again If that doesnt work, we'll git clone the certbot repo |
The PPA is the official one from Ubuntu, so git clone is actually worse as you wont get any updates then. Just sayin. |
There is no repo for rasbian, will have to go that way if we want letsencrypt. Thanks @enoch85 |
OK 👍 |
@FMstar please run:
|
...that works quite nice. On first run ive got an error message that cerbot- directory is not empty, but after renaming it the letsencrypt script semms running well. Ill try an installation from the scratch this evening... |
the last process that i could see is the letsencrypt- process with 99,9 percent cpu consumption. uups..the headspreader is quite hot on my PI3. |
Afterwards please run: |
@FMstar Don't enable 000-default. It will fail as there already is a redirect in the host created during the LE script. Eveything is done automatically, so you shouldn't have to fiddle with anything by yourself. ;) |
and @ezraholm50
Told you so ;) |
Notice it just now. I disable 000-default by default, might get activated again somewhere.. thanks will figure it out. |
@ezraholm50 Installation from the scretch runs without any errors, my nextcloud is now online. This project is absolutely recommendable,...and will be rcomendet. |
@FMstar Thanks for confirming! @ezraholm50 Great job! :D |
Glad everything worked out. Still need to iron out some flaws. Keeping this open untill everything is solved. |
@ezraholm50 Which are the flaws? |
I think its still not solved @FMstar ? Also I want to run the script myself and test it before closing this. |
If it doesnt work please post rhe output of: |
@ezraholm50 We should not push to use unsafe certificates. As LE works (proven) that's what should be recomended and used. But sure, would be nice if the self-signed worked as well. Though I think that users would be happy with that and not search for other solutions if that worked, which is bad. |
It's already fixed. |
@FMstar Please verify that lets-encrypt certificates are in place and https is working. |
@ezraholm50 My WebInterface presents an valid ssl certificat signet from root-ca letsencrypt. Connection ist encrypted with TLS1.2 |
@FMstar that's great to hear! Thanks for helping out with the bugs. Hope you enjoy your NextBerry! I'm reducing the DH to 4096 instead of double that. Takes ages on the RPI to generate them. |
@ezraholm50 This goes pretty fast: |
Not really, I used the default line in activate-ssl.sh like your line above and it took nearly 30 to 45 mins. |
Wow! |
Yeah, 4x @1.5 GHZ but only seems to use 1 core for the creation of the DH param. Now the only issue to solve is #111 I'm off for a week now. Can be online sporadically... |
...hmm... |
Good catch i forgot to change the commands. Ill create a pr and some commands for you to run later this week. |
Question: is Let's Encrypt installed with PPA or Git? |
Git and the cron command is not adjusted yet. Easy fix.. |
a few days still left. Have you any fix? |
dont hurry, i just wantet to get an update. |
Try this:
And please post the output. Also post the output of: |
After a RELAXING Holliday i tryed your hints: root@bennyundmilka:/var/log/letsencrypt# sed -i 's|! certbot|! cd /etc/certbot; ./letsencrypt-auto|g' /var/scripts/letsencryptrenew.sh; sudo bash /var/scripts/letsencryptrenew.sh I guess that means that the Update of the certificate still fails. |
I updatet to but same result |
We'll figure this out. Please post output of: sudo cat /var/scripts/letsencryptrenew.sh; |
@ezraholm50 There are some changes in the main scripts, please update the beta branch and test. Everything should work. https://github.com/nextcloud/vm/blob/master/lets-encrypt/test-new-config.sh#L46-L64 |
sudo cat /var/scripts/letsencryptrenew.sh |
/var/log/letsencrypt# more cronjob.log Means on 2017-08-13 cronjob runs with success... lets take a look: more letsencrypt.log.2 but at 2017-08-08: more letsencrypt.log.4 ?? |
started script /var/scripts/letsencryptrenew.sh by hand right now, and the certificate is renewed...! 2017-08-21 10:04:54,350:DEBUG:certbot.storage:Writing new private key to /etc/letsencrypt/archive/bennyundmilka.spdns.de/privkey2.pem. Ill Update the status on next weekend (automatic run of the renew-script..) |
cronjob reports: and in /var/logs/letsencrypt/letsencrypt.log the last two lines are: 2017-08-31 09:20:07,582:INFO:certbot.renewal:Cert not yet due for renewal Does this mean that the cronjob reports an error even if the certificate is still valid and is not able to be renewed? I guess the earliest time for a renewal is 10 days before the end of validity? |
Hmm, that's odd. The scripts in the VM are updated, so please check that repo and see what's different, and change accordingly and try again. |
Sorry, to busy with work at the time. could you post the content of So by hand it works and it may be a false negative in the logs right? |
Steps to reproduce
1.following the installation script for NEXTBERRY
2.letsencrypt certificate installation fails
Expected behaviour
certificates should be installed
Actual behaviour
after reverting setting installation script moves on and installt nextclod without an signed cerificate
Server configuration
Server version:
Nextcloud 12.0.0
PHP
Version: 7.0.19
Arbeitspeichergrenzwert: 268435456
Datenbank
Art: mysql
Version: 5.5.54
Größe: 2.1 MB
Raspberry 2 or 3?
Raspberry 3
NextBerry version
_ _ _ ___ __ __ _ ____
| | | ___ __ | | | _ ) ___ _ _ _ _ _ _ \ \ / // | |_ /
| .` |/ -)\ \ /| || _ / -)| '|| '|| || | \ V / | | _ |
||_|___|/_\ _||/_||| || _, | _/ ||()|_/
|/
https://www.techandme.se - Nextcloud:v12.0.0 - Uptime: 0 days, 01h13m43s
RPI: temp=59.1'C - CPU freq: 1400000 - volt=1.3940V - MEM: gpu=32M arm=976M
Operating system: Raspbian GNU/Linux 8.0 (jessie) (GNU/Linux 4.9.24-v7+ armv7l)
Updated from an older installed version or fresh install:
fresh install
Network
Do you use DHCP?
yes
Is port 80 and/or 443 open?
443 open
Logs / Screenshots
Log file (/var/ncdata/nextcloud.log)
Installation log (command output)
The text was updated successfully, but these errors were encountered: