Skip to content

Instantly share code, notes, and snippets.

@wolfgangmm
Last active July 16, 2020 12:59
Show Gist options
  • Save wolfgangmm/5880377 to your computer and use it in GitHub Desktop.
Save wolfgangmm/5880377 to your computer and use it in GitHub Desktop.
eXist-db: reinstall dashboard and shared-resources if broken. Run the following query through eXide - or if this fails: the Java admin client.
repo:remove("http://exist-db.org/apps/shared"),
repo:remove("http://exist-db.org/apps/dashboard"),
repo:install-and-deploy("http://exist-db.org/apps/shared", "http://exist-db.org/exist/apps/public-repo/find"),
repo:install-and-deploy("http://exist-db.org/apps/dashboard", "http://exist-db.org/exist/apps/public-repo/find")
@cyberxml
Copy link

Thanks! Fixed "The actual return type does not match the sequence type" errors thrown by view.xql. Used slightly modified version to recover corrupt install by command line on headless development server, replacing internal quotes with single ticks for command line parsing.

echo "repo:remove('http://exist-db.org/apps/dashboard')" | ./bin/client.sh -s -u admin -P nothispw -x

and

echo "repo:install-and-deploy('http://exist-db.org/apps/dashboard', 'http://exist-db.org/exist/apps/public-repo/find')" | ./bin/client.sh -s -u admin -P notthispw -x

@dizzzz
Copy link

dizzzz commented Aug 28, 2015

note... @wolf suggestion requires a network connection....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment