After deployment of the code from a local git to the azure it still doesn't doesn't startup but there is a new error rising. Don't know if its connected to r/w rights.
Below the log with the current error.
2021-01-27T18:06:12.515023232Z
2021-01-27T18:06:12.515049635Z _____
2021-01-27T18:06:12.515055235Z / _ \ __________ _________ ____
2021-01-27T18:06:12.515059236Z / /_\ \___ / | \_ __ \_/ __ \
2021-01-27T18:06:12.515070537Z / | \/ /| | /| | \/\ ___/
2021-01-27T18:06:12.515074637Z \____|__ /_____ \____/ |__| \___ >
2021-01-27T18:06:12.515078738Z \/ \/ \/
2021-01-27T18:06:12.515082738Z
2021-01-27T18:06:12.515086338Z A P P S E R V I C E O N L I N U X
2021-01-27T18:06:12.515090339Z
2021-01-27T18:06:12.515097639Z Python 3.8.6
2021-01-27T18:06:12.515102840Z Note: Any data outside '/home' is not persisted
2021-01-27T18:06:12.796629343Z Starting OpenBSD Secure Shell server: sshd.
2021-01-27T18:06:13.366729480Z Site's appCommandLine: startup.txt
2021-01-27T18:06:13.367320541Z Checking of startup.txt is a file
2021-01-27T18:06:13.369333950Z App command line is a file on disk
2021-01-27T18:06:13.390097504Z startup.txt file exists on disk, reading its contents to run as startup arguments
2021-01-27T18:06:13.399376067Z Contents of startupScript: mv admin.sqlite /tmp/.; ln -s /tmp/admin.sqlite .; gunicorn --bind=0.0.0.0 --timeout 600 wsgi
2021-01-27T18:06:13.399395669Z Launching oryx with: create-script -appPath /home/site/wwwroot -output /opt/startup/startup.sh -virtualEnvName antenv -defaultApp /opt/defaultsite -userStartupCommand 'mv admin.sqlite /tmp/.; ln -s /tmp/admin.sqlite .; gunicorn --bind=0.0.0.0 --timeout 600 wsgi'
2021-01-27T18:06:13.496985292Z Found build manifest file at '/home/site/wwwroot/oryx-manifest.toml'. Deserializing it...
2021-01-27T18:06:13.500918600Z Build Operation ID: |sxj3A96qSQg=.378771bd_
2021-01-27T18:06:13.567061461Z Oryx Version: 0.2.20201112.1, Commit: a120bb248aa8d208ca5e02d7d9d075196e79cffd, ReleaseTagName: 20201112.1
2021-01-27T18:06:14.977360250Z Writing output script to '/opt/startup/startup.sh'
2021-01-27T18:06:15.402224620Z Found virtual environment .tar.gz archive.
2021-01-27T18:06:15.402926193Z Removing existing virtual environment directory /antenv...
2021-01-27T18:06:15.491559087Z Extracting to directory /antenv...
2021-01-27T18:06:18.050631227Z Using packages from virtual environment antenv located at /antenv.
2021-01-27T18:06:18.051343500Z Updated PYTHONPATH to ':/antenv/lib/python3.8/site-packages'
2021-01-27T18:06:20.150617147Z [2021-01-27 18:06:20 +0000] [43] [INFO] Starting gunicorn 20.0.4
2021-01-27T18:06:20.151964987Z [2021-01-27 18:06:20 +0000] [43] [INFO] Listening at:
http://0.0.0.0:8000 (43)
2021-01-27T18:06:20.152582651Z [2021-01-27 18:06:20 +0000] [43] [INFO] Using worker: sync
2021-01-27T18:06:20.177443228Z [2021-01-27 18:06:20 +0000] [45] [INFO] Booting worker with pid: 45
2021-01-27T18:06:27.648720180Z [2021-01-27 18:06:27 +0000] [45] [ERROR] Exception in worker process
2021-01-27T18:06:27.648769685Z Traceback (most recent call last):
2021-01-27T18:06:27.648776086Z File "/opt/python/3.8.6/lib/python3.8/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
2021-01-27T18:06:27.648781486Z worker.init_process()
2021-01-27T18:06:27.648785987Z File "/opt/python/3.8.6/lib/python3.8/site-packages/gunicorn/workers/base.py", line 119, in init_process
2021-01-27T18:06:27.648790987Z self.load_wsgi()
2021-01-27T18:06:27.648795488Z File "/opt/python/3.8.6/lib/python3.8/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
2021-01-27T18:06:27.648800288Z self.wsgi = self.app.wsgi()
2021-01-27T18:06:27.648804589Z File "/opt/python/3.8.6/lib/python3.8/site-packages/gunicorn/app/base.py", line 67, in wsgi
2021-01-27T18:06:27.648815090Z self.callable = self.load()
2021-01-27T18:06:27.648819790Z File "/opt/python/3.8.6/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
2021-01-27T18:06:27.648824391Z return self.load_wsgiapp()
2021-01-27T18:06:27.648828691Z File "/opt/python/3.8.6/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
2021-01-27T18:06:27.648834792Z return util.import_app(self.app_uri)
2021-01-27T18:06:27.648839292Z File "/opt/python/3.8.6/lib/python3.8/site-packages/gunicorn/util.py", line 358, in import_app
2021-01-27T18:06:27.648843893Z mod = importlib.import_module(module)
2021-01-27T18:06:27.648848193Z File "/opt/python/3.8.6/lib/python3.8/importlib/__init__.py", line 127, in import_module
2021-01-27T18:06:27.648852694Z return _bootstrap._gcd_import(name[level:], package, level)
2021-01-27T18:06:27.648857094Z File "", line 1014, in _gcd_import
2021-01-27T18:06:27.648861995Z File "", line 991, in _find_and_load
2021-01-27T18:06:27.648866495Z File "", line 975, in _find_and_load_unlocked
2021-01-27T18:06:27.648870996Z File "", line 671, in _load_unlocked
2021-01-27T18:06:27.648875396Z File "", line 783, in exec_module
2021-01-27T18:06:27.648879896Z File "", line 219, in _call_with_frames_removed
2021-01-27T18:06:27.648884397Z File "/home/site/wwwroot/wsgi.py", line 4, in
2021-01-27T18:06:27.648888997Z application = create_application(__file__)
2021-01-27T18:06:27.648893198Z File "/antenv/lib/python3.8/site-packages/jam/wsgi.py", line 108, in create_application
2021-01-27T18:06:27.648897598Z application = App(work_dir, load_task)
2021-01-27T18:06:27.648901699Z File "/antenv/lib/python3.8/site-packages/jam/wsgi.py", line 181, in __init__
2021-01-27T18:06:27.648917900Z create_admin(self)
2021-01-27T18:06:27.648923101Z File "/antenv/lib/python3.8/site-packages/jam/admin/admin.py", line 53, in create_admin
2021-01-27T18:06:27.648927201Z task.secret_key = read_secret_key(task)
2021-01-27T18:06:27.648931002Z File "/antenv/lib/python3.8/site-packages/jam/admin/admin.py", line 27, in read_secret_key
2021-01-27T18:06:27.648934902Z con.close()
2021-01-27T18:06:27.648938703Z AttributeError: 'NoneType' object has no attribute 'close'
2021-01-27T18:06:27.659040756Z [2021-01-27 18:06:27 +0000] [45] [INFO] Worker exiting (pid: 45)
2021-01-27T18:06:29.416426101Z [2021-01-27 18:06:29 +0000] [43] [INFO] Shutting down: Master
2021-01-27T18:06:29.416941655Z [2021-01-27 18:06:29 +0000] [43] [INFO] Reason: Worker failed to boot.