Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Internal Server Error for NGINX Setup #51

Open
darksheer opened this issue Dec 23, 2017 · 4 comments
Open

Internal Server Error for NGINX Setup #51

darksheer opened this issue Dec 23, 2017 · 4 comments

Comments

@darksheer
Copy link

darksheer commented Dec 23, 2017

Request Type

Bug

Work Environment

Question Answer
OS version (server) Ubuntu 16.0.4
OS version (client) MacOS
Hippocampe version / git hash Latest
Package Type From source
Browser type & version N/A

Problem Description

The NGINX process for fronting Hippocampe fails with internal server error

Steps to Reproduce

  1. Install hippocampe per docs
  2. Install nginix / uwsgi per docs
  3. Access the webserver http://ip/hippocampe
2017/12/23 23:09:49 [emerg] 5124#5124: invalid number of arguments in "try_files" directive in /etc/nginx/conf.d/hippo_nginx.conf:7
2017/12/23 23:12:44 [emerg] 5216#5216: invalid number of arguments in "try_files" directive in /etc/nginx/conf.d/hippo_nginx.conf:7
2017/12/23 23:15:18 [error] 5316#5316: *2 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 192.168.1.2, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
2017/12/23 23:15:23 [error] 5316#5316: *2 open() "/usr/share/nginx/html/hippocamppe" failed (2: No such file or directory), client: 192.168.1.2, server: localhost, request: "GET /hippocamppe HTTP/1.1", host: "192.168.1.1"
2017/12/23 23:15:35 [error] 5316#5316: *2 open() "/usr/share/nginx/html/hippocampe" failed (2: No such file or directory), client: 192.168.1.2, server: localhost, request: "GET /hippocampe HTTP/1.1", host: "192.168.1.1"
2017/12/23 23:15:39 [error] 5316#5316: *2 "/usr/share/nginx/html/hippocampe/index.html" is not found (2: No such file or directory), client: 192.168.1.2, server: localhost, request: "GET /hippocampe/ HTTP/1.1", host: "192.168.1.1"
2017/12/23 23:16:59 [error] 5316#5316: *3 "/usr/share/nginx/html/hippocampe/index.html" is not found (2: No such file or directory), client: 192.168.1.2, server: localhost, request: "GET /hippocampe/ HTTP/1.1", host: "192.168.1.1"
2017/12/23 23:17:02 [error] 5316#5316: *3 open() "/usr/share/nginx/html/hippocampe" failed (2: No such file or directory), client: 192.168.1.2, server: localhost, request: "GET /hippocampe HTTP/1.1", host: "192.168.1.1"
2017/12/23 23:17:39 [error] 5316#5316: *3 open() "/usr/share/nginx/html/hippocampe" failed (2: No such file or directory), client: 192.168.1.2, server: localhost, request: "GET /hippocampe HTTP/1.1", host: "192.168.1.1"
2017/12/23 23:18:00 [error] 5316#5316: *4 open() "/usr/share/nginx/html/hippocampe" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: "GET /hippocampe HTTP/1.1", host: "localhost"
2017/12/23 23:25:48 [error] 1343#1343: *1 connect() to unix:/var/www/demoapp/demoapp_uwsgi.sock failed (111: Connection refused) while connecting to upstream, client: 192.168.1.2, server: localhost, request: "GET /hippocampe HTTP/1.1", upstream: "uwsgi://unix:/var/www/demoapp/demoapp_uwsgi.sock:", host: "192.168.1.1"
2017/12/23 23:25:52 [error] 1343#1343: *1 connect() to unix:/var/www/demoapp/demoapp_uwsgi.sock failed (111: Connection refused) while connecting to upstream, client: 192.168.1.2, server: localhost, request: "GET /hippocampe HTTP/1.1", upstream: "uwsgi://unix:/var/www/demoapp/demoapp_uwsgi.sock:", host: "192.168.1.1"
@treed593
Copy link

+1 I have seen this as well, but I had my install working and it stopped randomly working. I will see if I can get the Hippocampe Logs from the server

@treed593
Copy link

2017-12-24 02:00:55,953 :: services.modules.shadowbook.processFeed :: ERROR :: processFeed.main failed for shunlist_IP.conf, no idea where it came from Traceback (most recent call last): File "/opt/Hippocampe/core/services/modules/shadowbook/processFeed.py", line 67, in main resMsearch = searchIntel.littleMsearch(source.coreIntelligence, source.typeNameESIntel, parsedPage) File "/opt/Hippocampe/core/services/modules/shadowbook/searchIntel.py", line 72, in littleMsearch res = es.msearch(body = req) File "/usr/local/lib/python2.7/dist-packages/elasticsearch/client/utils.py", line 76, in _wrapped return func(*args, params=params, **kwargs) File "/usr/local/lib/python2.7/dist-packages/elasticsearch/client/__init__.py", line 1161, in msearch raise ValueError("Empty value passed for a required argument 'body'.") ValueError: Empty value passed for a required argument 'body'. 2017-12-24 02:00:55,953 :: services.modules.shadowbook.processFeed :: INFO :: processFeed.main for shunlist_IP.conf end 2017-12-24 02:00:55,953 :: services.shadowbook :: INFO :: shadowbook.startJob end 2017-12-24 02:00:55,967 :: services.shadowbook :: INFO :: shadowbook.updateJob launched 2017-12-24 02:00:55,967 :: services.shadowbook :: INFO :: updating with status: done 2017-12-24 02:00:55,979 :: services.shadowbook :: INFO :: shadowbook.updateJob end 2017-12-24 02:00:55,980 :: services.shadowbook :: INFO :: shadowbook.manageJob end

@treed593
Copy link

--- no python application found, check your startup logs for errors --- [pid: 1885|app: -1|req: -1/4] 10.0.0.136 () {48 vars in 801 bytes} [Sun Dec 24 02:25:10 2017] GET /favicon.ico => generated 21 bytes in 0 msecs (HTTP/1.0 500) 2 headers in 83 bytes (0 switches on core 0)

@obikao
Copy link

obikao commented Jul 23, 2018

Just ran into this. Check that all the requirements are installed
pip install elasticsearch Configparser netaddr flask python-dateutil apscheduler requests
your permissions are correct and that app.py is set to executable
Lastly, try running it manually using python app.py if none of that works to identify any issue that may be preventing it from executing

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

No branches or pull requests

3 participants