Hi, i’ve been trying to deploy a django app with fly.io, i always chose no Postgre Database since it’s just an API, no need for storage, everytime i try to deploy the logs show the following:
1 desired, 1 placed, 0 healthy, 0 unhealthy [restarts 1 desired, 1 placed, 0 healthy, 0 unhealthy [restarts 1 desired, 1 placed, 0 healthy, 0 unhealthy [restarts 1 desired, 1 placed, 0 healthy, 1 unhealthy [restarts: 2] [health checks: 1 total]
Failed Instances
Failure #1
Recent Events
TYPE MESSAGE
Received Task received by client
Task Setup Building Task Directory
Started Task started by client
Terminated Exit Code: 3
Restarting Task restarting in 1.125696876s
Started Task started by client
Terminated Exit Code: 3
Restarting Task restarting in 1.213925672s
Started Task started by client
[info] from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
[info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/django/contrib/auth/base_user.py", line 49, in <module>
[info] class AbstractBaseUser(models.Model):
[info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/django/db/models/base.py", line 141, in __new__
[info] new_class.add_to_class("_meta", Options(meta, app_label))
[info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/django/db/models/base.py", line 369, in add_to_class
[info] value.contribute_to_class(cls, name)
[info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/django/db/models/options.py", line 231, in contribute_to_class
[info] self.db_table, connection.ops.max_name_length()
[info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/django/utils/connection.py", line 15, in __getattr__
[info] return getattr(self._connections[self._alias], item)
[info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/django/utils/connection.py", line 62, in __getitem__
[info] conn = self.create_connection(alias)
[info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/django/db/utils.py", line 193, in create_connection
[info] backend = load_backend(db["ENGINE"])
[info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/django/db/utils.py", line 113, in load_backend
[info] return import_module("%s.base" % backend_name)
[info] File "/layers/paketo-buildpacks_cpython/cpython/lib/python3.10/importlib/__init__.py", line 126, in import_module
[info] return _bootstrap._gcd_import(name[level:], package, level)
[info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py", line 7, in <module>
[info] from sqlite3 import dbapi2 as Database
[info] File "/layers/paketo-buildpacks_cpython/cpython/lib/python3.10/sqlite3/__init__.py", line 57, in <module>
[info] from sqlite3.dbapi2 import *
[info] File "/layers/paketo-buildpacks_cpython/cpython/lib/python3.10/sqlite3/dbapi2.py", line 27, in <module>
[info] from _sqlite3 import *
[info]ModuleNotFoundError: No module named '_sqlite3'
[info] [538] [INFO] Worker exiting (pid: 538)
[info] [520] [INFO] Shutting down: Master
[info] [520] [INFO] Reason: Worker failed to boot.
[info]Starting clean up.
--> v3 failed - Failed due to unhealthy allocations - no stable job version to auto revert to and deploying as v4
I’ve already tried to switch the builder in fly.toml from
paketobuildpacks/builder:base
to
paketobuildpacks/builder:full
and the error persists, here’s what’s in my Procfile:
web: gunicorn drogasil_crawler.wsgi:application
Also tried to use a local builder and the error persists.
And flyctl didn’t generated any Dockerfile, i guess it’s because it’s using the remote builder?