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

Cant login to webgui after docker compose up #498

Open
Ondjultomte opened this issue Sep 1, 2024 · 4 comments
Open

Cant login to webgui after docker compose up #498

Ondjultomte opened this issue Sep 1, 2024 · 4 comments

Comments

@Ondjultomte
Copy link

Ondjultomte commented Sep 1, 2024

Ran

$ wget https://raw.githubusercontent.com/infobyte/faraday/master/docker-compose.yaml
$ docker-compose up

but there is no output for a user nor password.
$ sudo docker compose up -d
WARN[0000] /home/ekke/docker-compose.yaml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Running 34/34
✔ app Pulled 25.2s
✔ 6eab20599fab Pull complete 2.6s
✔ f790e9177a85 Pull complete 2.8s
✔ 6dbe8744009a Pull complete 3.3s
✔ 176e3d22ecf5 Pull complete 3.3s
✔ 0e85dc1c893f Pull complete 4.6s
✔ 960ebf03d4e6 Pull complete 4.6s
✔ 5aeff9e29d35 Pull complete 12.9s
✔ 017806b18b0d Pull complete 13.7s
✔ 2843731625fb Pull complete 13.7s
✔ e9d08b44073a Pull complete 23.7s
✔ c169b0107617 Pull complete 23.7s
✔ bb7657871629 Pull complete 23.7s
✔ 7e8984ed34b2 Pull complete 23.7s
✔ 40b4b5c2c0a3 Pull complete 23.7s
✔ b3415940191a Pull complete 23.7s
✔ db Pulled 16.2s
✔ 29291e31a76a Pull complete 8.8s
✔ c7f8a1ea71cb Pull complete 9.0s
✔ 64d8912b293d Pull complete 9.0s
✔ c5ea624bd2f9 Pull complete 14.3s
✔ 8b31ea9e78e2 Pull complete 14.3s
✔ 73b55a167823 Pull complete 14.3s
✔ 182bdad89856 Pull complete 14.4s
✔ 8106b49e33bd Pull complete 14.4s
✔ redis Pulled 10.6s
✔ c6a83fedfae6 Pull complete 6.6s
✔ f0614eab96a6 Pull complete 6.8s
✔ 088a404f516f Pull complete 8.3s
✔ 57d0a4a9d769 Pull complete 8.3s
✔ 4a303a21c8f6 Pull complete 8.8s
✔ 065f40602644 Pull complete 8.8s
✔ 4f4fb700ef54 Pull complete 8.8s
✔ 8dbed3c7e537 Pull complete 8.8s
[+] Running 5/5
✔ Network ekke_default Created 0.1s
✔ Volume "ekke_db" Created 0.0s
✔ Container faraday_db Started 18.0s
✔ Container faraday_redis Started 18.0s
✔ Container faraday_app Started

cant enter the container via

$ sudo docker run -it faraday_app /bin/sh
Unable to find image 'faraday_app:latest' locally
docker: Error response from daemon: pull access denied for faraday_app, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

how do I login ? With what password? i tried faraday:faraday etc. but no luck

@Ondjultomte
Copy link
Author

All containes are up and running

$ sudo docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e813e51c302f faradaysec/faraday "/entrypoint.sh" 23 minutes ago Up 21 minutes 0.0.0.0:5985->5985/tcp, :::5985->5985/tcp faraday_app
fd690f6c8703 postgres:12.7-alpine "docker-entrypoint.s…" 23 minutes ago Up 23 minutes 0.0.0.0:32768->5432/tcp, [::]:32768->5432/tcp faraday_db
f00d9648ef36 redis:6.2-alpine "docker-entrypoint.s…" 23 minutes ago Up 23 minutes 0.0.0.0:32769->6379/tcp, [::]:32769->6379/tcp faraday_redis

@ezk06eer
Copy link

ezk06eer commented Sep 2, 2024

Dear @Ondjultomte,

I wanted to check if you've had the opportunity to utilize the docker logs -f {{ container name }} command. This should allow you to monitor Faraday's startup process directly via STDOUT.

As a best practice, please ensure you review the documentation thoroughly before raising any inquiries:

Faraday Docker Documentation

Additionally, for entering a container, you may use the following commands:

  • docker exec -it <mycontainer> /bin/bash
  • docker exec -it <mycontainer> sh

The documentation also includes a comprehensive guide on changing the password for the "faraday" account.

Best regards,

@Ondjultomte
Copy link
Author

$ sudo docker run -it faraday_app /bin/sh
Unable to find image 'faraday_app:latest' locally
docker: Error response from daemon: pull access denied for faraday_app, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

Hi, yes I tried loggin in to the container, as I pasted above.
$ sudo docker run -it faraday_app /bin/sh
Unable to find image 'faraday_app:latest' locally
docker: Error response from daemon: pull access denied for faraday_app, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

but I cant, so chaning pw via cli is difficult. Ill see if I can find anything in the logs.

@ezk06eer
Copy link

ezk06eer commented Sep 5, 2024

Dear @Ondjultomte,

I wanted to check if you've had the opportunity to utilize the docker logs -f {{ container name }} command. This should allow you to monitor Faraday's startup process directly via STDOUT.

As a best practice, please ensure you review the documentation thoroughly before raising any inquiries:

Faraday Docker Documentation

Additionally, for entering a container, you may use the following commands:

  • docker exec -it <mycontainer> /bin/bash
  • docker exec -it <mycontainer> sh

The documentation also includes a comprehensive guide on changing the password for the "faraday" account.

Best regards,

Hi mr @Ondjultomte the command shared by me in the reply is slyghtly different than the one you ran.

Use docker exec instead of docker run.
also, from the logs you shared you should do docker login Docker Documentation

After using the command shared, you will be able to run the command faraday-manage change-password to change the password of the account. You can use the default user for faraday is "faraday".

If you use docker logs in the container you will also see the password generated at the time the container was created.
Docker log Documentation

Hope this helps!

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