You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an existing database called nominatim with a country import, so the default NOMINATIM_DATABASE_DSN=pgsql:dbname=nominatim or not setting NOMINATIM_DATABASE_DSN works.
Create a second project directory on the same server. But have an unparsable line in the .env file
Run nominatim admin --check-database. It prints a warning but continues and connects to the default database.
~/nominatim-test-2 $ nominatim admin --check-database
2024-05-23 10:43:03: Python-dotenv could not parse statement starting at line 1. <====
2024-05-23 10:43:03: Using project directory: /home/ubuntu/nominatim-test-2
2024-05-23 10:43:03: Checking database
Checking database connection ... OK
Checking database_version matches Nominatim software version ... OK
Checking for placex table ... OK
Checking for placex content ... OK
Checking that tokenizer works ... OK
I'd argue Nominatim should treat parsing errors as fatal.
The text was updated successfully, but these errors were encountered:
I have an existing database called
nominatim
with a country import, so the defaultNOMINATIM_DATABASE_DSN=pgsql:dbname=nominatim
or not settingNOMINATIM_DATABASE_DSN
works.Create a second project directory on the same server. But have an unparsable line in the
.env
fileDon't run an import yet.
Run
nominatim admin --check-database
. It prints a warning but continues and connects to the default database.I'd argue Nominatim should treat parsing errors as fatal.
The text was updated successfully, but these errors were encountered: