Search code examples
snowflake-cloud-data-platformsnowsql

After installation of Snowsql I am getting Failed to initialize log. No logging is enabled: [Errno 13] Permission denied: 'C:\\Users\\snowsql_rt.log'


HI I have downloaded and installed SNowSQL onto my Windows Machine 64 bit machine

After entering command snowsql -a zx12334 -u someone ; i am getting following error

Failed to initialize log. No logging is enabled: [Errno 13] Permission denied: 'C:\Users\snowsql_rt.log'

Any idea what is reason.

In my config file I have enabled log_file = ../snowsql_rt.log


Solution

  • For Windows go to:

    %USERPROFILE%\.snowsql\
    

    and update file config and replace this line:

    log_file = ../snowsql_rt.log
    

    with this line:

    %USERPROFILE%\.snowsql\log