TW5 Server Version has gotten into a weird state

201 views
Skip to first unread message

cpjobling

unread,
Jan 12, 2018, 12:24:55 PM1/12/18
to TiddlyWiki
One of my TW5 server wikis has gotten into a weird state in which tiddlers have become replaced by full file paths. For example

tiddler wiki/tiddlers/10th January 2018.tid is appearing as a file /Users/me/.../wiki/tiddlers/10th January 2018.tid with header:

modified: 20180112164435213
modifier: Chris Jobling

tags: Journal
title: 10th January 2018
type: text/vnd.tiddlywiki


.The content is present in this file, but if I try to create a new tiddler in the server from the content, it reverts to the file-path version on server restart.

Also, on my mac the $__StoryList.tid is saved with a number appended $__StoryList.tid 1 and next time the server is opened $__StoryList.tid 2.

Is there a simple way to recover?

TiddlyWiki is 5.1.15

TiddlyWiki.info:

{
    "description": "Empty edition",
    "plugins": [
        "tiddlywiki/tiddlyweb",
        "tiddlywiki/filesystem",
        "tiddlywiki/highlight",
        "tiddlywiki/codemirror"
    ],
    "username": "Chris Jobling",
    "themes": [
        "tiddlywiki/vanilla",
        "tiddlywiki/snowwhite"
    ],
    "languages": [
          "en-GB"
      ],
    "build": {
        "index": [
            "--rendertiddler","$:/core/save/all","index.html","text/plain"
        ],
        "favicon": [
          "--savetiddler","$:/favicon.ico","favicon.ico"
        ],
        "readme": [
            "--rendertiddler","ReadMe","readme.md","text/html",
            "--rendertiddler","License","license.md","text/html"
        ],
        "externalimages": [
            "--savetiddlers","[![is.draft]is[image]]","images",
            "--setfield","[![is.draft]is[image]]","_canonical_uri","$:/core/templates/canonical-uri-external-image","text/plain",
            "--rendertiddler","$:/core/save/all","externalimages.html","text/plain"
        ],
        "static": [
            "--rendertiddler","[![is.draft]tag[private]]","$:/core/templates/static.template.html","static.html","text/plain",
            "--rendertiddler","[![is.draft]tag[private]]","$:/core/templates/alltiddlers.template.html","alltiddlers.html","text/plain",
            "--rendertiddlers","[!is[system]]","$:/core/templates/static.tiddler.html","static","text/plain",
            "--rendertiddler","$:/core/templates/static.template.css","static/static.css","text/plain"
        ]
    }
}




cpjobling

unread,
Jan 12, 2018, 12:37:10 PM1/12/18
to TiddlyWiki
This problem also affects new tiddlers. I create a new tiddler Called "Test Tiddler Write"

The only indication that something may not be right is the message hasMetaFile is false in the server log before server apparently writes the tiddler file.

syncer-server-filesystem: Dispatching 'save' task: Test Tiddler Write
For Test Tiddler Write, type is application/x-tiddler hasMetaFile is false filepath is /Users/me/.../wiki/tiddlers/Test Tiddler Write.tid
 filesystem: Saved file /Users/me/.../wiki/tiddlers/Test Tiddler Write.tid

When the server is restarted, Test Tiddler Write is in the Orphans file with name that this the full file path.

cpjobling

unread,
Jan 12, 2018, 2:08:42 PM1/12/18
to TiddlyWiki
I rebuilt the wiki from a new fresh version using drag and drop and copy and paste ... but I'd still like to know what went wrong.

Jeremy Ruston

unread,
Jan 13, 2018, 8:39:53 AM1/13/18
to tiddl...@googlegroups.com
Hi cpjobling

I don’t see anything amiss with your tiddlywiki.info file. Does the “tiddlers” subfolder contain any files called tiddlywiki.files? I’d be happy to look at it if you’ve kept a copy. Can you post the wiki folder as a zip file? Or you could send it directly to me if you’d prefer.

Best wishes

Jeremy

On 12 Jan 2018, at 19:08, cpjobling <cpjo...@gmail.com> wrote:

I rebuilt the wiki from a new fresh version using drag and drop and copy and paste ... but I'd still like to know what went wrong.

--
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/4818a8e8-4033-4d3d-87dc-11113103848f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

cpjobling

unread,
Jan 15, 2018, 9:07:55 AM1/15/18
to TiddlyWiki
Hi Jeremy

I think I replied privately and as I can't see my reply, I am assuming it didn't work!

My wiki is under version control and the commit at which it started to fail was this one: https://github.com/cpjobling/journal.cpjobling.net/commit/d9ca5042ddb4a6c916393a45286f54ff656523ac.

You can easily spot the problem tiddlers by looking at More> All.

There are a number of attempts to correct this between the 10th January commit and the version where I rebuilt the wiki which was https://github.com/cpjobling/journal.cpjobling.net/commit/8af7a86613f16eb75a8a6029296209957be71af5.

My strategy was to copy the content of the tiddlers that had become file links into new tiddlers, delete the file tiddler, save the recovered tiddly. The tiddlywiki --server log implied that the right file was saved, but when the server was restarted, it would have become an external file again.

If I didn't delete the file, before saving the recovered tiddler, the recovered tiddler would get saved as "Tiddler Name 1.tld"

Chris
Reply all
Reply to author
Forward
0 new messages