SignalSQL

Troubleshooting

Common issues when getting a SignalSQL server up and talking to clients.

A client can’t connect

  • Check the port. SignalSQL listens on 3308 by default, not MySQL’s 3306. Pass -P 3308 (CLI) or set the port in your client.
  • Check the bind interface. A fresh install defaults to 127.0.0.1, which only accepts local connections. To connect from another machine, set Listen = 0.0.0.0 in the config (see Configuration) and open the port in your firewall.
  • Confirm the server is running. On Linux, systemctl status signalsql; on Windows, sc query SignalSQL.

The server won’t start

  • Point -d at a directory that exists, and prefer a trailing slash on -d/-i — the server appends filenames to these paths.
  • First run needs an empty data dir. The system catalog is seeded from init/ only into a fresh, empty -d directory. If startup fails after a bad first run, start again against a clean data directory.

A reference returns the wrong thing

  • Only strings starting with = are treated as references. A plain number in a REFERENCE column is returned as-is.
  • Check the three parts of the reference — =<table>/<key>/<column>. The <key> is a primary key or a Name value; the <column> must exist on the target row. See Tables and references.
  • Confirm the target table exists with SHOW TABLES. Hardware references resolve against module tables such as owdevice — if the module has not discovered the device, the row won’t be there yet.

A sensor value looks stale

A reading is only as fresh as the module behind it. Confirm the underlying device is present (for 1-wire, that owserver/OWFS sees it) and that its row appears in the module table. See Hardware modules.

Running multiple instances

Give each instance its own -d directory and a distinct -p port. Stop is per-instance and reads a PID file from that instance’s data directory, so signalsql -stop -d <dir>/ only stops the matching server.

Reading the logs

SignalSQL writes a trace log with info + error detail enabled out of the box, so a stock install is informative without the per-operation firehose. It’s the first place to look when the server misbehaves — and the first thing to attach to a support request.

  • Windows: C:\ProgramData\Centlake\SignalSQL\logs\signalsql.log. It rotates automatically at 10 MB, keeping signalsql.1 … signalsql.9.
  • Linux: signalsql.log in the server’s data directory (the -d path).

Trace levels

Tracing has seven independent levels. A packaged install turns on the top four and leaves the verbose three off:

LevelPackaged installWhat it captures
fatalonunrecoverable failures, logged just before the server aborts
erroronoperations that failed
warningonmalformed client SQL and unsupported statements
infoonlifecycle events — startup, shutdown, module load
logicoffinternal decision detail
flowoffper-request and per-plan execution steps (very verbose)
dumpoffraw buffer / hex dumps (very verbose)

The engine itself defaults to all levels off — run the bare binary by hand with no configuration and it stays silent. The packaged installers switch on info + error (plus warning/fatal) through deploy config, described below, so a normal service install writes a useful, non-spammy signalsql.log. The verbose levels (logic, flow, dump) produce a per-operation firehose and are meant for diagnosing a specific problem — usually when the maintainer asks for a deeper trace.

Changing what’s traced

Both platforms use the same one-byte level mask, one bit per level:

bit 0 fatal   bit 1 error   bit 2 warning   bit 3 info
bit 4 logic   bit 5 flow    bit 6 dump

Handy values: 0x0F = the shipped set (fatal + error + warning + info), 0x2F = that plus flow, 0x7F = everything on, 0 = silent.

Windows — the mask is a DebugFlags REG_DWORD at HKLM\SOFTWARE\Centlake\Debug\*. The installer ships it set to 15 (0x0F); edit the value and restart the SignalSQL service.

Linux — the mask is the SIGNALSQL_TRACE environment variable (hex such as 0x2F, or decimal). The packaged systemd unit sets it to 0x0F. To change it for the service, add a drop-in and restart:

sudo systemctl edit signalsql
# In the editor, add:
#   [Service]
#   Environment=SIGNALSQL_TRACE=0x2F
sudo systemctl restart signalsql

Running the binary directly, set it on the command line — SIGNALSQL_TRACE=0x2F signalsql -d /var/opt/signalsql/. With the variable unset, the binary traces nothing.

Still stuck?

Sign in and open Feedback & support to send a bug report or question straight to the maintainer — include your platform, version, the exact command line and client settings you’re using, and the relevant lines from signalsql.log. Supported users get a threaded, two-way conversation.