aleksei_razvodov
01/26/2023, 6:37 PMaleksei_razvodov
01/26/2023, 6:37 PM2023-01-26T182553.979110Z [info ] sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused cmd_type=loader name=target-postgres run_id=68edb5bd-d721-4512-aa05-89460dddc114 state_id=2023-01-26T182551--tap-stackexchange--target-postgres stdio=stderr
2023-01-26T182553.979242Z [info ] Is the server running on that host and accepting TCP/IP connections? cmd_type=loader name=target-postgres run_id=68edb5bd-d721-4512-aa05-89460dddc114 state_id=2023-01-26T182551--tap-stackexchange--target-postgres stdio=stderr
2023-01-26T182553.979593Z [info ] connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused cmd_type=loader name=target-postgres run_id=68edb5bd-d721-4512-aa05-89460dddc114 state_id=2023-01-26T182551--tap-stackexchange--target-postgres stdio=stderr
2023-01-26T182553.979860Z [info ] Is the server running on that host and accepting TCP/IP connections? cmd_type=loader name=target-postgres run_id=68edb5bd-d721-4512-aa05-89460dddc114 state_id=2023-01-26T182551--tap-stackexchange--target-postgres stdio=stderr
2023-01-26T182553.980080Z [info ] connection to server at "localhost" (127.0.1.1), port 5432 failed: Connection refused cmd_type=loader name=target-postgres run_id=68edb5bd-d721-4512-aa05-89460dddc114 state_id=2023-01-26T182551--tap-stackexchange--target-postgres stdio=stderr
2023-01-26T182553.980247Z [info ] Is the server running on that host and accepting TCP/IP connections? cmd_type=loader name=target-postgres run_id=68edb5bd-d721-4512-aa05-89460dddc114 state_id=2023-01-26T182551--tap-stackexchange--target-postgres stdio=stderr
2023-01-26T182553.980603Z [info ] cmd_type=loader name=target-postgres run_id=68edb5bd-d721-4512-aa05-89460dddc114 state_id=2023-01-26T182551--tap-stackexchange--target-postgres stdio=stderr
2023-01-26T182553.980799Z [info ] (Background on this error at: https://sqlalche.me/e/14/e3q8) cmd_type=loader name=target-postgres run_id=68edb5bd-d721-4512-aa05-89460dddc114 state_id=2023-01-26T182551--tap-stackexchange--target-postgres stdio=stderrif I change postgres port to standard 5432 and target-postgres' configuration port to 5432 everything works: $ sudo docker kill %hash% $ sudo docker run -p 5432:5432 -e POSTGRES_USER=meltano -e POSTGRES_PASSWORD=password --name meltano_postgres -d postgres $ meltano config target-postgres set port 5432 $ meltano elt tap-stackexchange target-postgres
blah blah ...
Extract & load complete!
aleksei_razvodov
01/26/2023, 6:39 PMchristoph
01/26/2023, 8:56 PMsqlalchemy_url
https://hub.meltano.com/extractors/tap-postgres--meltanolabs/#sqlalchemy_url-settingchristoph
01/26/2023, 8:58 PMmeltano config tap-postgres list
command https://docs.meltano.com/reference/command-line-interface#configaleksei_razvodov
01/27/2023, 6:11 AMaleksei_razvodov
01/27/2023, 6:12 AMmeltano config
. To configure a specific environment, please use the option --environment=<environment name>
.
host [env: TARGET_POSTGRES_HOST] current value: 'localhost' (from meltano.yml
)
Host: Hostname for postgres instance. Note if sqlalchemy_url is set this will be ignored.
port [env: TARGET_POSTGRES_PORT] current value: 5431 (from meltano.yml
)
Port: The port on which postgres is awaiting connection. Note if sqlalchemy_url is set this will be ignored. Defaults to 5432
user [env: TARGET_POSTGRES_USER] current value: 'meltano' (from meltano.yml
)
User: User name used to authenticate. Note if sqlalchemy_url is set this will be ignored.
password [env: TARGET_POSTGRES_PASSWORD] current value: 'password' (from the TARGET_POSTGRES_PASSWORD variable in .env
)
Password: Password used to authenticate. Note if sqlalchemy_url is set this will be ignored.
database [env: TARGET_POSTGRES_DATABASE] current value: 'postgres' (from meltano.yml
)
Database: Database name. Note if sqlalchemy_url is set this will be ignored.
sqlalchemy_url [env: TARGET_POSTGRES_SQLALCHEMY_URL] current value: None (default)
Sqlalchemy Url: SQLAlchemy connection string. This will override using host, user, password, port,dialect. Note that you must esacpe password specialcharacters properly seehttps://docs.sqlalchemy.org/en/20/core/engines.html#escaping-special-characters-such-as-signs-in-passwords
dialect+driver [env: TARGET_POSTGRES_DIALECT_DRIVER] current value: None (default)
Dialect+Driver: Dialect+driver see https://docs.sqlalchemy.org/en/20/core/engines.html. Generally just leave this alone. Note if sqlalchemy_url is set this will be ignored.
default_target_schema [env: TARGET_POSTGRES_DEFAULT_TARGET_SCHEMA] current value: None (default: '$MELTANO_EXTRACT__LOAD_SCHEMA')
Default Target Schema: Postgres schema to send data to, example: tap-clickup
stream_maps [env: TARGET_POSTGRES_STREAM_MAPS] current value: None (default)
Stream Maps: Config object for stream maps capability. For more information check out Stream Maps.
stream_map_config [env: TARGET_POSTGRES_STREAM_MAP_CONFIG] current value: None (default)
Stream Map Config: User-defined config values to be used within map expressions.
flattening_enabled [env: TARGET_POSTGRES_FLATTENING_ENABLED] current value: None (default)
Flattening Enabled: 'True' to enable schema flattening and automatically expand nested properties.
flattening_max_depth [env: TARGET_POSTGRES_FLATTENING_MAX_DEPTH] current value: None (default)
Flattening Max Depth: The max depth to flatten schemas.
Custom, possibly unsupported by the plugin:
add_metadata_columns [env: TARGET_POSTGRES_ADD_METADATA_COLUMNS] current value: 'True' (from meltano.yml
)aleksei_razvodov
01/27/2023, 6:13 AMchristoph
01/27/2023, 6:14 AMtap-postgres
instead of target-postgres
..... Ignore my sqlalchemy_url
comment from earlier ...christoph
01/27/2023, 6:15 AMchristoph
01/27/2023, 6:15 AMtarget-postgres
....christoph
01/27/2023, 6:17 AMchristoph
01/27/2023, 6:18 AMaleksei_razvodov
01/27/2023, 6:18 AMchristoph
01/27/2023, 6:21 AMaleksei_razvodov
01/27/2023, 6:22 AMchristoph
01/27/2023, 6:22 AMchristoph
01/27/2023, 6:51 AMtarget_postgres
(host
, password
, user
, database
, port
) and replace it with the (currently undocumented) sqlalchemy_url
configuration settingchristoph
01/27/2023, 6:52 AMsqlalchemy_url
setting should be <postgres+psycopg2://meltano:password@localhost:5431/postgres>
aleksei_razvodov
01/27/2023, 6:56 AMaleksei_razvodov
01/29/2023, 9:20 AM2023-01-29T09:15:25.003174Z [info ] * Required key is missing from config: [user] cmd_type=elb consumer=True name=target-postgres producer=False stdio=stderr string_id=target-postgres
2023-01-29T09:15:25.003633Z [info ] * Required key is missing from config: [password] cmd_type=elb consumer=True name=target-postgres producer=False stdio=stderr string_id=target-postgres
2023-01-29T09:15:25.004025Z [info ] * Required key is missing from config: [dbname] cmd_type=elb consumer=True name=target-postgres producer=False stdio=stderr string_id=target-postgres
$ meltano config target-postgres list
tells me that sqlalchemy_url could be unsupported by now and it seems that it is
possibly unsupported by the plugin:
sqlalchemy_url [env: TARGET_POSTGRES_SQLALCHEMY_URL] current value: '<postgres+psycopg2://meltano:password@localhost:5431/postgres>' (from `meltano.yml`)
visch
01/30/2023, 2:18 PMvisch
01/30/2023, 4:48 PMaleksei_razvodov
01/31/2023, 5:24 AMvisch
01/31/2023, 2:14 PM