Skip to content

Commit

Permalink
docs: document how to fix db error
Browse files Browse the repository at this point in the history
  • Loading branch information
rokasramas committed Feb 26, 2021
1 parent 1541ab8 commit 64c026c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Troubleshooting

## db.error/not-an-entity

The error message looks like this:

```
Caused by: java.lang.IllegalArgumentException: :db.error/not-an-entity Unable to resolve entity: :document-plan/data-sample-method
```

This means that new version of Accelerated Text was run which included changes to database schema.

There are several ways this can be fixed. If you don't need to recover existing document plans, just run `make delete-datomic-volume` command and restart Accelerated Text, otherwise:

1. Revert to previous version by editing `docker-compose.yml` `acc-text-api` image tag, for example, by changing `acctext/api:latest` to `acctext/api:1541ab8fbba68a86d01c085d7a6e2577db75b1f0` (all available tags can be found [here](https://hub.docker.com/r/acctext/api)).
2. [Export document plans](export.md)
3. run `make delete-datomic-volume`
4. Restore `acc-text-api` image tag to `latest`
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ nav:
- Deployment: deployment.md
- NLG API: nlg-api.md
- GraphQL API: graphql.md
- Troubleshooting: troubleshooting.md
- Contributing: contributing.md
markdown_extensions:
- toc
Expand Down

0 comments on commit 64c026c

Please sign in to comment.