v3.4.6 - IP Addresses Search Not Working #7759

Closed
opened 2025-12-29 20:27:54 +01:00 by adam · 2 comments
Owner

Originally created by @mlazzarotto on GitHub (Mar 15, 2023).

NetBox version

v3.4.6

Python version

3.10

Steps to Reproduce

  1. Type any IP address in the top Search bar
  2. Press ENTER or click the search button
  3. — No results found —

Expected Behavior

A list of matching IP addresses should be listed.

Observed Behavior

— No results found —

Additional info

Yesterday I updated Netbox from v3.4.4 on both of our instances.
Instances are running on docker-compose from https://github.com/netbox-community/netbox-docker and have been working very good since the first installation.
I also tried to search for IP address with a regex .* but still no results.
Looking on docker-compose logs -f I see nothing weird.

netbox_1               | 🧬 loaded config '/etc/netbox/config/ldap/ldap_config.py'
netbox_1               | 🧬 loaded config '/etc/netbox/config/ldap/extra.py'
netbox_1               | 172.19.0.6 - - [15/Mar/2023:10:01:58 +0000] "GET /search/?q=172.16.156.116&obj_types=ipam.ipaddress HTTP/1.1" 200 80527 "https://netbox.mydomain.net/search/?q=172.16.156.116&obj_types=ipam.ipaddress" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.69"
netbox_1               | 172.19.0.6 - - [15/Mar/2023:10:01:58 +0000] "GET /search/?q=172.16.156.116&obj_types=ipam.ipaddress HTTP/1.1" 200 80527 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.69"
netbox_1               | 127.0.0.1 - - [15/Mar/2023:10:01:59 +0000] "GET /api/ HTTP/1.1" 200 469 "-" "curl/7.81.0"
Originally created by @mlazzarotto on GitHub (Mar 15, 2023). ### NetBox version v3.4.6 ### Python version 3.10 ### Steps to Reproduce 1. Type any IP address in the top *Search* bar 2. Press ENTER or click the search button 3. `— No results found —` ### Expected Behavior A list of matching IP addresses should be listed. ### Observed Behavior `— No results found —` ### Additional info Yesterday I updated Netbox from v3.4.4 on both of our instances. Instances are running on `docker-compose` from https://github.com/netbox-community/netbox-docker and have been working very good since the first installation. I also tried to search for IP address with a regex `.*` but still no results. Looking on `docker-compose logs -f` I see nothing weird. ``` netbox_1 | 🧬 loaded config '/etc/netbox/config/ldap/ldap_config.py' netbox_1 | 🧬 loaded config '/etc/netbox/config/ldap/extra.py' netbox_1 | 172.19.0.6 - - [15/Mar/2023:10:01:58 +0000] "GET /search/?q=172.16.156.116&obj_types=ipam.ipaddress HTTP/1.1" 200 80527 "https://netbox.mydomain.net/search/?q=172.16.156.116&obj_types=ipam.ipaddress" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.69" netbox_1 | 172.19.0.6 - - [15/Mar/2023:10:01:58 +0000] "GET /search/?q=172.16.156.116&obj_types=ipam.ipaddress HTTP/1.1" 200 80527 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.69" netbox_1 | 127.0.0.1 - - [15/Mar/2023:10:01:59 +0000] "GET /api/ HTTP/1.1" 200 469 "-" "curl/7.81.0" ```
adam added the type: bug label 2025-12-29 20:27:54 +01:00
adam closed this issue 2025-12-29 20:27:54 +01:00
Author
Owner

@kkthxbye-code commented on GitHub (Mar 15, 2023):

This is a netbox docker issue:

https://github.com/netbox-community/netbox-docker/issues/947

To fix it you should run the manage.py reindex command to regenerate the search indexes.

@kkthxbye-code commented on GitHub (Mar 15, 2023): This is a netbox docker issue: https://github.com/netbox-community/netbox-docker/issues/947 To fix it you should run the `manage.py reindex` command to regenerate the search indexes.
Author
Owner

@mlazzarotto commented on GitHub (Mar 15, 2023):

Thank you!
Relevant issue https://github.com/netbox-community/netbox-docker/issues/947.
On Linux host os: docker exec -it netbox-docker_netbox_1 python3 manage.py reindex

@mlazzarotto commented on GitHub (Mar 15, 2023): Thank you! Relevant issue https://github.com/netbox-community/netbox-docker/issues/947. On Linux host os: `docker exec -it netbox-docker_netbox_1 python3 manage.py reindex`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7759