Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with connecting to XS Advance Database #53

Closed
satharva opened this issue Jun 18, 2021 · 3 comments
Closed

Issue with connecting to XS Advance Database #53

satharva opened this issue Jun 18, 2021 · 3 comments
Assignees

Comments

@satharva
Copy link

satharva commented Jun 18, 2021

Hi Thomas,
As suggested by you on the youtube video to move the conversation here, I have attached a screenshot of the error I am getting while connecting to the XS Advance Database using the hana-cli command. I tried to use the admin credentials for connecting but it still shows the same issue.
hana-cli issue

But if I try to make a default-env.json using credentials I take from the application by going into the cockpit and getting the specific credentials I am able to do it but that gives me a access to a specific HDI Container, whereas what I want to do is make a new application and deploy it to XSA Databse like we do it in cloud by using the 'cf' command.

Regards
Atharva

@jung-thomas
Copy link
Contributor

Odd that there is no connect error details. One thing I did notice is that you said encrypt the connection, but then didn't supply any trust information. This would make connection impossible and might be the source of the problem. If you are using on premise HANA (especially HANA Express) you probably don't want to encrypt the connection. Try false at this input.

If that doesn't work they rung the hana-cli connect command with the --debug switch. That will trace a lot of inner details and will hopefully show what is going wrong.

@jung-thomas jung-thomas self-assigned this Jun 18, 2021
@satharva
Copy link
Author

I tried input 'false' but I am not able to overwrite that 'true' command. The 'true' thing is coming on its own I have not made any changes.
I tried it with the --debug command but I couldn't find any error from that. Here are the screenshots of the output I got
cli issue 1
cli issue 2

@jung-thomas
Copy link
Contributor

I tried input 'false' but I am not able to overwrite that 'true' command. The 'true' thing is coming on its own I have not made any changes.

Actually you are overriding the true in the above screenshot. That (true) at the end of the prompt is tell you the default value. When you supply f or false it is overriding the value. I can see it in the debug output.

But that wasn't the issue. There was a bug in the handling of the connection details of the connect command itself. I did some refactoring in the last release and added some logic to look for connection files in parent and fallback directories. I guess this worked too well because my test case didn't fail when it should have. ;) But you caught this situation in your environment because you'd never used hana-cli before. Thank you!

The debug trace you provided led me right to the issue and I've corrected now. Just published a new version to npm. If you update to 2.202106.1 it should work fine now. Sorry for the trouble. Feel free to reopen issue if this doesn't solve it for you or if you have any additional questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants