Open Macfly opened 5 years ago
Its possible your shell is not properly terminating the container, it could be an issue with docker. I'd recommend seeing if the same behavior happens after running docker-compose down
prior to re-running, or using docker-compose up --force-recreate
the next time you start the containers.
I think what you're seeing may be related to a second instance of the container running against a shared volume, but that's speculating. The above commands are a good place to start. Are you able to share your docker-compose files?
I don't have the same behavior when I run docker-compose down prior to re-running. The docker-compose files are the stock ones, I didn't change anything.
I cloned the repo, docker pulled the image from DockekrHub and added the missing image: mvberg/ib-gateway-docker
in docker-compose.yaml.
Then I tried to reproduce this issue to check. I don't get any java error but still some errors on the second retry:
[philippe@localhost ib-gateway-docker]$ docker-compose up
Creating network "ib-gateway-docker_default" with the default driver
Creating ib-gateway-docker_tws_1 ... done
Attaching to ib-gateway-docker_tws_1
tws_1 | Starting virtual X frame buffer: Xvfb.
tws_1 | find: '/opt/IBController/Logs': No such file or directory
tws_1 | stored passwd in file: /.vnc/passwd
tws_1 | Starting x11vnc.
tws_1 |
tws_1 | +==============================================================================
tws_1 | +
tws_1 | + IBController version 3.2.0.5
tws_1 | +
tws_1 | + Running GATEWAY 974
tws_1 | +
tws_1 | + Diagnostic information is logged in:
tws_1 | +
tws_1 | + /opt/IBController/Logs/ibc-3.2.0.5_GATEWAY-974_Sunday.txt
tws_1 | +
tws_1 | +
tws_1 |
tws_1 | +==============================================================================
tws_1 | +
tws_1 | + **** An error has occurred ****
tws_1 | +
tws_1 | + Please look in the diagnostics file
tws_1 | + mentioned above for further information
tws_1 | +
tws_1 | +==============================================================================
tws_1 |
tws_1 | Stopping x11vnc.
tws_1 | Stopping virtual X frame buffer: Xvfb.
^CGracefully stopping... (press Ctrl+C again to force)
Stopping ib-gateway-docker_tws_1 ... done
[philippe@localhost ib-gateway-docker]$ docker-compose up
Starting ib-gateway-docker_tws_1 ... done
Attaching to ib-gateway-docker_tws_1
tws_1 | Starting virtual X frame buffer: Xvfb.
tws_1 | --pw = ***
tws_1 | --fix-user =
tws_1 | --fix-pw =
tws_1 |
tws_1 |
tws_1 | =========================== An error has occurred =============================
tws_1 |
tws_1 |
tws_1 |
tws_1 | Error: IBController configuration file: /root/IBController/IBController.ini does not exist
tws_1 | mkdir: cannot create directory '/.vnc': File exists
tws_1 | stored passwd in file: /.vnc/passwd
tws_1 | Starting x11vnc.
tws_1 |
tws_1 | +==============================================================================
tws_1 | +
tws_1 | + IBController version 3.2.0.5
tws_1 | +
tws_1 | + Running GATEWAY 974
tws_1 | +
tws_1 | + Diagnostic information is logged in:
tws_1 | +
tws_1 | + /opt/IBController/Logs/ibc-3.2.0.5_GATEWAY-974_Sunday.txt
tws_1 | +
tws_1 | +
tws_1 |
tws_1 | +==============================================================================
tws_1 | +
tws_1 | + **** An error has occurred ****
tws_1 | +
tws_1 | + Please look in the diagnostics file
tws_1 | + mentioned above for further information
tws_1 | +
tws_1 | +==============================================================================
tws_1 |
tws_1 | Stopping x11vnc.
tws_1 | Stopping virtual X frame buffer: Xvfb.
tws_1 |
tws_1 | ================================================================================
tws_1 |
tws_1 | Starting IBController version 3.2.0.5 on 2019-06-02 at 21:26:52
tws_1 |
tws_1 | Operating system: Linux 3d4a293c715d 4.18.16-300.fc29.x86_64 #1 SMP Sat Oct 20 23:24:08 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
tws_1 |
tws_1 | Arguments:
tws_1 |
tws_1 | TWS version = 974
tws_1 | Entry point = ibcontroller.IBGatewayController
tws_1 | --tws-path = /root/Jts
tws_1 | --tws-settings-path = /root/Jts
tws_1 | --ibc-path = /opt/IBController
tws_1 | --ibc-ini = /root/IBController/IBController.ini
tws_1 | --mode = paper
tws_1 | --java-path = /opt/i4j_jres/1.8.0_152/bin
tws_1 | --user = ***
tws_1 | --pw = ***
tws_1 | --fix-user =
tws_1 | --fix-pw =
tws_1 |
tws_1 |
tws_1 | =========================== An error has occurred =============================
tws_1 |
tws_1 |
tws_1 |
tws_1 | Error: IBController configuration file: /root/IBController/IBController.ini does not exist
tws_1 | Forking :::4001 onto 0.0.0.0:4003\n
Ok so my issue is totally unrelated to Macfly's one
root@ece7f89a7a8f:/# ls -la /root/IBController
ls: cannot access '/root/IBController/IBController.ini': Permission denied
total 16
drwxr-xr-x. 1 root root 4096 May 21 13:04 .
drwx------. 1 root root 4096 Jun 2 22:11 ..
-?????????? ? ? ? ? ? IBController.ini
drwxr-xr-x. 2 root root 4096 May 21 12:03 Logs
I was having the same issue, and @krumware 's suggestion of docker-compose down
worked for me.
Any update on this @Macfly? Did you manage to solve the issue?
the first start works fine but if I kill the process with ctrl + C and rerun
docker-compose up
I have the following error:Is it normal? What should I do to stop the container and relaunch it?