shieldproject / shield-boshrelease

BOSH Release for shield
MIT License
11 stars 17 forks source link

failed to connect to : Get /v2/auth/id: unsupported protocol scheme "" #136

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hello, We are deploying fresh deployment of V8.0.8 shield-bosh-release on our bosh2 env. Deployment succeeded for v8.0.8, but import errand failed with following errror.

_**Exit Code 1 Stdout Connecting to

Stderr !!! : failed to connect to : Get /v2/auth/id: unsupported protocol scheme ""

1 errand(s)

Errand 'import' completed with error (exit code 1)

Exit code 1**_

Here proving our manifest file.

shield.txt

jhunt commented 6 years ago

I believe your core property under the import errand is missing the https:// scheme.

I also notice you are running 8.0.8; import got some validation fixes in 8.0.11 https://github.com/starkandwayne/shield/releases/tag/v8.0.11, which you may want to update to (or, at your discretion, 8.0.13, released last Friday).

https://github.com/starkandwayne/shield/releases/latest

jhunt commented 6 years ago

This sounds like the same issue the @lordcf user was having in https://github.com/starkandwayne/shield-boshrelease/issues/129

ghost commented 6 years ago

We have provided core property under the import errand as follow jobs:

Now we tried with v8.0.11 having issue with core only as follow-

Exit Code 1 Stdout importing now......

Stderr !!! : Missing requird 'core' top-level key in the import manifest.

jhunt commented 6 years ago

can you verify the indent level in your manifest? here on github, it looks like nothing is properly indented...

ghost commented 6 years ago

Hi

I checked manifest, as indentation is proper for import job , please have a look on below shield.txt file

shield.txt

jhunt commented 6 years ago

Can you also post /var/vcap/jobs/import/config/import.yml?

ghost commented 6 years ago

I checked this import.yml file , it is blank .

import.yml --- {}

jhunt commented 6 years ago

Your manifest is borked.

    lifecycle: errand
    name: import
    networks:
      jobs:
      - name: import
        properties:
          import:
            core: https://IP
            global:
              policies:
                days: 90
                name: Long-Term Storage

You've got jobs under networks.

To be honest, I'm not sure how this ever worked.

ghost commented 6 years ago

Hi, This issue resolved , there was indentation issue only. Now able to run import errand, test-store task also done, but now facing issue with backup , backup task is in failed status.

Error is as follow- **mysqldump: Got error: 2002: "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2 "No such file or directory")" when trying to connect Unable to exec '/var/vcap/packages/mariadb/bin/mysqldump': exit status 2

        EXITING 3
        shield worker 4 unable to run command against   ##IP##**