question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Intermittent errors when doing meltano config airflow

See original GitHub issue

Can’t seem to consistently reproduce this.

❯ meltano config airflow set webserver web_server_port 8081
2022-06-09T02:07:03.866027Z [info     ] Environment 'dev' is active
[Errno 2] No such file or directory: '/Users/taylormurphy/Documents/Projects/dev/demoday/prepped/.meltano/run/airflow/airflow.cfg'

but if I run meltano invoke airflow:ui and then kill the process once it’s trying to connect I can successfully run

❯ meltano config airflow set webserver web_server_port 8081
2022-06-09T02:09:10.771279Z [info     ] Environment 'dev' is active
Orchestrator 'airflow' setting 'webserver.web_server_port' was set in the active environment in `meltano.yml`: 8081

so clearly something about the airflow.cfg being present or not.

I would expect to be able to set the config in my meltano.yml even if the airflow.cfg is not present.

It seems like it’s something with invoke because this is what happens if I try to change the port to 8082, then do an invoke, and then reset the port again

❯ meltano config airflow set webserver web_server_port 8082
2022-06-09T02:10:32.255003Z [info     ] Environment 'dev' is active
Orchestrator 'airflow' setting 'webserver.web_server_port' was set in the active environment in `meltano.yml`: 8082
❯ meltano invoke airflow version
2022-06-09T02:10:47.148948Z [info     ] Environment 'dev' is active
2.1.2
❯ meltano config airflow set webserver web_server_port 8082
2022-06-09T02:11:00.416107Z [info     ] Environment 'dev' is active
[Errno 2] No such file or directory: '/Users/taylormurphy/Documents/Projects/dev/demoday/prepped/.meltano/run/airflow/airflow.cfg'

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:15 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
pandemicsyncommented, Jun 17, 2022

@aaronsteers So, yea, this might actually be a really quick fix. I was worried I had added this intentionally for a reason I can’t recall, but I think this just got introduced accidentally when we picked up the community contrib:

https://gitlab.com/meltano/meltano/-/merge_requests/2179/diffs?commit_id=7bad854e3d7ee4c4b2a0ebede24e1ee41797d3b1#bd50d05c414b847ffb1be734807753e08662c778_52_58

And then I missed the implications of that addition being in that top-level click group, and just blindly made it async aware to resolve the merge conflict from having just landed that large async refactor:

https://gitlab.com/meltano/meltano/-/merge_requests/2179/diffs?commit_id=a029c46acb157b10870e62ff2d5bb3ea2822b34e

So as @DouweM alluded, I think the fix is just dropping that run_async(invoker.prepare(session)) statement, and double-checking that meltano config <plugin> test which actually relies on that invoker still works as expected.

1reaction
DouweMcommented, Jun 9, 2022

@pandemicsyn OK, I think we can at least fix the meltano config issue then by losing that superfluous invoke call. If it’s never happened on meltano invoke we don’t really need to dive deeper into that part of it.

I’ll put this in the project/board, you can figure out with AJ if it makes sense for you to pick it up or someone else should!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Airflow 1.10.x and 2.1.x broken when upgrading to Meltano ...
I'm having issues deploying to production my 2.0.2 version of meltano regarding airflow. My current version of airflow is 1.10.15 (not 2.
Read more >
airflow fails to start in v1.37.0 (#2113) · Issues - GitLab
What is happening now? FileNotFound error for .meltano/run/airflow/airflow.cfg when invoking the airflow server on a new project. Rolling back ...
Read more >
Troubleshooting - Meltano Documentation
If you have a failure using Meltano's execution commands ( invoke , elt , run , or test ) or you're experienced general...
Read more >
airflow - Meltano Hub
Upgrading the Airflow version is tracked in this issue. Use the meltano schedule command to create pipeline schedules in your project, to be...
Read more >
Orchestrate Data - Meltano Documentation
To help you realize this, Meltano supports scheduled pipelines that can be orchestrated using Apache Airflow. When a new pipeline schedule is created...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found