Running docker build -t nautobot-lab:latest .
on a Digital Ocean Droplet running Ubuntu 18.04 (LTS) x64
encounters the following error:
TASK [RUN MAKEMIGRATIONS] ******************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["/opt/nautobot/bin/nautobot-server", "makemigrations"], "delta": "0:00:02.240716", "end": "2022-09-14 19:03:14.698676", "msg": "non-zero return code", "rc": 1, "start": "2022-09-14 19:03:12.457960", "stderr": "Traceback (most recent call last):\n File \"/opt/nautobot/bin/nautobot-server\", line 8, in <module>\n sys.exit(main())\n File \"/opt/nautobot/lib/python3.8/site-packages/nautobot/core/cli.py\", line 54, in main\n run_app(\n File \"/opt/nautobot/lib/python3.8/site-packages/nautobot/core/runner/runner.py\", line 266, in run_app\n management.execute_from_command_line([runner_name, command] + command_args)\n File \"/opt/nautobot/lib/python3.8/site-packages/django/core/management/__init__.py\", line 401, in execute_from_command_line\n utility.execute()\n File \"/opt/nautobot/lib/python3.8/site-packages/django/core/management/__init__.py\", line 377, in execute\n django.setup()\n File \"/opt/nautobot/lib/python3.8/site-packages/django/__init__.py\", line 24, in setup\n apps.populate(settings.INSTALLED_APPS)\n File \"/opt/nautobot/lib/python3.8/site-packages/django/apps/registry.py\", line 114, in populate\n app_config.import_models()\n File \"/opt/nautobot/lib/python3.8/site-packages/django/apps/config.py\", line 211, in import_models\n self.models_module = import_module(models_module_name)\n File \"/usr/lib/python3.8/importlib/__init__.py\", line 127, in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n File \"<frozen importlib._bootstrap>\", line 1014, in _gcd_import\n File \"<frozen importlib._bootstrap>\", line 991, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 975, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 671, in _load_unlocked\n File \"<frozen importlib._bootstrap_external>\", line 848, in exec_module\n File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\n File \"/opt/nautobot/lib/python3.8/site-packages/django_celery_beat/models.py\", line 246, in <module>\n class CrontabSchedule(models.Model):\n File \"/opt/nautobot/lib/python3.8/site-packages/django_celery_beat/models.py\", line 301, in CrontabSchedule\n timezone = timezone_field.TimeZoneField(\n File \"/opt/nautobot/lib/python3.8/site-packages/timezone_field/fields.py\", line 88, in __init__\n super(TimeZoneField, self).__init__(*args, **kwargs)\nTypeError: __init__() got an unexpected keyword argument 'use_pytz'", "stderr_lines": ["Traceback (most recent call last):", " File \"/opt/nautobot/bin/nautobot-server\", line 8, in <module>", " sys.exit(main())", " File \"/opt/nautobot/lib/python3.8/site-packages/nautobot/core/cli.py\", line 54, in main", " run_app(", " File \"/opt/nautobot/lib/python3.8/site-packages/nautobot/core/runner/runner.py\", line 266, in run_app", " management.execute_from_command_line([runner_name, command] + command_args)", " File \"/opt/nautobot/lib/python3.8/site-packages/django/core/management/__init__.py\", line 401, in execute_from_command_line", " utility.execute()", " File \"/opt/nautobot/lib/python3.8/site-packages/django/core/management/__init__.py\", line 377, in execute", " django.setup()", " File \"/opt/nautobot/lib/python3.8/site-packages/django/__init__.py\", line 24, in setup", " apps.populate(settings.INSTALLED_APPS)", " File \"/opt/nautobot/lib/python3.8/site-packages/django/apps/registry.py\", line 114, in populate", " app_config.import_models()", " File \"/opt/nautobot/lib/python3.8/site-packages/django/apps/config.py\", line 211, in import_models", " self.models_module = import_module(models_module_name)", " File \"/usr/lib/python3.8/importlib/__init__.py\", line 127, in import_module", " return _bootstrap._gcd_import(name[level:], package, level)", " File \"<frozen importlib._bootstrap>\", line 1014, in _gcd_import", " File \"<frozen importlib._bootstrap>\", line 991, in _find_and_load", " File \"<frozen importlib._bootstrap>\", line 975, in _find_and_load_unlocked", " File \"<frozen importlib._bootstrap>\", line 671, in _load_unlocked", " File \"<frozen importlib._bootstrap_external>\", line 848, in exec_module", " File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed", " File \"/opt/nautobot/lib/python3.8/site-packages/django_celery_beat/models.py\", line 246, in <module>", " class CrontabSchedule(models.Model):", " File \"/opt/nautobot/lib/python3.8/site-packages/django_celery_beat/models.py\", line 301, in CrontabSchedule", " timezone = timezone_field.TimeZoneField(", " File \"/opt/nautobot/lib/python3.8/site-packages/timezone_field/fields.py\", line 88, in __init__", " super(TimeZoneField, self).__init__(*args, **kwargs)", "TypeError: __init__() got an unexpected keyword argument 'use_pytz'"], "stdout": "", "stdout_lines": []}
PLAY RECAP *********************************************************************
localhost : ok=15 changed=14 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
The command '/bin/sh -c apt-get update -y && apt-get install -y tzdata --no-install-recommends && ln -fs /usr/share/zoneinfo/UTC /etc/localtime && dpkg-reconfigure -f noninteractive tzdata && apt-get install -y python3 python3-psycopg2 python3-pip python3-venv python3-dev python3-apt postgresql-12 libpq-dev redis-server systemctl git --no-install-recommends && pip3 install --no-cache-dir pip --upgrade && pip install --no-cache-dir --requirement ./templates/requirements.txt && ansible-galaxy collection install community.postgresql && ansible-playbook pb_nautobot_install.yml && pip uninstall -y ansible && apt-get clean && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 2