azure-search-openai-demo
azure-search-openai-demo copied to clipboard
ModuleNotFoundError: No module named 'main' opentelemetry dep issues
Followed all debug steps of https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/docs/appservice.md until i found an unexplainable issue ats startup_
2024/07/27 11:24:47 main.go:50: Retry: response 200 2024/07/27 11:24:47 main.go:50: Retry: exit due to non-retriable status code (✓) Done: Deploying service backend
- Endpoint: https://XXXXXXXXXXXXXXXX.azurewebsites.net/
SUCCESS: Your application was deployed to Azure in 30 minutes 22 seconds. You can view the resources created under the resource group ece-prodweub-docbot-rg in Azure Portal: 1https://portal.azure.com/#@/resource/subscriptions/YYYYYYYYYYYYYYYYYYYYYYYYYYYY/resourceGroups/RRRRRRRRRRRRR-rg/overview
2024-07-27T00:27:38.7892647Z _____
2024-07-27T00:27:38.7894244Z / _ \ __________ _________ ____
2024-07-27T00:27:38.7894357Z / /\ \__ / | _ __ _/ __ \
2024-07-27T00:27:38.7894406Z / | / /| | /| | /\ /
2024-07-27T00:27:38.7894455Z _|__ /_____ _/ || __ >
2024-07-27T00:27:38.7894502Z / / /
2024-07-27T00:27:38.7894548Z A P P S E R V I C E O N L I N U X
2024-07-27T00:27:38.7894592Z
2024-07-27T00:27:38.7894663Z Documentation: http://aka.ms/webapp-linux
2024-07-27T00:27:38.7894710Z Python 3.11.8
2024-07-27T00:27:38.7894756Z Note: Any data outside '/home' is not persisted
2024-07-27T00:27:40.2836783Z Starting OpenBSD Secure Shell server: sshd.
2024-07-27T00:27:40.3314078Z WEBSITES_INCLUDE_CLOUD_CERTS is not set to true.
2024-07-27T00:27:40.6308099Z Site's appCommandLine: python3 -m gunicorn main:app
2024-07-27T00:27:40.9948027Z Starting periodic command scheduler: cron.
2024-07-27T00:27:41.0053470Z Launching oryx with: create-script -appPath /home/site/wwwroot -output /opt/startup/startup.sh -virtualEnvName antenv -defaultApp /opt/defaultsite -userStartupCommand 'python3 -m gunicorn main:app'
2024-07-27T00:27:41.1039522Z Could not find build manifest file at '/home/site/wwwroot/oryx-manifest.toml'
2024-07-27T00:27:41.1057743Z Could not find operation ID in manifest. Generating an operation id...
2024-07-27T00:27:41.1233128Z Build Operation ID: a665f202-54d0-443c-944e-11efc28bac7b
2024-07-27T00:27:41.6327554Z Oryx Version: 0.2.20240619.2, Commit: cf006407a02b225f59dccd677986973c7889aa50, ReleaseTagName: 20240619.2
2024-07-27T00:27:41.6543031Z Writing output script to '/opt/startup/startup.sh'
2024-07-27T00:27:41.7411267Z WARNING: Could not find virtual environment directory /home/site/wwwroot/antenv.
2024-07-27T00:27:41.7428213Z WARNING: Could not find package directory /home/site/wwwroot/oryx_packages.
2024-07-27T00:27:43.5036823Z [2024-07-27 00:27:43 +0000] [81] [INFO] Starting gunicorn 22.0.0
2024-07-27T00:27:43.5052472Z [2024-07-27 00:27:43 +0000] [81] [INFO] Listening at: http://0.0.0.0:8000 (81)
2024-07-27T00:27:43.5214209Z [2024-07-27 00:27:43 +0000] [81] [INFO] Using worker: sync
2024-07-27T00:27:43.5345590Z [2024-07-27 00:27:43 +0000] [82] [INFO] Booting worker with pid: 82
2024-07-27T00:27:43.5931697Z [2024-07-27 00:27:43 +0000] [82] [ERROR] Exception in worker process
2024-07-27T00:27:43.5932888Z Traceback (most recent call last):
2024-07-27T00:27:43.5932948Z File "/opt/python/3/lib/python3.11/site-packages/gunicorn/arbiter.py", line 609, in spawn_worker
2024-07-27T00:27:43.5933001Z worker.init_process()
2024-07-27T00:27:43.5933058Z File "/opt/python/3/lib/python3.11/site-packages/gunicorn/workers/base.py", line 134, in init_process
2024-07-27T00:27:43.5933174Z self.load_wsgi()
2024-07-27T00:27:43.5933225Z File "/opt/python/3/lib/python3.11/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
2024-07-27T00:27:43.5933270Z self.wsgi = self.app.wsgi()
2024-07-27T00:27:43.5933315Z ^^^^^^^^^^^^^^^
2024-07-27T00:27:43.5933363Z File "/opt/python/3/lib/python3.11/site-packages/gunicorn/app/base.py", line 67, in wsgi
2024-07-27T00:27:43.5933429Z self.callable = self.load()
2024-07-27T00:27:43.5933474Z ^^^^^^^^^^^
2024-07-27T00:27:43.5933522Z File "/opt/python/3/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
2024-07-27T00:27:43.5933568Z return self.load_wsgiapp()
2024-07-27T00:27:43.5933614Z ^^^^^^^^^^^^^^^^^^^
2024-07-27T00:27:43.5933678Z File "/opt/python/3/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
2024-07-27T00:27:43.5933727Z return util.import_app(self.app_uri)
2024-07-27T00:27:43.5933773Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-07-27T00:27:43.5933822Z File "/opt/python/3/lib/python3.11/site-packages/gunicorn/util.py", line 371, in import_app
2024-07-27T00:27:43.5933867Z mod = importlib.import_module(module)
2024-07-27T00:27:43.5933913Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-07-27T00:27:43.5933977Z File "/opt/python/3/lib/python3.11/importlib/init.py", line 126, in import_module
2024-07-27T00:27:43.5934025Z return bootstrap.gcd_import(name[level:], package, level)
2024-07-27T00:27:43.5934073Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-07-27T00:27:43.5934120Z File "
2024-07-27T00:28:25.530463977Z / _ \ __________ _________ ____
2024-07-27T00:28:25.530470977Z / /\ \