-
Notifications
You must be signed in to change notification settings - Fork 5k
Description
Please provide us with the following information:
This issue is for a: (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce
I made small adjustments in the backend and imported some modules. The app runs locally without problems but not on azure. I'm getting the error ModuleNotFoundError: No module named 'main'
Any log messages given by the failure
2023-11-13T15:00:51.048245136Z Documentation: http://aka.ms/webapp-linux
2023-11-13T15:00:51.048248537Z Python 3.11.4
2023-11-13T15:00:51.048252037Z Note: Any data outside '/home' is not persisted
2023-11-13T15:00:53.841410117Z Starting OpenBSD Secure Shell server: sshd.
2023-11-13T15:00:54.079495903Z Site's appCommandLine: python3 -m gunicorn main:app
2023-11-13T15:00:54.080804907Z 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'
2023-11-13T15:00:54.249114991Z Could not find build manifest file at '/home/site/wwwroot/oryx-manifest.toml'
2023-11-13T15:00:54.249849694Z Could not find operation ID in manifest. Generating an operation id...
2023-11-13T15:00:54.258543119Z Build Operation ID: 23ac646d-8475-407f-9678-e9a68c100d0c
2023-11-13T15:00:54.932481259Z Oryx Version: 0.2.20230707.1, Commit: 0bd28e69919b5e8beba451e8677e3345f0be8361, ReleaseTagName: 20230707.1
2023-11-13T15:00:55.020314512Z Writing output script to '/opt/startup/startup.sh'
2023-11-13T15:00:55.144179167Z WARNING: Could not find virtual environment directory /home/site/wwwroot/antenv.
2023-11-13T15:00:55.151022287Z WARNING: Could not find package directory /home/site/wwwroot/oryx_packages.
2023-11-13T15:01:02.485772081Z [2023-11-13 15:01:02 +0000] [59] [INFO] Starting gunicorn 20.1.0
2023-11-13T15:01:02.507425354Z [2023-11-13 15:01:02 +0000] [59] [INFO] Listening at: http://0.0.0.0:8000 (59)
2023-11-13T15:01:02.507455954Z [2023-11-13 15:01:02 +0000] [59] [INFO] Using worker: sync
2023-11-13T15:01:02.720012673Z [2023-11-13 15:01:02 +0000] [65] [INFO] Booting worker with pid: 65
2023-11-13T15:01:02.807577969Z [2023-11-13 15:01:02 +0000] [65] [ERROR] Exception in worker process
2023-11-13T15:01:02.807624769Z Traceback (most recent call last):
2023-11-13T15:01:02.807630869Z File "/opt/python/3/lib/python3.11/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
2023-11-13T15:01:02.807634869Z worker.init_process()
2023-11-13T15:01:02.807638569Z File "/opt/python/3/lib/python3.11/site-packages/gunicorn/workers/base.py", line 134, in init_process
2023-11-13T15:01:02.807648869Z self.load_wsgi()
2023-11-13T15:01:02.807653669Z File "/opt/python/3/lib/python3.11/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
2023-11-13T15:01:02.807669369Z self.wsgi = self.app.wsgi()
2023-11-13T15:01:02.807673869Z ^^^^^^^^^^^^^^^
2023-11-13T15:01:02.807677269Z File "/opt/python/3/lib/python3.11/site-packages/gunicorn/app/base.py", line 67, in wsgi
2023-11-13T15:01:02.807680969Z self.callable = self.load()
2023-11-13T15:01:02.807684369Z ^^^^^^^^^^^
2023-11-13T15:01:02.807687769Z File "/opt/python/3/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
2023-11-13T15:01:02.807691269Z return self.load_wsgiapp()
2023-11-13T15:01:02.807694769Z ^^^^^^^^^^^^^^^^^^^
2023-11-13T15:01:02.807698169Z File "/opt/python/3/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
2023-11-13T15:01:02.807701769Z return util.import_app(self.app_uri)
2023-11-13T15:01:02.807705169Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-13T15:01:02.807708669Z File "/opt/python/3/lib/python3.11/site-packages/gunicorn/util.py", line 359, in import_app
2023-11-13T15:01:02.807712269Z mod = importlib.import_module(module)
2023-11-13T15:01:02.807715669Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-13T15:01:02.807719069Z File "/opt/python/3/lib/python3.11/importlib/init.py", line 126, in import_module
2023-11-13T15:01:02.807777469Z return _bootstrap._gcd_import(name[level:], package, level)
2023-11-13T15:01:02.807786769Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-13T15:01:02.807790869Z File "", line 1204, in _gcd_import
2023-11-13T15:01:02.807794869Z File "", line 1176, in _find_and_load
2023-11-13T15:01:02.807798569Z File "", line 1140, in _find_and_load_unlocked
2023-11-13T15:01:02.807802169Z ModuleNotFoundError: No module named 'main'
2023-11-13T15:01:02.818257005Z [2023-11-13 15:01:02 +0000] [65] [INFO] Worker exiting (pid: 65)
2023-11-13T15:01:04.082955771Z [2023-11-13 15:01:04 +0000] [59] [INFO] Shutting down: Master
2023-11-13T15:01:04.112193770Z [2023-11-13 15:01:04 +0000] [59] [INFO] Reason: Worker failed to boot.
OS and Version?
Windows 11 Pro
azd version?
azd version 1.4.3 (commit d165bd2de96dae75de57604c0d8a5553ae214618)