doltgresql icon indicating copy to clipboard operation
doltgresql copied to clipboard

doltgresql can spoil future dolt runs in a subdirectory

Open zachmu opened this issue 8 months ago • 0 comments

After running doltgresql in a directory, if you then run dolt in that same directory (or a subdirectory), you will encounter this error:

% dolt sql
# Welcome to the DoltSQL shell.
# Statements must be terminated with ';'.
# "exit" or "quit" (or Ctrl-D) to exit.
dial tcp 127.0.0.1:5432: connect: connection refused

This happens because doltgresql leaves behind a server lock file that dolt uses to try to connect to it.

The two applications should produce different lock files and not attempt to consume each others.

zachmu avatar Dec 15 '23 22:12 zachmu