> ClickHouse crashes with "Illegal instruction" when ntopng connects to it. Cause is a CPU without the instructions a recent ClickHouse build needs. Fix by installing ClickHouse 26.3.9.8.

# ClickHouse fails with "Illegal instruction" when used with ntopng. What can I do?

ntopng cannot store flows in ClickHouse and *clickhouse-client* (or the server) exits with *Illegal instruction*. This happens when the installed ClickHouse build uses CPU instructions that your processor does not provide. It is a ClickHouse and CPU compatibility problem, not an ntopng configuration error.

## 1\. Check the ntopng configuration

Open */etc/ntopng/ntopng.conf* and verify the *\-F* option. The format is:

```
-F="clickhouse;<host>@<port>;<dbname>;<user>;<password>"
```

Example:

```
-F="clickhouse;localhost;ntop;ntop;<password>"
```

## 2\. Check the connection with clickhouse-client

```
clickhouse-client --host localhost --port 9000 --user ntop --password <password> -d ntopng
```

If the command prints *Illegal instruction* and exits, the ClickHouse binary cannot run on this CPU. Go to the next step.

## 3\. Install a ClickHouse version that runs on your CPU

Roll back to ClickHouse **26.3.9.8**. This version does not require the newer CPU instructions and has been verified to fix the problem:

```
apt-get install -y clickhouse-server=26.3.9.8 clickhouse-client=26.3.9.8 clickhouse-common-static=26.3.9.8
```

Then restart ClickHouse and ntopng, and repeat the *clickhouse-client* test above:

```
systemctl restart clickhouse-server
systemctl restart ntopng
```

Never post your real password in a bug report or in the community channels: replace it with a placeholder first. For more help see [the community](https://www.ntop.org/support/need-help/community/) or [report a bug](https://www.ntop.org/support/need-help/bug-report/).

## Related questions

-   [Do ntopng Professional and Enterprise licenses need to be activated?](https://www.ntop.org/faq/do-ntopng-professional-and-enterprise-licenses-need-to-be-activated/)
-   [How to use PagerDuty to Deliver ntopng Alerts](https://www.ntop.org/faq/how-to-use-pagerduty-to-deliver-ntopng-alerts/)
-   [Migrate the data directory in ntopng/nEdge](https://www.ntop.org/faq/migrate-the-data-directory-in-ntopng-nedge/)

## Learn more about ntopng

-   [ntopng overview and features](https://www.ntop.org/products/traffic-analysis/ntopng/)
-   [Detecting CVE-2026-98432 using nDPI/ntopng](https://www.ntop.org/detecting-cve-2026-98432-using-ndpi-ntopng/)
-   [How we Redesigned Search in ntopng](https://www.ntop.org/how-we-redesigned-search-in-ntopng/)
-   [All frequently asked questions](https://www.ntop.org/support/need-help/faq/)

## Ready to see it on your network?

Download the free Community edition, or talk to the ntop team about scale, licensing and support.

[Download ntopng free](https://www.ntop.org/support/documentation/software-installation/)[Talk to an engineer](https://www.ntop.org/support/need-help/contacts/)
Source: https://www.ntop.org/faq/ntopng-clickhouse-illegal-instruction/