> ## Documentation Index
> Fetch the complete documentation index at: https://help.pixwel.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Troubleshooting

# API troubleshooting

This is just a brain dump of various problems that have been encountered with the API and their solutions.

\## Admin can't see anything

The administrator has most likely dropped out of the `admin` group in the Groups collection in MongoDB.

## Error submitting work requests

If you get something like:

```json theme={null}
{"type":"NetworkException","message":"Bayeux handshake failure"}
```

Make sure the [Faye](/faye) server is running. Locally it comes up with the docker-compose stack; to start it by hand:

```bash theme={null}
cd faye && node faye-server.js
```

## \$links doesn't have what it should in it

This sounds like a problem with the cache - see [caching](/caching) for more details.

## Tests aren't running

Usually means it can't create a directory in the cache. Try:

```bash theme={null}
sudo mkdir -p /tmp/resources/tmp/tests/test_app/source
sudo chmod -R 777 /tmp/resources
```

You may also with to do `db.dropDatabase();` on your local test database in MongoDB. If a test has crashed, it may have left partial test data in there.

## Timezone database is corrupt - this should never happen

Disable xdebug and restart nginx. (not 100% sure this is the cause but it seems to resolve it)

## Auto running Kahlan tests

Nodemon does the job:

```bash theme={null}
sudo pnpm install -g nodemon
nodemon -L --exec "bin/kahlan" -e php
```

Don't forget the -L flag or it will only detect changes made from WITHIN the VM.

If you combine this with using `xdescribe` for a block of tests, then you can have a nice fast test autorunner!

***

[Back to docs index](/) | [API docs index](/api/overview) | [Next page in recommended reading order >>](/ssl)
