Issue - Unable to start command server. #87
-
Hi - I'm trying to run the latest image with default settings in a linux VM. However I get the below message saying that unable to start Command server. Any idea what is happening here ? ib-gateway-1 | 2024-04-01 21:07:04:629 IBC: using default settings provider: ini file is /home/ibgateway/ibc/config.ini ib-gateway-1 | 2024-04-01 21:07:04:629 IBC: using default login manager: will get username and password from settings; FIX username and password (if required) from settings ib-gateway-1 | 2024-04-01 21:07:04:629 IBC: using default main window manager ib-gateway-1 | 2024-04-01 21:07:04:630 IBC: using default trading mode manager: constructor parameter args but trading mode not present - will be taken from settings ib-gateway-1 | 2024-04-01 21:07:04:632 IBC: using default config dialog manager ib-gateway-1 | 2024-04-01 21:07:04:644 IBC: CommandServer is not started because the port is not configured ib-gateway-1 | library initialization failed - unable to allocate file descriptor table - out of memory/home/ibgateway/ibc/scripts/ibcstart.sh: line 504: 33 Aborted (core dumped) "$java_path/java" -cp "$ibc_classpath" $java_vm_options$autorestart_option $entry_point "$ibc_ini" ${mode} ib-gateway-1 | IBC returned exit status 134 ib-gateway-1 | autorestart file not found ib-gateway-1 | ib-gateway-1 | Gateway finished ib-gateway-1 | ib-gateway-1 exited with code 0 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
the message on the log stating "IBC: CommandServer" is not an error. it's just stating that commandserver will not be started. the line bellow stating that you don't have enough memory. that looks like an error. check that you VM has enough memory. |
Beta Was this translation helpful? Give feedback.
Well I searched around and found a solution. The problem is not the total memory of the docker but the file descriptor allocation which can be set by adding the following paramters in the docker-compose service:
ulimits:
nofile:
soft: 65536
hard: 65536
for example. this solved the issue for me