You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/07/23 08:43:58 UTC
[GitHub] [airflow] potiuk commented on issue #17185: Unable to start airflow webserver in the background in docker container.
potiuk commented on issue #17185:
URL: https://github.com/apache/airflow/issues/17185#issuecomment-885491972
There is something wrong with your conda base installation. I could not reproduced in using the official image so I used yours. And airflow is simply not working in your image (likely the master process locked itself out when exiting) - you have errors in your ~/airlfow/webserver-err.log :
```
File "/opt/conda/lib/python3.8/site-packages/psutil/_common.py", line 447, in wrapper
ret = self._cache[fun]
AttributeError: _cache
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/conda/bin/airflow", line 8, in <module>
sys.exit(main())
File "/opt/conda/lib/python3.8/site-packages/airflow/__main__.py", line 40, in main
args.func(args)
File "/opt/conda/lib/python3.8/site-packages/airflow/cli/cli_parser.py", line 48, in command
return func(*args, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/airflow/utils/cli.py", line 91, in wrapper
return f(*args, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/airflow/cli/commands/webserver_command.py", line 480, in webserver
monitor_gunicorn(gunicorn_master_proc.pid)
File "/opt/conda/lib/python3.8/site-packages/airflow/cli/commands/webserver_command.py", line 445, in monitor_gunicorn
GunicornMonitor(
File "/opt/conda/lib/python3.8/site-packages/airflow/cli/commands/webserver_command.py", line 212, in start
self._check_workers()
File "/opt/conda/lib/python3.8/site-packages/airflow/cli/commands/webserver_command.py", line 227, in _check_workers
num_ready_workers_running = self._get_num_ready_workers_running()
File "/opt/conda/lib/python3.8/site-packages/airflow/cli/commands/webserver_command.py", line 131, in _get_num_ready_workers_running
workers = psutil.Process(self.gunicorn_master_proc.pid).children()
File "/opt/conda/lib/python3.8/site-packages/psutil/__init__.py", line 272, in wrapper
return fun(self, *args, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/psutil/__init__.py", line 905, in children
child = Process(pid)
File "/opt/conda/lib/python3.8/site-packages/psutil/__init__.py", line 326, in __init__
self._init(pid)
File "/opt/conda/lib/python3.8/site-packages/psutil/__init__.py", line 354, in _init
self.create_time()
File "/opt/conda/lib/python3.8/site-packages/psutil/__init__.py", line 710, in create_time
self._create_time = self._proc.create_time()
File "/opt/conda/lib/python3.8/site-packages/psutil/_pslinux.py", line 1576, in wrapper
return fun(self, *args, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/psutil/_pslinux.py", line 1788, in create_time
ctime = float(self._parse_stat_file()['create_time'])
File "/opt/conda/lib/python3.8/site-packages/psutil/_pslinux.py", line 1576, in wrapper
return fun(self, *args, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/psutil/_common.py", line 450, in wrapper
return fun(self)
File "/opt/conda/lib/python3.8/site-packages/psutil/_pslinux.py", line 1619, in _parse_stat_file
data = f.read()
File "/opt/conda/lib/python3.8/site-packages/airflow/cli/commands/webserver_command.py", line 435, in kill_proc
if gunicorn_master_proc.poll() is not None:
AttributeError: 'Process' object has no attribute 'poll'
```
You can try to diagnose your image (likely it is based on some old/unsupported base images. However it's definitly somethin you have to investigate on your own.
Instead I heartily recommend to you the official image of Airflow image - it is based on LTS buster slim image (And we always use most recent images with all security patches. There are various ways you can customize and extend image and we have comprehensive documentation: https://airflow.apache.org/docs/docker-stack/index.html and we will be able to help you if you have problems.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org