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

Topology loading stuck with infinite loading logo #9

Open
tommydpl opened this issue Jun 3, 2020 · 6 comments
Open

Topology loading stuck with infinite loading logo #9

tommydpl opened this issue Jun 3, 2020 · 6 comments

Comments

@tommydpl
Copy link

tommydpl commented Jun 3, 2020

I tried to use Your plugin with the default configuration. For a small site with few (8) devices I've got some result but for a site with over 100 objects the map is never displayed (I waited like 10 minutes) . Also I do not see a way to include only few selected device roles

@jordanrvillarreal
Copy link

I've had similar issues. I've found that if you let it sit for a few minutes, no real handle on how long this is, then toggle between the horizontal or vertical view a few times, no real handle on how many times, it will eventually display. I don't have a site quite at that scale but this work on my site of ~35 devices.

@iDebugAll
Copy link
Owner

First of all, thank you for your feedback.
Please try a few workarounds to identify the issue scope and conditions:

  1. Open the Site topology page directly:
    http://{your_netbox_host}/plugins/nextbox-ui/site_topology/{site_id}
    Will the topology open properly in this case?
  2. Add a plugin option to disable initial vertical layout in Netbox’s configuration.py and restart NetBox service:
PLUGINS_CONFIG = {
  ‘nextbox_ui_plugin’: {
    ‘INITIAL_LAYOUT’: ‘auto’,
  }
}

This should still generate a proper view from the Site page. Once you see the topology, you may switch the layout to vertical/horizontal using buttons manually.

Also what is your browser and OS? It seems the initial vertical layout pease of code causes the issue with infinite loading logo in some browsers/versions.

@jpobeda
Copy link

jpobeda commented Jun 12, 2020

I've seen the same behavior. If I set INITIAL_LAYOUT to auto it works and If I got straight to the URL it never fails.

@iDebugAll ,do we have any tools to control node spacing? vertical and horizontal layout get all devices squeezed together. Any chance of saving the positioning once you move them around?
Also on the samples you provide I noticed the labels some times get rendered upside down, how can we get around that?

@Pzharyuk
Copy link

PLUGINS_CONFIG = {
‘nextbox_ui_plugin’: {
‘INITIAL_LAYOUT’: ‘auto’,
}
}

Jun 15 10:27:51 dtnaacvdl210 gunicorn[31768]: raise HaltServer(reason, self.WORKER_BOOT_ERROR)
Jun 15 10:27:51 dtnaacvdl210 gunicorn[31768]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
Jun 15 10:27:51 dtnaacvdl210 systemd[1]: netbox.service: main process exited, code=exited, status=1/FAILURE
Jun 15 10:27:51 dtnaacvdl210 systemd[1]: Unit netbox.service entered failed state.
Jun 15 10:27:51 dtnaacvdl210 systemd[1]: netbox.service failed.
lines 14017-14072/14072 (END)

When I add the plugin config, netbox service fails to start.

@misch42
Copy link

misch42 commented Jul 2, 2020

ok. seems to work now. Thanks for your help.

iDebugAll added a commit that referenced this issue Jul 3, 2020
Vertical and horizontal alignment works not stable across all browsers and causes inifinite loading logo issue (#9).
With initial layout set to auto, this issue does not reproduce.
This is a workaround setting until the bug is fixed.
@iDebugAll iDebugAll changed the title No result for bigger site Topology loading stuck with infinite loading logo Jul 3, 2020
@iDebugAll
Copy link
Owner

INITIAL_LAYOUT is now set to 'auto' by default in the latest release.
This is a workaround setting until a manage to fix the bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants