on 07-03-2018 5:51 AM
@sap/hdi-deploy, version 3.5.1 (mode default), server version 2.00.030.00.1522210459 (2.0.30.0), node version 8.9.3
Using service replacements from environment variable "SERVICE_REPLACEMENTS" with 1 replacements
Collecting files...
Collecting files... ok (0s 2ms)
5 directories collected
11 files collected
0 reusable modules collected
Processing grants files...
Processing "cfg/sflight.hdbgrants"...
Using service "hdi-sflight-service" of type "sql"
Error: Error executing: GRANT "SELECT","SELECT METADATA" ON SCHEMA "SFLIGHT" TO "OPENSAP_HANA6_00_2#OO" WITH GRANT OPTION;
(nested message: invalid user name: OPENSAP_HANA6_00_2#OO: line 1 col 57 (at pos 56))
grantor service: "hdi-sflight-service", type: "sql", user: "SYSTEM"
file name: /hana/shared/HXE/xs/app_working/hxehost/executionroot/2abb4421-4ec6-40c5-8240-ae879193d177/app/META-INF/.sap_java_buildpack/tomcat/temp/builder/hdi-builder/builds/build-5204564807477360756/core_db/cfg/sflight.hdbgrants
(0s 174ms)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! deploy@ start: `node node_modules/@sap/hdi-deploy/deploy.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the deploy@ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /hana/shared/HXE/xs/app_working/hxehost/executionroot/2abb4421-4ec6-40c5-8240-ae879193d177/app/META-INF/cache/node8.9/.npm/_logs/2018-07-03T04_42_41_225Z-debug.log
>(nested message: invalid user name: OPENSAP_HANA6_00_2#OO
This error means that your space which you are building the container within is pointing to a different MDC tenant than the connection information of your User Provided Service. This is why when the User Provided Service connects to the database it doesn't see the user (OPENSAP_HANA6_00_2) which was created to be the container technical user. Most likely you need to adjust the port of the User Provided Service to point to the connect tenant.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Thomas, Thank you. Changed the port and I am left with the below error. Couldn't make much out of it.
> node node_modules/@sap/hdi-deploy/deploy.js
@sap/hdi-deploy, version 3.3.0 (mode default), server version 2.00.030.00.1522210459 (2.0.30.0), node version 8.9.3
Using service replacements from environment variable "SERVICE_REPLACEMENTS" with 3 replacements
Collecting files...
Collecting files... ok (0s 7ms)
20 directories collected
230 files collected
1 reusable modules collected
Processing grants files...
Processing "cfg/central.hdbgrants"...
Processing "cfg/central.hdbgrants"... ok
Processing "cfg/sflight.hdbgrants"...
Yes, this time I am using your code from GIT (SPS2) and it has the same issue. The entire log is as below.
10:17:36 PM (Builder) Build of /com.sap.openSAP.hana5.example/core_db started. 10:17:39 PM (DIBuild) Build of /com.sap.openSAP.hana5.example/core_db in progress 10:17:39 PM (DIBuild) [INFO] Injecting source code into builder...
[INFO] Source code injection finished
[INFO] ------------------------------------------------------------------------
Your module contains a package.json file, it will be used for the build.
There is no error displayed but something seems to be wrong with around the SFLIGHT grant. I would suggest looking at the referenced log at the end of this display. Also double check the requirements of this step. Do you have SFLIGHT installed in the tenant which you are deploying? Do you have the necessary roles set on the user SYSTEM?
The issue seems to be with the user not found. I am able to work through the UPS from different project or container with no issues.
I would like to see this CUPS working as I know how much useful this will be to pull the ERP Data. Let me know where to look for help.
Thanks.
The error log on Build.
11:24:36 PM (Builder) Build of /openSAPHANA6/core_db started. 11:24:39 PM (DIBuild) Build of /openSAPHANA6/core_db in progress 11:24:40 PM (DIBuild) [INFO] Injecting source code into builder...
[INFO] Source code injection finished
[INFO] ------------------------------------------------------------------------
Your module contains a package.json file, it will be used for the build.
The answer remains the same: This error means that your space which you are building the container within is pointing to a different MDC tenant than the connection information of your User Provided Service.
Your CUPS is pointing to port *15 which is is your first tenant. However from this error, it would appear you are building in a space which must be pointing to the SYSTEMDB (or you created another tenant). You have SFLIGHT installed into the tenant, but it would seem that your project is pointing to SYSTEMDB. You need to make sure your project and CUPS are pointing to the same tenant. Otherwise this won't work.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.