probr-uzh / probr-analysis

Analysis components for the probr WiFi tracking system
MIT License
14 stars 9 forks source link

Apps access not correctly configured on docker image #58

Open bullo95 opened 8 years ago

bullo95 commented 8 years ago

it would seem that the image docker is not configured correctly. port 9000 is innacessible and 8080 distributes blank pages. can be is this just a web server configuration problem.

bullo95 commented 8 years ago

More informations : Tested on OSX and DEBIAN, same results .

$ docker-compose up Starting probranalysis_analysis_worker_1 Starting probranalysis_analysis_1 Attaching to probranalysis_analysis_worker_1, probranalysis_analysis_1 analysis_worker_1 | detecting 4 CPU(s). forking... analysis_worker_1 | worker up. analysis_worker_1 | worker up. analysis_worker_1 | worker up. analysis_worker_1 | worker up. analysis_1 | Express server listening on 8080, in production mode analysis_worker_1 | [2016-03-15 12:21:55] device-job: started at Tue Mar 15 2016 12:21:55 GMT+0000 (UTC) analysis_worker_1 | [2016-03-15 12:21:56] session-job: started at Tue Mar 15 2016 12:21:55 GMT+0000 (UTC) analysis_worker_1 | [2016-03-15 12:21:56] location-job: started at Tue Mar 15 2016 12:21:55 GMT+0000 (UTC) analysis_worker_1 | location-Job: no location collection found. full map-reduce run to create it. analysis_worker_1 | [2016-03-15 12:21:56] device-job: finished in 0.777 seconds analysis_worker_1 | [2016-03-15 12:21:56] session-job: finished in 0.78 seconds analysis_worker_1 | location-Job: full map reduce done. analysis_worker_1 | location-Job: forEach: raw_locations -> locations analysis_worker_1 | location-Job: foreach: raw_locations -> locations -> done analysis_worker_1 | [2016-03-15 12:21:56] location-job: finished in 0.795 seconds analysis_1 | GET /analysis/app/bc0caa08.vendor.css 304 10ms analysis_1 | GET /analysis/app/830ec609.app.css 304 7ms analysis_1 | GET /analysis/app/33342391.vendor.js 304 2ms analysis_1 | GET /analysis/app/d185305b.app.js 304 2ms

In the browser, all the js or css links are redirected to the index page ( file not found ? ) Tell me if you need more informations

seanmantey commented 8 years ago

I'm getting exactly the same problem as bullo95.

dschoeni commented 8 years ago

Hi! This is possibly because probr-core isn't started up. Unfortunately the two projects are currently linked due to their nginx.

I'll look into it today trying to replicate and fix your error though.

seanmantey commented 8 years ago

Thanks Dominik, I really appreciate it.

By the way, the core is working and ingesting PCAP files although I've yet to attach any drones.

dschoeni commented 8 years ago

Okay - Seems something went missing in the process of publishing. Could you try out the following fix which i supplied to the probr-core repository: https://github.com/probr/probr-core/pull/22

Checkout the https://github.com/probr/probr-core/tree/bugfix/nginx-analysis branch and follow the steps described in the pull request.

seanmantey commented 8 years ago

Thanks Dominik, I'll re-load tonight and let you know.

seanmantey commented 8 years ago

Hi, I think we're almost there but I now get this error.

Status: Downloaded newer image for probr/core-analysis-nginx:latest ERROR: Could not get container for probranalysis_analysis_1

dschoeni commented 8 years ago

Try to start the analysis-part first, then launch probr-core using the fix provided. Unfortunately, using docker-compose there is no easy way to specify external compose-dependencies (and we didn't want to merge the two projects)

seanmantey commented 8 years ago

My bad Dominik, just re-started services and all works fine. Thanks for your help :)

cgrotowski commented 7 years ago

Hi i have problem with instalation of this project can anyone help my ?

rrodstein commented 6 years ago

Hi,

I've got both core and analysis working using docker on ubuntu17.04, 16.04, and 14.04. Please edit the core "docker-compose-analysis.yml" file and add the bottom two lines (from "external_links") to get packets into the analysis page:

worker: image: probr/core:latest command: sh install/docker/web/worker.sh volumes_from:

To get it all working: 1st step: probr-core$ sudo docker-compose up -d 2nd step: probr-analysis$ sudo docker-compose up -d 3rd step with above edit: probr-core$ sudo docker-compose -f docker-compose-analysis.yml up -d And your good to go!

Please let me know if you need any further details.

Have any of you figured out how to load a floor plan, i.e. rooms, or get google maps to work in the location/heatmap page?

Respectfully,

KhurramPirov commented 6 years ago

Could not get container for probrcore_mongodb_1 Could not get container for probranalysis_analysis_1