I have recently installed SQL Server 2022 for Linux on an ubuntu 20.04 Server, and added the Integration Services and Extensibility packages as per instrcutions from the MS sites.
R (4.2.0) and Python (3.10) have been installed, and these have been integrated (supposedly) into SQL Server by running the mssql-conf tool to setup the rbinpath, pythinbinpath, and datadirectories
R & Python work fine on their own
However, if I attempt to run a script from the SQL Server command line - sqlcmd - I get the following error after a while:
Result 0x9864, Level 16, State 14
Unable to communicate with the runtime for 'R' script for request id: FC0F39DA-F637-44F0-9781-21C70E37446A. Please check the requirements of 'R' runtime.
STDERR message(s) from external script:
Error in sqlSatelliteCall() :
collate_byname<char>::collate_byname failed to construct for en_US.utf8
Calls: sqlSatelliteCall -> .Call
Execution halted
Received the termination signal 1 from parent, terminating BxlServer of pid=24
I've tried a number of resources, and there doesn't seem to be a helpful answer to this! I've checked the settings I can think of, and all seems well, but this looks definitely like R / Python isn't connecting with SQL Server for some reason!
Any help appreciated
Dave Parker