Skip to content

Commit dd973ba

Browse files
committed
Merge pull request #962 from deis/troubleshooting
docs(README): adds troubleshooting information
2 parents e29f01c + ac15bce commit dd973ba

1 file changed

Lines changed: 34 additions & 2 deletions

File tree

README.md

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Deis (pronounced DAY-iss) is an open source PaaS that makes it easy to deploy an
88
![Deis Graphic](https://s3-us-west-2.amazonaws.com/deis-images/deis-graphic.png)
99

1010
# New Deis
11+
1112
Deis has undergone several improvements recently. If you are updating
1213
from Deis version 0.7.0 or earlier, there are several big changes you
1314
should know about. Read the [MIGRATING.md](MIGRATING.md) document for
@@ -123,9 +124,9 @@ $ deis keys:add
123124

124125
Use `deis keys:add` to add your SSH public key for `git push` access.
125126

126-
## Initalize a Cluster
127+
## Initialize a Cluster
127128

128-
Initalize a `dev` cluster with a list of CoreOS hosts and your CoreOS private key.
129+
Initialize a `dev` cluster with a list of CoreOS hosts and your CoreOS private key.
129130

130131
```console
131132
$ deis clusters:create dev local.deisapp.com --hosts=local.deisapp.com --auth=~/.vagrant.d/insecure_private_key
@@ -198,6 +199,37 @@ Vagrant and the current master version of Deis, please add to the issue
198199
report at https://github.com/coreos/coreos-vagrant/issues/68 to help us
199200
pin it down.
200201

202+
## Troubleshooting
203+
204+
Common issues that users have run into when provisioning Deis are detailed below.
205+
206+
#### When running a `make` action - 'Failed initializing SSH client: ssh: handshake failed: ssh: unable to authenticate'
207+
Did you remember to add your SSH key to the ssh-agent? `ssh-agent -L` should list the key you used to provision the servers. If it's not there, `ssh-add -K `/path/to/your/key`.
208+
209+
#### Various NFS issues, specifically an 'access denied' error
210+
The easiest workaround for this is to use rsync instead of NFS. In the Vagrantfile, swap out the `config.vm.synced_folder` line for the commented version.
211+
212+
#### Scaling an app doesn't work, and/or the app shows 'Welcome to nginx!'
213+
This means the controller failed to submit jobs for the app to fleet. `fleetctl status deis-controller` will show detailed error information, but the most common cause of this is that the cluster was created with the wrong SSH key for the `--auth` parameter. The key supplied with the `--auth` parameter must be the same key that was used to provision the Deis servers. If you suspect this to be the issue, you'll need to `clusters:destroy` the cluster and recreate it, along with the app.
214+
215+
#### A Deis component fails to start
216+
Use `fleetctl status deis-<component>.service` to get the output of the service. The most common cause of services failing to start are sporadic issues with the Docker index. The telltale sign of this is:
217+
218+
```console
219+
May 12 18:24:37 deis-3 systemd[1]: Starting deis-controller...
220+
May 12 18:24:37 deis-3 sh[6176]: 2014/05/12 18:24:37 Error: No such id: deis/controller
221+
May 12 18:24:37 deis-3 sh[6176]: Pulling repository deis/controller
222+
May 12 18:29:47 deis-3 sh[6176]: 2014/05/12 18:29:47 Could not find repository on any of the indexed registries.
223+
May 12 18:29:47 deis-3 systemd[1]: deis-controller.service: control process exited, code=exited status=1
224+
May 12 18:29:47 deis-3 systemd[1]: Failed to start deis-controller.
225+
May 12 18:29:47 deis-3 systemd[1]: Unit deis-controller.service entered failed state.
226+
```
227+
228+
We are exploring workarounds and are working with the Docker team to improve their index. In the meantime, try starting the service again with `fleetctl start deis-<component>.service`.
229+
230+
### Any other issues
231+
Running into something not detailed here? Please [open an issue](https://github.com/deis/deis/issues/new) or hop into #deis and we'll help!
232+
201233
## License
202234

203235
Copyright 2014, OpDemand LLC

0 commit comments

Comments
 (0)