How to resolve an "Internal Server Error XDMP-LEXVAL: ss:request-rate" exception
16 February 2021 02:58 PM
|
|
IntroductionFor hosts that don't use a standard US locale (en_US) there are instances where some lower level calls will return data that cannot be parsed by MarkLogic Server. An example of this is shown with a host configured with a different locale when making a call to the Cluster Status page (cluster-status.xqy): The problemThe problem you have encountered is a known issue: MarkLogic Server uses a call to strtof() to parse the values as floats: http://linux.die.net/man/3/strtof Unfortunately, this uses a locale-specific decimal point. The issue in this environment is likely due to the Operating System using a numeric locale where the decimal point is a comma, rather then a period. Resolving the issueThe workaround for this is as follows: 1. Create a file called /etc/marklogic.conf (unless one already exists) 2. Add the following line to /etc/marklogic.conf: export LC_NUMERIC=en_US.UTF-8
After this is done, you can restart the MarkLogic process so the change is detected and try to access the cluster status again. | |
|