Voyz / ibeam

IBeam is an authentication and maintenance tool used for the Interactive Brokers Client Portal Web API Gateway.
Apache License 2.0
547 stars 111 forks source link

Invalid username password combination #65

Closed jlixfeld closed 2 years ago

jlixfeld commented 2 years ago

Describe the bug

Starting up 0.4.0-rc7 using docker-compose I am presented with the invalid username password combination error. I have copy/pasted the credentials from env.list into my browser session to IBKR to verify that there are no typos; works fine there. I have also tried to put the credentials directly into docker-compose.yml as per #60

2022-03-01 13:15:18,138|E| Error displayed by the login webpage: Invalid username password combination
2022-03-01 13:15:24,962|E| Error displayed by the login webpage: ERROR
2022-03-01 13:15:31,794|E| Error displayed by the login webpage: Invalid username password combination
# logs
2022-03-01 13:15:07,167|I| ############ Starting IBeam version 0.4.0-rc7 ############
2022-03-01 13:15:07,170|I| Gateway not found, starting new one...
2022-03-01 13:15:07,170|I| Note that the Gateway log below may display "Open https://localhost:5000 to login" - ignore this command.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.netty.util.internal.ReflectionUtil (file:/srv/clientportal.gw/build/lib/runtime/netty-common-4.1.15.Final.jar) to constructor java.nio.DirectByteBuffer(long,int)
WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2022-03-01 13:15:08,176|I| Gateway started with pid: 13
2022-03-01 13:15:09,064|I| No active sessions, logging in...
running  
 runtime path : root:dist/ibgroup.web.core.iblink.router.clientportal.gw.jar:build/lib/runtime/*
 verticle     : 
 -> mount demo on /demo
Java Version: 11.0.12
****************************************************
version: ed4af2592e9dd4a784d5403843bd18292fd441ea Fri, 9 Nov 2018 13:23:18 -0500
****************************************************
This is a Beta release of the Client Portal Gateway
for any issues, please contact api@ibkr.com
and include a copy of your logs
****************************************************
https://www.interactivebrokers.com/api/doc.html
****************************************************
Open https://localhost:5000 to login
App demo is available after you login under: https://localhost:5000/demo/
2022-03-01 13:15:18,138|E| Error displayed by the login webpage: Invalid username password combination
2022-03-01 13:15:24,962|E| Error displayed by the login webpage: ERROR
2022-03-01 13:15:31,794|E| Error displayed by the login webpage: Invalid username password combination
2022-03-01 13:15:38,577|E| Error displayed by the login webpage: Invalid username password combination
# docker-compose.yml
services:
  redis:
    image: ibkr-redismod-custom:latest
    ports:
      - 6379:6379
    volumes:
      - ./data:/data
    #  - redis.conf:/usr/local/etc/redis/redis.conf
  ibeam:
    image: voyz/ibeam:0.4.0-rc7
    container_name: ibeam
    environment:
      IBEAM_ACCOUNT: x
      IBEAM_PASSWORD: x
      IBEAM_MAINTENANCE_INTERVAL: 3600
    # env_file:
    #   - env.list
    ports:
      - 8080:8080
    network_mode: bridge
    restart: 'no'

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior I believe that once the container starts, I should get a 2FA request to my phone to complete the authentication, but I do not get this request.

Environment IBeam version: 0.4.0-rc7 Docker image or standalone: Docker (Desktop 4.4.2) Python version (standalone users only): OS: macOS 12.2.1

Additional context I'm not sure if it's related, but I had to change the port from 5000 to something else (I chose 8080) due to macOS using 5000 for an internal service. This change is reflected in the docker-compose.yml

Suggest a Fix If you can't fix the bug yourself, perhaps you can point to what might be causing the problem (line of code or commit).

jlixfeld commented 2 years ago

I resolved the user/password issue per: #34

I'm still thinking there's something not quite working properly due to my having to change the port numbers around.

% curl -X GET "https://localhost:8080/v1/api/portfolio/accounts" -k
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to localhost:8080 
%

Still looking into this one.

jlixfeld commented 2 years ago

Closing this and opening #66 to address possible issue running on different port.

Voyz commented 2 years ago

Hey @jlixfeld thanks for describing your issue in detail. Unfortunately the Invalid username password combination is a common issue that seems to be caused by problems on IBKR side. I recommend you reach out to IBKR support in that regard.