Errors the first time Meltano UI starts for a new project
Way to reproduce
- Initialise a new Meltano project
- Start Meltano UI
- Wait ~30 seconds without doing anything
- Check the errors produced
This only happens the first time Meltano UI runs, not in subsequent runs.
Meltano UI error log
[AirflowWorker][WARNING][2019-11-29 19:15:00,669] after_install hook 'after_install' has failed: 'core.dags_folder'
Exception in thread AirflowWorker:
Traceback (most recent call last):
File "/Users/iroussos/work/meltano/src/meltano/core/config_service.py", line 46, in find_plugin
for plugin in self.plugins()
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/iroussos/work/meltano/src/meltano/api/workers/airflow_worker.py", line 92, in run
self._plugin = self.config_service.find_plugin("airflow")
File "/Users/iroussos/work/meltano/src/meltano/core/config_service.py", line 58, in find_plugin
raise PluginMissingError(name) from stop
meltano.core.plugin.error.PluginMissingError: The requested plugin 'airflow' is missing.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/Users/iroussos/work/meltano/src/meltano/api/workers/airflow_worker.py", line 95, in run
self.install_service.install_plugin(self._plugin)
File "/Users/iroussos/work/meltano/src/meltano/core/plugin_install_service.py", line 70, in install_plugin
namespace=plugin.type, name=plugin.name, pip_url=plugin.pip_url
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/contextlib.py", line 119, in __exit__
next(self.gen)
File "/Users/iroussos/work/meltano/src/meltano/core/behavior/hookable.py", line 61, in trigger_hooks
self.__class__.trigger(self, f"after_{hook_name}", *args, **kwargs)
File "/Users/iroussos/work/meltano/src/meltano/core/behavior/hookable.py", line 80, in trigger
raise err
File "/Users/iroussos/work/meltano/src/meltano/core/behavior/hookable.py", line 74, in trigger
hook_func(target, *args, **kwargs)
File "/Users/iroussos/work/meltano/src/meltano/core/plugin/airflow.py", line 96, in after_install
airflow_cfg[section].update(map_dict(str, cfg))
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/configparser.py", line 958, in __getitem__
raise KeyError(key)
KeyError: 'core.dags_folder'