apps-infra

    Forum Stats

  • 3,873,703 Users
  • 2,266,629 Discussions
  • 7,911,603 Comments

Discussions

problems with Java Cloud Service tutorial

2845159
2845159 Member Posts: 3
edited Apr 27, 2016 6:15AM in Java Cloud Service

Hi all,

I just begin to work in the "Getting started with Oracle Java Cloud Service" tutorial. (Getting Started with Oracle Java Cloud Service)

Everything worked fine for the first steps, to create a two storage containers. but in ne next step, where we want to create a database instance there is something that does not work and I do not why.

The problem is, that you have to choose a storage container for the backup and recovery configuration. I choose the before created Storage container, provided my OPN Login and the password. But it cannot connect.

So I do not know which password has to be provided. In my opinion it must be that one with which I created the database containers, the password which I used in the first step to login to Java Cloud Services to get the Token.

Is there a problem with the "!" in my password ?

Thanks for your help.

protocol of the tasks that worked.

Aufbau der initialen Verbindung

  curl -v -s -X GET -H 'X-Storage-User: Storage-chrudolphagtria:[email protected]' -H 'X-Storage-pass: PASSWORD123! https://chrudolphagtria.storage.oraclecloud.com/auth/v1.0

  *   Trying 160.34.16.106...

  * Connected to chrudolphagtria.storage.oraclecloud.com (160.34.16.106) port 443 (#0)

  * TLS 1.2 connection using TLS_RSA_WITH_AES_128_CBC_SHA

  * Server certificate: *.storage.oraclecloud.com

  * Server certificate: VeriSign Class 3 Secure Server CA - G3

  * Server certificate: VeriSign Class 3 Public Primary Certification Authority - G5

  > GET /auth/v1.0 HTTP/1.1

  > Host: chrudolphagtria.storage.oraclecloud.com

  > User-Agent: curl/7.43.0

  > Accept: */*

  > X-Storage-User: Storage-chrudolphagtria:[email protected]

  > X-Storage-pass: 12Busenbaer98!

  >

  < HTTP/1.1 200 OK

  < date: 1461397609198

  < X-Auth-Token: AUTH_tk1174b684e303f0e2cba31eaa8bcd157b

  < X-Storage-Token: AUTH_tk1174b684e303f0e2cba31eaa8bcd157b

  < X-Storage-Url: https://em2.storage.oraclecloud.com/v1/Storage-chrudolphagtria

  < Content-Length: 0

  < Server: Oracle-Storage-Cloud-Service

  <

  * Connection #0 to host chrudolphagtria.storage.oraclecloud.com left intact

Anlegen der Storage Container:

  curl -i -X PUT -H "X-Auth-Token: AUTH_tk1174b684e303f0e2cba31eaa8bcd157b" https://em2.storage.oraclecloud.com/v1/Storage-chrudolphagtria/MyJCSContainer

  HTTP/1.1 201 Created

  X-Trans-Id: txdf0a769517fa47058d26d-00571b29cega

  Date: Sat, 23 Apr 2016 07:52:47 GMT

  Connection: keep-alive

  X-Last-Modified-Timestamp: 1461397966.88631

  Content-Type: text/html;charset=UTF-8

  Content-Length: 0

  Server: Oracle-Storage-Cloud-Service

  curl -i -X PUT -H "X-Auth-Token: AUTH_tk1174b684e303f0e2cba31eaa8bcd157b" https://em2.storage.oraclecloud.com/v1/Storage-chrudolphagtria/MyDBContainer

  HTTP/1.1 201 Created

  X-Trans-Id: txd2c207b9cce64aa6b29a6-00571b2a2bga

  Date: Sat, 23 Apr 2016 07:54:20 GMT

  Connection: keep-alive

  X-Last-Modified-Timestamp: 1461398060.04249

  Content-Type: text/html;charset=UTF-8

  Content-Length: 0

  Server: Oracle-Storage-Cloud-Service

Ueberprüfen der angelegten Storage Container

  curl -i -X GET -H "X-Auth-Token: AUTH_tk1174b684e303f0e2cba31eaa8bcd157b" https://em2.storage.oraclecloud.com/v1/Storage-chrudolphagtria/MyJCSContainer

  HTTP/1.1 204 No Content

  X-Container-Object-Count: 0

  X-Container-Write: chrudolphagtria.Storage.Storage_ReadWriteGroup

  Accept-Ranges: bytes

  X-Timestamp: 1461397966.90402

  X-Container-Read: chrudolphagtria.Storage.Storage_ReadOnlyGroup,chrudolphagtria.Storage.Storage_ReadWriteGroup

  X-Container-Bytes-Used: 0

  X-Trans-Id: tx1c0105f206d14367aad99-00571b2b50ga

  Date: Sat, 23 Apr 2016 07:59:12 GMT

  Connection: keep-alive

  X-Storage-Class: Standard

  X-Container-Meta-Policy-Georeplication: em2

  X-Last-Modified-Timestamp: 1461397966.88631

  Content-Type: text/html;charset=UTF-8

  Server: Oracle-Storage-Cloud-Service

  curl -i -X GET -H "X-Auth-Token: AUTH_tk1174b684e303f0e2cba31eaa8bcd157b" https://em2.storage.oraclecloud.com/v1/Storage-chrudolphagtria/MyDBContainer

  HTTP/1.1 204 No Content

  X-Container-Object-Count: 0

  X-Container-Write: chrudolphagtria.Storage.Storage_ReadWriteGroup

  Accept-Ranges: bytes

  X-Timestamp: 1461398060.06236

  X-Container-Read: chrudolphagtria.Storage.Storage_ReadOnlyGroup,chrudolphagtria.Storage.Storage_ReadWriteGroup

  X-Container-Bytes-Used: 0

  X-Trans-Id: txeb46172f508646af98132-00571b2c42ga

  Date: Sat, 23 Apr 2016 08:03:14 GMT

  Connection: keep-alive

  X-Storage-Class: Standard

  X-Container-Meta-Policy-Georeplication: em2

  X-Last-Modified-Timestamp: 1461398060.04249

  Content-Type: text/html;charset=UTF-8

  Server: Oracle-Storage-Cloud-Service

Anlegen des Datenbankservices

  https://myservices.emea.oraclecloud.com/mycloud/faces/dashboard.jspx?_afrLoop=622206892740867&_afrWindowMode=0&_adf.ctrl-state=vcldhm4qn_4

  Serviceconsole für Database as a Service

  https://dbcs.emea.oraclecloud.com/dbaas/faces/dbRunner.jspx?_afrLoop=1854982500538522&_afrWindowMode=0&_adf.ctrl-state=18nyxzrwkt_4

  Servicetab bei DBaaS

  https://dbcs.emea.oraclecloud.com/dbaas/faces/dbRunner.jspx?_afrLoop=1854982500538522&_afrWindowMode=0&_adf.ctrl-state=18nyxzrwkt_4

Answers

  • Jani Rautiainen-Oracle
    Jani Rautiainen-Oracle Member Posts: 828
    edited Apr 25, 2016 3:04AM

    So your problem is related to this screen

    service_details_page.jpg

    Specifically to the "Cloud Storage User Name / Cloud Storage Password" under "Backup and Recovery Configuration"? I think you used the correct password (the same as the one used to obtain the authentication token with curl). Do you get any error ? What was the value provided for the "Cloud Storage Contained" presumably "Storage-chrudolphagtria/MyDBContainer" ?

    --

    Jani Rautiainen

    Fusion Applications Developer Relations

  • 2845159
    2845159 Member Posts: 3
    edited Apr 26, 2016 8:25AM

    Hi Jani,

    thanks for your answer. The error I get is "can not connect" and I used the password for authentication and getting this token back.

    Any ideas ?

    Regards

    Sascha

  • Jani Rautiainen-Oracle
    Jani Rautiainen-Oracle Member Posts: 828
    edited Apr 27, 2016 1:59AM

    Tried in my instance and with valid password (the same that was used to create the token) I do not get an error. If I use invalid password I get:

    Could not connect to Oracle Storage Cloud Service using given user name and password
    

    I do not think the special characters in the password would make a difference. If the error you get is the same then it is likely somehow related to the user / password though. Looking at the commands you executed they seem slightly different from the documentation and what I have used, not sure if it makes a difference but you may want to try again with the exact documented format.

    --

    Jani Rautiainen

    Fusion Applications Developer Relations

  • 2845159
    2845159 Member Posts: 3
    edited Apr 27, 2016 5:27AM

    Hi Jani,

    this is the same error I also get. I retried several times and looked if everything is correct copied (password, key) but I do not find any mistake. Seems that there must be something different.

    Any idea ? :-)

    Regards

    Sascha

  • Jani Rautiainen-Oracle
    Jani Rautiainen-Oracle Member Posts: 828
    edited Apr 27, 2016 6:15AM

    Unfortunately I am out of ideas, works fine for me :/ Next step would be to contact support, try using the "Chat" icon in on the dashboard they can create a ticket for you.

    --

    Jani Rautiainen

    Fusion Applications Developer Relations

This discussion has been closed.
apps-infra