on 06-09-2014 11:06 AM
hi
I have been following the tutorial steps to create a HANA XS app and have hit a problem when I try and Activate my first XS App. In Eclipse I get an error:
Internal error.
Repository request failed; cause: Repository: User is not authorized to execute specified operation;User 'DEV_5FXLVER85OQG4JHKVPZPPOQOR' has no authorization, privilege: 'REPO.READ', package: 'test'!, code: 40,156, argument:
Repository request failed; cause: Repository: User is not authorized to execute specified operation;User 'DEV_5FXLVER85OQG4JHKVPZPPOQOR' has no authorization, privilege: 'REPO.READ', package: 'test'!, code: 40,156, argument:
I can successfully connect to my HANA instance from Eclipse (although I did have a problem at one point - see this discussion )
But after creating the repository workspace and then adding all the .xsaccess files etc., when I finally Activate the project, I end up with the above error. In eclipse I see this in my Project Explorer:
So it looks OK. But it's when I try and activate I get the issue. I assume this might be related to the permissions of my user in the trial HANA account? If I go to the HANA cockpit, it all looks OK - but I am not sure if I see all I need to be sure the user/account is set up correctly:
In Eclipse I think the connection is OK:
Any clues as to how to fix this?
thanks
chris
Hey Chris, have you followed exactly as described step 3 from this blog post?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
I think so yes - I was actually following the tutorial guide here:
https://help.hana.ondemand.com/help/frameset.htm?3762b229a4074fc59ac6a9ee7404f8c9.html
which is the same as far as I can tell.
I have successfully created the HANA instance, I can set up Eclipse to point at the system; I created the repository fine; I created (locally in Eclipse) all the files (.xsaccess etc.) - it's the Activate step that causes the trouble. I guess this step tries to push everything up into HANA and create the HANA repo files - that presumably is where I get the errors.
I even deleted everything and started again - but got the same error.
One thing I have noticed - no idea if this is relevant or not - but this is the screen shot of my eclipse view showing the system I am connected to:
The blog post has a similar screen shot - but there you have ONE DEV_* folder, and ONE NEO_* folder. In the blog post, the DEV_ entry matches the identifier in brackets against the system (JN4).
Is it possible that (somehow) I have a 'corrupted' instance - hence the two entries for each of these types? Might be totally irrelevant ...
The issue seems like some sort of config/set up issue for my account.
- chris
Hi Chris,
As far as I can see from the screenshots you have shared your XS Project against wrong package - 'test'.
You have REPO privileges only for your dev package, which you can get (together with your NEO_ schema) from this query:
select * from "HCP"."HCP_DEV_METADATA"
We will clear up the redundant DEV_ and NEO_ schemas soon - they are visible because someone has granted privileges to PUBLIC role.
Best Regards
Jordan
hi
I found out what I was doing wrong.
It's in the XS project creation step. I was creating a new project, and in the location I was entering
<workspace root>/myhanainstance/<project name>
BUT instead I should enter
<workspace root>/myhanainstance/<account name>/<instance name>/<project name>
e.g.
/Users/xyzuser/HANAXSWorkspace/myhanainstance/xyztrial/myhanainstance/test
Then it all works. I tried this a few times to make sure I was not missing something, but if I do the above then it works OK.
I think what confused me was the documentation :
==========================================================
==========================================================
Step 4 in section 5 (Create an XS project) says to browse to the specified location (C:\HANAXSws\myhanaxs\i12345trial\myhanaxs\hello) and does warn about this matching the path in the previous section. But the previous section had created a workspace at C:\HANAXSws\myhanaxs - which did not include the extra path components, and the full path AT THIS TIME does not exist - so you need to browse to a non existent location, which seemed odd - I assumed that this was a mistake, and just added the project name to the root workspace location, and left out the <account name>/<instance name> pieces.
It seems that if the path is not exactly matching (as warned!) things don't work.
Anyway, I have it working now.
- chris
User | Count |
---|---|
78 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.