-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with hosting_plausible_events_db_1 creation #21
Conversation
hosting_plausible_1 is unable to connect to hosting_plausible_events_db_1 host on port 8123. docker logs hosting_plausible_1 show the following error(removed the rest for clarity): ``` ** (UndefinedFunctionError) function :econnrefused.exception/1 is undefined (module :econnrefused is not available) ``` docker logs hosting_plausible_events_db_1 show the following error: ``` <Warning> Application: Listen [::1]:8123 failed: Poco::Exception. Code: 1000, e.code() = 99, e.displayText() = Net Exception: Cannot assign requested address: [::1]:8123 (version 20.11.4.13 (official build)). If it is an IPv6 or IPv4 address and your host has disabled IPv6 or IPv4, then consider to specify not disabled IPv4 or IPv6 address to listen in <listen_host> element of configuration file. Example for disabled IPv6: <listen_host>0.0.0.0</listen_host> . Example for disabled IPv4: <listen_host>::</listen_host> ``` And for some reason, it being a warning (probably because of this ClickHouse/ClickHouse#4406) it doesn't bind the port. So this change will only listen on ipv4 and fix the problem.
I have tried this fix and it worked for me, but this disables IPv6? Error output:
|
Yup, this disables ipv6. |
Could it be that if we were to enable IPv6 in docker, by following the instructions in the link you provided, the issue would be solved without this fix? Not sure which approach is best... |
I suppose doing this fix and also adding the --ipv6 flag to the docker-compose somewhere would fix that, but I don't think that it's a "portable" solution, as this change requires host docker changes that might break something. |
@jen140 I agree. |
I've ran into the same issue since latest changes. By default the docker container of clickhouse ships My workaround was rather using following:
As clickhouse recursively merges the settings, this might also be more ideal in the future. |
I think @patschi's solution is the best. I will create a PR with it ASAP to fix the issue |
Issue fixed in #28 |
hosting_plausible_1 is unable to connect to hosting_plausible_events_db_1 host on port 8123.
docker logs hosting_plausible_1 show the following error(removed the rest for clarity):
docker logs hosting_plausible_events_db_1 show the following error:
And for some reason, it being a warning (probably because of this ClickHouse/ClickHouse#4406) it doesn't bind the port.
So this change will only listen on ipv4 and fix the problem.