extrange / ibkr-docker

Run IBKR Gateway/TWS in a Docker container
157 stars 34 forks source link

Connection issue: auto restart failure #100

Closed assassin0007 closed 2 months ago

assassin0007 commented 2 months ago

Hello, I'm having a hard time understanding this error. Any help with this?

2024-04-12 06:33:44 Navigate to this URL: 2024-04-12 06:33:44 2024-04-12 06:33:44 http://40995f0eb97e:6080/vnc.html?host=40995f0eb97e&port=6080 2024-04-12 06:33:44 2024-04-12 06:33:44 Press Ctrl-C to exit 2024-04-12 06:33:44 2024-04-12 06:33:44 2024-04-12 06:33:45 IBC returned exit status 133 2024-04-12 06:33:45 autorestart file not found 2024-04-12 06:33:45 2024-04-12 06:33:45 TWS finished 2024-04-12 06:33:45 2024-04-12 06:33:45 assertion failed [rem_idx != -1]: Unable to find existing allocation for shared memory segment to unmap 2024-04-12 06:33:45 (VMAllocationTracker.cpp:745 remove_shared_mem) 2024-04-12 06:33:45 /opt/ibc/scripts/ibcstart.sh: line 504: 46 Trace/breakpoint trap "$java_path/java" -cp "$ibc_classpath" $java_vm_options$autorestart_option $entry_point "$ibc_ini" ${mode}

Here are my docker-compose file


services:
  ibkr:
    image: ghcr.io/extrange/ibkr:stable # Use the latest image
    ports:
      - "127.0.0.1:6080:6080" # noVNC browser access
      - "127.0.0.1:8888:8888" # API access
    ulimits:
      nofile: 10000 # Set the file limit, see FAQ
    environment:
      TWS_SETTINGS_PATH: /settings
      USERNAME: ${USERNAME}
      PASSWORD: ${PASSWORD}
      TWOFA_TIMEOUT_ACTION: restart
      GATEWAY_OR_TWS: tws
      # Variables prefixed with IBC_ override IBCAlpha's config.ini:
      IBC_TradingMode: paper # Specify the trading mode, either 'paper' or 'live'
      IBC_ReadOnlyApi: no
    volumes:
      - ./settings:/settings:rw
extrange commented 2 months ago

Are you using MacOS?

assassin0007 commented 2 months ago

Hello, yes I am using MacOs

extrange commented 2 months ago

It looks like this issue is related to Rosetta/MacOS Sonoma and not related to this image, so I think you may have better luck following the linked issue.

assassin0007 commented 2 months ago

Thanks!