Skip to content

Commit cbf4d09

Browse files
Matthew Fisherarschles
authored andcommitted
feat(troubleshooting): add troubleshooting docs
1 parent c8b3548 commit cbf4d09

4 files changed

Lines changed: 104 additions & 4 deletions

File tree

mkdocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ pages:
5555
- Platform SSL: managing-workflow/platform-ssl.md
5656
- Upgrading Workflow: managing-workflow/upgrading-workflow.md
5757
- Troubleshooting:
58-
- Troubleshooting with kubectl: troubleshooting/troubleshooting.md
58+
- Troubleshooting Workflow: troubleshooting/index.md
59+
- Troubleshooting using Kubectl: troubleshooting/kubectl.md
5960
- Roadmap:
6061
- Planning Process: roadmap/planning-process.md
6162
- Roadmap: roadmap/roadmap.md

src/troubleshooting/index.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Troubleshooting Workflow
2+
3+
Common issues that users have run into when provisioning Workflow are detailed below.
4+
5+
## A Component Fails to Start
6+
7+
For information on troubleshooting a failing component, see
8+
[Troubleshooting with Kubectl][kubectl].
9+
10+
## Permission denied (publickey)
11+
12+
The most common problem for this issue is the user forgetting to run `deis keys:add` or add their
13+
private key to their SSH agent. To do so, run `ssh-add ~/.ssh/id_rsa` and try running
14+
`git push deis master` again.
15+
16+
## Other Issues
17+
18+
Running into something not detailed here? Please [open an issue][issue] or hop into
19+
[#community on Slack][slack] for help!
20+
21+
[kubectl]: kubectl.md
22+
[issue]: https://github.com/deis/workflow/issues/new
23+
[slack]: http://slack.deis.io/

src/troubleshooting/kubectl.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# Troubleshooting using Kubectl
2+
3+
This document describes how one can use `kubectl` to debug any issues with the cluster.
4+
5+
## Diving into the Components
6+
7+
Using `kubectl`, one can inspect the cluster's current state. When `helmc install workflow-beta4`
8+
is invoked, Workflow is installed into the `deis` namespace. To inspect if Workflow is running,
9+
run:
10+
11+
$ kubectl --namespace=deis get pods
12+
NAME READY STATUS RESTARTS AGE
13+
deis-builder-gqum7 0/1 ContainerCreating 0 4s
14+
deis-controller-h6lk6 0/1 ContainerCreating 0 4s
15+
deis-database-56v39 0/1 ContainerCreating 0 4s
16+
deis-logger-fluentd-xihr1 0/1 Pending 0 2s
17+
deis-logger-grupg 0/1 ContainerCreating 0 3s
18+
deis-minio-c2exb 0/1 Pending 0 3s
19+
deis-monitor-grafana-9ccur 0/1 Pending 0 3s
20+
deis-monitor-influxdb-f9ftm 0/1 Pending 0 3s
21+
deis-monitor-stdout-novxs 0/1 Pending 0 3s
22+
deis-monitor-telegraf-dc3y3 0/1 Pending 0 2s
23+
deis-registry-5bor6 0/1 Pending 0 3s
24+
deis-router-r02sd 0/1 Pending 0 2s
25+
deis-workflow-manager-hizv6 0/1 Pending 0 2s
26+
27+
!!! tip
28+
To save precious keystrokes, alias `kubectl --namespace=deis` to `kd` so it is easier to type
29+
in the future.
30+
31+
To fetch the logs of a specific component, use `kubectl logs`:
32+
33+
$ kubectl --namespace=deis logs deis-controller-h6lk6
34+
system information:
35+
Django Version: 1.9.6
36+
Python 3.5.1
37+
addgroup: gid '0' in use
38+
Django checks:
39+
System check identified no issues (2 silenced).
40+
[...]
41+
42+
To dive into a running container to inspect its environment, use `kubectl exec`:
43+
44+
$ kubectl --namespace=deis exec -it deis-database-56v39 gosu postgres psql
45+
psql (9.4.7)
46+
Type "help" for help.
47+
48+
postgres=# \l
49+
List of databases
50+
Name | Owner | Encoding | Collate | Ctype | Access privileges
51+
----------------------------------+----------+----------+------------+------------+-----------------------
52+
V7wckOHIAn3MZ7mO5du4q5IRq7yib1Oc | postgres | UTF8 | en_US.utf8 | en_US.utf8 |
53+
postgres | postgres | UTF8 | en_US.utf8 | en_US.utf8 |
54+
template0 | postgres | UTF8 | en_US.utf8 | en_US.utf8 | =c/postgres +
55+
| | | | | postgres=CTc/postgres
56+
template1 | postgres | UTF8 | en_US.utf8 | en_US.utf8 | =c/postgres +
57+
| | | | | postgres=CTc/postgres
58+
(4 rows)
59+
postgres=# \connect V7wckOHIAn3MZ7mO5du4q5IRq7yib1Oc
60+
You are now connected to database "V7wckOHIAn3MZ7mO5du4q5IRq7yib1Oc" as user "postgres".
61+
V7wckOHIAn3MZ7mO5du4q5IRq7yib1Oc=# \dt
62+
List of relations
63+
Schema | Name | Type | Owner
64+
--------+--------------------------------+-------+----------------------------------
65+
public | api_app | table | V7wckOHIAn3MZ7mO5du4q5IRq7yib1Oc
66+
public | api_build | table | V7wckOHIAn3MZ7mO5du4q5IRq7yib1Oc
67+
public | api_certificate | table | V7wckOHIAn3MZ7mO5du4q5IRq7yib1Oc
68+
public | api_config | table | V7wckOHIAn3MZ7mO5du4q5IRq7yib1Oc
69+
public | api_domain | table | V7wckOHIAn3MZ7mO5du4q5IRq7yib1Oc
70+
public | api_key | table | V7wckOHIAn3MZ7mO5du4q5IRq7yib1Oc
71+
public | api_push | table | V7wckOHIAn3MZ7mO5du4q5IRq7yib1Oc
72+
public | api_release | table | V7wckOHIAn3MZ7mO5du4q5IRq7yib1Oc
73+
public | auth_group | table | V7wckOHIAn3MZ7mO5du4q5IRq7yib1Oc
74+
--More--
75+
V7wckOHIAn3MZ7mO5du4q5IRq7yib1Oc=# SELECT COUNT(*) from api_app;
76+
count
77+
-------
78+
0
79+
(1 row)

src/troubleshooting/troubleshooting.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)