-
Notifications
You must be signed in to change notification settings - Fork 158
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
Comments
Is this error thrown on Docker deployment? Or after build? |
after build, |
ADB connection to be exact |
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.
and run docker-compose up after commenting the rails service
|
Thanks mate, let me try
…On Fri, Nov 12, 2021, 10:21 Canciu Costin ***@***.***> wrote:
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:
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#46 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEY5PRFFGPCUBOOYR3F2FFDULS567ANCNFSM5HQYBRTA>
.
|
fe_sendauth: no password supplied
Rails.root: C:/Windows/system32/android-spyware
pg-1.2.2-x64 (mingw32) lib/pg.rb:58:in `initialize'
pg-1.2.2-x64 (mingw32) lib/pg.rb:58:in `new'
pg-1.2.2-x64 (mingw32) lib/pg.rb:58:in `connect'
activerecord (6.0.2.1) lib/active_record/connection_adapters/postgresql_adapter.rb:46:in `postgresql_connection'
activerecord (6.0.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:889:in `new_connection'
activerecord (6.0.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:933:in `checkout_new_connection'
The text was updated successfully, but these errors were encountered: