lenses-docker icon indicating copy to clipboard operation
lenses-docker copied to clipboard

Failed to create symbolic link '/var/www/config/run' on container restart

Open kinghuang opened this issue 6 years ago • 1 comments

I reported an issue in the #lenses Slack channel about this and @andmarios committed a fix. However, I may have prematurely declared it fixed. I'm still running into the problem, but it seems to happen randomly.

Sometimes, my Lenses Box container will fail to start again after being stopped, with an error /var/www/config/run already existing. The only thing I can then do is remove the container and start over again.

▸ ~ docker container start -a lenses-dev
Setting advertised host to 127.0.0.1.
Broker config found at '/var/run/broker/server.properties'. We won't process variables.
Connect worker config found at '/var/run/connect/connect-avro-distributed.properties'. We won't process variables.
Schema registry config found at '/var/run/schema-registry/schema-registry.properties'. We won't process variables.
REST Proxy config found at '/var/run/rest-proxy/kafka-rest.properties'. We won't process variables.
Zookeeper config found at '/var/run/zookeeper/zookeeper.properties'. We won't process variables.
Lenses conf config found at '/var/run/lenses/lenses.conf'. We won't process variables.
Lenses security conf config found at '/var/run/lenses/security.conf'. We won't process variables.
ln: failed to create symbolic link '/var/www/config/run': File exists

kinghuang avatar May 04 '18 19:05 kinghuang

Hi @kinghuang. Thanks for the report!

This issue turned out to be different than the one I fixed earlier. The problem only showed at the second restart of the container, so it escaped my testing.

I just pushed a fix: https://github.com/Landoop/fast-data-dev/commit/460db5bdc397b4c6b519fb31e6fb7fac619aeac7 It will take about an hour for the docker image to become available at the docker hub. Hope everything is ok now. :)

andmarios avatar May 05 '18 10:05 andmarios