[TW5] Server hosted on nodejs - syncer warning

1,155 views
Skip to first unread message

Arjuna

unread,
May 16, 2014, 4:15:11 PM5/16/14
to tiddl...@googlegroups.com
Hi,

when trying to edit any tiddlers with the prefix $:/... I got the following error:

syncer-browser - 00:01:05 17 5 2014

Sync error while processing '$:/.......': XMLHttpRequest error code: 404

The developer console logs:

PUT %24%3A%2FSiteSubtitle (http://host/recipes/default/tiddlers/%24%3A%2FSiteSubtitle)   404 Not Found   domain   0B 

However, editing any other Tiddler works fine.

-aj







Jeremy Ruston

unread,
May 16, 2014, 7:26:07 PM5/16/14
to TiddlyWiki
Hi Arjuna

Can you describe your configuration? It sounds like there may be a proxy between the browser and the server that is objecting to the encoded slash in the URL (the characters %2F).

Best wishes

Jeremy




--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Arjuna

unread,
May 17, 2014, 4:22:59 AM5/17/14
to tiddl...@googlegroups.com, jeremy...@gmail.com
Hi Jeremy,

indeed I use proxypass (apache/mod_proxy) to forward traffic between a locally hosted tiddly (nodejs) server and the internet. My setup is a Synology NAS using apache webserver, several different webpages,managed through vhost behind a nat with port 80 open. In this setup proxypass seemed the fast and easy way to get through the nat bidirectionally. I will investigate a bit into that module.

Thanks for your hint.
-aj

Xavier Cazin

unread,
May 17, 2014, 5:04:41 AM5/17/14
to tiddl...@googlegroups.com, Jeremy Ruston
Hi,

I experienced the same issue when trying to use Apache as a proxy on a Debian host.


One can experience the difference when trying to edit $:/DefaultTiddlers or HelloThere. I don't know yet how to tell Apache that editing $:/DefaultTiddlers is fine.

Here is my VirtualHost configuration to mask the node server on port 9559 
:

xavier@piano:/etc/apache2/sites-available$ cat 025-tw5-beta
# A copy of latest tw5.com edition is running on node.js, port 9559
# Note to self: mod_proxy_http is mandatory (in addition to mod_proxy)

NameVirtualHost *:80
<VirtualHost *:80>
  ServerName tw5.alteriel.net
  <Proxy *>
    Order Deny,Allow
    Allow from all
  </Proxy>
  ProxyPreserveHost Off # défaut
  ProxyPass / http://127.0.0.1:9559/
</VirtualHost>
xavier@piano:/etc/apache2/sites-available$

Best,
Xavier.

-- Xavier Cazin

Danielo Rodríguez

unread,
May 27, 2014, 4:16:33 PM5/27/14
to tiddl...@googlegroups.com
Hello,sorry for the offtopic
Could you please explain your configuration further? What does it you allow to do? Do you also need some kind of dynamic DNS?

I'm specially interested in the Synology configuration. How did you set up node.js on the NAS?
Thanks in advance.

Arjuna

unread,
May 18, 2014, 3:18:09 PM5/18/14
to tiddl...@googlegroups.com, Jeremy Ruston
Hi Xavier,

I solved the problem at least for my set up by simply adding one line to my vhost file:

<VirtualHost *:80>
ServerName domain.tld
AllowEncodedSlashes on

<Proxy *>
......
</Proxy>
</VirtualHost>

It seems that not the special characters like $ had to be escaped but the slashes. 

Hope this helps ...
-aj

Xavier Cazin

unread,
May 18, 2014, 4:26:28 PM5/18/14
to tiddl...@googlegroups.com, Jeremy Ruston
Thank you Arjuna! I confirm that this solves the issue.

Xavier.

-- Xavier Cazin

Alex

unread,
Dec 28, 2016, 12:58:16 AM12/28/16
to TiddlyWiki, jeremy...@gmail.com
Thank you, this resolved my issue also!

Captain Packers

unread,
Sep 28, 2018, 10:18:23 AM9/28/18
to TiddlyWiki
Thanks. Been looking for a solution to this for awhile.

Reply all
Reply to author
Forward
0 new messages