Migrate Netbox 2.10.4 to 2.11.4 (or 2.11.3) #4964

Closed
opened 2025-12-29 19:22:43 +01:00 by adam · 0 comments
Owner

Originally created by @simo735 on GitHub (Jun 3, 2021).

NetBox version

v2.11.4 or v2.11.3

Python version

3.6

Steps to Reproduce

1- Run those command to migrate Netbox:
cd /opt
ln -s netbox-2.11.3 netbox
cp /opt/netbox-2.10.4/local_requirements.txt /opt/netbox/
cp /opt/netbox-2.10.4/netbox/netbox/configuration.py /opt/netbox/netbox/netbox/
cp /opt/netbox-2.10.4/netbox/netbox/ldap_config.py /opt/netbox/netbox/netbox/
cp -pr /opt/netbox-2.10.4/netbox/media/ /opt/netbox/netbox/
cp -r /opt/netbox-2.10.4/netbox/scripts /opt/netbox/netbox/
cp -r /opt/netbox-2.10.4/netbox/reports /opt/netbox/netbox/
cp /opt/netbox-2.10.4/gunicorn.py /opt/netbox/
cd netbox
./upgrade.sh

Expected Behavior

Must be run without error

Observed Behavior

I had this error:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "netbox/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/opt/netbox-2.11.3/venv/lib64/python3.6/site-packages/django/core/management/init.py", line 419, in execute_from_command_line
utility.execute()
File "/opt/netbox-2.11.3/venv/lib64/python3.6/site-packages/django/core/management/init.py", line 395, in execute
django.setup()
File "/opt/netbox-2.11.3/venv/lib64/python3.6/site-packages/django/init.py", line 19, in setup
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File "/opt/netbox-2.11.3/venv/lib64/python3.6/site-packages/django/utils/log.py", line 75, in configure_logging
logging_config_func(logging_settings)
File "/usr/lib64/python3.6/logging/config.py", line 802, in dictConfig
dictConfigClass(config).configure()
File "/usr/lib64/python3.6/logging/config.py", line 573, in configure
'%r: %s' % (name, e))
ValueError: Unable to configure handler 'netbox_auth_log': [Errno 2] No such file or directory: '/opt/netbox/logs/django-ldap-debug.log'

Originally created by @simo735 on GitHub (Jun 3, 2021). ### NetBox version v2.11.4 or v2.11.3 ### Python version 3.6 ### Steps to Reproduce 1- Run those command to migrate Netbox: cd /opt ln -s netbox-2.11.3 netbox cp /opt/netbox-2.10.4/local_requirements.txt /opt/netbox/ cp /opt/netbox-2.10.4/netbox/netbox/configuration.py /opt/netbox/netbox/netbox/ cp /opt/netbox-2.10.4/netbox/netbox/ldap_config.py /opt/netbox/netbox/netbox/ cp -pr /opt/netbox-2.10.4/netbox/media/ /opt/netbox/netbox/ cp -r /opt/netbox-2.10.4/netbox/scripts /opt/netbox/netbox/ cp -r /opt/netbox-2.10.4/netbox/reports /opt/netbox/netbox/ cp /opt/netbox-2.10.4/gunicorn.py /opt/netbox/ cd netbox ./upgrade.sh ### Expected Behavior Must be run without error ### Observed Behavior I had this error: During handling of the above exception, another exception occurred: Traceback (most recent call last): File "netbox/manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/opt/netbox-2.11.3/venv/lib64/python3.6/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line utility.execute() File "/opt/netbox-2.11.3/venv/lib64/python3.6/site-packages/django/core/management/__init__.py", line 395, in execute django.setup() File "/opt/netbox-2.11.3/venv/lib64/python3.6/site-packages/django/__init__.py", line 19, in setup configure_logging(settings.LOGGING_CONFIG, settings.LOGGING) File "/opt/netbox-2.11.3/venv/lib64/python3.6/site-packages/django/utils/log.py", line 75, in configure_logging logging_config_func(logging_settings) File "/usr/lib64/python3.6/logging/config.py", line 802, in dictConfig dictConfigClass(config).configure() File "/usr/lib64/python3.6/logging/config.py", line 573, in configure '%r: %s' % (name, e)) ValueError: Unable to configure handler 'netbox_auth_log': [Errno 2] No such file or directory: '/opt/netbox/logs/django-ldap-debug.log'
adam added the type: bug label 2025-12-29 19:22:43 +01:00
adam closed this issue 2025-12-29 19:22:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4964