Created
January 22, 2019 23:52
-
-
Save bdlamprecht/e5d9ede813d80797181829342bb996cb to your computer and use it in GitHub Desktop.
netbox-docker error log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Attaching to netboxdocker_netbox_1 | |
netbox_1 | Operations to perform: | |
netbox_1 | Apply all migrations: admin, auth, circuits, contenttypes, dcim, extras, ipam, secrets, sessions, taggit, tenancy, users, virtualization | |
netbox_1 | Running migrations: | |
netbox_1 | No migrations to apply. | |
netbox_1 | 💡 Username: admin, E-Mail: netbox-admin@mydomain.biz | |
netbox_1 | ⚙️ Executing '/opt/netbox/startup_scripts/000_users.py' | |
netbox_1 | ⚙️ Executing '/opt/netbox/startup_scripts/010_groups.py' | |
netbox_1 | Permissions: <QuerySet []> | |
netbox_1 | Permissions: <QuerySet []> | |
netbox_1 | Permissions: <QuerySet []> | |
netbox_1 | Permissions: <QuerySet []> | |
netbox_1 | ⚙️ Executing '/opt/netbox/startup_scripts/020_custom_fields.py' | |
netbox_1 | ⚙️ Executing '/opt/netbox/startup_scripts/030_regions.py' | |
netbox_1 | ⚙️ Executing '/opt/netbox/startup_scripts/050_manufacturers.py' | |
netbox_1 | ⚙️ Executing '/opt/netbox/startup_scripts/060_device_types.py' | |
netbox_1 | Traceback (most recent call last): | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 486, in get_or_create | |
netbox_1 | return self.get(**lookup), False | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 399, in get | |
netbox_1 | self.model._meta.object_name | |
netbox_1 | dcim.models.DoesNotExist: DeviceType matching query does not exist. | |
netbox_1 | | |
netbox_1 | During handling of the above exception, another exception occurred: | |
netbox_1 | | |
netbox_1 | Traceback (most recent call last): | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 85, in _execute | |
netbox_1 | return self.cursor.execute(sql, params) | |
netbox_1 | psycopg2.IntegrityError: duplicate key value violates unique constraint "dcim_devicetype_manufacturer_id_model_17948c0c_uniq" | |
netbox_1 | DETAIL: Key (manufacturer_id, model)=(1, DCS-7150-S52-CL) already exists. | |
netbox_1 | | |
netbox_1 | | |
netbox_1 | The above exception was the direct cause of the following exception: | |
netbox_1 | | |
netbox_1 | Traceback (most recent call last): | |
netbox_1 | File "./manage.py", line 10, in <module> | |
netbox_1 | execute_from_command_line(sys.argv) | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line | |
netbox_1 | utility.execute() | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 375, in execute | |
netbox_1 | self.fetch_command(subcommand).run_from_argv(self.argv) | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 316, in run_from_argv | |
netbox_1 | self.execute(*args, **cmd_options) | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 353, in execute | |
netbox_1 | output = self.handle(*args, **options) | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/core/management/commands/shell.py", line 92, in handle | |
netbox_1 | exec(sys.stdin.read()) | |
netbox_1 | File "<string>", line 36, in <module> | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method | |
netbox_1 | return getattr(self.get_queryset(), name)(*args, **kwargs) | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 488, in get_or_create | |
netbox_1 | return self._create_object_from_params(lookup, params) | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 530, in _create_object_from_params | |
netbox_1 | raise e | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 522, in _create_object_from_params | |
netbox_1 | obj = self.create(**params) | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 413, in create | |
netbox_1 | obj.save(force_insert=True, using=self.db) | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/db/models/base.py", line 718, in save | |
netbox_1 | force_update=force_update, update_fields=update_fields) | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/db/models/base.py", line 748, in save_base | |
netbox_1 | updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields) | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/db/models/base.py", line 831, in _save_table | |
netbox_1 | result = self._do_insert(cls._base_manager, using, fields, update_pk, raw) | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/db/models/base.py", line 869, in _do_insert | |
netbox_1 | using=using, raw=raw) | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method | |
netbox_1 | return getattr(self.get_queryset(), name)(*args, **kwargs) | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 1136, in _insert | |
netbox_1 | return query.get_compiler(using=using).execute_sql(return_id) | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1289, in execute_sql | |
netbox_1 | cursor.execute(sql, params) | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 68, in execute | |
netbox_1 | return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers | |
netbox_1 | return executor(sql, params, many, context) | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 85, in _execute | |
netbox_1 | return self.cursor.execute(sql, params) | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__ | |
netbox_1 | raise dj_exc_value.with_traceback(traceback) from exc_value | |
netbox_1 | File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 85, in _execute | |
netbox_1 | return self.cursor.execute(sql, params) | |
netbox_1 | django.db.utils.IntegrityError: duplicate key value violates unique constraint "dcim_devicetype_manufacturer_id_model_17948c0c_uniq" | |
netbox_1 | DETAIL: Key (manufacturer_id, model)=(1, DCS-7150-S52-CL) already exists. | |
netbox_1 | | |
netboxdocker_netbox_1 exited with code 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment