summaryrefslogtreecommitdiff
path: root/docs/platform/troubleshooting.md
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-09-19 09:19:26 +0200
committervarac <varacanero@zeromail.org>2013-09-19 09:19:26 +0200
commite7b703792270cf1ef85b90e238fddf111f244c8d (patch)
tree5b1e1c111ec6098a6a250cecf29c5f08627956fa /docs/platform/troubleshooting.md
parent8c324d87ae5453468f0edac187eae86d13e6c6e6 (diff)
beginning of troubleshooting.md
Diffstat (limited to 'docs/platform/troubleshooting.md')
-rw-r--r--docs/platform/troubleshooting.md60
1 files changed, 60 insertions, 0 deletions
diff --git a/docs/platform/troubleshooting.md b/docs/platform/troubleshooting.md
new file mode 100644
index 0000000..e9b31e9
--- /dev/null
+++ b/docs/platform/troubleshooting.md
@@ -0,0 +1,60 @@
+Webapp node
+===========
+
+Places to look for errors:
+
+* /var/log/apache2/error.log
+* /srv/leap/webapp/log/production.log
+* /var/log/syslog (watch out for stunnel issues)
+
+* is haproxy ok ?
+
+
+ curl -X GET "http://127.0.0.1:4096"
+
+* is couchdb access through stunnel ok ?
+
+
+ curl -X GET "http://127.0.0.1:4000"
+
+* check couchdb acl
+
+
+ mkdir /etc/couchdb
+ cat /srv/leap/webapp/config/couchdb.yml.admin # see username and password
+ echo "machine 127.0.0.1 login admin password <PASSWORD>" > /etc/couchdb/couchdb-admin.netrc
+ chmod 600 /etc/couchdb/couchdb-admin.netrc
+
+ curl --netrc-file /etc/couchdb/couchdb-admin.netrc -X GET "http://127.0.0.1:4096"
+ curl --netrc-file /etc/couchdb/couchdb-admin.netrc -X GET "http://127.0.0.1:4096/_all_dbs"
+
+
+Couchdb node
+============
+
+* Membership ok ?
+
+
+ curl --netrc-file /etc/couchdb/couchdb.netrc 'http://127.0.0.1:5984/_membership'
+
+
+* User `_design doc` available ?
+
+
+ curl --netrc-file /etc/couchdb/couchdb.netrc -X GET "http://127.0.0.1:4096/users/_design/User"
+
+
+
+MX node
+=======
+
+* query leap-mx for useraccount
+
+
+ postmap -v -q "joe@dev.bitmask.net" tcp:localhost:2244
+
+
+* query leap-mx for mailalias
+
+
+ postmap -v -q "joe@dev.bitmask.net" tcp:localhost:4242