nextcloud / nextcloudpi

📦 Build code for NextcloudPi: Raspberry Pi, Odroid, Rock64, curl installer...
https://nextcloudpi.com
2.49k stars 295 forks source link

Error setting up letsencrypt [ports were not open] #81

Closed EvdM66 closed 7 years ago

EvdM66 commented 7 years ago

What is the base image that you installed on the SD card? ( eg: NextCloudPi_07-21-17 )

NextCloudPi_07-21-17

Expected behavior

I am trying to setup Letsencrypt. I think that my port forwarding (443) and the noip configuration work allright. The domain I want to use is cloud.avondel.com which is mapped on evdm66.ddns.net My DNS contains a corresponding CNAME mapping too.

Actual behaviour

It fails with the following error message:

voila_capture 2017-08-03_05-29-36_pm

The error references a DNS A/AAAA record. I have a CNAME record. I did try to change it to type A, but that only accepts a fixed IP for destination. Here it gets a little to technical for me unfortunately.

Any suggestion is much appreciated!

JimmyKater commented 7 years ago

sure that you have opened and forwarded all neccessary ports for it? CNAME shouldn't be any problem... i have set a CNAME record myself and it works beautifully

ghost commented 7 years ago

An make sure the no-ip domain is directed to your physical location's IP assigned by your ISP. A helpful tool that could be used is http://www.whatismypublicip.com/, but there are others that can be found via a web search.

EvdM66 commented 7 years ago

Thanks so much!

As far as I can tell the situation is like this:

I have forwarded both 443 ports to my raspberry:

voila_capture 2017-08-03_05-26-18_pm

Whatsmypublicip.com shows this:

voila_capture 2017-08-04_10-52-04_pm

And my noip entry looks like this:

voila_capture 2017-08-04_10-51-31_pm

Ping to both cloud.avondel.com and to evdm66.ddns.net end up at 178.85.89.36, so that seems okay too.

Not sure where to look next...

ghost commented 7 years ago

I just did a ping to 178.85.89.36 and received...

PING 178.85.89.36 (178.85.89.36) 56(84) bytes of data. ^C --- 178.85.89.36 ping statistics --- 41 packets transmitted, 0 received, 100% packet loss, time 40319ms

A ping to cloud.avondel.com yields... PING evdm66.ddns.net (178.85.89.36) 56(84) bytes of data. ^C --- evdm66.ddns.net ping statistics --- 6 packets transmitted, 0 received, 100% packet loss, time 5038ms

It makes me wonder, was that issued by a VPN service? If so, that won't work (to my knowledge).

nachoparker commented 7 years ago

I have forwarded both 443 ports to my raspberry:

You need to forward both ports 443 and 80 for the Let's Encrypt challenge to work

See #22 and #43

EvdM66 commented 7 years ago

Thank you very much, thad did solve it indeed!

On Sun, Aug 6, 2017 at 8:53 PM, nachoparker notifications@github.com wrote:

I have forwarded both 443 ports to my raspberry:

You need to forward both ports 443 and 80 for the Let's Encrypt challenge to work

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nextcloud/nextcloudpi/issues/81#issuecomment-320525117, or mute the thread https://github.com/notifications/unsubscribe-auth/AdTnDj-3GyG1mDLFRatwAaI3eddjcmBxks5sVgvDgaJpZM4Ot4nS .

-- Erik van der Meulen erik@avondel.com

nachoparker commented 7 years ago

: )

cryptodigger commented 7 years ago

Hello,

I am facing the same problem as you had it before. In my case I opened already both ports 80 and 443 and it is still not working. I am using ddclient with namecheap. I actually just reinstalled NextcloudPi. Before everything was working just fine, just now I am facing this issue.

jonaskor commented 6 years ago

Hey everyone, i'm was facing the same problem as cryptodigger. Just reinstalled NextcloudPi (after being stuck in maintenance mode) and the letsencrypt plugin was giving me a "fetching timeout" error. I didn't change the DNS service nor the port forwarding behavior in my router. But I noticed, that my public IP differed from the one that pinging my domain gave me. In the end the problem was, that the DNS service didn't forward to the right domain. After updating the IP at the DNS service provider (in my case changeip.com) letsencrypt now is working fine! Cheers!

nachoparker commented 6 years ago

@jonaskor no need to reinstall for that! ask in the forums for help