# Troubleshooting (https://docs.cochl.ai/docs/core/troubleshooting)



Find the symptom you’re seeing, then follow the link to the page that explains it.

| Symptom                                                                                             | Where it’s explained                                                                                                                                                                                                                                |
| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| An error while running a sample (Python or C++)                                                     | [Samples](https://docs.cochl.ai/docs/core/samples) — the **Troubleshooting** step of each sample                                                                                                                                                                         |
| `ImportError: … version 'GLIBC_2.34' not found` when importing NumPy (Python SDK v1.6.0 or earlier) | The v1.6.0 and earlier Python SDK used NumPy, and NumPy’s prebuilt wheel can require a newer glibc than your system has. Build NumPy from source instead: `pip install numpy==1.26.4 --no-binary numpy`. The v1.6.1 wheel does not depend on NumPy. |
| A custom sound dataset upload fails, or training stalls or ends in `FAILED`                         | [Custom sound](https://docs.cochl.ai/docs/core/sound-event-detection/custom-sound) — **Troubleshooting**                                                                                                                                                                 |
| The license daemon won’t install or start, or the SDK can’t reach it (C++ and Python)               | [License daemon](#license-daemon) below                                                                                                                                                                                                             |
| Checking whether your OS, CPU, or GPU is supported                                                  | [Getting Started → supported platforms](https://docs.cochl.ai/docs/core/getting-started#1-list-of-supported-platforms) · [FAQs → supported environments](https://docs.cochl.ai/docs/core/faq#faq-3-2)                                                                                         |
| Checking hardware requirements, or monitoring resource use                                          | [FAQs → hardware resources](https://docs.cochl.ai/docs/core/faq#faq-3-4) · [FAQs → monitoring performance](https://docs.cochl.ai/docs/core/faq#faq-3-7)                                                                                                                                       |

## License daemon [#license-daemon]

Starting with v1.6.1, the C++ and Python SDKs on Linux verify the license through a small system daemon, `sense-lm-daemon`. Android runs the license in-process and needs none of this. Install it as shown in the [Samples](https://docs.cochl.ai/docs/core/samples) (step 3 of the C++ and Python samples).

### Prerequisites [#prerequisites]

* Linux with **systemd**. The daemon runs as a systemd service reached over a Unix socket, and the installer stops with `systemd not found` when `systemctl` is missing. Environments that don’t run systemd, such as typical containers, can’t host it.
* glibc 2.27 or newer.
* An `x86_64`, `aarch64` or `armv7l` machine.
* `sudo`, only while installing. The SDK itself runs as a normal user in the `sense-lm` group, which the installer creates.

### Check that it is running [#check-that-it-is-running]

```bash
systemctl status sense-lm-daemon.service   # "active (running)" when healthy
ls -la /run/sense-lm/daemon.sock           # the socket the SDK connects to
```

The daemon opens its own socket and runs as a normal service. The installer also writes a `sense-lm-daemon.socket` unit but leaves it off on purpose: if it were started, systemd would take the socket path first and `Init` would hang. Don’t enable or start it.

### Common problems [#common-problems]

| Symptom                                                            | What to do                                                                                                                                                                                                                                                                                                                                                                                                |
| ------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Permission denied` / `EACCES` when the SDK connects to the daemon | Your user is not in the `sense-lm` group yet, or the session hasn’t picked it up. Check with `id`, add your user to the group with `sudo usermod -aG sense-lm $USER` if missing, then run `newgrp sense-lm` or log out and back in. `newgrp` only refreshes the current shell.                                                                                                                            |
| The daemon fails to start                                          | Run `systemctl status sense-lm-daemon.service` and `journalctl -u sense-lm-daemon.service -n 50 --no-pager`. Common causes are a stale daemon still holding the socket (`sudo systemctl restart sense-lm-daemon.service`) or a glibc older than 2.27. If `sense-lm-daemon.socket` shows as active, stop and disable it (`sudo systemctl disable --now sense-lm-daemon.socket`), then restart the service. |
| You need a clean reinstall                                         | `sudo ./sense/sl/scripts/uninstall_daemon.sh --purge`, then `sudo ./sense/sl/scripts/install_daemon.sh --force` and `newgrp sense-lm`. `--purge` also deletes the stored license state in `/var/lib/sense-lm/` and the `sense-lm` group, and can’t be undone. Without `--purge`, the uninstaller keeps that state for a later reinstall.                                                                  |

### Upgrading from v1.6.0 or earlier [#upgrading-from-v160-or-earlier]

v1.6.1 replaces the Thales license manager that v1.4.0–v1.6.0 installed with `sudo ./dinst`. Install the new daemon as above. v1.6.1 no longer uses the old license manager; to remove it, run its uninstaller from the package of your previous SDK version:

```bash
cd sense/license   # inside your previous (v1.6.0 or earlier) SDK package
sudo ./dunst
```
