Certbot 503 error


#1

when running this command:

sudo ./certbot-auto certonly --webroot -w /opt/tripstream -d tripstreamer.com -d www.tripstreamer.com

i get this

An unexpected error occurred:
ClientError: <Response [503]>
Please see the logfiles in /var/log/letsencrypt for more details.

then in the log files:

2016-07-04 16:47:09,561:DEBUG:certbot.main:Root logging level set at 30
2016-07-04 16:47:09,561:INFO:certbot.main:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2016-07-04 16:47:09,561:DEBUG:certbot.main:certbot version: 0.8.1
2016-07-04 16:47:09,562:DEBUG:certbot.main:Arguments: [’–webroot’, ‘-w’, ‘/opt/tripstream’, ‘-d’, ‘tripstreamer.com’, ‘-d’, 'www.t$
2016-07-04 16:47:09,562:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#webroot,Plu$
2016-07-04 16:47:09,565:DEBUG:certbot.plugins.selection:Requested authenticator webroot and installer None
2016-07-04 16:47:09,569:DEBUG:certbot.plugins.selection:Single candidate plugin: * webroot
Description: Place files in webroot directory
Interfaces: IAuthenticator, IPlugin
Entry point: webroot = certbot.plugins.webroot:Authenticator
Initialized: <certbot.plugins.webroot.Authenticator object at 0x7fd3f8091e10>
Prep: True
2016-07-04 16:47:09,570:DEBUG:certbot.plugins.selection:Selected authenticator <certbot.plugins.webroot.Authenticator object at 0x7$
2016-07-04 16:47:09,760:DEBUG:certbot.main:Picked account: <Account(08fdeb29ac13f058fe3f1ef84cb642e4)>
2016-07-04 16:47:09,762:DEBUG:root:Sending GET request to https://acme-v01.api.letsencrypt.org/directory. args: (), kwargs: {}
2016-07-04 16:47:09,765:INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): acme-v01.api.letsencrypt.o$
2016-07-04 16:47:10,346:DEBUG:requests.packages.urllib3.connectionpool:“GET /directory HTTP/1.1” 503 272
2016-07-04 16:47:10,347:DEBUG:root:Received <Response [503]>. Headers: {‘Content-Length’: ‘272’, ‘Expires’: 'Mon, 04 Jul 2016 16:47$
2016-07-04 16:47:10,347:DEBUG:acme.client:Received response <Response [503]> (headers: {‘Content-Length’: ‘272’, ‘Expires’: 'Mon, 0$
2016-07-04 16:47:10,354:DEBUG:certbot.main:Exiting abnormally:
Traceback (most recent call last):
File “/root/.local/share/letsencrypt/bin/letsencrypt”, line 11, in
sys.exit(main())
File “/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot/main.py”, line 744, in main
return config.func(config, plugins)
File “/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot/main.py”, line 550, in obtain_cert
le_client = _init_le_client(config, auth, installer)
File “/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot/main.py”, line 367, in _init_le_client
return client.Client(config, acc, authenticator, installer, acme=acme)
File “/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot/client.py”, line 184, in init
acme = acme_from_config_key(config, self.account.key)
File “/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot/client.py”, line 42, in acme_from_config_key
return acme_client.Client(config.server, key=key, net=net)
File “/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/client.py”, line 63, in init
self.net.get(directory).json())
File “/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/client.py”, line 631, in get
self._send_request(‘GET’, url, **kwargs), content_type=content_type)
File “/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/client.py”, line 578, in _check_response
raise errors.ClientError(response)
ClientError: <Response [503]>

not sure why.

my sites-enabled file for nginx is

server {
	listen 80 default_server;
	listen [::]:80 default_server ipv6only=on;

	root /opt/tripstream;
	index index.html index.htm;

	# Make site accessible from http://localhost/
	server_name tripstreamer.com;
	#access_log  /var/log/nginx/access.log;
	access_log off;

location / {
	proxy_pass http://127.0.0.1:8080;
	access_log  /var/log/nginx/tripstream-access.log; 
       proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
	proxy_set_header X-Real-IP $remote_addr;
	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
		# First attempt to serve request as file, then
		# as directory, then fall back to displaying a 404.
		# try_files $uri $uri/ =404;
		# Uncomment to enable naxsi on this location
		# include /etc/nginx/naxsi.rules
	}

#location ~ /\. {
 #  deny all;
#}

location ~ /.well-known {
                allow all;
        }

location /public {
        allow all;
        access_log off;
    root /opt/tripstream;
 }
}

#2

A 50X error is a server error, and http://letsencrypt.status.io/ show currently a “Service Disruption”. Maybe you can try later?


#3

Thanks. that was the problem. It’s working now. Bad timing on my part :sob:


#4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.