Version 2.3.3 is broken #1759

Closed
opened 2025-12-29 17:18:53 +01:00 by adam · 5 comments
Owner

Originally created by @dcotruta on GitHub (May 30, 2018).

### Issue type
[x] Bug report

### Environment

(netbox-venv) ***:/opt/netbox-2.3.3$ python --version
Python 3.5.2
(netbox-venv) ***:/opt/netbox-2.3.3$ pip --version
pip 10.0.1 from /opt/netbox-venv/lib/python3.5/site-packages/pip (python 3.5)

Following pip install -r requirements.txt package list:
asn1crypto==0.24.0
bcrypt==3.1.4
certifi==2018.4.16
cffi==1.11.5
chardet==3.0.4
click==6.7
coreapi==2.3.3
coreschema==0.0.4
cryptography==2.2.2
Django==1.11.13
django-cors-headers==2.2.0
django-debug-toolbar==1.9.1
django-filter==1.1.0
django-js-asset==1.1.0
django-mptt==0.9.0
django-tables2==1.21.2
django-timezone-field==2.1
djangorestframework==3.8.2
drf-yasg==1.7.4
flex==6.13.2
future==0.16.0
graphviz==0.8.3
idna==2.6
inflection==0.3.1
itypes==1.1.0
Jinja2==2.10
jsonpointer==1.14
jsonschema==2.6.0
lxml==4.2.1
Markdown==2.6.11
MarkupSafe==1.0
natsort==5.3.2
ncclient==0.5.3
netaddr==0.7.18
openapi-codec==1.3.2
paramiko==2.4.1
Pillow==5.1.0
psycopg2-binary==2.7.4
py-gfm==0.1.3
pyasn1==0.4.3
pycparser==2.18
pycryptodome==3.6.1
PyNaCl==1.2.1
pytz==2018.4
PyYAML==3.12
requests==2.18.4
rfc3987==1.3.7
ruamel.yaml==0.15.37
six==1.11.0
sqlparse==0.2.4
strict-rfc3339==0.7
swagger-spec-validator==2.1.0
uritemplate==3.0.0
urllib3==1.22
validate-email==1.3
xmltodict==0.11.0

Gunicorn setup
gunicorn (version 19.8.1)

gunicorn_config.py
command = '/usr/bin/gunicorn'
pythonpath = '/opt/netbox-2.3.3/netbox'
bind = '127.0.0.1:8001'
workers = 3
user = 'www-data'

Trying to run:

(netbox-venv) ***:~$ sudo gunicorn -c /opt/netbox-2.3.3/netbox/gunicorn_config.py netbox.wsgi

Results in:

[2018-05-30 09:47:19 +0000] [7104] [INFO] Starting gunicorn 19.8.1
[2018-05-30 09:47:19 +0000] [7104] [INFO] Listening at: http://127.0.0.1:8001 (7104)
[2018-05-30 09:47:19 +0000] [7104] [INFO] Using worker: sync
[2018-05-30 09:47:19 +0000] [7107] [INFO] Booting worker with pid: 7107
[2018-05-30 09:47:19 +0000] [7108] [INFO] Booting worker with pid: 7108
[2018-05-30 09:47:19 +0000] [7111] [INFO] Booting worker with pid: 7111
[2018-05-30 09:47:20 +0000] [7111] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/gunicorn/arbiter.py", line 583, in spawn_worker
worker.init_process()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/base.py", line 129, in init_process
self.load_wsgi()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/base.py", line 138, in load_wsgi
self.wsgi = self.app.wsgi()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load
return self.load_wsgiapp()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/local/lib/python3.5/dist-packages/gunicorn/util.py", line 350, in import_app
import(module)
File "/opt/netbox-2.3.3/netbox/netbox/wsgi.py", line 8, in
application = get_wsgi_application()
File "/usr/local/lib/python3.5/dist-packages/django/core/wsgi.py", line 13, in get_wsgi_application
django.setup(set_prefix=False)
File "/usr/local/lib/python3.5/dist-packages/django/init.py", line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python3.5/dist-packages/django/apps/registry.py", line 108, in populate
app_config.import_models()
File "/usr/local/lib/python3.5/dist-packages/django/apps/config.py", line 202, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib/python3.5/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/opt/netbox-2.3.3/netbox/dcim/models.py", line 21, in
from extras.rpc import RPC_CLIENTS
File "/opt/netbox-2.3.3/netbox/extras/rpc.py", line 6, in
import paramiko
File "/usr/local/lib/python3.5/dist-packages/paramiko/init.py", line 22, in
from paramiko.transport import SecurityOptions, Transport
File "/usr/local/lib/python3.5/dist-packages/paramiko/transport.py", line 57, in
from paramiko.ed25519key import Ed25519Key
File "/usr/local/lib/python3.5/dist-packages/paramiko/ed25519key.py", line 22, in
import nacl.signing
File "/usr/local/lib/python3.5/dist-packages/nacl/signing.py", line 19, in
import nacl.bindings
File "/usr/local/lib/python3.5/dist-packages/nacl/bindings/init.py", line 17, in
from nacl.bindings.crypto_box import (
File "/usr/local/lib/python3.5/dist-packages/nacl/bindings/crypto_box.py", line 27, in
crypto_box_SEEDBYTES = lib.crypto_box_seedbytes()
AttributeError: cffi library '_sodium' has no function, constant or global variable named 'crypto_box_seedbytes'
[2018-05-30 09:47:20 +0000] [7111] [INFO] Worker exiting (pid: 7111)
[2018-05-30 09:47:20 +0000] [7107] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/gunicorn/arbiter.py", line 583, in spawn_worker
worker.init_process()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/base.py", line 129, in init_process
self.load_wsgi()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/base.py", line 138, in load_wsgi
self.wsgi = self.app.wsgi()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load
return self.load_wsgiapp()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/local/lib/python3.5/dist-packages/gunicorn/util.py", line 350, in import_app
import(module)
File "/opt/netbox-2.3.3/netbox/netbox/wsgi.py", line 8, in
application = get_wsgi_application()
File "/usr/local/lib/python3.5/dist-packages/django/core/wsgi.py", line 13, in get_wsgi_application
django.setup(set_prefix=False)
File "/usr/local/lib/python3.5/dist-packages/django/init.py", line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python3.5/dist-packages/django/apps/registry.py", line 108, in populate
app_config.import_models()
File "/usr/local/lib/python3.5/dist-packages/django/apps/config.py", line 202, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib/python3.5/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/opt/netbox-2.3.3/netbox/dcim/models.py", line 21, in
from extras.rpc import RPC_CLIENTS
File "/opt/netbox-2.3.3/netbox/extras/rpc.py", line 6, in
import paramiko
File "/usr/local/lib/python3.5/dist-packages/paramiko/init.py", line 22, in
from paramiko.transport import SecurityOptions, Transport
File "/usr/local/lib/python3.5/dist-packages/paramiko/transport.py", line 57, in
from paramiko.ed25519key import Ed25519Key
File "/usr/local/lib/python3.5/dist-packages/paramiko/ed25519key.py", line 22, in
import nacl.signing
File "/usr/local/lib/python3.5/dist-packages/nacl/signing.py", line 19, in
import nacl.bindings
File "/usr/local/lib/python3.5/dist-packages/nacl/bindings/init.py", line 17, in
from nacl.bindings.crypto_box import (
File "/usr/local/lib/python3.5/dist-packages/nacl/bindings/crypto_box.py", line 27, in
crypto_box_SEEDBYTES = lib.crypto_box_seedbytes()
AttributeError: cffi library '_sodium' has no function, constant or global variable named 'crypto_box_seedbytes'
[2018-05-30 09:47:20 +0000] [7107] [INFO] Worker exiting (pid: 7107)
[2018-05-30 09:47:20 +0000] [7108] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/gunicorn/arbiter.py", line 583, in spawn_worker
worker.init_process()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/base.py", line 129, in init_process
self.load_wsgi()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/base.py", line 138, in load_wsgi
self.wsgi = self.app.wsgi()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load
return self.load_wsgiapp()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/local/lib/python3.5/dist-packages/gunicorn/util.py", line 350, in import_app
import(module)
File "/opt/netbox-2.3.3/netbox/netbox/wsgi.py", line 8, in
application = get_wsgi_application()
File "/usr/local/lib/python3.5/dist-packages/django/core/wsgi.py", line 13, in get_wsgi_application
django.setup(set_prefix=False)
File "/usr/local/lib/python3.5/dist-packages/django/init.py", line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python3.5/dist-packages/django/apps/registry.py", line 108, in populate
app_config.import_models()
File "/usr/local/lib/python3.5/dist-packages/django/apps/config.py", line 202, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib/python3.5/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/opt/netbox-2.3.3/netbox/dcim/models.py", line 21, in
from extras.rpc import RPC_CLIENTS
File "/opt/netbox-2.3.3/netbox/extras/rpc.py", line 6, in
import paramiko
File "/usr/local/lib/python3.5/dist-packages/paramiko/init.py", line 22, in
from paramiko.transport import SecurityOptions, Transport
File "/usr/local/lib/python3.5/dist-packages/paramiko/transport.py", line 57, in
from paramiko.ed25519key import Ed25519Key
File "/usr/local/lib/python3.5/dist-packages/paramiko/ed25519key.py", line 22, in
import nacl.signing
File "/usr/local/lib/python3.5/dist-packages/nacl/signing.py", line 19, in
import nacl.bindings
File "/usr/local/lib/python3.5/dist-packages/nacl/bindings/init.py", line 17, in
from nacl.bindings.crypto_box import (
File "/usr/local/lib/python3.5/dist-packages/nacl/bindings/crypto_box.py", line 27, in
crypto_box_SEEDBYTES = lib.crypto_box_seedbytes()
AttributeError: cffi library '_sodium' has no function, constant or global variable named 'crypto_box_seedbytes'
[2018-05-30 09:47:20 +0000] [7108] [INFO] Worker exiting (pid: 7108)
[2018-05-30 09:47:20 +0000] [7104] [INFO] Shutting down: Master
[2018-05-30 09:47:20 +0000] [7104] [INFO] Reason: Worker failed to boot.

Originally created by @dcotruta on GitHub (May 30, 2018). **### Issue type** [x] Bug report **### Environment** (netbox-venv) ***:/opt/netbox-2.3.3$ python --version Python 3.5.2 (netbox-venv) ***:/opt/netbox-2.3.3$ pip --version pip 10.0.1 from /opt/netbox-venv/lib/python3.5/site-packages/pip (python 3.5) _**Following pip install -r requirements.txt package list:**_ asn1crypto==0.24.0 bcrypt==3.1.4 certifi==2018.4.16 cffi==1.11.5 chardet==3.0.4 click==6.7 coreapi==2.3.3 coreschema==0.0.4 cryptography==2.2.2 Django==1.11.13 django-cors-headers==2.2.0 django-debug-toolbar==1.9.1 django-filter==1.1.0 django-js-asset==1.1.0 django-mptt==0.9.0 django-tables2==1.21.2 django-timezone-field==2.1 djangorestframework==3.8.2 drf-yasg==1.7.4 flex==6.13.2 future==0.16.0 graphviz==0.8.3 idna==2.6 inflection==0.3.1 itypes==1.1.0 Jinja2==2.10 jsonpointer==1.14 jsonschema==2.6.0 lxml==4.2.1 Markdown==2.6.11 MarkupSafe==1.0 natsort==5.3.2 ncclient==0.5.3 netaddr==0.7.18 openapi-codec==1.3.2 paramiko==2.4.1 Pillow==5.1.0 psycopg2-binary==2.7.4 py-gfm==0.1.3 pyasn1==0.4.3 pycparser==2.18 pycryptodome==3.6.1 PyNaCl==1.2.1 pytz==2018.4 PyYAML==3.12 requests==2.18.4 rfc3987==1.3.7 ruamel.yaml==0.15.37 six==1.11.0 sqlparse==0.2.4 strict-rfc3339==0.7 swagger-spec-validator==2.1.0 uritemplate==3.0.0 urllib3==1.22 validate-email==1.3 xmltodict==0.11.0 _**Gunicorn setup**_ gunicorn (version 19.8.1) _gunicorn_config.py_ command = '/usr/bin/gunicorn' pythonpath = '/opt/netbox-2.3.3/netbox' bind = '127.0.0.1:8001' workers = 3 user = 'www-data' **_Trying to run:_** (netbox-venv) ***:~$ sudo gunicorn -c /opt/netbox-2.3.3/netbox/gunicorn_config.py netbox.wsgi **_Results in:_** [2018-05-30 09:47:19 +0000] [7104] [INFO] Starting gunicorn 19.8.1 [2018-05-30 09:47:19 +0000] [7104] [INFO] Listening at: http://127.0.0.1:8001 (7104) [2018-05-30 09:47:19 +0000] [7104] [INFO] Using worker: sync [2018-05-30 09:47:19 +0000] [7107] [INFO] Booting worker with pid: 7107 [2018-05-30 09:47:19 +0000] [7108] [INFO] Booting worker with pid: 7108 [2018-05-30 09:47:19 +0000] [7111] [INFO] Booting worker with pid: 7111 [2018-05-30 09:47:20 +0000] [7111] [ERROR] Exception in worker process Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/gunicorn/arbiter.py", line 583, in spawn_worker worker.init_process() File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/base.py", line 129, in init_process self.load_wsgi() File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/base.py", line 138, in load_wsgi self.wsgi = self.app.wsgi() File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/base.py", line 67, in wsgi self.callable = self.load() File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load return self.load_wsgiapp() File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp return util.import_app(self.app_uri) File "/usr/local/lib/python3.5/dist-packages/gunicorn/util.py", line 350, in import_app __import__(module) File "/opt/netbox-2.3.3/netbox/netbox/wsgi.py", line 8, in <module> application = get_wsgi_application() File "/usr/local/lib/python3.5/dist-packages/django/core/wsgi.py", line 13, in get_wsgi_application django.setup(set_prefix=False) File "/usr/local/lib/python3.5/dist-packages/django/__init__.py", line 27, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/local/lib/python3.5/dist-packages/django/apps/registry.py", line 108, in populate app_config.import_models() File "/usr/local/lib/python3.5/dist-packages/django/apps/config.py", line 202, in import_models self.models_module = import_module(models_module_name) File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/opt/netbox-2.3.3/netbox/dcim/models.py", line 21, in <module> from extras.rpc import RPC_CLIENTS File "/opt/netbox-2.3.3/netbox/extras/rpc.py", line 6, in <module> import paramiko File "/usr/local/lib/python3.5/dist-packages/paramiko/__init__.py", line 22, in <module> from paramiko.transport import SecurityOptions, Transport File "/usr/local/lib/python3.5/dist-packages/paramiko/transport.py", line 57, in <module> from paramiko.ed25519key import Ed25519Key File "/usr/local/lib/python3.5/dist-packages/paramiko/ed25519key.py", line 22, in <module> import nacl.signing File "/usr/local/lib/python3.5/dist-packages/nacl/signing.py", line 19, in <module> import nacl.bindings File "/usr/local/lib/python3.5/dist-packages/nacl/bindings/__init__.py", line 17, in <module> from nacl.bindings.crypto_box import ( File "/usr/local/lib/python3.5/dist-packages/nacl/bindings/crypto_box.py", line 27, in <module> crypto_box_SEEDBYTES = lib.crypto_box_seedbytes() AttributeError: cffi library '_sodium' has no function, constant or global variable named 'crypto_box_seedbytes' [2018-05-30 09:47:20 +0000] [7111] [INFO] Worker exiting (pid: 7111) [2018-05-30 09:47:20 +0000] [7107] [ERROR] Exception in worker process Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/gunicorn/arbiter.py", line 583, in spawn_worker worker.init_process() File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/base.py", line 129, in init_process self.load_wsgi() File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/base.py", line 138, in load_wsgi self.wsgi = self.app.wsgi() File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/base.py", line 67, in wsgi self.callable = self.load() File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load return self.load_wsgiapp() File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp return util.import_app(self.app_uri) File "/usr/local/lib/python3.5/dist-packages/gunicorn/util.py", line 350, in import_app __import__(module) File "/opt/netbox-2.3.3/netbox/netbox/wsgi.py", line 8, in <module> application = get_wsgi_application() File "/usr/local/lib/python3.5/dist-packages/django/core/wsgi.py", line 13, in get_wsgi_application django.setup(set_prefix=False) File "/usr/local/lib/python3.5/dist-packages/django/__init__.py", line 27, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/local/lib/python3.5/dist-packages/django/apps/registry.py", line 108, in populate app_config.import_models() File "/usr/local/lib/python3.5/dist-packages/django/apps/config.py", line 202, in import_models self.models_module = import_module(models_module_name) File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/opt/netbox-2.3.3/netbox/dcim/models.py", line 21, in <module> from extras.rpc import RPC_CLIENTS File "/opt/netbox-2.3.3/netbox/extras/rpc.py", line 6, in <module> import paramiko File "/usr/local/lib/python3.5/dist-packages/paramiko/__init__.py", line 22, in <module> from paramiko.transport import SecurityOptions, Transport File "/usr/local/lib/python3.5/dist-packages/paramiko/transport.py", line 57, in <module> from paramiko.ed25519key import Ed25519Key File "/usr/local/lib/python3.5/dist-packages/paramiko/ed25519key.py", line 22, in <module> import nacl.signing File "/usr/local/lib/python3.5/dist-packages/nacl/signing.py", line 19, in <module> import nacl.bindings File "/usr/local/lib/python3.5/dist-packages/nacl/bindings/__init__.py", line 17, in <module> from nacl.bindings.crypto_box import ( File "/usr/local/lib/python3.5/dist-packages/nacl/bindings/crypto_box.py", line 27, in <module> crypto_box_SEEDBYTES = lib.crypto_box_seedbytes() AttributeError: cffi library '_sodium' has no function, constant or global variable named 'crypto_box_seedbytes' [2018-05-30 09:47:20 +0000] [7107] [INFO] Worker exiting (pid: 7107) [2018-05-30 09:47:20 +0000] [7108] [ERROR] Exception in worker process Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/gunicorn/arbiter.py", line 583, in spawn_worker worker.init_process() File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/base.py", line 129, in init_process self.load_wsgi() File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/base.py", line 138, in load_wsgi self.wsgi = self.app.wsgi() File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/base.py", line 67, in wsgi self.callable = self.load() File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load return self.load_wsgiapp() File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp return util.import_app(self.app_uri) File "/usr/local/lib/python3.5/dist-packages/gunicorn/util.py", line 350, in import_app __import__(module) File "/opt/netbox-2.3.3/netbox/netbox/wsgi.py", line 8, in <module> application = get_wsgi_application() File "/usr/local/lib/python3.5/dist-packages/django/core/wsgi.py", line 13, in get_wsgi_application django.setup(set_prefix=False) File "/usr/local/lib/python3.5/dist-packages/django/__init__.py", line 27, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/local/lib/python3.5/dist-packages/django/apps/registry.py", line 108, in populate app_config.import_models() File "/usr/local/lib/python3.5/dist-packages/django/apps/config.py", line 202, in import_models self.models_module = import_module(models_module_name) File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/opt/netbox-2.3.3/netbox/dcim/models.py", line 21, in <module> from extras.rpc import RPC_CLIENTS File "/opt/netbox-2.3.3/netbox/extras/rpc.py", line 6, in <module> import paramiko File "/usr/local/lib/python3.5/dist-packages/paramiko/__init__.py", line 22, in <module> from paramiko.transport import SecurityOptions, Transport File "/usr/local/lib/python3.5/dist-packages/paramiko/transport.py", line 57, in <module> from paramiko.ed25519key import Ed25519Key File "/usr/local/lib/python3.5/dist-packages/paramiko/ed25519key.py", line 22, in <module> import nacl.signing File "/usr/local/lib/python3.5/dist-packages/nacl/signing.py", line 19, in <module> import nacl.bindings File "/usr/local/lib/python3.5/dist-packages/nacl/bindings/__init__.py", line 17, in <module> from nacl.bindings.crypto_box import ( File "/usr/local/lib/python3.5/dist-packages/nacl/bindings/crypto_box.py", line 27, in <module> crypto_box_SEEDBYTES = lib.crypto_box_seedbytes() AttributeError: cffi library '_sodium' has no function, constant or global variable named 'crypto_box_seedbytes' [2018-05-30 09:47:20 +0000] [7108] [INFO] Worker exiting (pid: 7108) [2018-05-30 09:47:20 +0000] [7104] [INFO] Shutting down: Master [2018-05-30 09:47:20 +0000] [7104] [INFO] Reason: Worker failed to boot.
adam closed this issue 2025-12-29 17:18:53 +01:00
Author
Owner

@jeremystretch commented on GitHub (May 30, 2018):

Thank you for your interest in NetBox. GitHub issues are intended for reporting reproducible bugs and requesting features, and must be submitted using the template provided here. For general discussion, questions, or assistance with installation issues, please post to our mailing list.

@jeremystretch commented on GitHub (May 30, 2018): Thank you for your interest in NetBox. GitHub issues are intended for reporting reproducible bugs and requesting features, and must be submitted using the template provided [here](https://raw.githubusercontent.com/digitalocean/netbox/develop/.github/ISSUE_TEMPLATE.md). For general discussion, questions, or assistance with installation issues, please post to our [mailing list](https://groups.google.com/forum/#!forum/netbox-discuss).
Author
Owner

@dcotruta commented on GitHub (May 30, 2018):

Seriously? You closed this? What's missing from the template?

@dcotruta commented on GitHub (May 30, 2018): Seriously? You closed this? What's missing from the template?
Author
Owner

@jeremystretch commented on GitHub (May 30, 2018):

File "/usr/local/lib/python3.5/dist-packages/nacl/signing.py", line 19, in
import nacl.bindings
File "/usr/local/lib/python3.5/dist-packages/nacl/bindings/init.py", line 17, in
from nacl.bindings.crypto_box import (
File "/usr/local/lib/python3.5/dist-packages/nacl/bindings/crypto_box.py", line 27, in
crypto_box_SEEDBYTES = lib.crypto_box_seedbytes()
AttributeError: cffi library '_sodium' has no function, constant or global variable named 'crypto_box_seedbytes'

This is not a bug in NetBox, it is a problem with your installation environment. That is why I closed the ticket with the suggestion that you post to the mailing list for assistance.

@jeremystretch commented on GitHub (May 30, 2018): ``` File "/usr/local/lib/python3.5/dist-packages/nacl/signing.py", line 19, in import nacl.bindings File "/usr/local/lib/python3.5/dist-packages/nacl/bindings/init.py", line 17, in from nacl.bindings.crypto_box import ( File "/usr/local/lib/python3.5/dist-packages/nacl/bindings/crypto_box.py", line 27, in crypto_box_SEEDBYTES = lib.crypto_box_seedbytes() AttributeError: cffi library '_sodium' has no function, constant or global variable named 'crypto_box_seedbytes' ``` This is not a bug in NetBox, it is a problem with your installation environment. That is why I closed the ticket with the suggestion that you post to the mailing list for assistance.
Author
Owner

@dcotruta commented on GitHub (May 30, 2018):

The installation environment is the result of installing the requirements provided by netbox. That was a clean venv, with nothing in it before I started.

@dcotruta commented on GitHub (May 30, 2018): The installation environment is the result of installing the requirements provided by netbox. That was a clean venv, with nothing in it before I started.
Author
Owner

@dcotruta commented on GitHub (May 30, 2018):

If I start out with a blank environment, and use the documentation steps with version 2.3.3, netbox fails to start. The only options are: the documentation is broken, or there's a dependency that's broken. In either case, this is an issue caused directly by netbox.
2.3.0, for example, does not have this issue.

@dcotruta commented on GitHub (May 30, 2018): If I start out with a blank environment, and use the documentation steps with version 2.3.3, netbox fails to start. The only options are: the documentation is broken, or there's a dependency that's broken. In either case, this is an issue caused directly by netbox. 2.3.0, for example, does not have this issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1759