TiddlyServer icon indicating copy to clipboard operation
TiddlyServer copied to clipboard

Problems getting started

Open CarbonMan opened this issue 7 years ago • 5 comments
trafficstars

Trying to get the basic tiddlyServer to run by following the referenced tutorial

I have been able to run up the TiddlyServer and can navigate through the tree.

I created a blank tiddlywiki directory with

tiddlywiki --init test

When I navigate to that directory using TiddlyServer I get this message

The Tiddlywiki data folder failed to load. The error has been logged to the terminal. To try again, use ?reload=true after making any necessary corrections.

I get this logged to the console;

DAT 2017-11-28 17:41:15 error starting /learning/tiddlyServer/data at d:\learning\tiddlyServer\data: Error: Cannot find module '$:/core/modules/commands/server.js'

CarbonMan avatar Nov 28 '17 06:11 CarbonMan

Did you use the bundled zip file from https://github.com/Arlen22/TiddlyServer/releases/tag/2.0.8?

Arlen22 avatar Nov 30 '17 05:11 Arlen22

The problem is that the program expects a folder called tiddlywiki to be in the main directory (along with assets, lib, etc). As over version 2.0.9 (which doesn't appear to be working) that folder is there. However in 2.0.8 (just cloning the repo not downloading the bundled zip) does not have the tiddlywiki folder.

Here's the best way to fix this (for 2.0.8). From the main directory run npm install -- this pulls down the tiddlywiki folder run cp node_modules/tiddlywiki/ tiddlywiki -- this copys the folder from modules to the main directory.

Here's a quick script to get you up and running until this is fixed:

git clone https://github.com/Arlen22/TiddlyServer.git
cd TiddlyServer/
git checkout 2.0.8
npm install
cp -r node_modules/tiddlywiki/ tiddlywiki
touch settings.json ##this now needs to be filled with appropriate settings

Ultimately, I think the issue is somewhere in the code there's a hard link instead of just pointing to the node_modules folder.

RayBB avatar Dec 09 '17 06:12 RayBB

2.0.9 works on Windows. There was a file with incorrect casing. I fixed it on master this morning.

Arlen22 avatar Dec 11 '17 03:12 Arlen22

Also, when creating data folders, the best command to use is tiddlywiki.js --init server. If no folder path is specified before the --init command, the current directory is used as the destination folder. The argument server tells TiddlyWiki to copy the contents of the editions/server folder into the destination folder.

Arlen22 avatar Dec 11 '17 04:12 Arlen22

Sorry I have been away, I'll check this out when I get a chance. Thanks.

On Mon, Dec 11, 2017 at 3:08 PM, Arlen22 [email protected] wrote:

Also, when creating data folders, the best command to use is tiddlywiki.js --init server. If no folder path is specified before the --init command, the current directory is used as the destination folder. The argument server tells TiddlyWiki to copy the contents of the editions/server folder into the destination folder.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Arlen22/TiddlyServer/issues/22#issuecomment-350617963, or mute the thread https://github.com/notifications/unsubscribe-auth/AE-C0Wksuyopy1zSbv3jVa82bzD1Ytkfks5s_Kq_gaJpZM4QsxNt .

CarbonMan avatar Dec 11 '17 19:12 CarbonMan