Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PG::ConnectionBad #46

Open
JayMwakideu opened this issue Nov 7, 2021 · 5 comments
Open

PG::ConnectionBad #46

JayMwakideu opened this issue Nov 7, 2021 · 5 comments

Comments

@CanciuCostin
Copy link
Owner

Is this error thrown on Docker deployment? Or after build?
What is the OS?

@JayMwakideu
Copy link
Author

after build,

@JayMwakideu
Copy link
Author

ADB connection to be exact

@CanciuCostin
Copy link
Owner

Seems that you are not connected to the postgresdb. Not sure if you've configured a local instance or not.

You can try to run the postgres and msf instances from docker and keep your rails instance locally for build.
Try to set these environment variables:

ANDROIDSPYWARE_DATABASE_HOST=localhost
ADB_HOST=localhost
RAILS_HOST=127.0.0.1

and run docker-compose up after commenting the rails service

version: "3.7"
services:
#  rails-app:
#    image: costincanciu/android-spyware:latest
#    depends_on:
#      - db
#      - metasploit
#    ports:
#      - "80:80"
#    volumes:
#      - ./files:/app/android-spyware/files
#      - //var/run/docker.sock://var/run/docker.sock
#    entrypoint: sh -c "mkdir -p /app/android-spyware/files/payloads /app/android-spyware/files/dumps/calllogs_dumps /app/android-spyware/files/dumps/contacts_dumps /app/android-spyware/files/dumps/microphone_recs /app/android-spyware/files/dumps/pictures /app/android-spyware/files/dumps/screen_snaps /app/android-spyware/files/dumps/sms_messages_dumps /app/android-spyware/files/dumps/whatsapp | rails s -b 0.0.0.0 -p 80"
#    tty: true
#    environment:
#      ADB_HOST: gateway.docker.internal
#      #MAPS_API_KEY: YOUR KEY HERE
  db:
    image: costincanciu/android-spyware-db:latest
    ports:
      - "5432:5432"
    volumes:
      - db:/var/lib/postgresql/data
    environment:
      POSTGRES_HOST_AUTH_METHOD: trust
  metasploit:
    container_name: kali_container
    image: costincanciu/android-spyware-msf:latest
    ports:
    - "2222:2222"
    - "3333:3333"
    - "4444:4444"
    user: root
volumes:
  db:

@JayMwakideu
Copy link
Author

JayMwakideu commented Nov 13, 2021 via email

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

No branches or pull requests

2 participants