matthew_trinkle
05/22/2020, 4:05 PMRunning with dbt=0.14.4
Found 123 models, 15 tests, 0 snapshots, 0 analyses, 128 macros, 0 operations, 0 seed files, 0 sources
ERROR: Cross-db references not allowed in postgres (shopifyorders vs ShopifyOrders)
ELT could not complete, an error happened during the process: dbt run didn't exit cleanly. Exit code: 1
Has anyone seen this before? Also, if this is the wrong place for this please let me know.douwe_maan
05/22/2020, 4:13 PMmeltano.yml, modify the pip_url for dbt to point at the latest version (dbt==0.16.1), run meltano install, and then try running your pipeline again?matthew_trinkle
05/22/2020, 4:14 PMdouwe_maan
05/22/2020, 4:14 PMmatthew_trinkle
05/22/2020, 4:15 PMmatthew_trinkle
05/22/2020, 5:37 PMdouwe_maan
05/22/2020, 5:40 PMdouwe_maan
05/22/2020, 5:40 PM.meltano/meltano.db SQLite DB and manually change the state of the latest job rowmatthew_trinkle
05/22/2020, 5:41 PMmatthew_trinkle
05/22/2020, 6:18 PMRunning with dbt=0.16.1
Encountered an error while reading the project:
ERROR: Runtime Error
Could not find profile named 'meltano'
Encountered an error:
Runtime Error
Could not run dbt
ELT could not complete, an error happened during the process: dbt clean didn't exit cleanly. Exit code: 2douwe_maan
05/22/2020, 6:25 PMmatthew_trinkle
05/22/2020, 6:27 PMdouwe_maan
05/22/2020, 6:32 PMmeltano --log-level=debug elt ... so that we can see exactly what arguments dbt is getting called with?matthew_trinkle
05/22/2020, 6:33 PMdouwe_maan
05/22/2020, 6:33 PMdouwe_maan
05/22/2020, 6:37 PMmatthew_trinkle
05/22/2020, 6:41 PMexport DBT_PROFILES_DIR=transform/profilesdouwe_maan
05/22/2020, 6:42 PMdouwe_maan
05/22/2020, 6:42 PMmatthew_trinkle
05/22/2020, 6:46 PMroot@88f426cfd4ba:/project# meltano --log-level=debug elt tap-facebook target-postgres --transform only
[2020-05-22 18:45:05,386|D|MainThread|root] Activated project at /project
[2020-05-22 18:45:05,387|D|MainThread|root] Creating engine <meltano.core.project.Project object at 0x7fd794c5cb70>@sqlite:////project/.meltano/meltano.db
[2020-05-22 18:45:05,413|I|MainThread|alembic.runtime.migration] Context impl SQLiteImpl.
[2020-05-22 18:45:05,414|I|MainThread|alembic.runtime.migration] Will assume non-transactional DDL.
System database up-to-date.
Starting new HTTPS connection (1): <http://www.meltano.com:443|www.meltano.com:443>
<https://www.meltano.com:443> "GET /discovery.yml HTTP/1.1" 200 31369
Discovery cache updated at /project/.meltano/cache/discovery.yml
Starting new HTTPS connection (1): <http://www.meltano.com:443|www.meltano.com:443>
<https://www.meltano.com:443> "GET /discovery.yml HTTP/1.1" 200 31369
Discovery cache updated at /project/.meltano/cache/discovery.yml
Found ENV variable PG_USERNAME for postgres:user
Found ENV variable PG_PASSWORD for postgres:password
Found ENV variable PG_ADDRESS for postgres:host
Found ENV variable PG_PORT for postgres:port
Found ENV variable PG_DATABASE for postgres:dbname
Extract & load skipped.
Running transformation...
Starting new HTTPS connection (1): <http://www.meltano.com:443|www.meltano.com:443>
<https://www.meltano.com:443> "GET /discovery.yml HTTP/1.1" 200 31369
Discovery cache updated at /project/.meltano/cache/discovery.yml
Found ENV variable PG_USERNAME for postgres:user
Found ENV variable PG_PASSWORD for postgres:password
Found ENV variable PG_ADDRESS for postgres:host
Found ENV variable PG_PORT for postgres:port
Found ENV variable PG_DATABASE for postgres:dbname
Using selector: EpollSelector
Starting new HTTPS connection (1): <http://www.meltano.com:443|www.meltano.com:443>
<https://www.meltano.com:443> "GET /discovery.yml HTTP/1.1" 200 31369
Discovery cache updated at /project/.meltano/cache/discovery.yml
Starting new HTTPS connection (1): <http://www.meltano.com:443|www.meltano.com:443>
<https://www.meltano.com:443> "GET /discovery.yml HTTP/1.1" 200 31369
Discovery cache updated at /project/.meltano/cache/discovery.yml
Running with dbt=0.16.1
Encountered an error while reading the project:
ERROR: Runtime Error
Could not find profile named 'meltano'
Encountered an error:
Runtime Error
Could not run dbt
ELT could not complete, an error happened during the process: dbt clean didn't exit cleanly. Exit code: 2
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/meltano/cli/elt.py", line 79, in elt
run_transform(elt_context, transform_session, dry_run=dry, models=elt_context.extractor.ref.name)
File "/usr/local/lib/python3.6/site-packages/meltano/cli/elt.py", line 114, in run_transform
dbt_runner.run(session, **kwargs) # TODO: models from elt_context?
File "/usr/local/lib/python3.6/site-packages/meltano/core/runner/dbt.py", line 54, in run
loop.run_until_complete(self.dbt_service.clean())
File "/usr/local/lib/python3.6/asyncio/base_events.py", line 488, in run_until_complete
return future.result()
File "/usr/local/lib/python3.6/site-packages/meltano/core/dbt_service.py", line 85, in clean
await self.invoke("clean")
File "/usr/local/lib/python3.6/site-packages/meltano/core/dbt_service.py", line 78, in invoke
f"dbt {cmd} didn't exit cleanly. Exit code: {handle.returncode}"
Exception: dbt clean didn't exit cleanly. Exit code: 2
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/meltano/cli/elt.py", line 86, in elt
raise click.Abort()matthew_trinkle
05/22/2020, 6:46 PMdouwe_maan
05/22/2020, 6:48 PMdouwe_maan
05/22/2020, 6:54 PMDBT_PROFILES_DIR=$(pwd)/transform/profile meltano elt ... — it looks like DBT_PROFILES_DIR needs to be a full absolute path, so we need the $(pwd)/ bitmatthew_trinkle
05/22/2020, 6:57 PMRunning with dbt=0.16.1
Encountered an error:
Compilation Error
Env var required but not provided: 'DBT_TARGET'
ELT could not complete, an error happened during the process: dbt clean didn't exit cleanly. Exit code: 2douwe_maan
05/22/2020, 6:58 PMDBT_TARGET=postgresdouwe_maan
05/22/2020, 6:59 PMmatthew_trinkle
05/22/2020, 7:01 PMdouwe_maan
05/22/2020, 7:03 PMmatthew_trinkle
05/22/2020, 7:04 PMdouwe_maan
05/22/2020, 7:07 PMdouwe_maan
05/22/2020, 7:08 PMmatthew_trinkle
05/22/2020, 7:10 PM