Share via

sql server 2022 on linux error when running r script

Dave Parker 0 Reputation points
2023-09-14T13:18:30.96+00:00

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

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories


1 answer

Sort by: Most helpful
  1. LiHongMSFT-4306 31,621 Reputation points
    2023-09-15T02:39:29.0766667+00:00

    Hi @Dave Parker

    Please troubleshoot follow by this doc: Troubleshoot issues with Launchpad service executing Python and R scripts in SQL Server Machine Learning Services.

    Best regards,

    Cosmog Hong

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.