cloudfoundry-attic / cfdev

A fast and easy local Cloud Foundry experience on native hypervisors, powered by LinuxKit with VPNKit
Apache License 2.0
226 stars 64 forks source link

cf dev start: Failed to deploy services: unable to parse bosh config: yaml: line 1: mapping values are not allowed in this context #47

Closed rockebee closed 6 years ago

rockebee commented 6 years ago

Hi devs, After having workarounded the issue with non-english environment on Windows, I now stumbled upon another issue:

Setting up IP aliases for the BOSH Director & CF Router (requires administrator privileges)
Downloading Resources...
Creating the VM...=============>| 100.0%
Starting VPNKit...
Starting the VM...
Waiting for Garden...
Deploying the BOSH Director...
Deploying CF...
  Uploading ReleasesFAILED
cf dev start: Failed to deploy services: unable to parse bosh config: yaml: line 1: mapping values are not allowed in this context

Any hint or idea where to look at? The cache\cf-deps.iso file has been newly downloaded (size is 4.882.026..240 bytes), and from what I see there are no relevant logs on my windows machine that might help ...

As the VM is still up and running: Is there any way to log in to it (e. g. via SSH) and check guest machine logs? (if that could help at all)

aemengo commented 6 years ago

We apologize very much, but this is very likely due to an intermittent bug that will be resolved in our upcoming release.

But the good news is that, although provisioning did not complete 'till the very end, your local Cloud Foundry deployment should be up and available for use. Here's the interaction instructions that you would have seen.


      ██████╗███████╗██████╗ ███████╗██╗   ██╗
     ██╔════╝██╔════╝██╔══██╗██╔════╝██║   ██║
     ██║     █████╗  ██║  ██║█████╗  ██║   ██║
     ██║     ██╔══╝  ██║  ██║██╔══╝  ╚██╗ ██╔╝
     ╚██████╗██║     ██████╔╝███████╗ ╚████╔╝
      ╚═════╝╚═╝     ╚═════╝ ╚══════╝  ╚═══╝
                 is now running!

    To begin using CF Dev, please run:
        cf login -a https://api.dev.cfdev.sh --skip-ssl-validation

    Admin user => Email: admin / Password: admin
    Regular user => Email: user / Password: pass
rockebee commented 6 years ago

Hi @aemengo, I verified that login works with the given credentials, so thanks for the hint. However, after having logged in I don't have any services listed in the marketplace nor is the web ui working (returning 404 on https://apps.dev.cfdev.sh), so the cfdev environment is kinda ... useless for me :/ I assume this is related to the bosh deployment error quoted above, but is there any other way to get a marketplace service (in this case the MySQL tile) added to cfdev?

If not: When do you expect a new cfdev release with a fix for the bootstrapping process will be made available? I'd be also happy to test before a release in case you provide me a github link to the plugin to download from ...

Thanks for your support!

ssisil commented 6 years ago

@rockebee - Im assuming you are starting this in open source mode - ie. cf dev start. If so - you will only have access to MySQL service. Apps Manager, Redis, RabbitMQ are only available when you start in PCF Dev mode - which is cf dev start -f <path to .iso>. You should be able to download the .iso file from the PCF Dev page on network.pivotal.io

rockebee commented 6 years ago

@ssisil - actually I already tried that, and in both variants I don't see any service at all in the cf marketplace output :/ Still I'd assume this be related to the YAML error, as it states Failed to deploy services.

C:\my_path>cf login -a https://api.dev.cfdev.sh --skip-ssl-validation
API endpoint: https://api.dev.cfdev.sh
Email> admin
Password>
Authenticating...
OK

Select an org (or press enter to skip):
1. cfdev-org
2. system

Org> 1
Targeted org cfdev-org
Targeted space cfdev-space

API endpoint:   https://api.dev.cfdev.sh (API version: 2.98.0)
User:           admin
Org:            cfdev-org
Space:          cfdev-space

C:\my_path>cf marketplace
Getting services from marketplace in org cfdev-org / space cfdev-space as admin...
OK

No service offerings found

C:\data\meed_schs\docs\work\Projekte\BoschHealthcare\BIC>

Any estimation when the next release may happen? Anyway, looking forward to it :)

alberto-riggi commented 6 years ago

Hi @rockebee , did you find any workaround? I'm stuck at the same point (opened another issue in the other repo (probably erroneously)

sdawson-pivotal commented 5 years ago

@rockebee would you mind sharing a bit about your use case? We are looking to better understand how people are using CF / PCF Dev, and what they are looking for. Your answers to this 4 question survey would be very helpful to us: https://goo.gl/forms/3OHzU2S5907hiu5r1

existme commented 5 years ago

I am encountering the same problem

aemengo commented 5 years ago

@existme Please ensure that you're on the latest version of our product

$ cf dev version
CLI: v0.0.16
...