IBKR Login Issues

I am attempting to login to IBKR, but am not having success. I have verified and re-verified my login credentials. However, I am a little suspicious of the two-factor authentication causing the issue, even though I am not presented with that specific error as stated in the User Guide:

vs.

Flightlog after running credentials command:

I did NOT receive the 2factor request while attempting this through Jupyter, but DID receive the request when logging in through the website. Which is where my suspicion comes from.

To note:
I have a IBKR Pro account and ensured that Market Data was being shared with my paper account.

I updated QuantRocket version to the latest 2.9.2. and restarted with docker compose.
image

Lastly, I entered credentials without and with the ibg1 container running. Same result.

Not sure if I am missing some critical step, but any help is appreciated!

Two troubleshooting suggestions:

  1. After stopping IB gateway and running set credentials again, open the IB Gateway GUI as that may help reveal what's going on.
  2. Based on that traceback, there should be something more in the logs after what you posted. Anything else in the logs for quantrocket-ibg1-1?

Thanks again for the quick reply!

After stopping IB gateway and running credentials again, the following was the Flightlog output:

And IB Gateway GUI:

The following is the entire log from ibg1-1 container:
2023-07-11 17:01:45 *** Starting uWSGI 2.0.20 (64bit) on [Tue Jul 11 21:01:44 2023] ***
2023-07-11 17:01:45 compiled with version: 10.3.0 on 27 June 2023 14:27:45
2023-07-11 17:01:45 os: Linux-5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021
2023-07-11 17:01:45 nodename: 46ca61f5954d
2023-07-11 17:01:45 machine: x86_64
2023-07-11 17:01:45 clock source: unix
2023-07-11 17:01:45 pcre jit disabled
2023-07-11 17:01:45 detected number of CPU cores: 20
2023-07-11 17:01:45 current working directory: /
2023-07-11 17:01:45 detected binary path: /opt/conda/bin/uwsgi-quantrocket
2023-07-11 17:01:45 uWSGI running as root, you can use --uid/--gid/--chroot options
2023-07-11 17:01:45 *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
2023-07-11 17:01:45 your memory page size is 4096 bytes
2023-07-11 17:01:45 *** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***
2023-07-11 17:01:45 detected max file descriptor number: 1048576
2023-07-11 17:01:45 lock engine: pthread robust mutexes
2023-07-11 17:01:45 thunder lock: enabled
2023-07-11 17:01:45 *** Cache "ibgcache" initialized: 0MB (key: 2136 bytes, keys: 10680 bytes, data: 327680 bytes, bitmap: 0 bytes) preallocated ***
2023-07-11 17:01:45 uwsgi socket 0 bound to TCP address 0.0.0.0:80 fd 7
2023-07-11 17:01:45 uWSGI running as root, you can use --uid/--gid/--chroot options
2023-07-11 17:01:45 *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
2023-07-11 17:01:45 Python version: 3.9.12 (main, Apr 5 2022, 07:05:27) [GCC 7.5.0]
2023-07-11 17:01:45 Python main interpreter initialized at 0x55b00363c310
2023-07-11 17:01:45 uWSGI running as root, you can use --uid/--gid/--chroot options
2023-07-11 17:01:45 *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
2023-07-11 17:01:45 python threads support enabled
2023-07-11 17:01:45 your server socket listen backlog is limited to 100 connections
2023-07-11 17:01:45 your mercy for graceful operations on workers is 60 seconds
2023-07-11 17:01:45 mapped 618762 bytes (604 KB) for 4 cores
2023-07-11 17:01:45 *** Operational MODE: preforking+threaded ***
2023-07-11 17:01:45 i am the bootstrap for uwsgi.SymbolsImporter
2023-07-11 17:01:45 i am the bootstrap for uwsgi.SymbolsImporter
2023-07-11 17:01:45 [uwsgi-signal] signum 0 registered (wid: 0 modifier1: 0 target: default, any worker)
2023-07-11 17:01:45 WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x55b00363c310 pid: 1 (default app)
2023-07-11 17:01:45 uWSGI running as root, you can use --uid/--gid/--chroot options
2023-07-11 17:01:45 *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
2023-07-11 17:01:45 spawned uWSGI master process (pid: 1)
2023-07-11 17:01:45 spawned the uWSGI spooler on dir /var/tmp/uwsgi/spool/monitor with pid 34
2023-07-11 17:01:45 spawned uWSGI worker 1 (pid: 35, cores: 2)
2023-07-11 17:01:45 spawned uWSGI worker 2 (pid: 36, cores: 2)
2023-07-11 17:01:45 cache sweeper thread enabled
2023-07-11 17:01:45 spawned uWSGI mule 1 (pid: 39)
2023-07-11 17:01:44 [uWSGI] getting INI configuration from /etc/uwsgi/uwsgi.ini
2023-07-11 17:01:44 [uWSGI] getting INI configuration from /etc/uwsgi/default.ini
2023-07-11 17:01:44 [uWSGI] getting INI configuration from /etc/uwsgi/base.ini
2023-07-11 17:09:35 [uWSGI] getting INI configuration from /etc/uwsgi/uwsgi.ini
2023-07-11 17:09:35 [uWSGI] getting INI configuration from /etc/uwsgi/default.ini
2023-07-11 17:09:35 [uWSGI] getting INI configuration from /etc/uwsgi/base.ini
2023-07-11 17:01:45 spawned uWSGI mule 2 (pid: 41)
2023-07-11 17:01:46 Starting socat.
2023-07-11 17:01:47 Starting virtual X frame buffer: Xvfb.
2023-07-11 17:01:48 Starting x11vnc.
2023-07-11 17:01:49 Starting websockify.
2023-07-11 17:02:37 Starting socatStarting virtual X frame buffer: Xvfb.
2023-07-11 17:02:37 Starting x11vncStarting websockify.
2023-07-11 17:02:37 Starting IB Gateway 1019
2023-07-11 17:02:38 subprocess 193 exited with code 1
2023-07-11 17:05:39 IB Gateway should be running but is not accepting connections. Please open the IB Gateway GUI to troubleshoot, see Usage Guide for help. IBC log output is below:
2023-07-11 17:05:39 java.vendor = Oracle Corporation
2023-07-11 17:05:39
2023-07-11 17:05:39 file.separator = /
2023-07-11 17:05:39
2023-07-11 17:05:39 twslaunch.autoupdate.serviceImpl = com.ib.tws.twslaunch.install4j.Install4jAutoUpdateService
2023-07-11 17:05:39
2023-07-11 17:05:39 java.vendor.url.bug = http://bugreport.sun.com/bugreport/
2023-07-11 17:05:39
2023-07-11 17:05:39 install4jType = ${installer:installerType}
2023-07-11 17:05:39
2023-07-11 17:05:39 sun.io.unicode.encoding = UnicodeLittle
2023-07-11 17:05:39
2023-07-11 17:05:39 sun.cpu.endian = little
2023-07-11 17:05:39
2023-07-11 17:05:39 sun.locale.formatasdefault = true
2023-07-11 17:05:39
2023-07-11 17:05:39 installerVersion = 4.6.12
2023-07-11 17:05:39
2023-07-11 17:05:39 sun.cpu.isalist =
2023-07-11 17:05:39
2023-07-11 17:05:39 ------------------------------------------------------------
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:199 IBC: Using default main window manager: null
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:199 IBC: Using default config dialog manager
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:201 IBC: CommandServer is starting with port 7460
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:233 IBC: CommandServer listening on addresses: 172.23.0.3,127.0.0.1; port: 7460
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:233 IBC: CommandServer started and is ready to accept commands
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:260 IBC: TWS Settings directory is: /root/Jts/ibgateway/1019
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:260 IBC: Creating minimal /root/Jts/ibgateway/1019/jts.ini
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:261 IBC: jts.ini: [Logon]
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:261 IBC: jts.ini: s3store=true
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:261 IBC: jts.ini: Locale=en
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:261 IBC: jts.ini: displayedproxymsg=1
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:261 IBC: jts.ini: [IBGateway]
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:261 IBC: jts.ini: ApiOnly=true
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:263 IBC: Getting config dialog
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:263 IBC: Creating config dialog future
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:263 IBC: Getting config dialog
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:263 IBC: Getting config dialog
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:263 IBC: Getting config dialog
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:264 IBC: Getting main window
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:264 IBC: Creating main window future
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:264 IBC: Getting config dialog
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:264 IBC: Waiting for config dialog future to complete
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:264 IBC: Waiting for config dialog future to complete
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:264 IBC: Waiting for config dialog future to complete
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:264 IBC: Waiting for config dialog future to complete
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:264 IBC: Getting config dialog
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:38:264 IBC: Waiting for config dialog future to complete
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:40:287 IBC: Detected JFrame (ibgateway.aD) entitled: IB Gateway; event=Activated
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:40:290 IBC: Detected JFrame (ibgateway.aD) entitled: IB Gateway; event=Opened
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:40:290 IBC: Setting Trading mode = paper
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:40:399 IBC: Click button: Paper Log In
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:41:356 IBC: Detected JFrame (ibgateway.aC) entitled: Loading...; event=Activated
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:41:358 IBC: Detected JFrame (ibgateway.aC) entitled: Loading...; event=Opened
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:41:358 IBC: Found Gateway main window
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:41:358 IBC: Got main window from future
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:41:643 IBC: Detected JFrame (twslaunch.feature.welcome.D) entitled: Authenticating...; event=Activated
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:41:643 IBC: Detected JFrame (twslaunch.feature.welcome.D) entitled: Authenticating...; event=Opened
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:41:996 IBC: Detected JDialog (twslaunch.jutils.aN) entitled: null; event=Opened
2023-07-11 17:05:39
2023-07-11 17:05:39 2023-07-11 21:02:42:000 IBC: Detected JDialog (twslaunch.jutils.aN) entitled: null; event=Activated
2023-07-11 17:05:39
2023-07-11 17:05:49 /usr/bin/subcmd/start: line 27: 194 Killed /root/Jts/ibgateway/${TWS_MAJOR_VRSN}/ibgateway > "${log_file}" 2>&1
2023-07-11 17:06:01 Starting socatStarting virtual X frame buffer: Xvfb.
2023-07-11 17:06:01 Starting x11vncStarting websockify.
2023-07-11 17:06:01 Starting IB Gateway 1019
2023-07-11 17:06:02 subprocess 922 exited with code 1
2023-07-11 17:07:03 SIGINT/SIGTERM received...killing workers...
2023-07-11 17:07:03 killing the spooler with pid 34
2023-07-11 17:07:03 [deadlock-detector] a process holding a robust mutex died. recovering...
2023-07-11 17:07:03 spooler (pid: 34) annihilated
2023-07-11 17:07:04 worker 1 buried after 1 seconds
2023-07-11 17:07:04 worker 2 buried after 1 seconds
2023-07-11 17:07:04 mule 1 (pid: 39) annihilated
2023-07-11 17:07:04 mule 2 (pid: 41) annihilated
2023-07-11 17:07:04 goodbye to uWSGI.
2023-07-11 17:09:36 *** Starting uWSGI 2.0.20 (64bit) on [Tue Jul 11 21:09:35 2023] ***
2023-07-11 17:09:36 compiled with version: 10.3.0 on 27 June 2023 14:27:45
2023-07-11 17:09:36 os: Linux-5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021
2023-07-11 17:09:36 nodename: 46ca61f5954d
2023-07-11 17:09:36 machine: x86_64
2023-07-11 17:09:36 clock source: unix
2023-07-11 17:09:36 pcre jit disabled
2023-07-11 17:09:36 detected number of CPU cores: 20
2023-07-11 17:09:36 current working directory: /
2023-07-11 17:09:36 detected binary path: /opt/conda/bin/uwsgi-quantrocket
2023-07-11 17:09:36 uWSGI running as root, you can use --uid/--gid/--chroot options
2023-07-11 17:09:36 *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
2023-07-11 17:09:36 your memory page size is 4096 bytes
2023-07-11 17:09:36 *** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***
2023-07-11 17:09:36 detected max file descriptor number: 1048576
2023-07-11 17:09:36 lock engine: pthread robust mutexes
2023-07-11 17:09:36 thunder lock: enabled
2023-07-11 17:09:36 *** Cache "ibgcache" initialized: 0MB (key: 2136 bytes, keys: 10680 bytes, data: 327680 bytes, bitmap: 0 bytes) preallocated ***
2023-07-11 17:09:36 uwsgi socket 0 bound to TCP address 0.0.0.0:80 fd 7
2023-07-11 17:09:36 uWSGI running as root, you can use --uid/--gid/--chroot options
2023-07-11 17:09:36 *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
2023-07-11 17:09:36 Python version: 3.9.12 (main, Apr 5 2022, 07:05:27) [GCC 7.5.0]
2023-07-11 17:09:36 Python main interpreter initialized at 0x5645881c7310
2023-07-11 17:09:36 uWSGI running as root, you can use --uid/--gid/--chroot options
2023-07-11 17:09:36 *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
2023-07-11 17:09:36 python threads support enabled
2023-07-11 17:09:36 your server socket listen backlog is limited to 100 connections
2023-07-11 17:09:36 your mercy for graceful operations on workers is 60 seconds
2023-07-11 17:09:36 mapped 618762 bytes (604 KB) for 4 cores
2023-07-11 17:09:36 *** Operational MODE: preforking+threaded ***
2023-07-11 17:09:36 i am the bootstrap for uwsgi.SymbolsImporter
2023-07-11 17:09:36 i am the bootstrap for uwsgi.SymbolsImporter
2023-07-11 17:09:36 [uwsgi-signal] signum 0 registered (wid: 0 modifier1: 0 target: default, any worker)
2023-07-11 17:09:36 WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x5645881c7310 pid: 1 (default app)
2023-07-11 17:09:36 uWSGI running as root, you can use --uid/--gid/--chroot options
2023-07-11 17:09:36 *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
2023-07-11 17:09:36 spawned uWSGI master process (pid: 1)
2023-07-11 17:09:36 spawned the uWSGI spooler on dir /var/tmp/uwsgi/spool/monitor with pid 34
2023-07-11 17:09:36 spawned uWSGI worker 1 (pid: 35, cores: 2)
2023-07-11 17:09:36 spawned uWSGI worker 2 (pid: 36, cores: 2)
2023-07-11 17:09:36 cache sweeper thread enabled
2023-07-11 17:09:36 spawned uWSGI mule 1 (pid: 39)
2023-07-11 17:09:36 spawned uWSGI mule 2 (pid: 41)
2023-07-11 17:09:37 Starting socat.
2023-07-11 17:09:38 Starting virtual X frame buffer: Xvfb.
2023-07-11 17:09:39 subprocess 49 exited with code 1
2023-07-11 17:09:39 Starting x11vnc.
2023-07-11 17:09:40 Starting websockify.
2023-07-11 17:09:41 subprocess 54 exited with code 1
2023-07-11 17:10:10 Starting virtual X frame buffer: Xvfb.
2023-07-11 17:35:55 Starting socatStarting virtual X frame buffer: Xvfb.
2023-07-11 17:35:55 Starting x11vnc.
2023-07-11 17:35:55 Starting websockify.
2023-07-11 17:35:55 Starting IB Gateway 1019
2023-07-11 17:35:56 subprocess 199 exited with code 1
2023-07-11 17:38:57 IB Gateway should be running but is not accepting connections. Please open the IB Gateway GUI to troubleshoot, see Usage Guide for help. IBC log output is below:
2023-07-11 17:38:57 sun.boot.class.path = /opt/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202/lib/resources.jar:/opt/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202/lib/rt.jar:/opt/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202/lib/sunrsasign.jar:/opt/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202/lib/jsse.jar:/opt/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202/lib/jce.jar:/opt/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202/lib/charsets.jar:/opt/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202/lib/jfr.jar:/opt/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202/classes
2023-07-11 17:38:57
2023-07-11 17:38:57 java.vendor = Oracle Corporation
2023-07-11 17:38:57
2023-07-11 17:38:57 file.separator = /
2023-07-11 17:38:57
2023-07-11 17:38:57 twslaunch.autoupdate.serviceImpl = com.ib.tws.twslaunch.install4j.Install4jAutoUpdateService
2023-07-11 17:38:57
2023-07-11 17:38:57 java.vendor.url.bug = http://bugreport.sun.com/bugreport/
2023-07-11 17:38:57
2023-07-11 17:38:57 install4jType = ${installer:installerType}
2023-07-11 17:38:57
2023-07-11 17:38:57 sun.io.unicode.encoding = UnicodeLittle
2023-07-11 17:38:57
2023-07-11 17:38:57 sun.cpu.endian = little
2023-07-11 17:38:57
2023-07-11 17:38:57 sun.locale.formatasdefault = true
2023-07-11 17:38:57
2023-07-11 17:38:57 installerVersion = 4.6.12
2023-07-11 17:38:57
2023-07-11 17:38:57 sun.cpu.isalist =
2023-07-11 17:38:57
2023-07-11 17:38:57 ------------------------------------------------------------
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:55:981 IBC: Using default main window manager: null
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:55:982 IBC: Using default config dialog manager
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:55:984 IBC: CommandServer is starting with port 7460
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:56:020 IBC: CommandServer listening on addresses: 172.23.0.3,127.0.0.1; port: 7460
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:56:020 IBC: CommandServer started and is ready to accept commands
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:56:046 IBC: TWS Settings directory is: /root/Jts/ibgateway/1019
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:56:048 IBC: Ensuring /root/Jts/ibgateway/1019/jts.ini contains required minimal lines
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:56:048 IBC: Found setting: [Logon]/s3store=true
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:56:048 IBC: Found setting: [Logon]/Locale=en
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:56:048 IBC: Found setting: [Logon]/displayedproxymsg=1
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:56:048 IBC: Found setting: [IBGateway]/ApiOnly=true
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:56:049 IBC: Confirmed /root/Jts/ibgateway/1019/jts.ini contains required minimal lines
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:56:050 IBC: Getting config dialog
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:56:050 IBC: Getting config dialog
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:56:050 IBC: Creating config dialog future
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:56:051 IBC: Getting config dialog
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:56:051 IBC: Getting config dialog
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:56:051 IBC: Getting config dialog
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:56:052 IBC: Getting main window
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:56:052 IBC: Getting config dialog
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:56:052 IBC: Creating main window future
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:56:052 IBC: Waiting for config dialog future to complete
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:56:052 IBC: Waiting for config dialog future to complete
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:56:052 IBC: Waiting for config dialog future to complete
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:56:052 IBC: Waiting for config dialog future to complete
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:56:052 IBC: Waiting for config dialog future to complete
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:57:859 IBC: Detected JFrame (ibgateway.aD) entitled: IB Gateway; event=Activated
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:57:861 IBC: Detected JFrame (ibgateway.aD) entitled: IB Gateway; event=Opened
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:57:862 IBC: Setting Trading mode = paper
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:57:977 IBC: Click button: Paper Log In
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:59:151 IBC: Detected JFrame (ibgateway.aC) entitled: Loading...; event=Activated
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:59:153 IBC: Detected JFrame (ibgateway.aC) entitled: Loading...; event=Opened
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:59:153 IBC: Found Gateway main window
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:59:153 IBC: Got main window from future
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:59:475 IBC: Detected JFrame (twslaunch.feature.welcome.D) entitled: Authenticating...; event=Opened
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:59:485 IBC: Detected JFrame (twslaunch.feature.welcome.D) entitled: Authenticating...; event=Activated
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:59:807 IBC: Detected JDialog (twslaunch.jutils.aN) entitled: null; event=Opened
2023-07-11 17:38:57
2023-07-11 17:38:57 2023-07-11 21:35:59:813 IBC: Detected JDialog (twslaunch.jutils.aN) entitled: null; event=Activated
2023-07-11 17:38:57
2023-07-11 17:39:07 /usr/bin/subcmd/start: line 27: 200 Killed /root/Jts/ibgateway/${TWS_MAJOR_VRSN}/ibgateway > "${log_file}" 2>&1
2023-07-11 17:39:19 Starting socatStarting virtual X frame buffer: Xvfb.
2023-07-11 17:39:19 Starting x11vncStarting websockify.
2023-07-11 17:39:19 Starting IB Gateway 1019
2023-07-11 17:39:20 subprocess 822 exited with code 1
2023-07-11 17:42:20 IB Gateway should be running but is not accepting connections. Please open the IB Gateway GUI to troubleshoot, see Usage Guide for help. IBC log output is below:
2023-07-11 17:42:20 sun.boot.class.path = /opt/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202/lib/resources.jar:/opt/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202/lib/rt.jar:/opt/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202/lib/sunrsasign.jar:/opt/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202/lib/jsse.jar:/opt/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202/lib/jce.jar:/opt/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202/lib/charsets.jar:/opt/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202/lib/jfr.jar:/opt/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202/classes
2023-07-11 17:42:20
2023-07-11 17:42:20 java.vendor = Oracle Corporation
2023-07-11 17:42:20
2023-07-11 17:42:20 file.separator = /
2023-07-11 17:42:20
2023-07-11 17:42:20 twslaunch.autoupdate.serviceImpl = com.ib.tws.twslaunch.install4j.Install4jAutoUpdateService
2023-07-11 17:42:20
2023-07-11 17:42:20 java.vendor.url.bug = http://bugreport.sun.com/bugreport/
2023-07-11 17:42:20
2023-07-11 17:42:20 install4jType = ${installer:installerType}
2023-07-11 17:42:20
2023-07-11 17:42:20 sun.io.unicode.encoding = UnicodeLittle
2023-07-11 17:42:20
2023-07-11 17:42:20 sun.cpu.endian = little
2023-07-11 17:42:20
2023-07-11 17:42:20 sun.locale.formatasdefault = true
2023-07-11 17:42:20
2023-07-11 17:42:20 installerVersion = 4.6.12
2023-07-11 17:42:20
2023-07-11 17:42:20 sun.cpu.isalist =
2023-07-11 17:42:20
2023-07-11 17:42:20 ------------------------------------------------------------
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:370 IBC: Using default main window manager: null
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:370 IBC: Using default config dialog manager
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:381 IBC: CommandServer is starting with port 7460
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:423 IBC: CommandServer listening on addresses: 172.23.0.3,127.0.0.1; port: 7460
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:423 IBC: CommandServer started and is ready to accept commands
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:450 IBC: TWS Settings directory is: /root/Jts/ibgateway/1019
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:452 IBC: Ensuring /root/Jts/ibgateway/1019/jts.ini contains required minimal lines
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:452 IBC: Found setting: [Logon]/s3store=true
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:452 IBC: Found setting: [Logon]/Locale=en
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:452 IBC: Found setting: [Logon]/displayedproxymsg=1
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:452 IBC: Found setting: [IBGateway]/ApiOnly=true
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:452 IBC: Confirmed /root/Jts/ibgateway/1019/jts.ini contains required minimal lines
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:454 IBC: Getting config dialog
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:454 IBC: Creating config dialog future
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:454 IBC: Getting config dialog
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:454 IBC: Getting config dialog
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:455 IBC: Getting config dialog
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:455 IBC: Getting main window
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:455 IBC: Creating main window future
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:455 IBC: Waiting for config dialog future to complete
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:455 IBC: Getting config dialog
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:456 IBC: Waiting for config dialog future to complete
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:456 IBC: Waiting for config dialog future to complete
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:456 IBC: Waiting for config dialog future to complete
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:456 IBC: Getting config dialog
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:19:456 IBC: Waiting for config dialog future to complete
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:21:278 IBC: Detected JFrame (ibgateway.aD) entitled: IB Gateway; event=Activated
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:21:281 IBC: Detected JFrame (ibgateway.aD) entitled: IB Gateway; event=Opened
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:21:282 IBC: Setting Trading mode = paper
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:21:398 IBC: Click button: Paper Log In
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:22:404 IBC: Detected JFrame (ibgateway.aC) entitled: Loading...; event=Activated
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:22:405 IBC: Detected JFrame (ibgateway.aC) entitled: Loading...; event=Opened
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:22:405 IBC: Found Gateway main window
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:22:405 IBC: Got main window from future
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:22:676 IBC: Detected JFrame (twslaunch.feature.welcome.D) entitled: Authenticating...; event=Opened
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:22:693 IBC: Detected JFrame (twslaunch.feature.welcome.D) entitled: Authenticating...; event=Activated
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:23:017 IBC: Detected JDialog (twslaunch.jutils.aN) entitled: null; event=Opened
2023-07-11 17:42:20
2023-07-11 17:42:20 2023-07-11 21:39:23:027 IBC: Detected JDialog (twslaunch.jutils.aN) entitled: null; event=Activated
2023-07-11 17:42:20
2023-07-11 17:42:30 /usr/bin/subcmd/start: line 27: 823 Killed /root/Jts/ibgateway/${TWS_MAJOR_VRSN}/ibgateway > "${log_file}" 2>&1
2023-07-11 17:42:42 Starting socatStarting virtual X frame buffer: Xvfb.
2023-07-11 17:42:42 Starting x11vncStarting websockify.
2023-07-11 17:42:42 Starting IB Gateway 1019
2023-07-11 17:42:43 subprocess 1423 exited with code 1
2023-07-11 17:45:16 SIGINT/SIGTERM received...killing workers...
2023-07-11 17:45:16 killing the spooler with pid 34
2023-07-11 17:45:17 spooler (pid: 34) annihilated
2023-07-11 17:45:17 worker 1 buried after 1 seconds
2023-07-11 17:45:17 worker 2 buried after 1 seconds
2023-07-11 17:45:17 mule 1 (pid: 39) annihilated
2023-07-11 17:45:17 mule 2 (pid: 41) annihilated
2023-07-11 17:45:17 goodbye to uWSGI.
2023-07-11 17:46:06 *** Starting uWSGI 2.0.20 (64bit) on [Tue Jul 11 21:46:06 2023] ***
2023-07-11 17:46:06 compiled with version: 10.3.0 on 27 June 2023 14:27:45
2023-07-11 17:46:06 os: Linux-5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021
2023-07-11 17:46:06 nodename: 46ca61f5954d
2023-07-11 17:46:06 machine: x86_64
2023-07-11 17:46:06 clock source: unix
2023-07-11 17:46:06 pcre jit disabled
2023-07-11 17:46:06 detected number of CPU cores: 20
2023-07-11 17:46:06 current working directory: /
2023-07-11 17:46:06 detected binary path: /opt/conda/bin/uwsgi-quantrocket
2023-07-11 17:46:06 uWSGI running as root, you can use --uid/--gid/--chroot options
2023-07-11 17:46:06 *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
2023-07-11 17:46:06 your memory page size is 4096 bytes
2023-07-11 17:46:06 *** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***
2023-07-11 17:46:06 detected max file descriptor number: 1048576
2023-07-11 17:46:06 lock engine: pthread robust mutexes
2023-07-11 17:46:06 thunder lock: enabled
2023-07-11 17:46:06 *** Cache "ibgcache" initialized: 0MB (key: 2136 bytes, keys: 10680 bytes, data: 327680 bytes, bitmap: 0 bytes) preallocated ***
2023-07-11 17:46:06 uwsgi socket 0 bound to TCP address 0.0.0.0:80 fd 7
2023-07-11 17:46:06 uWSGI running as root, you can use --uid/--gid/--chroot options
2023-07-11 17:46:06 *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
2023-07-11 17:46:06 Python version: 3.9.12 (main, Apr 5 2022, 07:05:27) [GCC 7.5.0]
2023-07-11 17:46:06 Python main interpreter initialized at 0x562e2c8a4310
2023-07-11 17:46:06 uWSGI running as root, you can use --uid/--gid/--chroot options
2023-07-11 17:46:06 *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
2023-07-11 17:46:06 python threads support enabled
2023-07-11 17:46:06 your server socket listen backlog is limited to 100 connections
2023-07-11 17:46:06 your mercy for graceful operations on workers is 60 seconds
2023-07-11 17:46:06 mapped 618762 bytes (604 KB) for 4 cores
2023-07-11 17:46:06 *** Operational MODE: preforking+threaded ***
2023-07-11 17:46:06 i am the bootstrap for uwsgi.SymbolsImporter
2023-07-11 17:46:06 i am the bootstrap for uwsgi.SymbolsImporter
2023-07-11 17:46:06 [uwsgi-signal] signum 0 registered (wid: 0 modifier1: 0 target: default, any worker)
2023-07-11 17:46:06 WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x562e2c8a4310 pid: 1 (default app)
2023-07-11 17:46:06 uWSGI running as root, you can use --uid/--gid/--chroot options
2023-07-11 17:46:06 *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
2023-07-11 17:46:06 spawned uWSGI master process (pid: 1)
2023-07-11 17:46:06 spawned the uWSGI spooler on dir /var/tmp/uwsgi/spool/monitor with pid 34
2023-07-11 17:46:06 spawned uWSGI worker 1 (pid: 35, cores: 2)
2023-07-11 17:46:06 spawned uWSGI worker 2 (pid: 36, cores: 2)
2023-07-11 17:46:06 cache sweeper thread enabled
2023-07-11 17:46:06 [uWSGI] getting INI configuration from /etc/uwsgi/uwsgi.ini
2023-07-11 17:46:06 [uWSGI] getting INI configuration from /etc/uwsgi/default.ini
2023-07-11 17:46:06 [uWSGI] getting INI configuration from /etc/uwsgi/base.ini
2023-07-11 17:46:06 spawned uWSGI mule 1 (pid: 40)
2023-07-11 17:46:06 spawned uWSGI mule 2 (pid: 41)
2023-07-11 17:47:08 Starting socat.
2023-07-11 17:47:09 Starting virtual X frame buffer: Xvfb.
2023-07-11 17:47:10 Starting x11vnc.
2023-07-11 17:47:11 Starting websockify.
2023-07-11 19:42:32 SIGINT/SIGTERM received...killing workers...
2023-07-11 19:42:32 killing the spooler with pid 34
2023-07-11 19:42:33 spooler (pid: 34) annihilated
2023-07-11 19:42:33 worker 1 buried after 1 seconds
2023-07-11 19:42:33 worker 2 buried after 1 seconds
2023-07-11 19:42:33 mule 1 (pid: 40) annihilated
2023-07-11 19:42:33 mule 2 (pid: 41) annihilated
2023-07-11 19:42:33 goodbye to uWSGI.

Didn't realize that IB had a separate username for PaperTrading:
image

Updating username and password for this account worked for PaperTrading.
image

Unfortunately, I still cannot log into 'live' account after validating 'live' username and password and stopping/restarting igb1.

Still thinking it is related to two-factor authentication as I am not receiving the request on my phone.

The "login failed" message in your last traceback generally means incorrect credentials. You can open the IB Gateway GUI during the login attempt to see the exact dialog that's popping up. I would also try downloading Trader Workstation or IB Gateway directly from the IBKR website and make sure you can log in that way before trying to log in through QuantRocket.

The "login failed" message means that the login is failing before it ever gets to the point of sending a 2FA notification.

Just downloaded Trader Workstation and was able to login successfully using the same username and password:

Need to see the IB Gateway GUI during the failed login.