A big thanks for the logs. From the error case it was quite obvious what causes that:
Feb 23 14:13:37 Xperia10III connmand[21419]: plugins/clat.c:clat_task_do_prefix_query() Trying to resolv ipv4only.arpa gateway (null)
Feb 23 14:13:37 Xperia10III connmand[21419]: plugins/clat.c:prefix_query_cb() state 1/prefix query status 8 GResolv 0x32bd9400
Feb 23 14:13:37 Xperia10III connmand[21419]: plugins/clat.c:prefix_query_cb() failed to assign prefix/resolv host, error -2
Feb 23 14:13:37 Xperia10III connmand[21419]: plugins/clat.c:prefix_query_cb() State progress or state change
Feb 23 14:13:37 Xperia10III connmand[21419]: plugins/clat.c:clat_run_task() state 6/failure
Feb 23 14:13:37 Xperia10III connmand[21419]: plugins/clat.c:clat_run_task() CLAT entered failure state, stop all that is running
It simply in that case cannot resolv the ipv4only.arpa
. The error 8 means that there is no AAAA DNS record in the reply. Now this got me and Andrew thinking that could it be that 1) the DNS servers in some cases are set too late, or 2) the network has some glitch there, or 3) it is a bug somewhere in the depths of ConnMan completely elsewhere that is not easily triggered. It seems that the query is done twice as it should and both fail.
Your remedy of disable-enable would suggest a bug somewhere, or a network issue. However, will need to consider an approach to make CLAT try harder and longer to get a result for the address. However, the current one does indicate that DNS64 is not available. Will need to try to find a solution to this. Meanwhile, if you still encounter similar case that CLAT is not up because of unresolvable AAAA you could try what ping -6 ipv4only.arpa
reports when you enter mobile data after losing WLAN and CLAT does not resume. Also, it is interesting to see what in that case ping -4 ipv4only.arpa
gives.