Anytype CLI as a custom app on Truenas Scale

Has anybody successfully installed Anytype CLI as a custom app?

I tried it on my Truenas Scale server (Electric Eel 24.10.2.4) following the instructions on their Github page. The installation went smoothly, the app is up and running, ports 31010-31012 are open, I created a bot account and an API key.

The problem: I can’t start the server. The serve command always fails:

/app # /app/anytype serve --listen-address 0.0.0.0:31012
2026-03-24T22:24:11.408Z INFO anytype-heart Starting anytype-heart…
✗ service failed: failed to listen on 127.0.0.1:31010: listen tcp 127.0.0.1:31010: bind: address already in use

I also tried to connect to the server with the Anytype integration in N8N using the API and couldn’t get a connection.

I’ve unsuccessfully tried to fix the problem with my limited skills and extensive research. Any suggestions would be greatly appreciated.

I created the custom app with these setting:

  • Ports: 31010, 31011, 3101
  • Environment Variables:
    • ANYTYPE_LISTEN_ADDRESS=0.0.0.0:31012
    • ANYTYPE_HOME=/data
  • Storage: Host Path with mount path /data pointing to a dataset created with the APPS preset

The logs after startup read:

2026-03-25 22:22:44.027350+00:002026-03-25T22:22:44.025Z INFO anytype-heart Starting anytype-heart…
2026-03-25 22:22:44.044795+00:002026-03-25T22:22:44.044Z INFO anytype-heart Starting gRPC server on 127.0.0.1:31010
2026-03-25 22:22:44.044808+00:00gRPC Web proxy started at: 127.0.0.1:31011
2026-03-25 22:22:46.046151+00:00No stored account key found, skipping auto-login

I contacted Anytype support, they asked me to provide these details but have been silent ever since:

`root@truenas[~]# ss -ltnp | grep 31010
LISTEN 0 4096 0.0.0.0:31010 0.0.0.0:* users:((“docker-proxy”,pid=3973162,fd=4))
LISTEN 0 4096 [::]:31010 [::]:* users:((“docker-proxy”,pid=3973168,fd=4))

root@truenas[~]# netstat -ltnp | grep 31010
tcp 0 0 0.0.0.0:31010 0.0.0.0:* LISTEN 3973162/docker-prox
tcp6 0 0 :::31010 :::* LISTEN 3973168/docker-prox`