danb35 / freenas-iocage-nextcloud

Script to create an iocage jail on FreeNAS for the latest Nextcloud 28 release, including Caddy, MariaDB or PostgreSQL, and Let's Encrypt
GNU General Public License v3.0
252 stars 71 forks source link

Cannot reach server #169

Closed vanDariu closed 3 years ago

vanDariu commented 3 years ago

I have tried many possible solutions, but I still cannot reach the server. I am pretty certain it is something regarding this line in the installation notes: "Also, HOST_NAME needs to resolve to your jail from inside your network. You'll probably need to configure this on your router. If you're unable to do so, you can edit the hosts file on your client computers to achieve this result.", but it seems I don't have enough experience to resolve the issue. Is here a solution?

vanDariu commented 3 years ago

The error I receive when It seems I do reach the server is: "write tcp 10.239.48.48:38485: write: connection refused"

vanDariu commented 3 years ago

It appears that in the Caddyfile in the usr/local/www folder there was a missing "#" before just "email" in line 4 I think (I had not entered an email during the instalation and just 'email' was wrong). With this being resolved, everything seems to be working fine. :) Thank you for this script and have a good day!

danb35 commented 3 years ago

I had not entered an email during the installation

Ah, that's a problem; you should have. I thought I checked for that in the script.

vanDariu commented 3 years ago

Should I enter it anyway? Is there perhaps a problem if I don't enter it? In general, I try not to give it away too often if it's possible... Otherwise, the installation is working fine until now, thank you for your work!

danb35 commented 3 years ago

Let's Encrypt encourages giving an email address--it's only used if your cert is about to expire (which shouldn't ever be the case) or if there are upcoming breaking changes to their system. But it isn't mandatory to use the service.

vanDariu commented 3 years ago

Got it! Thank you very much!