R
R
Randomiser2016-09-06 14:01:36
linux
Randomiser, 2016-09-06 14:01:36

How to solve the problem with installing NOC Project?

Good afternoon.
I install NOC Project kb.nocproject.org/display/DOC/Installation
Tried on
1. Centos - set manually https://kb.nocproject.org/display/DOC/Manual+Insta...
2. FreeBSD, Ubuntu via script installation.
In all cases, the result is the same on some tabs on the web interface Server Error (500) :
Main-setup-users
Main-setup-Reference Book
Main-setup-Groups
In the noc-web.log logs:

2016-09-06 11:57:35,723 [django.request] Internal Server Error: /main/user/
Traceback (most recent call last):
  File "/usr/local/noc/lib/python2.7/site-packages/django/core/handlers/base.py", line 134, in get_response
    response = response.render()
  File "/usr/local/noc/lib/python2.7/site-packages/django/template/response.py", line 104, in render
    self._set_content(self.rendered_content)
  File "/usr/local/noc/lib/python2.7/site-packages/django/template/response.py", line 81, in rendered_content
    content = template.render(context)
  File "/usr/local/noc/lib/python2.7/site-packages/django/template/base.py", line 140, in render
    return self._render(context)
  File "/usr/local/noc/lib/python2.7/site-packages/django/template/base.py", line 134, in _render
    return self.nodelist.render(context)
  File "/usr/local/noc/lib/python2.7/site-packages/django/template/base.py", line 823, in render
    bit = self.render_node(node, context)
  File "/usr/local/noc/lib/python2.7/site-packages/django/template/base.py", line 837, in render_node
    return node.render(context)
  File "/usr/local/noc/lib/python2.7/site-packages/django/template/loader_tags.py", line 123, in render
    return compiled_parent._render(context)
  File "/usr/local/noc/lib/python2.7/site-packages/django/template/base.py", line 134, in _render
    return self.nodelist.render(context)
  File "/usr/local/noc/lib/python2.7/site-packages/django/template/base.py", line 823, in render
    bit = self.render_node(node, context)
  File "/usr/local/noc/lib/python2.7/site-packages/django/template/base.py", line 837, in render_node
    return node.render(context)
  File "/usr/local/noc/lib/python2.7/site-packages/django/template/loader_tags.py", line 123, in render
    return compiled_parent._render(context)
  File "/usr/local/noc/lib/python2.7/site-packages/django/template/base.py", line 134, in _render
    return self.nodelist.render(context)
  File "/usr/local/noc/lib/python2.7/site-packages/django/template/base.py", line 823, in render
    bit = self.render_node(node, context)
  File "/usr/local/noc/lib/python2.7/site-packages/django/template/base.py", line 837, in render_node
    return node.render(context)
  File "/usr/local/noc/lib/python2.7/site-packages/django/template/loader_tags.py", line 62, in render
    result = block.nodelist.render(context)
  File "/usr/local/noc/lib/python2.7/site-packages/django/template/base.py", line 823, in render
    bit = self.render_node(node, context)
  File "/usr/local/noc/lib/python2.7/site-packages/django/template/base.py", line 837, in render_node
    return node.render(context)
  File "/usr/local/noc/lib/python2.7/site-packages/django/template/loader_tags.py", line 62, in render
    result = block.nodelist.render(context)
  File "/usr/local/noc/lib/python2.7/site-packages/django/template/base.py", line 823, in render
    bit = self.render_node(node, context)
  File "/usr/local/noc/lib/python2.7/site-packages/django/template/base.py", line 837, in render_node
    return node.render(context)
  File "/usr/local/noc/lib/python2.7/site-packages/django/template/base.py", line 1187, in render
    t = get_template(file_name)
  File "/usr/local/noc/lib/python2.7/site-packages/django/template/loader.py", line 145, in get_template
    template, origin = find_template(template_name)
  File "/usr/local/noc/lib/python2.7/site-packages/django/template/loader.py", line 138, in find_template
    raise TemplateDoesNotExist(name)
TemplateDoesNotExist: admin/search_form.html
2016-09-06 11:57:35,745 [tornado.access] 500 GET /main/user/ (127.0.0.1) 131.10ms

In the nginx-error.log logs:
[error] 4851#100130: *305 open() "/usr/local/noc/lib/python2.7/site-packages/django/contrib/admin/static/admin/css/base.css" failed (2: No such file or directory), client: 10.86.7.166, server: <yourdomain>, request: "GET /media/admin/css/base.css HTTP/1.1", host: "10.14.10.101", referrer: "http://10.14.10.101/main/user/"
2016/09/06 15:26:18 [error] 4851#100130: *307 open() "/usr/local/noc/lib/python2.7/site-packages/django/contrib/admin/static/admin/js/jquery.js" failed (2: No such file or directory), client: 10.86.7.166, server: <yourdomain>, request: "GET /media/admin/js/jquery.js HTTP/1.1", host: "10.14.10.101", referrer: "http://10.14.10.101/main/user/"
2016/09/06 15:26:18 [error] 4851#100130: *306 open() "/usr/local/noc/lib/python2.7/site-packages/django/contrib/admin/static/admin/img/icon_deletelink.gif" failed (2: No such file or directory), client: 10.86.7.166, server: <yourdomain>, request: "GET /media/admin/img/icon_deletelink.gif HTTP/1.1", host: "10.14.10.101", referrer: "http://10.14.10.101/main/user/"
2016/09/06 15:26:18 [error] 4851#100130: *306 open() "/usr/local/noc/lib/python2.7/site-packages/django/contrib/admin/static/admin/css/dashboard.css" failed (2: No such file or directory), client: 10.86.7.166, server: <yourdomain>, request: "GET /media/admin/css/dashboard.css HTTP/1.1", host: "10.14.10.101", referrer: "http://10.14.10.101/main/user/"
2016/09/06 15:26:18 [error] 4851#100130: *306 open() "/usr/local/noc/lib/python2.7/site-packages/django/contrib/admin/static/admin/img/icon_deletelink.gif" failed (2: No such file or directory), client: 10.86.7.166, server: <yourdomain>, request: "GET /media/admin/img/icon_deletelink.gif HTTP/1.1", host: "10.14.10.101", referrer: "http://10.14.10.101/main/user/"

The /usr/local/noc/lib/python2.7/site-packages/django/contrib/admin/static directory does not exist. Actually the question is what should it be and if so where to get it.
Or is the problem something else...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question