Comments (7)
Ubuntu redis package is old for 16.04.03. I had to download it from the source and use that one. All is working now. Also saw in the config file where to change the host to allow remote access.
from misp-dashboard.
You need to activate the virtualenv as mentioned in the README:
Activate your virtualenv . ./DASHENV/bin/activate
I hope this helps.
from misp-dashboard.
from misp-dashboard.
Dear @robertnixon2003
You do not need to run it as root. Normal privileges are fine.
Just before running ./server.py do a:
echo $DASH_HOME
What does that return?
More debug? Do this:
export FLASK_DEBUG=1
export FLASK_APP=server.py
flask run --host=0.0.0.0 --port=8001 # <- Be careful here, this exposes it on ALL ip addresses. Ideally if run locally --host=127.0.0.1
Let us know what it gives.
I tried a fresh install and it worked on 16.04
Sincerely,
Steve
from misp-dashboard.
@robertnixon2003 could you run the latest version? @SteveClement did some additional clean-up to make the debugging easier 0fa7140 Thank you
from misp-dashboard.
I just installed the newest version. Had to run it in debug to get it to show up. It was refusing the connection when attempting to view in a browser on my host machine. That is configure able somewhere I guess.
Getting this error now when after publishing an event to ZMQ in MISP.
(DASHENV) test@ubuntu:~/misp-dashboard$ flask run --host=0.0.0.0 --port=8001 #
- Serving Flask app "server"
- Forcing debug mode on
- Running on http://0.0.0.0:8001/ (Press CTRL+C to quit)
- Restarting with stat
- Debugger is active!
- Debugger PIN: 300-809-022
Traceback (most recent call last):
File "./zmq_dispatcher.py", line 281, in
main(args.sleeptime)
File "./zmq_dispatcher.py", line 257, in main
process_log(zmqName, content)
File "./zmq_dispatcher.py", line 239, in process_log
dico_action[topic](zmq_name, jsonevent)
File "./zmq_dispatcher.py", line 85, in handler_dispatcher
handler_event(zmq_name, jsonObj)
File "./zmq_dispatcher.py", line 167, in handler_event
handler_attribute(zmq_name, jsoncopy)
File "./zmq_dispatcher.py", line 213, in handler_attribute
geo_helper.getCoordFromIpAndPublish(jsonattr['value'], jsonattr['category'])
File "/home/test/misp-dashboard/helpers/geo_helper.py", line 106, in getCoordFromIpAndPublish
self.push_to_redis_geo(self.keyCategRad, coord['lon'], coord['lat'], json.dumps(ordDic))
File "/home/test/misp-dashboard/helpers/geo_helper.py", line 166, in push_to_redis_geo
self.serv_redis_db.geoadd(keyname, lon, lat, content)
File "/home/test/misp-dashboard/DASHENV/lib/python3.5/site-packages/redis/client.py", line 2121, in geoadd
return self.execute_command('GEOADD', name, *values)
File "/home/test/misp-dashboard/DASHENV/lib/python3.5/site-packages/redis/client.py", line 668, in execute_command
return self.parse_response(connection, command_name, **options)
File "/home/test/misp-dashboard/DASHENV/lib/python3.5/site-packages/redis/client.py", line 680, in parse_response
response = connection.read_response()
File "/home/test/misp-dashboard/DASHENV/lib/python3.5/site-packages/redis/connection.py", line 629, in read_response
raise response
redis.exceptions.ResponseError: unknown command 'GEOADD'
from misp-dashboard.
亲爱的@ robertnixon2003
您无需以超级用户身份运行它。普通特权是可以的。
在运行./server.py之前,请执行以下操作:
回声$ DASH_HOME
那会返回什么?
更多调试?做这个:
export FLASK_DEBUG = 1
export FLASK_APP = server.py
flask run --host = 0.0.0.0 --port = 8001#<-注意,在所有IP地址上都将其公开。理想情况下,如果在本地运行--host = 127.0.0.1让我们知道它能带来什么。
我尝试重新安装,但它在16.04上有效
真挚地,
史蒂夫
I have an error when running flask. Can you help me fix it
from misp-dashboard.
Related Issues (20)
- NOT starting flask server HOT 1
- Too many redirects cause inability to display HOT 3
- Auth with Misp Saml HOT 3
- pycountry module install error HOT 1
- Dashboard not showing results HOT 2
- Do I install this on my misp server or on a different server? (aka is this a standalone tool) HOT 1
- Python Script not working. HOT 4
- Unable to connect to the MISP Dashboard, zmq_Dispatcher crashes after publishing events HOT 3
- Maps do not show HOT 1
- Redis server error HOT 1
- Question on compatibility with MISP docker
- Slight syntax error in diagnostic.py file
- Getting Error in MISP Dashboard Script( install_dependencies.sh)
- Unable to populate the Map with entries HOT 3
- Support request: Don't understand redis port
- Bug: Live dashboard - attribute with tags HOT 3
- Bug: Attribute.category panel does not work as expected HOT 1
- No data in Trendings dashboard HOT 1
- Replace maxmind with GeoOpen
- Malware
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from misp-dashboard.