[critical] Changing databases not working

Hello,
I have seen the earlier similar post but I believe my issue is different.

I have used Noteself quite happily for about two months, and I have different notebooks that I create/access simply by changing the Database name in the $:/ControlPanel. I have named my notebooks “MyNotebook”, “MyNotebook2”, “math”, and “chemistry”. I have not messed with anything below that (no CouchDB for me).

Today, when I opened Noteself by clicking the bookmarked html file that I always use (file:///C:/Users/EricX21/Desktop/notebooks.html), an version of “MyNotebook” (the very first notebook that I created) opened, but with no tiddlers. There are some italicized “open” titles of tiddlers I wrote (but none of them exist, hence italicized).

I cannot switch the database to any other of my notebooks, such as “MyNotebook2” (my main notebook and the one I had open last before this problem occurred). When I try to, I enter “MyNotebook2” into the name input, and press save config, and then when the page reloads it simply continues to displays a spooky and empty “MyNotebook” copy with the database name parameter set to “MyNotebook”.

This is confusing because I haven’t cleared my cache or anything, my notebooks were working fine and now they won’t switch. LocalStorage in Chrome is showing that the other notebooks exist, I just can’t access them for some reason. Here’s the Dev Tools display of LocalStorage:

.

Please help me save my notebooks! How can I access them again? Fingers crossed there’s a quick fix.

Let’s see if we can see what’s happening. Please, paste the following code on your console (the second tab on the left in your screenshot) press enter and paste here the result:

$TPouch.config._configDB.allDocs({include_docs: true})
.then(x => JSON.stringify(x,null,2)).then(console.log)

Oh hmm, the console actually displays a lot of errors on loading, that’s probably the issue.
Console output:

Something went wrong during plugin injection  n
notebooks.html:71 Allowing TW boot itself....
$:/core/modules/utils/logger.js:33  TiddlyPouch:config: Initializing config module 
$:/core/modules/utils/logger.js:33  TiddlyPouch:config: Config read from DB - ERROR n 
favicon.ico:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
$:/core/modules/utils/logger.js:33  TiddlyPouch:config: Persist config to DB - ERROR n 
$:/core/modules/utils/logger.js:33  TiddlyPouch:config: Configuration startup finished Object 
$:/core/modules/utils/logger.js:33  PouchStartup: Client side dbs created 
$:/core/modules/utils/logger.js:33  DbStore:MyNotebook: Creating indexskinny_tiddlers... 
$:/core/modules/utils/logger.js:33  DbStore:MyNotebook: Creating indexstartup_tiddlers... 
$:/core/modules/utils/logger.js:33  DbStore:MyNotebook: Index skinny_tiddlers exists already 
$:/core/modules/utils/logger.js:33  DbStore:MyNotebook: Index startup_tiddlers exists already 
$:/core/modules/utils/logger.js:33  DbStore:MyNotebook: Retrieving tiddler  $:/StoryList  from database 
$:/core/modules/utils/logger.js:33  DbStore:MyNotebook: Converting from  Object 
$:/core/modules/utils/logger.js:33  PouchStartup: StoryList was already in database  Object 
$:/core/modules/utils/logger.js:33  DbStore:MyNotebook: Retrieving tiddler  $:/DefaultTiddlers  from database 
$:/core/modules/utils/logger.js:33  DbStore:MyNotebook: Error getting tiddler $:/DefaultTiddlers from DB n 
$:/core/modules/utils/logger.js:33  PouchStartup: Error retrieving StoryList or DefaultTiddlers 
$:/core/modules/utils/logger.js:33  PouchStartup: n 
$:/core/modules/utils/logger.js:33  PouchStartup: Client side dbs initialized 
$:/core/modules/utils/logger.js:33  performance: Execute $tw.perf.log(); to see filter execution timings 
$:/core/modules/utils/logger.js:33  syncer-browser: Retrieving skinny tiddler list 
2$:/plugins/snowgoon88/edit-comptext/completion.js:121 ==Completion::creation
$:/core/modules/utils/logger.js:33  DbStore:MyNotebook: Converting from  Object 
$:/core/modules/utils/logger.js:33  syncer-browser: Dispatching 'save' task: $:/StoryList 
$:/core/modules/utils/logger.js:33  DbStore:MyNotebook: Saving  Object 
$:/core/modules/utils/logger.js:33  DbStore:MyNotebook: Upserted document:  Object 
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/EricX21/Desktop/maps/danielo515/tiddlypouch/boot/tpouch-boot.js.map: System error: net::ERR_FILE_NOT_FOUND
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/EricX21/Desktop/$:/plugins/danielo515/tiddlypouch/startup/maps/danielo515/tiddlypouch/startup/remove-splash.js.map: System error: net::ERR_FILE_NOT_FOUND
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/EricX21/Desktop/$:/plugins/danielo515/tiddlypouch/startup/maps/danielo515/tiddlypouch/startup/startup-config.js.map: System error: net::ERR_FILE_NOT_FOUND
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/EricX21/Desktop/$:/plugins/danielo515/tiddlypouch/startup/maps/danielo515/tiddlypouch/startup/startup-event_listeners.js.map: System error: net::ERR_FILE_NOT_FOUND
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/EricX21/Desktop/$:/plugins/danielo515/tiddlypouch/startup/maps/danielo515/tiddlypouch/startup/startup-pouch.js.map: System error: net::ERR_FILE_NOT_FOUND
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/EricX21/Desktop/$:/plugins/danielo515/tiddlypouch/startup/maps/danielo515/tiddlypouch/startup/startup-syncer.js.map: System error: net::ERR_FILE_NOT_FOUND
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/EricX21/Desktop/$:/plugins/danielo515/tiddlypouch/startup/maps/danielo515/tiddlypouch/startup/startup-utils.js.map: System error: net::ERR_FILE_NOT_FOUND
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/EricX21/Desktop/$:/plugins/danielo515/tiddlypouch/maps/danielo515/tiddlypouch/utils.js.map: System error: net::ERR_FILE_NOT_FOUND
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/EricX21/Desktop/$:/plugins/danielo515/tiddlypouch/utils/maps/danielo515/tiddlypouch/Logger.js.map: System error: net::ERR_FILE_NOT_FOUND
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/EricX21/Desktop/$:/plugins/danielo515/tiddlypouch/ui/maps/danielo515/tiddlypouch/ui/config.js.map: System error: net::ERR_FILE_NOT_FOUND
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/EricX21/Desktop/$:/plugins/danielo515/tiddlypouch/config/maps/danielo515/tiddlypouch/config/single-db-config.js.map: System error: net::ERR_FILE_NOT_FOUND
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/EricX21/Desktop/$:/plugins/danielo515/tiddlypouch/databases/maps/danielo515/tiddlypouch/databases/DbStore.factory.js.map: System error: net::ERR_FILE_NOT_FOUND
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/EricX21/Desktop/$:/plugins/danielo515/tiddlypouch/databases/maps/danielo515/tiddlypouch/databases/DbStore.js.map: System error: net::ERR_FILE_NOT_FOUND
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/EricX21/Desktop/$:/plugins/danielo515/tiddlypouch/databases/converters/maps/danielo515/tiddlypouch/databases/converters/tiddler.js.map: System error: net::ERR_FILE_NOT_FOUND
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/EricX21/Desktop/$:/plugins/danielo515/tiddlypouch/databases/maps/danielo515/tiddlypouch/databases/converter.js.map: System error: net::ERR_FILE_NOT_FOUND
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/EricX21/Desktop/$:/plugins/danielo515/tiddlypouch/databases/converters/maps/danielo515/tiddlypouch/databases/converters/plugins.js.map: System error: net::ERR_FILE_NOT_FOUND
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/EricX21/Desktop/$:/plugins/danielo515/tiddlypouch/databases/maps/danielo515/tiddlypouch/databases/router.js.map: System error: net::ERR_FILE_NOT_FOUND
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/EricX21/Desktop/$:/plugins/danielo515/tiddlypouch/databases/maps/danielo515/tiddlypouch/databases/routes.js.map: System error: net::ERR_FILE_NOT_FOUND
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/EricX21/Desktop/$:/plugins/danielo515/tiddlypouch/maps/danielo515/tiddlypouch/pouchdbadaptor.js.map: System error: net::ERR_FILE_NOT_FOUND
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/EricX21/Desktop/$:/plugins/danielo515/tiddlypouch/savers/maps/danielo515/tiddlypouch/savers/db-saver.js.map: System error: net::ERR_FILE_NOT_FOUND

And when I enter the code snippet, the output is:

Promise {}proto: Promise[[PromiseStatus]]: “fulfilled”[[PromiseValue]]: undefined
{
“total_rows”: 0,
“offset”: 0,
“rows”: []
}

After that there’s a periodic (maybe every 20 seconds) repeat of these two messages:

syncer-browser: Retrieving skinny tiddler list 
$:/core/modules/utils/logger.js:33  DbStore:MyNotebook: Converting from  {_id: "$:/StoryList", fields: {…}}

Have you updated your tiddlywiki version or your browser recently?

Hello!,
I have the same issue (with both offline and online-self-hosted versions). The only version that remains working for me is the official online one.

Something went wrong during plugin injection  n
(index):71 Allowing TW boot itself....
$:/core/modules/utils/logger.js:33  TiddlyPouch:config: Initializing config module 
$:/core/modules/utils/logger.js:33  TiddlyPouch:config: Config read from DB - ERROR nerror: truemessage: "missing"name: "not_found"reason: "missing"status: 404__proto__: Error 
$:/core/modules/utils/logger.js:33  TiddlyPouch:config: Persist config to DB - ERROR n 
$:/core/modules/utils/logger.js:33  TiddlyPouch:config: Configuration startup finished Object 
$:/core/modules/utils/logger.js:33  PouchStartup: Client side dbs created 
$:/core/modules/utils/logger.js:33  DbStore:MyNotebook: Creating indexskinny_tiddlers... 
$:/core/modules/utils/logger.js:33  DbStore:MyNotebook: Creating indexstartup_tiddlers... 
(index):75 sw failure TypeError: Failed to register a ServiceWorker for scope ('https://itsishmaelillo.github.io/') with script ('https://itsishmaelillo.github.io/sw.js'): A bad HTTP response code (404) was received when fetching the script.
$:/core/modules/utils/logger.js:33  DbStore:MyNotebook: Index skinny_tiddlers exists already 
$:/core/modules/utils/logger.js:33  DbStore:MyNotebook: Index startup_tiddlers exists already 
$:/core/modules/utils/logger.js:33  DbStore:MyNotebook: Retrieving tiddler  $:/StoryList  from database 
$:/core/modules/utils/logger.js:33  DbStore:MyNotebook: Converting from  Object 
$:/core/modules/utils/logger.js:33  PouchStartup: StoryList was already in database  Object 
$:/core/modules/utils/logger.js:33  DbStore:MyNotebook: Retrieving tiddler  $:/DefaultTiddlers  from database 
$:/core/modules/utils/logger.js:33  DbStore:MyNotebook: Error getting tiddler $:/DefaultTiddlers from DB n 
$:/core/modules/utils/logger.js:33  PouchStartup: Error retrieving StoryList or DefaultTiddlers 
$:/core/modules/utils/logger.js:33  PouchStartup: n 
$:/core/modules/utils/logger.js:33  PouchStartup: Client side dbs initialized 
$:/core/modules/utils/logger.js:33  performance: Execute $tw.perf.log(); to see filter execution timings 
$:/core/modules/utils/logger.js:33  syncer-browser: Retrieving skinny tiddler list 
$:/plugins/snowgoon88/edit-comptext/completion.js:121 ==Completion::creation
/favicon.ico:1 Failed to load resource: the server responded with a status of 404 ()
(index):1 Failed to load resource: the server responded with a status of 405 ()
$:/core/modules/utils/logger.js:33  DbStore:MyNotebook: Converting from  Objectfields: {title: "$:/StoryList", list: "GettingStarted", type: "text/vnd.tiddlywiki", revision: "2-16caebf266b3582eedea18af5547f6c2"}_id: "$:/StoryList"__proto__: Object 
$:/core/modules/utils/logger.js:33  syncer-browser: Dispatching 'save' task: $:/StoryList 
$:/core/modules/utils/logger.js:33  DbStore:MyNotebook: Saving  Object 
$:/core/modules/utils/logger.js:33  DbStore:MyNotebook: Upserted document:  Objectid: "$:/StoryList"ok: truerev: "3-1daf5d70df2c641fa8d9528bbf84b276"__proto__: Object 
DevTools failed to load SourceMap: Could not load content for https://itsishmaelillo.github.io/maps/danielo515/tiddlypouch/boot/tpouch-boot.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://itsishmaelillo.github.io/$:/plugins/danielo515/tiddlypouch/startup/maps/danielo515/tiddlypouch/startup/startup-pouch.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://itsishmaelillo.github.io/$:/plugins/danielo515/tiddlypouch/startup/maps/danielo515/tiddlypouch/startup/startup-config.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://itsishmaelillo.github.io/$:/plugins/danielo515/tiddlypouch/startup/maps/danielo515/tiddlypouch/startup/remove-splash.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://itsishmaelillo.github.io/$:/plugins/danielo515/tiddlypouch/startup/maps/danielo515/tiddlypouch/startup/startup-utils.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://itsishmaelillo.github.io/$:/plugins/danielo515/tiddlypouch/startup/maps/danielo515/tiddlypouch/startup/startup-syncer.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://itsishmaelillo.github.io/$:/plugins/danielo515/tiddlypouch/startup/maps/danielo515/tiddlypouch/startup/startup-event_listeners.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://itsishmaelillo.github.io/$:/plugins/danielo515/tiddlypouch/utils/maps/danielo515/tiddlypouch/Logger.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://itsishmaelillo.github.io/$:/plugins/danielo515/tiddlypouch/maps/danielo515/tiddlypouch/utils.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://itsishmaelillo.github.io/$:/plugins/danielo515/tiddlypouch/ui/maps/danielo515/tiddlypouch/ui/config.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://itsishmaelillo.github.io/$:/plugins/danielo515/tiddlypouch/databases/converters/maps/danielo515/tiddlypouch/databases/converters/tiddler.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://itsishmaelillo.github.io/$:/plugins/danielo515/tiddlypouch/databases/maps/danielo515/tiddlypouch/databases/converter.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://itsishmaelillo.github.io/$:/plugins/danielo515/tiddlypouch/databases/maps/danielo515/tiddlypouch/databases/router.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://itsishmaelillo.github.io/$:/plugins/danielo515/tiddlypouch/config/maps/danielo515/tiddlypouch/config/single-db-config.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://itsishmaelillo.github.io/$:/plugins/danielo515/tiddlypouch/databases/converters/maps/danielo515/tiddlypouch/databases/converters/plugins.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://itsishmaelillo.github.io/$:/plugins/danielo515/tiddlypouch/databases/maps/danielo515/tiddlypouch/databases/DbStore.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://itsishmaelillo.github.io/$:/plugins/danielo515/tiddlypouch/savers/maps/danielo515/tiddlypouch/savers/db-saver.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://itsishmaelillo.github.io/$:/plugins/danielo515/tiddlypouch/databases/maps/danielo515/tiddlypouch/databases/DbStore.factory.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://itsishmaelillo.github.io/$:/plugins/danielo515/tiddlypouch/databases/maps/danielo515/tiddlypouch/databases/routes.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://itsishmaelillo.github.io/$:/plugins/danielo515/tiddlypouch/maps/danielo515/tiddlypouch/pouchdbadaptor.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
$TPouch.config._configDB.allDocs({include_docs: true})
.then(x => JSON.stringify(x,null,2)).then(console.log)
Promise {<pending>}
{
  "total_rows": 0,
  "offset": 0,
  "rows": []
}
$:/core/modules/utils/logger.js:33  syncer-browser: Retrieving skinny tiddler list 
$:/core/modules/utils/logger.js:33  DbStore:MyNotebook: Converting from  {_id: "$:/StoryList", fields: {…}}fields: {title: "$:/StoryList", list: "GettingStarted", type: "text/vnd.tiddlywiki", revision: "3-1daf5d70df2c641fa8d9528bbf84b276"}_id: "$:/StoryList"__proto__: Object

Both of you have, for some reason, the config database empty. Can you try creating a new notebook with the same name the ones you are missing? So, just name it exactly the same (including lower and upper case letters), save and reload. That should make Noteself try to load them

Hey, the way I’ve created new notebooks has always been just to change the Name parameter in the TiddlyPouch tab to what I want to name it, and then clicking the “save config”, so accessing an existing notebook called “math” is the same as creating a new notebook called “math”. So I’ve been carrying out the prescribed steps each time I try to switch already.

Even when I try to create other notebooks through a new name, once I reload it continues to display a database name of “MyNotebook”.

No differences in other browsers, and there doesn’t seem to be any update to Chrome or abnormal browser activity that occurred on August 2nd, when this error first appeared.

It doesn’t work: when I change the notebook name (or the url, or the databae name) and click on save config, it reloads with notebook name “My notebook” and both sync configurations empty.

I thought maybe an extension was getting in the way of things, but I fresh installed and firefox opera with no extensions and nothing changes.

This log appears on the console when i try to change the notebook name:

 TiddlyPouch:config: Persist config to DB - ERROR n {status: 409, name: "conflict", message: "Document update conflict", error: true}

I have downloaded a new copy of Noteself and I am starting over – the error persists at first in the new copy, but if you switch to another notebook name it will actually work – there just won’t be anything in there.