adam_roderick
07/09/2019, 2:11 PMSetting port is currently set via $PG_PORT. So I set the environment variables and ran meltano ui again, but the desired values do not show up in the UI. Am I missing something?adam_roderick
07/09/2019, 2:32 PMSetting database is currently set via $SQLITE_DATABASEadam_roderick
07/09/2019, 2:36 PM.meltano/loaders/target-sqlite/target.config.json. Ran the UI again, but the "database" configuration value still shows "meltano" instead of the new value.adam_roderick
07/09/2019, 2:37 PMmeltano elt tap-carbon-intensity target-sqlite, but received the same error as before. So it appears that the config file is not utilizedgert_jan
07/10/2019, 7:05 AMyannis_roussos
07/10/2019, 10:10 AMyannis_roussos
07/10/2019, 10:16 AMreceived the same error as before, do you mean the $SQLITE_DATABASE one?yannis_roussos
07/10/2019, 10:23 AMmeltano init my-test-project
cd my-test-project
source .env
meltano add extractor tap-carbon-intensity
meltano add loader target-sqlite
meltano elt tap-carbon-intensity target-sqlite
Where the .env is the default .env built by Meltano when you start a new project:
export FLASK_ENV=development
export SQLITE_DATABASE=meltano
export PG_PASSWORD=warehouse
export PG_USERNAME=warehouse
export PG_ADDRESS=localhost
export PG_SCHEMA=meltano
export PG_PORT=5502
export PG_DATABASE=warehouseyannis_roussos
07/10/2019, 10:26 AMsource .env part makes sure that $SQLITE_DATABASE is loaded to the environment before you run meltano elt and you should not get an error about $SQLITE_DATABASE. You can also change it in the .env to whatever you want.
Also, if @micael_bergeron or @derek_knox have not made any change during the past days that I missed, running:
source .env
meltano ui
Should make sure that all the aforementioned env vars are available to Meltano UI. (they should be auto-loaded but maybe there is some other issue with Windows)derek_knox
07/10/2019, 12:10 PMHi Adam I had the same problem, the settings from the UI are not saved into the .env. It seems they are using a different storage for the UI.There is an order of precedence, so you are indeed correct @gert_jan. This landed a week or two ago and there was a related docs update https://www.meltano.com/docs/tutorial.html#plugin-setting. Does this help add any clarity?
adam_roderick
07/10/2019, 12:26 PMadam_roderick
07/10/2019, 12:27 PMadam_roderick
07/10/2019, 12:27 PMmicael_bergeron
07/10/2019, 5:54 PMsqlite3 <dbname> "PRAGMA journal_mode=WAL".micael_bergeron
07/10/2019, 5:55 PMmicael_bergeron
07/10/2019, 6:17 PMmicael_bergeron
07/10/2019, 6:17 PMmicael_bergeron
07/10/2019, 6:19 PMmeltano install to update target-sqlite. The next elt run should enable the WAL.adam_roderick
07/11/2019, 1:51 PMsqlite3 meltano.db "PRAGMA journal_mode=WAL" as well as ran meltano installadam_roderick
07/11/2019, 1:52 PMmeltano --version reports 0.30.0adam_roderick
07/11/2019, 1:52 PMadam_roderick
07/11/2019, 1:52 PMmicael_bergeron
07/11/2019, 6:59 PM