GuLinux / AstroPhoto-Plus

A lightweight, web based astrophotography sequence generator and INDI client written in Python and React.
https://astrophotoplus.gulinux.net
GNU General Public License v3.0
53 stars 8 forks source link

[CRITICAL] WORKER TIMEOUT -- handle_abort -- successfully entered the 'dead' state #251

Open odylthorpe opened 3 years ago

odylthorpe commented 3 years ago

Service dies after message "-- A start job for unit AstroPhotoPlus.service has finished successfully."

To Reproduce: Raspberry Pi4B -- 64bit Ubuntu Mate fresh install Install .deb package start sudo AstroPhotoPlus-ctl autosetup [FAIL]--> No python3-flask sudo apt install python3-flask [FAIL]--> many missing dependancies sudo apt --fix-broken install [Many python3 and lib-dev packages installed] AstroPhotoPlus-ctl logs shows many successful compiles and builds [FAIL] after success message, guncorn and redis server startup

Expected behavior Success message...no errors...Main webpage start.

Screenshots If applicable, add screenshots to help explain your problem.

Server Information Today's download of AstroPhotoPlus Raspberry Pi4B 4M Ubuntu Mate 20.04 Python 3.8.2

AstroPhotoPlus-ctl logs -- A start job for unit AstroPhotoPlus.service has begun execution. -- -- The job identifier is 3735. Sep 27 09:47:27 pi-scope systemd[1]: Started Astrophotography sequence server. -- Subject: A start job for unit AstroPhotoPlus.service has finished successfully -- Defined-By: systemd -- Support: http://www.ubuntu.com/support -- -- A start job for unit AstroPhotoPlus.service has finished successfully. -- -- The job identifier is 3735. Sep 27 09:47:27 pi-scope AstroPhoto-Plus[34152]: + GUNICORN_BINARY=gunicorn3 Sep 27 09:47:27 pi-scope AstroPhoto-Plus[34152]: + which gunicorn3 Sep 27 09:47:27 pi-scope AstroPhoto-Plus[34152]: + GUNICORN_BINARY=gunicorn Sep 27 09:47:27 pi-scope AstroPhoto-Plus[34152]: + gunicorn --threads 4 -t 30 -k gthread -b 0.0.0.0:5000 api_entrypoint:app --log-level warning --log-syslog --log-syslog-prefix AstroPhotoPlus --disable-redirect-access-to-syslog Sep 27 09:47:28 pi-scope AstroPhoto-Plus[34178]: **** Initialising Redis server on port 49457 Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: /usr/lib/python3/dist-packages/healpy/pixelfunc.py:107: UserWarning: Warning: cannot import _healpy_pixel_lib module Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: warnings.warn("Warning: cannot import _healpy_pixel_lib module") Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: [2020-09-27 09:47:31 -0400] [34178] [ERROR] Exception in worker process Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: Traceback (most recent call last): Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: File "/home/jon/.local/share/AstroPhotoPlus/python-venv/lib/python3.8/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: worker.init_process() Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: File "/home/jon/.local/share/AstroPhotoPlus/python-venv/lib/python3.8/site-packages/gunicorn/workers/gthread.py", line 92, in init_process Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: super().init_process() Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: File "/home/jon/.local/share/AstroPhotoPlus/python-venv/lib/python3.8/site-packages/gunicorn/workers/base.py", line 119, in init_process Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: self.load_wsgi() Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: File "/home/jon/.local/share/AstroPhotoPlus/python-venv/lib/python3.8/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: self.wsgi = self.app.wsgi() Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: File "/home/jon/.local/share/AstroPhotoPlus/python-venv/lib/python3.8/site-packages/gunicorn/app/base.py", line 67, in wsgi Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: self.callable = self.load() Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: File "/home/jon/.local/share/AstroPhotoPlus/python-venv/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 49, in load Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: return self.load_wsgiapp() Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: File "/home/jon/.local/share/AstroPhotoPlus/python-venv/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: return util.import_app(self.app_uri) Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: File "/home/jon/.local/share/AstroPhotoPlus/python-venv/lib/python3.8/site-packages/gunicorn/util.py", line 358, in import_app Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: mod = importlib.import_module(module) Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: return _bootstrap._gcd_import(name[level:], package, level) Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: File "", line 1014, in _gcd_import Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: File "", line 991, in _find_and_load Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: File "", line 975, in _find_and_load_unlocked Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: File "", line 671, in _load_unlocked Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: File "", line 783, in exec_module Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: File "", line 219, in _call_with_frames_removed Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: File "/usr/lib/AstroPhotoPlus/backend/api_entrypoint.py", line 6, in Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: from skychart import skychart Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: File "/usr/lib/AstroPhotoPlus/backend/skychart/init.py", line 1, in Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: from .skychart import skychart Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: File "/usr/lib/AstroPhotoPlus/backend/skychart/skychart.py", line 7, in Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: import healpy Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: File "/usr/lib/python3/dist-packages/healpy/init.py", line 63, in Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: from .sphtfunc import ( Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: File "/usr/lib/python3/dist-packages/healpy/sphtfunc.py", line 32, in Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: from . import _healpy_sph_transform_lib as sphtlib Sep 27 09:47:31 pi-scope AstroPhoto-Plus[34178]: ImportError: /lib/aarch64-linux-gnu/libgomp.so.1: cannot allocate memory in static TLS block Sep 27 09:47:58 pi-scope AstroPhoto-Plus[34175]: [2020-09-27 09:47:58 -0400] [34175] [CRITICAL] WORKER TIMEOUT (pid:34178) Sep 27 09:47:58 pi-scope AstroPhoto-Plus[34178]: Exception ignored in: <module 'threading' from '/usr/lib/python3.8/threading.py'> Sep 27 09:47:58 pi-scope AstroPhoto-Plus[34178]: Traceback (most recent call last): Sep 27 09:47:58 pi-scope AstroPhoto-Plus[34178]: File "/usr/lib/python3.8/threading.py", line 1388, in _shutdown Sep 27 09:47:58 pi-scope AstroPhoto-Plus[34178]: lock.acquire() Sep 27 09:47:58 pi-scope AstroPhoto-Plus[34178]: File "/home/jon/.local/share/AstroPhotoPlus/python-venv/lib/python3.8/site-packages/gunicorn/workers/base.py", line 201, in handle_abort Sep 27 09:47:58 pi-scope AstroPhoto-Plus[34178]: sys.exit(1) Sep 27 09:47:58 pi-scope AstroPhoto-Plus[34178]: SystemExit: 1 Sep 27 09:47:58 pi-scope AstroPhoto-Plus[34152]: + set +x Sep 27 09:47:59 pi-scope systemd[1]: AstroPhotoPlus.service: Succeeded. -- Subject: Unit succeeded -- Defined-By: systemd -- Support: http://www.ubuntu.com/support -- -- The unit AstroPhotoPlus.service has successfully entered the 'dead' state.

Client