Snowsql error in mac OS : Observed error: [Errno 1] Operation not permitted: '/Applications/SnowSQL.app/Contents/snowsql_rt.log_bootstrap' - snowflake-cloud-data-platform

I am fcing problem while logging to my snoqsql and geting below issue.
when I rung the below line in comand line:
(base) user#MacBook-Air MacOS % snowsql <snoflake ID> -u <user ID>
getting the below response :
We were unable to create or write to the ../snowsql_rt.log_bootstrap. Make sure you have permission to write to the log file's parent folder or to modify the location of the log file specified in the SnowSQL log_file configuration option. See docs: https://docs.snowflake.com/en/user-guide/snowsql-config.html#log-file
Observed error: [Errno 1] Operation not permitted: '/Applications/SnowSQL.app/Contents/snowsql_rt.log_bootstrap'
We were unable to create or write to the ../snowsql_rt.log. Make sure you have permission to write to the log file's parent folder or to modify the location of the log file specified in the SnowSQL log_file configuration option. See docs: https://docs.snowflake.com/en/user-guide/snowsql-config.html#log-file
Observed error: [Errno 1] Operation not permitted: '/Applications/SnowSQL.app/Contents/snowsql_rt.log'
Password:
250001 (n/a): Could not connect to Snowflake backend after 0 attempt(s).Aborting
If the error message is unclear, enable logging using -o log_level=DEBUG and see the log to find out the cause. Contact support for further help.
Goodbye!
Shoule be able to login to the Snowflake account

Related

SnowSQL - Getting permission denied error

I'm kinda new to SnowFlake. I've installed SnowSQL but when I'm trying to launch it's throwing the below error: I guess some issue in the config which I'm unable to figure out. Please advise!
PermissionError: [WinError 5] Access is denied: '%USERPROFILE%'
[27056] Failed to execute script bootstrap
It looks like the configuration​ options log_file and log_bootstrap_file also point to the %userprofile% directory by default. Maybe set those to the network location too? You can do this by putting the options in the config file or using the -o flag when calling the CLI as described here: https://docs.snowflake.net/manuals/user-guide/snowsql-config.html#snowsql-config-file

Not able to connect to Snowflake database with snowsql

I am not able to connect with snowsql by Windows console:
<!-- language: lang-html -->
C:\Users\musik>snowsql -a [myAccount] -u [myUserName]<br>
Installing version: 1.2.0 [####################################] 100%<br>
Password:<br>
<!-- end snippet -->
I get this error message:
250001 (08001): Failed to connect to DB. Verify the account name is correct: [myAccount].snowflakecomputing.com:443. HTTP 403: Forbidden
If the error message is unclear, enable logging using -o log_level=DEBUG and see the log to find out the cause. Contact support for further help.
Goodbye!
Screenshot
Then I used -o log_level=DEBUG. In the log file I can see that I am getting a "forbidden" error:
2019-12-05 16:45:16,510 (6472/MainThread) snowflake.connector.network DEBUG network:822 - HTTP 403: Forbidden. Retrying...
What can I do? Has somebody the same issue?
From my comment earlier: Be sure to include the region and such in your account. It should include everything up to the snowflakecomputing.com in the URL that you use to access Snowflake through the UI.
Please use below command:
snowflake URL : https://abc.snowflakecomputing.com
Account_name : abc
User_name : Give fully qualified user name
snowsql -a <account_name> -u <user_name>
Note: Prior to this ensure you are able to login with user name and password using snowflake Web UI.

How to attach an .MDF file in a host directory data volume from within Docker mssql-server-linux container?

I am mounting a host directory as a data volume with the following:
docker run -v c:\volumes:/var/opt/mssql/data2
-e "ACCEPT_EULA=Y"
-e "SA_PASSWORD=QWEqwe1!"
-e 'MSSQL_PID=Express'
-p 1433:1433
-d microsoft/mssql-server-linux:latest
I created the volume with the instructions in the configuration topic here: https://learn.microsoft.com/en-us/sql/linux/sql-server-linux-configure-docker#persist.
My host directory contains an .mdf file and an empty .ldf file. When attempting to attach the .mdf file using the following TSQL:
USE [master]
GO
CREATE DATABASE [MY_DATABASE] ON
( FILENAME = N'/var/opt/mssql/data2/MY_DATABASE.mdf' ),
( FILENAME = N'/var/opt/mssql/data2/MY_DATABASE_log.ldf' )
FOR ATTACH
GO
I receive the following ERROR:
"Error: 824, Severity: 24, State: 6.
2018-04-19 19:37:31.29 spid57 SQL Server detected a logical consistency-based I/O error: Insufficient bytes transferred. Common causes are backup configuration, insufficient disk space, or other problems with the storage subsystem such as corruption or hardware failure. Check errorlogs/application-logs for detailed messages and correct error conditions.. It occurred during a read of page (0:0) in database ID 0 at offset 0000000000000000 in file 'C:\var\opt\mssql\data\SS18SV_CORE_log.ldf'. Additional messages in the SQL Server error log or operating system error log may provide more detail. This is a severe error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online."
The error.log contains:
"ERROR 5105 A file activation error occurred. The physical file name '\var\opt\mssql\data2\SS18SV_CORE.mdf' may be incorrect. Diagnose and correct additional errors, and retry the operation.
2018-04-19 19:00:14.79 spid54 Error: 824, Severity: 24, State: 6."
Any ideas how I can attach the .mdf file and .ldf file from my data volume successfully?
I am using Docker Community Edition Version 18.03.0-ce-win59 (16762) for Windows. My OS is Windows 10 Enterprise.

vertica install failing with ssh error

I was trying to install vertica using /opt/vertica/sbin/install_vertica script and following command /opt/vertica/sbin/install_vertica -s vertica001,vertica002,vertica003 -r /root/packages/vertica-6.0.1-7.x86_64.RHEL5.rpm
I was getting following error
Vertica Analytic Database 6.0.1-7 Installation Tool
Starting installation tasks...
Getting system information for cluster (this may take a while)....
'failed to login to 172.16.10.212: EOF ERROR: Could not login with SSH. Here is what SSH said: (publickey,gssapi-keyex,gssapi-with-mic).\r\r\n'
Updating Nodes that are UP
'failed to login to 172.16.10.18: EOF ERROR: Could not login with SSH. Here is what SSH said: (publickey,gssapi-keyex,gssapi-with-mic).\r\r\n'
Updating Nodes that are UP
Removing 172.16.10.212,172.16.10.18 from hosts list
backing up admintools.conf on 172.16.10.52
Info: the package 'pstack' is useful during troubleshooting. Vertica recommends this package is installed.
Checking/fixing OS parameters.....
Error: No JSON object could be decoded
Traceback (most recent call last):
File "/opt/vertica/bin/verticaInstall.py", line 1187, in <module>
if not SSH.check_min_free_kbytes(installerSSH, fix=True):
File "/opt/vertica/oss/python/lib/python2.7/site-packages/vertica/network/SSH.py", line 2388, in check_min_free_kbytes
data =json.loads( ''.join(res[host][1]))
File "/opt/vertica/oss/python/lib/python2.7/json/__init__.py", line 310, in loads
return _default_decoder.decode(s)
File "/opt/vertica/oss/python/lib/python2.7/json/decoder.py", line 346, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/opt/vertica/oss/python/lib/python2.7/json/decoder.py", line 364, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
I have setup passwordless ssh for dbadmin also it has sudo access.
Do I need to have passwordless ssh for root user here ? what I am missing here ?
Do I need to have passwordless ssh for root user here ? what I am missing here ?
Yes. The installer runs on the nodes specified in the host parameter. If SSH is not set up between the nodes, how else is the installer supposed to complete the process? See Configuring the Network and how to Enable Secure Shell (SSH) Logins in the doc.
Q: Why are you installing Vertica 6.0? The latest release is 7.2

httpd: could not open error log file /etc/httpd/logs/error_log. Unable to open logs

When i start my centOS server. Its through me error like below.
Starting httpd: (20)Not a directory: httpd: could not open error log file /etc/httpd/logs/error_log.
Unable to open logs
Please help me to fix this. Even i checked the permission of logs.
That's because of permission of file. you should set permission for zabbix user.

Resources