Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odd refresh behaviour when Proxied. #73

Open
Mystikite opened this issue Sep 13, 2019 · 5 comments
Open

Odd refresh behaviour when Proxied. #73

Mystikite opened this issue Sep 13, 2019 · 5 comments

Comments

@Mystikite
Copy link

Hi, I am running 2.1.3, w/ default config.
However, i have apache2 w/ a virtual server pushing ProxyPass and ReverseProxyPass to http://localhost:8080/mywiki.

If i make changes via the TiddlyServer :8080/mywiki address, and refresh the page, things appear as expected.

if i make changes via the proxied virtual domain, then reload my page, the changes do not appear to have been written.

before moving to TiddlyServer, i ran this wiki successfully as a node.js server proxied, so i know that the proxy itself is not preventing put/get, etc.

@Arlen22
Copy link
Owner

Arlen22 commented Sep 13, 2019 via email

@Mystikite
Copy link
Author

I can, but i think i've wasted your time.
after much testing, the issue happens when multiple people are viewing the site. if i ensure noone else is viewing the wiki, and only have a single connection to it, it behaves as expected whether proxied or not. only when multiple connections are made to the wiki, and changes made in one session, that the other session becomes unstable.

I'm guessing that I either have to go back to multiple nodeJS, or try my luck w/ the multiuser patches i've seen floated about.

@Arlen22
Copy link
Owner

Arlen22 commented Sep 15, 2019 via email

@Mystikite
Copy link
Author

ok. i will pull some log data, interspersed w/ directory info, and upload sometime tomorrow

@Mystikite
Copy link
Author

Sorry for teh delay, I had unexpected family visits derail things.
Here is a quick log that shows the problem. 2 browsers (chrome, firefox) on the same machine.
i seperated the logged activity with notes starting with '===' denoting which browser, and what action was being attempted.

== Browser 1: Initial load, create and save 'new tiddler' ===
[2019-09-26T23:15:20.435-0500] GET 127.0.0.1 200 127.0.0.1 /chimera_wiki/ 859.124 ms - -
twboot-/home/dresdenless/webroot/chimera_wiki: 189.636ms
[2019-09-26T23:15:21.382-0500] GET 127.0.0.1 200 127.0.0.1 /chimera_wiki/chimera_wiki/status 195.427 ms - -
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
[2019-09-26T23:15:21.406-0500] OPTIONS 127.0.0.1 404 127.0.0.1 /chimera_wiki/ 15.340 ms - -
[2019-09-26T23:15:21.423-0500] HEAD 127.0.0.1 404 127.0.0.1 /chimera_wiki/ 29.846 ms - -
twboot-/home/dresdenless/webroot/chimera_wiki: 219.911ms
[2019-09-26T23:15:22.221-0500] GET 127.0.0.1 200 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers.json 1.887 ms - -
[2019-09-26T23:15:22.228-0500] GET 127.0.0.1 200 127.0.0.1 /chimera_wiki/favicon.ico/ 601.949 ms - -
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
[2019-09-26T23:15:22.999-0500] PUT 127.0.0.1 204 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers/$:/StoryList 3.253 ms - -
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
[2019-09-26T23:15:29.132-0500] PUT 127.0.0.1 204 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers/$:/StoryList 1.326 ms - -
[2019-09-26T23:15:29.262-0500] PUT 127.0.0.1 204 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers/Draft%20of%20'New%20Tiddler' 1.207 ms - -
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
[2019-09-26T23:15:30.995-0500] DELETE 127.0.0.1 204 127.0.0.1 /chimera_wiki/chimera_wiki/bags/default/tiddlers/Draft%20of%20'New%20Tiddler' 1.346 ms - -
syncer-server-filesystem: Dispatching 'delete' task: Draft of 'New Tiddler'
[2019-09-26T23:15:32.067-0500] PUT 127.0.0.1 204 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers/$:/StoryList 1.381 ms - -
[2019-09-26T23:15:32.209-0500] PUT 127.0.0.1 204 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers/New%20Tiddler 1.241 ms - -
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
syncer-server-filesystem: Dispatching 'save' task: New Tiddler

== Browser 2: Initial load, create and save 'new tiddler 1' ===
[2019-09-26T23:15:55.404-0500] GET 127.0.0.1 200 127.0.0.1 /chimera_wiki/ 142.277 ms - -
[2019-09-26T23:15:56.141-0500] GET 127.0.0.1 200 127.0.0.1 /chimera_wiki/chimera_wiki/status 1.102 ms - -
[2019-09-26T23:15:56.211-0500] OPTIONS 127.0.0.1 404 127.0.0.1 /chimera_wiki/ 1.180 ms - -
[2019-09-26T23:15:56.216-0500] HEAD 127.0.0.1 404 127.0.0.1 /chimera_wiki/ 0.885 ms - -
[2019-09-26T23:15:56.606-0500] GET 127.0.0.1 200 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers.json 0.884 ms - -
[2019-09-26T23:15:56.817-0500] GET 127.0.0.1 200 127.0.0.1 /chimera_wiki/favicon.ico/ 86.123 ms - -
[2019-09-26T23:15:57.715-0500] PUT 127.0.0.1 204 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers/$:/StoryList 1.316 ms - -
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
[2019-09-26T23:16:07.976-0500] PUT 127.0.0.1 204 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers/$:/StoryList 2.072 ms - -
[2019-09-26T23:16:08.146-0500] PUT 127.0.0.1 204 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers/Draft%20of%20'New%20Tiddler%201' 1.536 ms - -
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
[2019-09-26T23:16:09.751-0500] DELETE 127.0.0.1 204 127.0.0.1 /chimera_wiki/chimera_wiki/bags/default/tiddlers/Draft%20of%20'New%20Tiddler%201' 1.230 ms - -
syncer-server-filesystem: Dispatching 'delete' task: Draft of 'New Tiddler 1'
[2019-09-26T23:16:10.895-0500] PUT 127.0.0.1 204 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers/$:/StoryList 1.158 ms - -
[2019-09-26T23:16:11.035-0500] PUT 127.0.0.1 204 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers/New%20Tiddler%201 1.360 ms - -
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
syncer-server-filesystem: Dispatching 'save' task: New Tiddler 1
[2019-09-26T23:16:22.496-0500] GET 127.0.0.1 200 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers.json 1.163 ms - -

== Browser 1: delete 'new tiddler' ===
[2019-09-26T23:16:39.409-0500] DELETE 127.0.0.1 204 127.0.0.1 /chimera_wiki/chimera_wiki/bags/default/tiddlers/New%20Tiddler 1.931 ms - -
syncer-server-filesystem: Dispatching 'delete' task: New Tiddler
[2019-09-26T23:16:40.548-0500] PUT 127.0.0.1 204 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers/$:/StoryList 1.101 ms - -
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
[2019-09-26T23:16:56.741-0500] GET 127.0.0.1 200 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers.json 1.245 ms - -
[2019-09-26T23:16:57.732-0500] GET 127.0.0.1 404 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers/New%20Tiddler 1.254 ms - -
[2019-09-26T23:16:58.871-0500] PUT 127.0.0.1 204 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers/$:/StoryList 2.024 ms - -
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
[2019-09-26T23:17:01.594-0500] PUT 127.0.0.1 204 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers/$:/StoryList 1.224 ms - -
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
[2019-09-26T23:17:22.646-0500] GET 127.0.0.1 200 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers.json 1.256 ms - -

== Browser 1: shift+reload ===
[2019-09-26T23:17:56.073-0500] GET 127.0.0.1 200 127.0.0.1 /chimera_wiki/ 146.995 ms - -
[2019-09-26T23:17:57.258-0500] GET 127.0.0.1 200 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers.json 1.497 ms - -
[2019-09-26T23:17:57.783-0500] GET 127.0.0.1 200 127.0.0.1 /chimera_wiki/chimera_wiki/status 1.065 ms - -
[2019-09-26T23:17:57.790-0500] OPTIONS 127.0.0.1 404 127.0.0.1 /chimera_wiki/ 0.962 ms - -
[2019-09-26T23:17:57.801-0500] HEAD 127.0.0.1 404 127.0.0.1 /chimera_wiki/ 4.256 ms - -
[2019-09-26T23:17:58.432-0500] GET 127.0.0.1 200 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers.json 2.667 ms - -
[2019-09-26T23:17:58.453-0500] GET 127.0.0.1 200 127.0.0.1 /chimera_wiki/favicon.ico/ 110.573 ms - -
[2019-09-26T23:17:59.394-0500] PUT 127.0.0.1 204 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers/$:/StoryList 1.874 ms - -
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList

== Browser 2: shift+reload ===
[2019-09-26T23:18:13.568-0500] GET 127.0.0.1 200 127.0.0.1 /chimera_wiki/ 125.561 ms - -
[2019-09-26T23:18:14.762-0500] OPTIONS 127.0.0.1 404 127.0.0.1 /chimera_wiki/ 1.036 ms - -
[2019-09-26T23:18:14.827-0500] HEAD 127.0.0.1 404 127.0.0.1 /chimera_wiki/ 0.985 ms - -
[2019-09-26T23:18:14.836-0500] GET 127.0.0.1 200 127.0.0.1 /chimera_wiki/chimera_wiki/status 1.063 ms - -
[2019-09-26T23:18:14.977-0500] GET 127.0.0.1 200 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers.json 0.939 ms - -
[2019-09-26T23:18:15.181-0500] GET 127.0.0.1 200 127.0.0.1 /chimera_wiki/favicon.ico/ 93.595 ms - -
[2019-09-26T23:18:16.046-0500] PUT 127.0.0.1 204 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers/$:/StoryList 2.153 ms - -
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList

=== Browser 2: open + delete 'new tiddler 2'
[2019-09-26T23:18:19.539-0500] GET 127.0.0.1 200 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers/New%20Tiddler%201 1.376 ms - -
[2019-09-26T23:18:20.675-0500] PUT 127.0.0.1 204 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers/$:/StoryList 1.203 ms - -
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
[2019-09-26T23:18:24.088-0500] PUT 127.0.0.1 204 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers/$:/StoryList 1.361 ms - -
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList

=== Browser 2: repeated attempts to open then delete new tiddler 1 ===
[2019-09-26T23:25:20.680-0500] GET 127.0.0.1 200 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers/New%20Tiddler%201 1.099 ms - -
[2019-09-26T23:25:21.915-0500] PUT 127.0.0.1 204 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers/$:/StoryList 1.315 ms - -
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
[2019-09-26T23:25:27.190-0500] PUT 127.0.0.1 204 127.0.0.1 /chimera_wiki/chimera_wiki/recipes/default/tiddlers/$:/StoryList 1.282 ms - -
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants