Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.4.6 - IP Addresses Search Not Working #11980

Closed
mlazzarotto opened this issue Mar 15, 2023 · 2 comments
Closed

v3.4.6 - IP Addresses Search Not Working #11980

mlazzarotto opened this issue Mar 15, 2023 · 2 comments
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@mlazzarotto
Copy link

mlazzarotto commented 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"
@mlazzarotto mlazzarotto added the type: bug A confirmed report of unexpected behavior in the application label Mar 15, 2023
@mlazzarotto mlazzarotto changed the title IP Addresses Search Not Working v3.4.6 - IP Addresses Search Not Working Mar 15, 2023
@kkthxbye-code
Copy link
Contributor

This is a netbox docker issue:

netbox-community/netbox-docker#947

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

@kkthxbye-code kkthxbye-code closed this as not planned Won't fix, can't repro, duplicate, stale Mar 15, 2023
@mlazzarotto
Copy link
Author

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

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants