Bug 257923 - net-mgmt/netbox: cannot import name 'Random' from 'django.db.models.functions'
Summary: net-mgmt/netbox: cannot import name 'Random' from 'django.db.models.functions'
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Kai Knoblich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-18 07:43 UTC by O. Hartmann
Modified: 2021-08-18 08:18 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (kai)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2021-08-18 07:43:11 UTC
Running port net-mgmt/netbox service on FreeBSD 13.0-RELENG-p3 (amd64). Port is at
Name           : netbox
Version        : 2.11.11
Installed on   : Wed Aug 18 07:14:34 2021 UTC
Origin         : net-mgmt/netbox
Architecture   : FreeBSD:13:*

All suggested migration/updating scripts/steps have been performed so far, redis is up to date, apache is up to date. Tested netbox in developer mode as requested on Wiki - server starts, performs well.

Problem:

starting "service netbox start/service netbox restart" leaves me with no running netbox service, but an orphaned pid file.

On the webinterface I'm hit by this error:

[...]
<class 'ImportError'>

cannot import name 'Random' from 'django.db.models.functions' (/usr/local/lib/python3.8/site-packages/django/db/models/functions/__init__.py)

Python version: 3.8.10
NetBox version: 2.10.10
[...]

Netbox is at 2.11.11, not 2.10.10!

Prior to the update to the recent version 2.11.11, netbox was working.
Comment 1 O. Hartmann 2021-08-18 08:18:26 UTC
Weird ... after restarting all(!) jails on the specific provider host including the netbox-providing jail, the service came up as expected.