Hello There, Guest!  
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

adagios error upon access

#1
Hello there from Athens, Greece

after installing NEMS i try to click on Reporting > Adagios

https://{IP}/adagios/

and i get HTTP 500

"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.

NEMS_Linux/1.4 Server at {ip} Port 443"

i checked the following error.log file

/var/log/apache2/error.log and i read:

[wsgi:error] [pid 22403] [remote {IP}:64267] mod_wsgi (pid=22403): Exception occurred processing WSGI script '/var/www/adagios/apache/adagios.wsgi'.
[wsgi:error] [pid 22403] [remote {IP}:64267] Traceback (most recent call last):
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 206, in __call__
[wsgi:error] [pid 22403] [remote {IP}:64267]     response = self.get_response(request)
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 196, in get_response
[wsgi:error] [pid 22403] [remote {IP}:64267]     response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 231, in handle_uncaught_exception
[wsgi:error] [pid 22403] [remote {IP}:64267]     return debug.technical_500_response(request, *exc_info)
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/views/debug.py", line 69, in technical_500_response
[wsgi:error] [pid 22403] [remote {IP}:64267]     html = reporter.get_traceback_html()
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/views/debug.py", line 324, in get_traceback_html
[wsgi:error] [pid 22403] [remote {IP}:64267]     return t.render©
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 140, in render
[wsgi:error] [pid 22403] [remote {IP}:64267]     return self._render(context)
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[wsgi:error] [pid 22403] [remote {IP}:64267]     return self.nodelist.render(context)
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[wsgi:error] [pid 22403] [remote {IP}:64267]     bit = self.render_node(node, context)
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 78, in render_node
[wsgi:error] [pid 22403] [remote {IP}:64267]     return node.render(context)
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 88, in render
[wsgi:error] [pid 22403] [remote {IP}:64267]     output = self.filter_expression.resolve(context)
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 613, in resolve
[wsgi:error] [pid 22403] [remote {IP}:64267]     new_obj = func(obj, *arg_vals)
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/template/defaultfilters.py", line 705, in date
[wsgi:error] [pid 22403] [remote {IP}:64267]     return format(value, arg)
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/utils/dateformat.py", line 312, in format
[wsgi:error] [pid 22403] [remote {IP}:64267]     return df.format(format_string)
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/utils/dateformat.py", line 35, in format
[wsgi:error] [pid 22403] [remote {IP}:64267]     pieces.append(force_text(getattr(self, piece)()))
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/utils/dateformat.py", line 216, in r
[wsgi:error] [pid 22403] [remote {IP}:64267]     return self.format('D, j M Y H:iConfused O')
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/utils/dateformat.py", line 35, in format
[wsgi:error] [pid 22403] [remote {IP}:64267]     pieces.append(force_text(getattr(self, piece)()))
[Wed Nov 07 13:15:15.450152 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/utils/encoding.py", line 100, in force_text
[Wed Nov 07 13:15:15.450813 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]     s = s.__unicode__()
[Wed Nov 07 13:15:15.450918 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 138, in __text_cast
[Wed Nov 07 13:15:15.451592 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]     return func(*self.__args, **self.__kw)
[Wed Nov 07 13:15:15.451783 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py", line 76, in ugettext
[Wed Nov 07 13:15:15.452224 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]     return _trans.ugettext(message)
[Wed Nov 07 13:15:15.452333 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py", line 281, in ugettext
[Wed Nov 07 13:15:15.453314 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]     return do_translate(message, 'ugettext')
[Wed Nov 07 13:15:15.453446 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py", line 263, in do_translate
[Wed Nov 07 13:15:15.453563 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]     _default = translation(settings.LANGUAGE_CODE)
[Wed Nov 07 13:15:15.453648 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py", line 177, in translation
[Wed Nov 07 13:15:15.453723 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]     default_translation = _fetch(settings.LANGUAGE_CODE)
[Wed Nov 07 13:15:15.453808 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py", line 159, in _fetch
[Wed Nov 07 13:15:15.453921 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]     app = import_module(appname)
[Wed Nov 07 13:15:15.453966 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 40, in import_module
[Wed Nov 07 13:15:15.454351 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]     __import__(name)

any ideas ? seems as if this is python related in relation to my hardware ? ( RaspBerry Pi 3 B+ )
 Reply
#2
I am trying to see a device from NEMS - Nagios screen and click option see on map

then i get

The requested URL /nagios/map.php was not found on this server.
 Reply
#3
Hello, from Canada, NickTheGreek. Welcome to NEMS! Sorry you've hit some snags.

A couple things to check...
- First things first, I suspect you may have a bad image. Can you run an md5sum on the file you burnt to the SD card and ensure its MD5 matches? See the list here: https://docs.nemslinux.com/md5sums
- If that's not it... did you see any errors while running nems-init?
- Being from Greece, I just have to ask; is there any chance you used any characters in your username or password which may cause issues for our nice little western-built image? I try to think of everything, but I sometimes encounter things like that ... and promptly fix them. Let me know if that's the case so I can see about patching.
- If nothing above helps, please submit a support.nems file. This will help me understand (and fix?) what's happening. https://docs.nemslinux.com/commands/nems-support

Cheers!
Robbie
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
 Reply
#4
Thank you very very much on getting back to me on this

today we reinstalled the image and everything runs smoothly, adagios and map included

We even setup email ( there was had a really funny issue when sendemail password included an english question mark thus breaking variable setand causing alerts not delivering while nems email test worked )

the only thing i am still unable to fix is telegram notification despite all efforts

i am ok with API even chat id but still no alerts in the group

My best

Nick
 Reply
#5
please let me know how to invoke this command from prompt populating with variables manually

/usr/local/bin/telegram_nems.lua

i read all this but i am missing something obvious probably

http://forum.category5.tv/thread-124-pos...ml#pid1495
 Reply
#6
Hmm, a question mark... yeah that could be trouble. I'll need to do some testing. Thanks for pointing that out.

I am currently working with Kaganishu on the Telegram documentation and some improvements for NEMS 1.5. Watch the docs / changelog for that. Don't waste too much time on it because I'll be fixing it very soon and adding the docs.


Cheers!
Robbie
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
 Reply
#7
thank you Robbie, i am really eager to see how this works and implement with telegram as telegram is part of my daily online activity and work for quite some time
 Reply
#8
Good to know. I've never used Telegram (I use Pushover and email notifications, personally) - so I rely on the community for Telegram :) I've made sure it's on the to-do list for 1.5.

Cheers!
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
 Reply
#9
Robbie a colleague figured this out and if you add

bot

to the Bot API key it works !

tested a while ago :)
 Reply
#10
Cheers. This will be added programatically in NEMS 1.5.

You're welcome to upgrade the plugin directly if you like: https://github.com/Cat5TV/nems-migrator/...m_nems.lua

Let me know if you're not sure how.

Thanks!
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
 Reply
 
 
Forum Jump:

Users browsing this thread: 1 Guest(s)