Skip to content

Instantly share code, notes, and snippets.

Created July 31, 2015 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/b42569c9855d7af712fb to your computer and use it in GitHub Desktop.
Save anonymous/b42569c9855d7af712fb to your computer and use it in GitHub Desktop.
[ash1] root@v-salt-001-prod:/var/log/salt# service salt-master restart; service salt-api restart; service salt-master status; service salt-api status; rm -rf /var/log/salt/*;
Stopping salt-master daemon: [FAILED]
Starting salt-master daemon: [ OK ]
Stopping salt-api daemon: [FAILED]
Starting salt-api daemon: [ OK ]
salt-master (pid 14668) is running...
salt-api (pid 14678 14668) is running...
[ash1] root@v-salt-001-prod:/var/log/salt# curl -ksi https://localhost:8080/login -H "Accept: application/json" -d username='salttest' -d password='icanhazsaltapi' -d eauth='pam'
HTTP/1.1 503 Service Unavailable
Content-Length: 775
Access-Control-Expose-Headers: GET, POST
Vary: Accept-Encoding
Server: CherryPy/3.8.0
Allow: GET, HEAD, POST
Access-Control-Allow-Credentials: true
Date: Fri, 31 Jul 2015 20:29:31 GMT
Access-Control-Allow-Origin: *
Content-Type: text/html;charset=utf-8
Set-Cookie: session_id=2008acd486d5569e322735398d427b14d6ae387d; expires=Sat, 01 Aug 2015 06:29:31 GMT; Path=/
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<title>503 Service Unavailable</title>
<style type="text/css">
#powered_by {
margin-top: 20px;
border-top: 2px solid black;
font-style: italic;
}
#traceback {
color: red;
}
</style>
</head>
<body>
<h2>503 Service Unavailable</h2>
<p>SaltReqTimeoutError: after 60 seconds, ran 1 tries</p>
<pre id="traceback"></pre>
<div id="powered_by">
<span>
Powered by <a href="http://www.cherrypy.org">CherryPy 3.8.0</a>
</span>
</div>
</body>
</html>
[ash1] root@v-salt-001-prod:/var/log/salt# curl -k https://localhost:8080
{"clients": ["_is_master_running", "local", "local_async", "local_batch", "runner", "runner_async", "ssh", "ssh_async", "wheel", "wheel_async"], "return": "Welcome"}[ash1] root@v-salt-001-prod:/var/log/salt#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment