MindTouch Developer Center > Deki > FAQ > Troubleshooting > How do I...Troubleshoot 'Site settings could not be loaded'?

How do I...Troubleshoot 'Site settings could not be loaded'?

Table of contents
  1. 1. Restoring the config table

If your wiki gets into an irregular state and starts throwing this error:

Your site settings could not be loaded - this could affect your wiki's
operations. Please check to ensure that Dekihost is running. 

To troubleshoot, visit /@api/deki/@about - (if your site is http://deki-hayes/, then it'd be http://deki-hayes/@api/deki/@about/)

  1. If you see a 503 Service Temporarily Unavailable, then Dekihost is not running. Try restarting Dekihost: /etc/init.d/dekihost restart (You may also need to restart Apache so that mod_proxy picks up that Dekihost is running). Check errors in /var/log/deki-api.log.
  2. If you see Internal Error (500) - wiki 'default' has failed to initialize or did not start up properly: Initialization exception: Missing api-key for wiki instance Parameter name: api-key then your config table got wiped.
  3. If /@api/deki/@about works, but your site still throws a 500 error when you try to access your site, follow these instructions:
    1. Open up LocalSettings.php and find the value associated with $wgDekiApiKey (it will be a long string of text).
    2. Access http://your-uri/@api/deki/site/settings?apikey={API-KEY-VALUE-HERE)
    3. See what error message is returned - this will help us figure out what the exact problem is
  4. If you only see this error overnight, or after a long period of idle, and then a refresh makes it go away, this is a bug that is being worked on. There are workarounds on the bug report.

Restoring the config table

First, go to /maintenance/tables.sql and search for the phrase "insert into `config`". You'll see a list of SQL inserts. Go into mySQL and run these in your database to repopulate the default values. Then, go to /LocalSettings.php and find the $wgDekiApiKey value. You'll need to manually generate two mySQL insert commands which contains your super-secret API key and the server path to your attachments:

insert into `config` (`config_key`, `config_value`) values('security/api-key','SUPER-SECRET-API-KEY-HERE');
insert into `config` (`config_key`, `config_value`) values('storage/fs/path','/path/to/deki-wiki/attachments');

Note that the path to your attachments will be to the /attachments/ folder in Deki Wiki.

Run this and your config table should be restored. If you can find a way to reproduce config table crashes reliably, please file the issue at our bug tracker: http://bugs.opengarden.org.

Tag page
Viewing 3 of 3 comments: view all
The following forum posts have some help on the issue:
http://forums.opengarden.org/showthread.php?p=13613&highlight=GetEncoding#post13613
Posted 14:04, 3 May 2008
If you get a 404 error: http://forums.opengarden.org/showthread.php?t=2130&page=3
Posted 09:11, 14 May 2008
Sometimes just rebooting the server fixes the issue.
Posted 14:21, 14 Oct 2008
Viewing 3 of 3 comments: view all
You must login to post a comment.
Powered by MindTouch Deki v.8.08.1a