on 2018 Aug 31 3:09 PM
Hi Team,
I am working on the cross container data access scenario in HANA XSA. I have created one HDB project BA2_to_BA2_S; I created one table and roles for that table. I created other HDB project BA2_to_BA2_T where I created the mta.yaml file and given all the parameters and build it. mtayaml.png It got build successfully. After that I created the Table_Access.hdbgrant file hdbgrants.png when I build this file I am facing below error:
@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)
1 directories collected
3 files collected
0 reusable modules collected
Processing grants files...
Processing "src/Table_Access.hdbgrants"...
Using service "logical-BA2-grantor" of type "hdi"
Processing "src/Table_Access.hdbgrants"... ok
Processing grants files... ok (0s 258ms)
Preprocessing files...
Preprocessing files... ok (0s 1ms)
Connecting to the container "BA2_TO_BA2_T_SCHEMA_1"...
Connecting to the container "BA2_TO_BA2_T_SCHEMA_1"... ok (0s 6ms)
Locking the container "BA2_TO_BA2_T_SCHEMA_1"...
Locking the container "BA2_TO_BA2_T_SCHEMA_1"... ok (0s 58ms)
Synchronizing files with the container "BA2_TO_BA2_T_SCHEMA_1"...
Synchronizing files with the container "BA2_TO_BA2_T_SCHEMA_1"... ok (0s 249ms)
0 modified or added files are scheduled for deploy based on delta detection
0 deleted files are scheduled for undeploy based on delta detection (filtered by undeploy whitelist)
1 files are scheduled for deploy based on explicit specification
0 files are scheduled for undeploy based on explicit specification
Deploying to the container "BA2_TO_BA2_T_SCHEMA_1"...
Starting make in the container "BA2_TO_BA2_T_SCHEMA_1" with 1 files to deploy, 0 files to undeploy...
Migrating libraries...
Making...
No make necessary
Making... ok
Migrating libraries... ok
Making...
Preparing...
Preparing the make transaction...
Error: The file "src/Table_Access.hdbgrants" could not be found [8212757]
Error: Some requested files/folders could not be found [8212764]
Error: Could not read work files [8211562]
Error: Preparing... failed [8211602]
Error: Preparing the make transaction... failed [8211683]
Checking the uniqueness of the catalog objects in the schema "BA2_TO_BA2_T_SCHEMA_1"...
Error: Checking the uniqueness of the catalog objects in the schema "BA2_TO_BA2_T_SCHEMA_1"... failed [8211637]
Make failed (6 errors, 0 warnings): tried to deploy 1 files, undeploy 0 files, redeploy 0 dependent files
Error: Making... failed [8211605]
Error: Starting make in the container "BA2_TO_BA2_T_SCHEMA_1" with 1 files to deploy, 0 files to undeploy... failed [8214168]
Command failed
Deployment to container BA2_TO_BA2_T_SCHEMA_1 failed - error: HDI make failed [Deployment ID: none].
Error: HDI make failed
(1s 115ms)
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 update check failed │
│ Try running with sudo or get access │
│ to the local update config store via │
│ sudo chown -R $USER:$(id -gn $USER) /home/hanxsa/.config │
└─────────────────────────────────────────────────────┘
npm ERR! A complete log of this run can be found in:
npm ERR! /hana/shared/HAN/xs/app_working/capidhana/executionroot/6657f3ec-8199-4ae0-95b0-34552d60cdd1/app/META-INF/cache/node8.9/.npm/_logs/2018-08-31T13_21_29_641Z-debug.log
6:51:31 PM (Builder) Build of /BA2_to_BA2_T/BA2_to_BA2_T_DB failed.
If someone knows solution for this then please could you help me to resolve this problem.
Thanks.
Best Regards,
Vivek
Request clarification before answering.
Hi Dirk,
I tried putting .hdbgrants file in both cfg and src folders but in both the cases; I am getting the same error.
Thanks.
Best Regards,
Vivek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dirk,
Thanks for quick reply. I have created the cfg folder under the DB folder. Please find the attached screenshot of my source and target containers cfg-folder.png.
Thanks.
Best Regards,
Vivek.
Hi Dirk,
At DB level I am able to build the project. But when I am going to create the synonyms; I am not able to get the external services box to select the source container.
Is there any way I can debug the application while it is building to find out the problem? Is there any way to ping the container service from the other container to check quickly it is working fine?
Please find below the DB build log.
12:16:10 PM (Builder) Build of /BA2_to_BA2_T/BA2_to_BA2_T_DB started.
12:16:13 PM (DIBuild) Build of /BA2_to_BA2_T/BA2_to_BA2_T_DB in progress
12:16:13 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.
12:16:17 PM (DIBuild)
┌──────────────────────────────────────────────────────────┐
│ npm update check failed │
│ Try running with sudo or get access │
│ to the local update config store via │
│ sudo chown -R $USER:$(id -gn $USER) /home/hanxsa/.config │
└──────────────────────────────────────────────────────────┘
> deploy@ start /hana/shared/HAN/xs/app_working/capidhana/executionroot/6657f3ec-8199-4ae0-95b0-34552d60cdd1/app/META-INF/.sap_java_buildpack/tomcat/temp/builder/hdi-builder/builds/build-864446974705561584/BA2_to_BA2_T_DB
> node node_modules/@sap/hdi-deploy/deploy.js
@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)
1 directories collected
3 files collected
0 reusable modules collected
Processing grants files...
Processing "src/Table_Access.hdbgrants"...
Using service "logical-BA2-grantor" of type "hdi"
Processing "src/Table_Access.hdbgrants"... ok
Processing grants files... ok (0s 259ms)
Preprocessing files...
Preprocessing files... ok (0s 1ms)
Connecting to the container "BA2_TO_BA2_T_SCHEMA_1"...
Connecting to the container "BA2_TO_BA2_T_SCHEMA_1"... ok (0s 6ms)
Locking the container "BA2_TO_BA2_T_SCHEMA_1"...
Locking the container "BA2_TO_BA2_T_SCHEMA_1"... ok (0s 57ms)
Synchronizing files with the container "BA2_TO_BA2_T_SCHEMA_1"...
Synchronizing files with the container "BA2_TO_BA2_T_SCHEMA_1"... ok (0s 234ms)
0 modified or added files are scheduled for deploy based on delta detection
0 deleted files are scheduled for undeploy based on delta detection (filtered by undeploy whitelist)
0 files are scheduled for deploy based on explicit specification
0 files are scheduled for undeploy based on explicit specification
Deploying to the container "BA2_TO_BA2_T_SCHEMA_1"...
Starting make in the container "BA2_TO_BA2_T_SCHEMA_1" with 0 files to deploy, 0 files to undeploy...
Starting make in the container "BA2_TO_BA2_T_SCHEMA_1" with 0 files to deploy, 0 files to undeploy... ok
Deploying to the container "BA2_TO_BA2_T_SCHEMA_1"... ok (0s 127ms)
No default-access-role handling needed; global role "BA2_TO_BA2_T_SCHEMA_1::access_role" will not be adapted
Unlocking the container "BA2_TO_BA2_T_SCHEMA_1"...
Unlocking the container "BA2_TO_BA2_T_SCHEMA_1"... ok (0s 0ms)
Deployment to container BA2_TO_BA2_T_SCHEMA_1 done [Deployment ID: none].
(0s 941ms)
┌──────────────────────────────────────────────────────────┐
│ npm update check failed │
│ Try running with sudo or get access │
│ to the local update config store via │
│ sudo chown -R $USER:$(id -gn $USER) /home/hanxsa/.config │
└──────────────────────────────────────────────────────────┘
12:16:17 PM (DIBuild) ********** End of /BA2_to_BA2_T/BA2_to_BA2_T_DB Build Log **********
12:16:17 PM (DIBuild) Build results link: https://capidhana:53075/che/builder/workspaceowfbufve20dtwf1k/download-all/77039843-54c4-4a5f-a33b-7...
12:16:18 PM (Builder) Build of /BA2_to_BA2_T/BA2_to_BA2_T_DB completed successfully.
User | Count |
---|---|
61 | |
8 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.