on 10-10-2018 5:36 PM
Hi there,
I'm having issue with exercise 2.7 - Cross Container From Outside Our Project.
First I tried to download and deploy the .mtar file, but that got an error about a missing yaml inside the .mtar archive.
Next I fetched the CentralDB repository from git and build it ok in WebIDE. But when I then try and build my actual core_db it fails with a message ´(DIBuild) service openSAP.CentralDB.opensap-central-container not found.´
I also tried to crteate that service with "xs create-service ..." but to no avail. I checked and re-checked my yaml and it all looks good.
What am I missing?
Thanks!
All you should need to do is download the file locally. Open a command window. Navigate to the same folder where the file was downloaded. Issue the xs deploy <filename> --use-namespaces command. Don't use the --git* options. I suspect when you tried the xs deploy with the file you weren't in the same directory with the file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I downloaded the file again using
curl -O https://github.com/SAP/com.sap.openSAP.hana5.templates/blob/hana2_sps02/ex2/openSAP.CentralDB_1.0.20...
(address as per exercises PDF).
Then used
xs deploy openSAP.CentralDB_1.0.2_017.mtar --use-namespaces
and made sure I am in the same directory.
I'm again getting this error:
ERR Failed to abort conflicting operations
ERR Cannot findarchiveentry"META-INF/mtad.yaml"
Is the file corrupt perhaps?
I downloaded the file using
git clone https://github.com/SAP/com.sap.openSAP.hana5.templates.git
Then switching to the hana2_sp02 branch I used the xs deploy command and then it was working. Perhaps something goes wrong with the file when using the wget or curl commands.
I think it would be good to provide those instructions in the course material next time, to hep those (like me), less familiar with CLI tools on how to get the file to deploy.
Thanks a lot for your help Thomas! 🙂
You don't have to get the file onto your AWS instance. Just just the XS CLI from your local machine. It will send the file to the server during the xs deploy command. Or if you really must move the file over, I generally just use FTP (personally I use FileZilla for that).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Glad you got it. Personally I've never even tried with WGET or CURL. I would suggest instead just down the file with a web browser on your client machine and run the XS command from there. That's why there are no further instructions on how to download. I didn't figure people need instructions on how to download a file with a web browser. After all, its just pressing the Download button on the web page:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Thomas, I hear you, fair enough 🙂
I guess it isn't clear to me how to get the file uploaded to my AWS instance, if I just download it locally to my machine first, hence the attempts via curl and wget etc. But obviously others didn't have those issues.
In any case, I'm very glad you still provide support even though it's already a few months since the course ran live.
All you should have to do is download the .MTAR file and then install it with the xs deploy <file> command. Where exactly did you get an error that you were missing an YAML?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thomas,
thanks for your response!
Let me try to explain what I tried and where I failed.
I downloaded the file openSAP.CentralDB_1.0.2017.mtar from GitHub
Then I logged on to the console as XSA_ADMIN in the SAP space and i tried to deploy in different ways. First was using command
xs deploy .--git-uri <myOwnGitHubLocationOfTheMTAR>--use-namespaces
There I get the message
"... does not contain mandatory deployment descriptor file mtad.yaml"
Next I tried
xs deploy
.--git-uri https://github.com/SAP/com.sap.openSAP.hana5.templates/blob/hana2_sps03/ex2/openSAP.CentralDB_1.0.20...
--use-namespaces
And I get the error message:
Startingprocess xs2-deploy...Starting monitoring...
Downloading deployable from Git... Cloning repository https://github.com/SAP/com.sap.openSAP.hana5.templates/blob/hana2_sps03/ex2/openSAP.CentralDB_1.0.20...
Error downloading deployable from Git: Invalid remote: origin Failed toprocess Git MTA source
ERR Error downloading deployable from Git: Invalid remote: origin
Failed toprocess Git MTA source
And last I downloaded the mtar file to the server and tried this command:
xs deploy
openSAP.CentralDB_1.0.2_017.mtar --use-namespace
Which resulted in this error:
ERR Failed to abort conflicting operations
ERR Cannot findarchiveentry"META-INF/mtad.yaml"
Perhaps I'm not using the deploy command correctly, but then I could not find instructions on how to do this properly.
Your help is much appreciated.
User | Count |
---|---|
84 | |
9 | |
9 | |
8 | |
7 | |
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.