Exception in worker process

Samad 21 Reputation points
2021-05-04T08:42:56.223+00:00

Hello,
I'm trying to deploy my bot in azure but my app service doesn't work. I have the following error message : [ERROR] Exception in worker process

Please someone can help me ?

Thank you

2021-05-04T07:08:32.498526912Z [2021-05-04 07:08:32 +0000] [40] [ERROR] Exception in worker process
2021-05-04T07:08:32.498561712Z Traceback (most recent call last):
2021-05-04T07:08:32.498567713Z File "/opt/python/3.7.9/lib/python3.7/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2021-05-04T07:08:32.498581913Z worker.init_process()
2021-05-04T07:08:32.498585813Z File "/tmp/8d90ec9c8c0a3ec/antenv/lib/python3.7/site-packages/aiohttp/worker.py", line 52, in init_process
2021-05-04T07:08:32.498589813Z super().init_process()
2021-05-04T07:08:32.498593513Z File "/opt/python/3.7.9/lib/python3.7/site-packages/gunicorn/workers/base.py", line 119, in init_process
2021-05-04T07:08:32.498597513Z self.load_wsgi()
2021-05-04T07:08:32.498601013Z File "/opt/python/3.7.9/lib/python3.7/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
2021-05-04T07:08:32.498604913Z self.wsgi = self.app.wsgi()
2021-05-04T07:08:32.498608513Z File "/opt/python/3.7.9/lib/python3.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
2021-05-04T07:08:32.498612413Z self.callable = self.load()
2021-05-04T07:08:32.498616114Z File "/opt/python/3.7.9/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2021-05-04T07:08:32.498619914Z return self.load_wsgiapp()
2021-05-04T07:08:32.498623514Z File "/opt/python/3.7.9/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2021-05-04T07:08:32.498627514Z return util.import_app(self.app_uri)
2021-05-04T07:08:32.498631114Z File "/opt/python/3.7.9/lib/python3.7/site-packages/gunicorn/util.py", line 358, in import_app
2021-05-04T07:08:32.498635014Z mod = importlib.import_module(module)
2021-05-04T07:08:32.498638714Z File "/opt/python/3.7.9/lib/python3.7/importlib/init.py", line 127, in import_module
2021-05-04T07:08:32.498642714Z return _bootstrap._gcd_import(name[level:], package, level)
2021-05-04T07:08:32.498646414Z File "", line 1006, in _gcd_import
2021-05-04T07:08:32.498650614Z File "", line 983, in _find_and_load
2021-05-04T07:08:32.498654614Z File "", line 967, in _find_and_load_unlocked
2021-05-04T07:08:32.498658514Z File "", line 677, in _load_unlocked
2021-05-04T07:08:32.498662414Z File "", line 724, in exec_module
2021-05-04T07:08:32.498666314Z File "", line 860, in get_code
2021-05-04T07:08:32.498670115Z File "", line 791, in source_to_code
2021-05-04T07:08:32.498674015Z File "", line 219, in _call_with_frames_removed
2021-05-04T07:08:32.498677915Z File "/tmp/8d90ec9c8c0a3ec/app.py", line 48
2021-05-04T07:08:32.498681715Z BOOKI NG_DIALOG = BookingDialog()
2021-05-04T07:08:32.498685415Z ^
2021-05-04T07:08:32.498689015Z SyntaxError: invalid syntax
2021-05-04T07:08:32.498696315Z [2021-05-04 07:08:32 +0000] [40] [INFO] Worker exiting (pid: 40)
2021-05-04T07:08:33.080696855Z [2021-05-04 07:08:33 +0000] [37] [INFO] Shutting down: Master
2021-05-04T07:08:33.080719656Z [2021-05-04 07:08:33 +0000] [37] [INFO] Reason: Worker failed to boot.

Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
184 questions
No comments
{count} votes

Accepted answer
  1. Cheong00 3,421 Reputation points
    2021-05-04T08:57:23.707+00:00

    Remove space like the following?

    BOOKING_DIALOG = BookingDialog()
    
    No comments

1 additional answer

Sort by: Most helpful
  1. Samad 21 Reputation points
    2021-05-04T09:29:09.683+00:00

    yes It works.
    Thank you so much

    No comments