Skip to content

Commit

Permalink
add more helpful notes on kobo-install
Browse files Browse the repository at this point in the history
  • Loading branch information
magicznyleszek committed Nov 13, 2023
1 parent 9a17d2c commit 8ddfeda
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion docs/_articles/kpi-frontend-development-troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,23 @@ Sometimes `./run.py` is stuck in a loop of containters restaring endlessly. This
Sometimes the error is a bit different, if so try some of these tricks:
- tell database that all migrations are applied: `./manage.py migrate kpi --fake` and then go back few migrations and re-run migrations
- go back few migrations: `./manage.py migrate kpi 0001` (you can put any migration identifier number here)
- if you get kicked out of kpi container, try `./run.py -cf run --rm kpi bash` (this one will not get ejected, and you can fix issues from within)

### kobo-install how to enter container that is self restarting

If you ever get kicked out of a container, one of the following commands will get you save and not ejected. Use these if you need to fix something from within the container.


For Front end containers use:

```
./run.py -cf run --rm <container name> bash
```

For Back end containers use:

```
./run.py -cb run --rm <container name> bash
```

### kobo-install re-run "cannot stop container"

Expand Down Expand Up @@ -144,3 +160,20 @@ executor failed running [/bin/sh -c apt-get -qq update && apt-get -qq -y ins
ERROR: Service 'kpi' failed to build : Build failed
An error has occurred
```

### kobo-install has access denied error for `koboform_base`

If you see this:

```
./run.py --build
Error response from daemon: pull access denied for kobotoolbox/koboform_base, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Using default tag: latest
An error has occurred
```

Try this:

```
./run.py -cf build --no-cache --force-rm kobocat
```

0 comments on commit 8ddfeda

Please sign in to comment.