Hi,
I signed up for the Let's Encrypt Closed Beta, and decided to try it on my domain. Using Ubuntu Server 12.04.4 LTS and Apache/2.2.22 as a web server.
I executed this commands as root:
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
./letsencrypt-auto --agree-dev-preview --server \
https://acme-v01.api.letsencrypt.org/directory auth
Three options were shown:
- Apache Web server - Alpha (apache) [Misconfigured]
- Manual Autentication (manual)
- Standalone Autentication (standalone)
I choose Apache Web server, enter the domain and then:
(98)Address already in use: make_sock: could not bind to address x
x 0.0.0.0:80 x
x no listening sockets available, shutting down x
x Unable to open logs x
x Encountered exception during recovery x
x 'NoneType' object has no attribute 'init_modules' x
x Traceback (most recent call last): x
x File x
x "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/le x
x tsencrypt/error_handler.py", line 69, in call_registered x
x self.funcs[-1]() x
x File x
x "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/le x
x tsencrypt/auth_handler.py", line 280, in _cleanup_challenges x
x self.dv_auth.cleanup(dv_c) x
x File x
x "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/le x
x tsencrypt_apache/configurator.py", line 1164, in cleanup x
x self.parser.init_modules() x
x AttributeError: 'NoneType' object has no attribute 'init_modules'
An unexpected error occurred.
AttributeError: 'NoneType' object has no attribute 'modules'
Please see the logfiles in /var/log/letsencrypt for more details.
Then I stopped Apache2 and I tried the second option and then third option with same result, cannot bind port 80 / apache2 with pidxxxx is running on port 443 or something related.
Finally I used a command to view the currently used ports and I found this:
80 tcp 4/- - PIDroot /usr/sbin/apache2 -D DUMP_RUN_CFG /usr/lib/apache2/mpm-prefork/apache2
80 tcp 4/- - PID www-data /usr/sbin/apache2 -D DUMP_RUN_CFG /u...he2/mpm-prefork/apache2
80 tcp 4/- - PID www-data /usr/sbin/apache2 -D DUMP_RUN_CFG /u...he2/mpm-prefork/apache2
80 tcp 4/- - PID www-data /usr/sbin/apache2 -D DUMP_RUN_CFG /u...he2/mpm-prefork/apache2
I stopped Apache2 again and tried Standalone Autentication (standalone) with the same result, apache2 running again.
I started another SSH terminal and repeat the Standalone Autentication (standalone) but stopping apache2 every 4 seconds and it finally worked.
I dont have a cron starting apache2 or something like that.
I post my experience here because I believe is a client problem.