owtf / owtf-docker

Docker repository for OWTF (64-bit Kali)
https://hub.docker.com/r/owtf/owtf/
BSD 3-Clause "New" or "Revised" License
34 stars 18 forks source link

Can't run the image correctly #24

Closed MatthewShao closed 8 years ago

MatthewShao commented 8 years ago

I pull the image from docker hub, and run the following command as suggested:

docker run -it --privileged -p 8008:8008 -p 8009:8009 -p 8010:8010 owtf/owtf -e

but it gave the error message like this:

Failed to connect to bus: No such file or directory
[+] Postgres running on :
[+] OWTF db config points towards 127.0.0.1:5432
[+] New database configuration saved
psql: could not connect to server: Connection refused
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
psql: could not connect to server: Connection refused
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Having SSL=true in postgres config causes many errors (psycopg2 problem)
sed: no input files
Restarting the postgresql service
[ ok ] Restarting PostgreSQL 9.5 database server: main.
CREATE ROLE
CREATE DATABASE
[*] Make sure you run this image with the proper parameters
[*] #docker run -it -p 8008:8008 -p 8009:8009 -p 8010:8010 --privileged <image_name>
patching file owtf/framework/config/framework_config.cfg
Hunk #1 succeeded at 17 (offset 2 lines).
patching file owtf/profiles/general/default.cfg
Hunk #1 succeeded at 169 (offset 1 line).

 _____ _ _ _ _____ _____
|     | | | |_   _|   __|
|  |  | | | | | | |   __|
|_____|_____| |_| |__|

        @owtfp
    http://owtf.org

ERROR:root:Aborted by Framework: Database configuration file is potentially corrupted. Please check ~/.owtf/db.cfg
[DB] invalid literal for int() with base 10: ''

seems something wrong with the postgres_entry.sh script, could we fix this?

viyatb commented 8 years ago

@MatthewShao does the latest fix work for you?

MatthewShao commented 8 years ago

Yes, it works fine. Thanks!