Bug 257923

Summary: net-mgmt/netbox: cannot import name 'Random' from 'django.db.models.functions'
Product: Ports & Packages Reporter: O. Hartmann <ohartmann>
Component: Individual Port(s)Assignee: Kai Knoblich <kai>
Status: Closed Not A Bug    
Severity: Affects Some People CC: ohartmann
Priority: --- Flags: bugzilla: maintainer-feedback? (kai)
Version: Latest   
Hardware: Any   
OS: Any   

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.