Closed clarkewing closed 3 months ago
After some trial and error, I was able to identify case-sensitivity as the cause of the issue.
For anyone encountering similar issues, what worked for me was the following:
### postgres database config
notamDb.driver="org.postgresql.Driver"
notamDb.connectionUrl="jdbc:postgresql://127.0.0.1/aim_fns"
notamDb.username="#####"
notamDb.password="#####"
notamDb.schema="public"
notamDb.table="notams"
Notice that the database name (in notamDb.connectionUrl
), schema, and table are all lowercased. This is what fixed the issue for me.
Configuration
Ubuntu 22.04 (LTS) x64 with PostgreSQL 16
Description of the issue
When starting the client after an initial run, the following output is generated:
Deleting the associated
notams
table and restarting the client resolves the initial error but then results in the following:Deleting the
notams
table again while the client is running allows execution to continue normally and the database to be populated.Effects
When running the client as a daemon, it is unable to restart on its own should the process get interrupted.
Possible solution?
My knowledge of Java is next to none, but reading through the source, I believe the issue has to do with the
notTableExists()
method not returningfalse
when it should be returningtrue
, generating a conflict when PostgreSQL attempts to create an already existing table.