tiddlyhost / tiddlyhost-com

Rails application for creating and hosting TiddlyWiki sites, plus resources for deploying it to https://tiddlyhost.com/
Other
184 stars 17 forks source link

TiddlyHost Won't Save #345

Open LordPalandus opened 1 month ago

LordPalandus commented 1 month ago

The issue first started up last week. I hit the red circle to save, and it won't save. No matter how long I wait. Sometimes it gives an error other times no error at all, for hours. Literally, not figuratively.

Before that, it would save in about 5-10 seconds. Sometimes faster, rarely more than 15 seconds.

As such, I've not been able to work on my sites, for fear I might lose data when I hit save and have a power outage.

Pages open up fast enough and can open up tiddlers within a tiddlywiki without issue, but saving changes, takes forever.

The times it does give an error, it says there was a timeout. Not sure why that would be as I have a 300 megabit down, and 75 megabit up connection, and the only time I've remembered getting timeouts was back in the olden days of 1 megabit down connections DSL.

sobjornstad commented 1 month ago

I've been trying to set up some stuff in TiddlyHost this week and it seems to me like the servers are under very heavy load right now – quite a few things have just taken way longer than they ought to (e.g., the “verify your email” message when I registered a new account took >30 minutes to arrive). Maybe worth looking into.

simonbaird commented 1 month ago

Thanks for the report. I'm not sure what the cause is, but I will look into it. Can you share what version of TiddlyWiki and what browser you're using?

LordPalandus commented 1 month ago

I'm using Windows 8.1 and Google Chrome. Didn't have issues with save/load a few weeks ago, but can't reliably save/load right now, so I've been using Obsidian locally to do the work, I'd like to be doing on TiddlyWiki/Host.

vettexl commented 3 weeks ago

chiming in on this. tiddlywiki 5.3.1 using Edge 128.0.2739.54

simonbaird commented 3 weeks ago

So I can't reproduce this. In my experience saving takes a few seconds. Also I can't see any server-side errors that might be related to a save failure.

One theory is that this problem is specific to Windows users. Has any non-Windows user seen this problem? Are you able to try to reproduce it on a non-Windows computer, e.g. a Mac and see what happens. Does it happen across different networks (e.g. office, home, Starbucks), and across different computers?

Another question: Is it happening for any site or just certain sites? E.g. if you create a brand new site and click save, does it save quickly at that point? If you're trying this, could you also try with a Feather Wiki site to see if you're seeing save timeouts there as well.

Thanks very much for filing this and for your patience and persistence. I'd really like to figure out what's going on here.

vettexl commented 3 weeks ago

Started attempting to save around 21:30 PDT last night and finally got it to work around 22:05 PDT I kept the window open and clicked on the red Save icon multiple times, eventually getting an error message once.

I will try again on my Windows machine and if not then I will attempt from a Linux VM

I know of at least three other people that have been having the same issue maybe it has to do with the .tid files we're trying to upload?

haven't tried a new site, will try that next time

i'm no developer so this is a bit out of my field

vettexl commented 3 weeks ago

hi Simon.

I tried a new TiddyWiki (5.3.5) site and even just changing the theme took several minutes (but eventually worked), nevermind uploading any tiddlers tested the same using LibreWolf 125.0.3-1 on Windows, same save delay

I then tested with Firefox 130.0 on Ubuntu 22.04.4 LTS and saving worked immediately tested the same using Edge 128.0.2739.67 on macOS Sonoma 14.5, saved immediately

something to do with Windows...

simonbaird commented 3 weeks ago

Thanks, that's really helpful.

LordPalandus commented 3 weeks ago

Just tried saving.

Timed out after about 10 minutes and gave the error for timeout.

Tried with a brand new wiki. It saves fine the first time, within 5 seconds or so, but the second save without closing the browser, it times out again after roughly 10 minutes. And its only a single character changed, yet still times out.

Tested out on Windows 8.1. Its possible the site no longer works for Windows 8.1. I had moved everything to Obsidian for local storage, as a temporary solution 2 weeks ago, but it looks like it will need to be a permanent solution until I get a new computer.

simonbaird commented 3 weeks ago

Here's one thing to try.

In the settings page for a site there's an option under "Advanced settings" called "Use the legacy upload saver for TiddlyWiki versions 5.2.3 and higher". Try checking that box, clicking "Update" to save the settings, and then try again with the saving and see if it makes any difference.

The goal is to see if the older "upload" saver works any better than the newer "put" saver. (See here for info about the two different save methods.)

vettexl commented 3 weeks ago

the issue exists even without uploading anything as i mentioned earlier when i tried only changing theme settings just now i tried only changing the title of the tiddlywiki and it just hangs this was now with Arc browser 1.18.0.48077 (0000), Chromium Engine Version 128.0.6613.120 with Windows 10

this evening in Ubuntu i uploaded and saved files with the new "put" saver within seconds that will have to be my workaround for now until you find the culprit

simonbaird commented 3 weeks ago

Did you try the "Use the legacy upload saver for TiddlyWiki versions 5.2.3 and higher" option @vettexl ?

LordPalandus commented 3 weeks ago

Could not find this legacy upload saver under Advanced or Settings.

I went to the control panel, hit advanced tab and checked under cascades, editor types, etc...

Then on the top bar I went to Settings, between Appearance and Saving, and couldn't find it there either.

There was also no setting in Saving called this either.

So... where am I supposed to look for it, under tiddlyhost?

simonbaird commented 3 weeks ago

Yeah, sorry I didn't explain it well. It's in the site settings for a site in Tiddlyhost, not in the TiddlyWiki itself. If you go to https://tiddlyhost.com/sites and click the first button in the "Actions" column it will take you there. Or you can click the ... button and it's the top item.

LordPalandus commented 3 weeks ago

So it saves instantly (less than half a second) now with that change suggested. Tested it 5 times.

However, every time I hit save, I now download a file "tiddlywiki.html"

Now to delete 5 files.

vettexl commented 3 weeks ago

yes i tried that @simonbaird it did not seem to change anything for the better

simonbaird commented 3 weeks ago

So it saves instantly (less than half a second) now with that change suggested. Tested it 5 times.

However, every time I hit save, I now download a file "tiddlywiki.html"

Now to delete 5 files.

Beware, usually if you're downloading a file on save, it means you're not saving to Tiddlyhost.

Are you using a version of TiddlyWiki 5.1.23 or older? If so then you need to do one more thing so the upload save (potentially) works, see the details here.

LordPalandus commented 2 weeks ago

So...

I checked this setting = Use the legacy "upload" saver for TiddlyWiki versions 5.2.3 and higher

and the site's version is = 5.3.3

And you were right, the change I made did not get saved. Just downloaded the file.

Guess it looks like Obsidian will be my permanent solution, until I can upgrade to latest windows.

jalilahlee commented 2 weeks ago

Hi I am not a technical user of Tiddlyhost but I have been using it for about 3-4 years. about 2 months ago, I have started to face the same problem trying to save my work and it has most times errored out and a few times saved a basic file after more than 30minutes waiting.

I am running Tiddlyhost on Windows 10 Pro version 22H2 tested a new TiddlyWiki (self-contained) 5.3.5 vanilla file.

I have selected the "Use the legacy upload saver for TiddlyWiki versions 5.2.3 and higher" option and it still does not work. I have tried it on both Chrome and Firefox.

Amateuristically, I kinda suspect some WIndows update conflict?

(p.s. Do we even need Timimi extension for saving tiddlywikis now?)

Please help.

fu-sen commented 2 weeks ago

Hi, I was reporting this issue here: https://github.com/simonbaird/tiddlyhost/issues/342#issuecomment-2297737704

Since then I've done a few things and learned:

My main PC is also Windows 10, but this problem occurs regardless of the OS. This problem occurs regardless of which version of TiddlyWiki I'm using.