-
Notifications
You must be signed in to change notification settings - Fork 122
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
container brought up with docker-compose fails with access denied error #60
Comments
Hey @edsanks welcome to IBeam 😊👋 Thanks for providing all the details on this issue you're experiencing! I'd start by observing that the ie. change:
Into:
We'll look into other possibilities once we know this is not the problem 👍 |
Adding the '-' prefix in the docker-compose.yaml causes the command to simply exit with the following message: |
Okay, thanks for checking that. The Could I ask you to paste the full |
attaching a copy of the file used |
Thanks for sending it over @edsanks It seems to be in order syntax wise. Please add the following to your
Running IBeam through docker-compose creates a separate docker network that the Gateway seems to dislike. |
This is great find. It worked. Thanks for the assistance. I will try some more by deploying this on AWS ECS / EKS env and add some details, so it will help others. |
This is doing a decent job by deploying on ECS. One thing we noticed is, it chokes on curl command after a few minutes. I am trying a test for linearly higher backoff time and see what the idle timeout might be that could cause IB connection to choke. So far, a 90 second gap between curl calls has not caused a failure. Will try more like 2mins, 3mins and 4 mins gaps. Any known ideas on this? Another thing I want to try is using 2FA automated. Any clues like operational steps and configs would be great. Happy to test it. |
So, the container choked after responding to two calls each 3-min apart. |
Hey @edsanks I'm happy to hear that 😊 Since the docker-compose failures seem to be resolved with the suggestion I made, I'm going to go ahead and close this issue - although feel free to reopen it if you see more Access Denied errors when running IBeam through docker-compose. As for your other questions:
Very happy to help you look into it, however given that we'd like to keep issues issue-specific, could I ask you open a new issue describing this problem in detail where we could discuss how to solve it? There, please outline what does 'it chokes' mean - do you have any logs that show this behaviour? Thanks 👍
While we don't have an official guide to 2FA automation, there is a number of discussions amongst the issues related to 2FA automation. I suggest you look through the existing conversations. I'd start by reading: https://github.com/Voyz/ibeam/wiki/Two-Factor-Authentication, #8 (comment) and #40 (comment) |
Hi, at first, thanks for a great job, @Voyz . I just went through hell with this "access denied" error. The After all, the solution was simple: I run the container in a docker-compose on Windows 10 (with Docker Desktop). For some reason, IPs of my containers are So now, I have:
and everything looks alright :-) |
hey @psalajka ! Glad to see you figured it out! Yes, the default allowed IPs cover only some ranges - you need to add custom Docker network IP ranges to |
I have the IP issue as well, My docker is working but deny me. I m using Docker-compose, how to make it work? |
Find the IP of your container.
|
Describe the bug
If the docker command env variables (account, password, maintainer-timeout etc) are put in the docker-compose.yaml and brought up by running
docker-compose up
, then the curl commands throw a response message as Access Denied. The same curl command outputs JSON with valid account info if thedocker run --env
option was used to bring it up.To Reproduce
Steps to reproduce the behavior:
docker-compose up
(btw,docker-compose --version
shows 2.2.3)Authentication process succeeded
andGateway running and authenticated
)curl -X GET "https://localhost:5000/v1/api/portfolio/accounts" -k
and see what it throws. (I got Access Denied).Expected behavior
The fact that the authentication is succeeded, it should also handle API to get portfolio/accounts etc.
Environment
IBeam version: Starting IBeam version 0.3.0
Docker image or standalone: Docker image pulled from this site and no changes.
Python version (standalone users only): Not applicable as I ran docker image directly.
OS: MacOS Big Sur 11.6.3
Additional context
Docker version 20.10.12, build e91ed57
Docker Compose version v2.2.3
Suggest a Fix
N/A
The text was updated successfully, but these errors were encountered: