I wanted to install gitlab to serve locally but accidentally enabled letsencrypt when was asked for the first time.
Now I every time I want to install it fails with:
Stopping nginx for letsencrypt…
Requested domain localhost is not a FQDN
letsencrypt auto configuration failed…
Stop your webserver and try running letsencrypt manually…
letsencrypt -d localhost certonly
Registering /etc/gitlab/gitlab.yml via ucf
Creating config file /etc/gitlab/gitlab.yml with new version
Registering /etc/gitlab/gitlab-debian.conf via ucf
Creating config file /etc/gitlab/gitlab-debian.conf with new version
Creating config file /etc/nginx/sites-available/localhost with new version
Reloading nginx configuration…
nginx.service is not active, cannot reload.
invoke-rc.d: initscript nginx, action “reload” failed.
dpkg: error processing package gitlab (–configure):
subprocess installed post-installation script returned error exit status 1
I apt-get purged gitlab and even removed gitlab directories in /opt, /usr and /var. but the configuration page during apt-get wont show up again and above error always shows.
Is it related to letsencrypt ?
I am using ubuntun 16.04 amd64.