Hi all,

I've managed to get very close to my desired set-up, but stuck at the last 
step. I wanted to use my personal server to host a TW5 instance in order to 
have a single 'main' repository for my notes. I've installed node.js and 
TiddlyWiki to run as the web server user (nginx), and running the command

sudo -u nginx tiddlywiki /srv/tiddlywiki --server 8080 \$:/core/save/all 
text/plain text/html uname pass 107.191.41.74


boots up a TiddlyWiki server and all appears to be good (I can open it in 
my browser, save edits, etc.). When I attempt to make this service start on 
boot as a systemd service unit, things go wrong. I still get a response 
when visiting in my browser, but it's entirely empty (no content in the 
HTTP response body).

The service invokes the same command I'm using--though it uses full paths 
to executables, of course--and reports that the server has started 
successfully:

$ sudo systemctl status tiddlywiki

 

● tiddlywiki.service - Single-user TiddlyWiki server
   Loaded: loaded 
(/nix/store/p2jx6ga4m1mlf0zb47an897cfa687azf-unit-tiddlywiki.service/tiddlywiki.service)
   Active: active (running) since Sun 2015-12-27 12:03:32 EST; 56s ago
  Process: 3961 
ExecStartPre=/nix/store/iby05rw4sbiwp548sh1sbhknhvxivyl5-unit-script/bin/tiddlywiki-pre-start
 
(code=exited, status=0/SUCCESS)
 Main PID: 3965 (tiddlywiki)
   CGroup: /system.slice/tiddlywiki.service
           └─3965 
/nix/store/3da96q7q3qcym4vbb1v05806ap6rnxr2-nodejs-0.12.7/bin/node 
/nix/store/vr66v8qkx6mqs0rqxigmadxa2ph2qd60-tiddlywiki-5.1.9/bin/tiddlywiki 
/srv/tiddlywiki --server 8080 \$:/core/save/all text/plain text/html uname 
pass 107.191.41.74

Dec 27 12:03:32 crow systemd[1]: Starting Single-user TiddlyWiki server...
Dec 27 12:03:32 crow systemd[1]: Started Single-user TiddlyWiki server.
Dec 27 12:03:32 crow tiddlywiki[3965]: Serving on 107.191.41.74:8080
Dec 27 12:03:32 crow tiddlywiki[3965]: (press ctrl-C to exit)
Dec 27 12:03:33 crow tiddlywiki[3965]: syncer-server: Dispatching 'save' 
task: $:/StoryList
Dec 27 12:03:34 crow tiddlywiki[3965]: FileSystem: Saved file 
/srv/tiddlywiki/tiddlers/$__StoryList.tid 


All looks good, right? But then when I try to access 
http://uname:[email protected]:8080/ I get an empty response. I get the 
401 authorization required response if I don't specify username and 
password, so the request is clearly making it to the tiddlywiki process:

$ curl -i http://107.191.41.74:8080/
HTTP/1.1 401 Authentication required
WWW-Authenticate: Basic realm="Please provide your username and password to 
login to My ~TiddlyWiki"
Date: Sun, 27 Dec 2015 17:07:30 GMT
Connection: keep-alive
Transfer-Encoding: chunked


When I supply username and password, though:

$ curl -i http://uname:[email protected]:8080/
HTTP/1.1 200 OK
Content-Type: text/html
Date: Sun, 27 Dec 2015 17:07:51 GMT
Connection: keep-alive
Transfer-Encoding: chunked


Can anyone hazard a guess as to what's going on, and how to fix it?

Many thanks,
Joseph Long

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/05799d8b-4f81-4651-a48a-58d2a68c87a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to