aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/Intermittent_delays_after_editing__63__.mdwn
blob: 9671925ced27cca5d36cd77c39e0f06d9eaead9a (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
Steps to reproduce:

 * Running ikiwiki version 3.20130904.1ubuntu1 on Ubuntu 14.04 LTS
 * ikiwiki accessed via `https://DOMAIN/wiki/ikiwiki.cgi` using fcgiwrap and Nginx
 * Start ikiwiki site
 * Edit an existing page

What should happen:

 * Change is immediately available

What happens instead:

 * Change is sometimes not immediately available
 * After (approx) 1-2 minutes, change is available

Other notes:

 * Similarly for creating new pages
 * Not consistent (the next edit may be visible immediately)
 * If changes are visible from one browser, may not be visible from another browser on a different machine, logged in as the same user (admin)
 * Seems to be happening less / not at all after running the site for approx 30-60 minutes
 * fcgiwrap is invoked with Supervisor (aka supervisord)
 * Related Nginx location blocks:

```
# non-wiki files at DOMAIN/...
location / {
    try_files $uri $uri/ /index.html =404;
}

# wiki files at DOMAIN/wiki
location /wiki {
    alias /home/USERNAME/public_html/WIKINAME;
}

# wiki script at DOMAIN/wiki/ikiwiki.cgi
location /wiki/ikiwiki.cgi {
    fastcgi_pass  unix:/tmp/fcgi.socket;
    fastcgi_index ikiwiki.cgi;
    fastcgi_param SCRIPT_FILENAME    /home/USERNAME/public_html/WIKINAME/ikiwiki.cgi;
    fastcgi_param DOCUMENT_ROOT    /home/USERNAME/public_html/WIKINAME;
    include /etc/nginx/fastcgi_params;
}
```

Please let me know if this is expected/known, and/or if there's anything helpful I can add to the report.