Open alberttwong opened 9 months ago
It only works again when you delete the containers.... and then start the environment fresh.
I am also getting the same issue with the containers. We sometimes also get in fresh containers, but mostly when restarting stopped containers.
You can reproduce easily with the docker compose for the shared data quickstart tutorial:
~/temp/test_starrocks$ curl -O -s https://raw.githubusercontent.com/StarRocks/demo/master/documentation-samples/quickstart/docker-compose.yml
~/temp/test_starrocks$ docker-compose up -d
Creating network "test_starrocks_default" with the default driver
Creating minio ... done
Creating test_starrocks_minio_mc_1 ... done
Creating starrocks-fe ... done
Creating starrocks-cn ... done
~/temp/test_starrocks$ docker compose logs starrocks-fe
~/temp/test_starrocks$ docker compose logs starrocks-cn
~/temp/test_starrocks$ docker compose stop
[+] Running 4/4
✔ Container starrocks-cn Stopped 10.5s
✔ Container test_starrocks_minio_mc_1 Stopped 0.0s
✔ Container starrocks-fe Stopped 1.0s
✔ Container minio Stopped 0.5s
~/temp/test_starrocks$ docker-compose up -d
Starting minio ... done
Starting test_starrocks_minio_mc_1 ... done
Starting starrocks-fe ... done
Starting starrocks-cn ... done
~/temp/test_starrocks$ docker compose logs starrocks-fe
~/temp/test_starrocks$ docker compose logs starrocks-cn
~/temp/test_starrocks$ docker compose stop
[+] Running 4/4
✔ Container test_starrocks_minio_mc_1 Stopped 0.0s
✔ Container starrocks-cn Stopped 1.5s
✔ Container starrocks-fe Stopped 0.9s
✔ Container minio Stopped 0.4s
~/temp/test_starrocks$ docker-compose up -d
Starting minio ... done
Starting test_starrocks_minio_mc_1 ... done
Starting starrocks-fe ... done
Starting starrocks-cn ... done
~/temp/test_starrocks$ docker compose logs starrocks-fe
~/temp/test_starrocks$ docker compose logs starrocks-cn
starrocks-cn | ERROR 2003 (HY000): Can't connect to MySQL server on 'starrocks-fe:9030' (111)
starrocks-cn | Backend running as process 1. Stop it first.
I went through these steps several times doing a docker compose down
between steps. I never saw the error on the first restart, but it almost always happened on the 2nd.
will be fixed in https://github.com/StarRocks/starrocks/pull/49013
done. wait for next official release with the fix.
starrocks-fe | /opt/starrocks/fe/bin/start_fe.sh: 56: source: not found
Just passing to say that this still occurs in the latest versions.
Manually replacing sh
with bash
in docker-compose.yml
solved this error message.