Skip to content

Errors when upgrading from 3.4.3 to 4.0.8 (ipam.0064_clear_search_cache...Skipping config initialization (database unavailable)) #17100

Closed Locked Answered by etigui
etigui asked this question in Help Wanted!
Discussion options

You must be logged in to vote

I have found how to fix it, but it's weird:

  1. Migrate first to the version 3.7.8
PYTHON=/usr/bin/python3.11 ./upgrade.sh
  1. If you get the issue below follow this #14929 (comment)
$ PYTHON=/usr/bin/python3.11 ./upgrade.sh
...
Applying database migrations (python3 netbox/manage.py migrate)...
Traceback (most recent call last):
  File "/opt/netbox/netbox/manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/opt/netbox/venv/lib64/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/opt/netbox/venv/lib64/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
 …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by etigui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #17099 on August 07, 2024 16:22.