'NoneType' object has no attribute '_base_manager'

515 views
Skip to first unread message

Andrey

unread,
Dec 29, 2020, 9:28:17 AM12/29/20
to NetBox

The complete exception is provided below:

<class 'AttributeError'>
'NoneType' object has no attribute '_base_manager' Python version: 3.7.3 NetBox version: 2.10.2 
How is it solved? 

justi...@gmail.com

unread,
Dec 29, 2020, 11:30:12 AM12/29/20
to NetBox
Can you give us some kind of indication of what you're doing when this happens?

Andrey

unread,
Dec 29, 2020, 12:55:35 PM12/29/20
to NetBox
I go to the site http://0.0.0.0:8000/ and see this message. 

вторник, 29 декабря 2020 г. в 23:30:12 UTC+7, justi...@gmail.com:

Brian Candler

unread,
Dec 30, 2020, 5:36:30 AM12/30/20
to NetBox
1. Do you have any plugins installed??
2. Are you definitely running netbox inside a virtualenv, using the exact package versions from requirements.txt?
3. Did you upgrade by untarring a new netbox release on top of an old netbox release? That doesn't work - it can leave behind files which need to be deleted.
4. Otherwise, you need to show the full backtrace.  You can do this by setting DEBUG=True in configuration.py, or by setting EMAIL and ADMINS (in which case, a backtrace is E-mailed whenever an exception occurs)

Andrey

unread,
Dec 30, 2020, 6:58:41 AM12/30/20
to Brian Candler, NetBox

Error during template rendering

In template /opt/netbox-2.10.2/netbox/templates/base.html, error at line 0

'NoneType' object has no attribute '_base_manager'

1{% load static %}
2{% load helpers %}
3<!DOCTYPE html>
4<html lang="en">
5<head>
6 <title>{% block title %}Home{% endblock %} - NetBox</title>
7 <link rel="stylesheet"
8 href="{% static 'bootstrap-3.4.1-dist/css/bootstrap.min.css' %}"
9 onerror="window.location='{% url 'media_failure' %}?filename=bootstrap-3.4.1-dist/css/bootstrap.min.css'">
10 <link rel="stylesheet"

ср, 30 дек. 2020 г. в 17:36, Brian Candler <b.ca...@pobox.com>:
--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/480b781a-fa7a-4227-b8d4-b33e20443610n%40googlegroups.com.

Brian Candler

unread,
Dec 30, 2020, 9:58:57 AM12/30/20
to NetBox
Something is seriously broken in your Netbox installation if it can't even display a backtrace.

I suggest you:
1. Backup your database and media
2. Reinstall Netbox from scratch
3. Restore your database and media

Reply all
Reply to author
Forward
0 new messages