Can't activate changes - ASCII ERROR

Can't activate changes - ASCII ERROR

Receiving error during Activating Changes. Error "Internal automation error: The text must only contain ASCII characters."

LAST TESTED ON CHECKMK 2.3.0P1

Table of Contents

Problem

This issue occurs when a file within the site’s configuration contains non-ASCII characters in either its name or contents. This prevents the central site from successfully synchronizing configuration data to remote sites.

Screenshot of got invalid data error while trying to activate changes.

 

Non ASCII Character List

Non ASCII Characters

 

Solution

We must find the file containing the invalid characters to correct this behavior.

 

  1. As the site user, within the command line on your central site, go to your site user's home folder. 

    OMD[mysite]:~$ cd ~/

    .

  2. Run the following three commands:

    OMD[mysite]:~$ find . -type f | xargs ls -ltr |grep --color='auto' -P -n "[^\x00-\x7F]" OMD[mysite]:~$ find . -type f | grep --color='auto' -P -n "[^\x00-\x7F]" OMD[mysite]:~$ grep -aPrl '\x80\x04'

    .

    In this example, the above commands located a file named bad_filξ_namξ.txt which the non-ASCII character is the ξ.

    OMD[mysite]:~/local/share/doc/check_mk$ bad_filξ_namξ.txt

    .

  3. This file must be deleted, and then changes must be activated again. After all sites have been activated, this issue should be resolved. 


Related articles