Skip to content

Troubleshooting / Publishing scripts/Executing functions when MySQL encounters the 「ERROR 2026 (HY000)」 error

Since Ubuntu 20.04 requires a minimum SSL version of v1.2, after upgrading an older version of DataFlux Func to version 1.5.5, the following exception may occur when publishing/running scripts:

Text Only
1
ERROR 2026 (HY000): SSL connection error: error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol

DataFlux Func versions 1.5.5 and later already include automatic configuration modification processing, so a normal upgrade should suffice.

If the issue persists, you can try the following manual fix:

  1. Open the <installation directory>/docker-stack.yaml file (default location is /usr/local/dataflux-func/docker-stack.yaml)
  2. In the yaml file, locate the service / mysql / command configuration and add the --tls-version=TLSv1.2 parameter

The reference modification method is as follows:

Text Only
1
2
3
4
5
# Change
command: --innodb-large-prefix=on (... omitted after)

# To
command: --tls-version=TLSv1.2 --innodb-large-prefix=on (... omitted after)