QA: How can "Value incompatible" errors be resolved when setting UCR options?

Question

How can I set configuration options via UCR when I encounter “Value incompatible” errors?

root@primary:~# ucr set squid/krb5auth/children='200 idle=20'
Setting squid/krb5auth/children
E: Value '200 idle=20' incompatible for 'squid/krb5auth/children'

Answer

If you receive a “Value incompatible” error while setting a configuration option via UCR, it is usually due to strict validation of type definitions and value compatibility.
You can temporarily disable this validation check in order to apply the desired configuration:

ucr set ucr/check/type=false

After disabling the check, you can proceed with setting your configuration value. For example:

ucr set squid/krb5auth/children='200 idle=20'

:warning: Important:
Disabling type checking bypasses safety validation. This should only be done temporarily and with caution, as it may allow invalid or unsupported configurations to be applied. Once your changes are complete, it is recommended to re-enable the check:

ucr set ucr/check/type=true

This topic was automatically closed after 24 hours. New replies are no longer allowed.