summaryrefslogtreecommitdiff
path: root/docs/platform/troubleshooting.md
blob: e9b31e9e84e2edea37186839228b1780dacb0060 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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