Last tested: Nov 20, 2019
This error happens when you have a node connected to a MySQL backend, and you spin up another node and connect it to that backend without using the clustered flag. See docs for how to set up the nodes properly with the clustered flag.
However, this error can also occur in a couple of other situations: either Looker is already running on the host, or that a timezone on the host changed and there are entries in the node table that have a heartbeat in the future. The node table exists for both clustered and non-clustered instances.
- Confirm Looker is not running. If it is not, it's likely the timezone issue; proceed to step 2.
- Check if you are using HyperSQL or MySQL. The rest of the instructions are specific to HyperSQL and would have no effect on a MySQL-based looker instance.
- Run the following commands. The “INSERT INTO NODE” part should reset the node table to the system timezone. This will also create backup files looker.log.bak and looker.script.bak in case anything goes wrong.
sed -i.bak '/^INSERT INTO "NODE" VALUES/d' looker.log
sed -i.bak '/^INSERT INTO "NODE" VALUES/d' looker.script
- Start Looker.
- If Looker successfully started, you can remove the backup files: