MSSQL installation fails at mssql-conf setup

  • Hi! 

    I am facing with issue at installing MSSQL on my rhel 7 virtual machine. 

    I do steps: 

    1. sudo curl -o /etc/yum.repos.d/mssql-server.repohttps://packages.microsoft.com/config/rhel/7/mssql-server-2017.repo

    2. sudo yum install -y mssql-server

    3. sudo /opt/mssql/bin/mssql-conf setup

    But when I ran the last setup command I get an error. First I enter my edition and then when I accept licensing I get an error like: 

    [root@mssql_master bin]# sudo /opt/mssql/bin/mssql-conf setup 
    Error in localization. Using en_US. 
    usermod: no changes 
    Choose an edition of SQL Server: 
      1) Evaluation (free, no production use rights, 180-day limit) 
      2) Developer (free, no production use rights) 
      3) Express (free) 
      4) Web (PAID) 
      5) Standard (PAID) 
      6) Enterprise (PAID) 
      7) Enterprise Core (PAID) 
      8) I bought a license through a retail sales channel and have a product key to enter.

    Details about editions can be found at 
    https://go.microsoft.com/fwlink/?LinkId=852748

    Use of PAID editions of this software requires separate licensing through a 
    Microsoft Volume Licensing program. 
    By choosing a PAID edition, you are verifying that you have the appropriate 
    number of licenses in place to install and run this software.

    Enter your edition(1-8): 2 
    The license terms for this product can be found in 
    /usr/share/doc/mssql-server or downloaded from: 
    https://go.microsoft.com/fwlink/?LinkId=855862

    The privacy statement can be viewed at: 
    https://go.microsoft.com/fwlink/?LinkId=853010

    Choose the language for SQL Server: 
    (1) English 
    (2) Deutsch 
    Traceback (most recent call last): 
      File "/opt/mssql/bin/../lib/mssql-conf/mssql-conf.py", line 361, in <module> 
        main() 
      File "/opt/mssql/bin/../lib/mssql-conf/mssql-conf.py", line 357, in main 
        processCommands() 
      File "/opt/mssql/bin/../lib/mssql-conf/mssql-conf.py", line 262, in processCommands 
        COMMAND_TABLE[args.which]() 
      File "/opt/mssql/bin/../lib/mssql-conf/mssql-conf.py", line 75, in handleSetup 
        mssqlconfhelper.setupSqlServer(eulaAccepted, noprompt=args.noprompt) 
      File "/opt/mssql/lib/mssql-conf/mssqlconfhelper.py", line 993, in setupSqlServer 
        languageSelect(noprompt) 
      File "/opt/mssql/lib/mssql-conf/mssqlconfhelper.py", line 234, in languageSelect 
        print (u"(3) Español") 
    UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in position 8: ordinal not in range(128)

    Any suggestions how to get over this error?

    Thanks for your help! 

    Denis.

  • Curious if you ever got this issue solved and if so how. I am running into the same problem. If I can manage to solve it I will post back here.

  • In the release notes, it says that if you use a locale other than English, you need to set your session to use UTF-8. Refer to the Localization section in the following documentation:

    https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-release-notes?view=sql-server-2017

    Sue

     

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply