I have not configured letsencrypt locally and have not, intentionally, enabled it.
I do use letsencrypt certificates, I generate these via dns-01 elsewhere, so there are /etc/letsencrypt/live and archive dirs with the certificates in.
I canāt see how to disable any local letsencrypt processes or get this upgrade installed.
I can also not upgrade from 1.8.0 to 1.9.1. Running
sudo ncp-update
gives the following output
Downloading updates
Performing updates
Maintenance mode enabled
Maintenance mode disabled
Running letsencrypt
/usr/local/bin/ncp/NETWORKING/letsencrypt.sh: line 62: /etc/letsencrypt/letsencrypt-auto: No such file or directory
pi@nextcloudpi:~ $ sh: 0: getcwd() failed: No such file or directory
Mostly the same with my ncpi, except I do NOT use letsencrypt (so far). It seems as if it doesnāt check for that case and thereby ādemandsā using letās encrypt.
Downloading updates
Performing updates
Running letsencrypt
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for mycloud.ownyourbits.com
Using the webroot path /var/www/nextcloud for all unmatched domains.
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. mycloud.ownyourbits.com (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: dns :: DNS problem: NXDOMAIN looking up A for mycloud.ownyourbits.com
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: mycloud.ownyourbits.com
Type: connection
Detail: dns :: DNS problem: NXDOMAIN looking up A for
mycloud.ownyourbits.com
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you're using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
I noticed that within ncp-config there is a * at the menu item letsencrypt suggesting it is activated, though, as I mentioned, I havenāt activated it at any time.
Is there something I can do to successfully update anyway?
Downloading updates
Performing updates
Running letsencrypt
/usr/local/bin/ncp/NETWORKING/letsencrypt.sh: line 62: /etc/letsencrypt/letsencrypt-auto: Is a directory
@GCsFfoz5 No luck with changing line 62. Actually I sudo nano and change the line as you advice but when I go into the file again the change is not saved. of course running again ncp-update gives the same result.
@nachoparker I also did not have the file etc/letsencrypt/letsencrypt-auto . Was there a version between 1.8.0 and 1.9.1? I created a script with the code snippet for reinstalling letsencrypt but what I get is
./reletsencrypt.sh: 1: ./reletsencrypt.sh: source: not found
./reletsencrypt.sh: 3: ./reletsencrypt.sh: [[: not found
./reletsencrypt.sh: 5: ./reletsencrypt.sh: [[: not found
./reletsencrypt.sh: 6: ./reletsencrypt.sh: [[: not found
Reading package listsā¦ Done
Building dependency tree
Reading state informationā¦ Done
The following packages will be REMOVED:
letsencrypt
0 upgraded, 0 newly installed, 1 to remove and 38 not upgraded.
After this operation, 30.7 kB disk space will be freed.
(Reading database ā¦ 43882 files and directories currently installed.)
Removing letsencrypt (0.28.0-1~deb9u1) ā¦
Reading package listsā¦ Done
Building dependency tree
Reading state informationā¦ Done
0 upgraded, 0 newly installed, 0 to remove and 38 not upgraded.
./reletsencrypt.sh: 10: ./reletsencrypt.sh: install_app: not found
./reletsencrypt.sh: 11: ./reletsencrypt.sh: [[: not found
./reletsencrypt.sh: 14: ./reletsencrypt.sh: [[: not found./reletsencrypt.sh: 12: ./reletsencrypt.sh: [[: not found
./reletsencrypt.sh: 15: ./reletsencrypt.sh: [[: not found
cp: cannot create directory ā/etc/letsencrypt/archiveā: No such file or directory
guys sorry but my knowledge of linux is limited so some things I say or do may not make sense
If letsencrypt is showing as active in NextCloudPi Panel. I.e. has a tick by it, you can de-activate it by
moving, renaming or deleting the config file /usr/local/etc/ncp-config.d/letsencrypt.cfg
To get NextCloudPi to upgrade from 1.8.0.to 1.9.1 (after a failed upgrade)