Monday, December 1, 2014

CakePHP on Stackato 3.4 - Staging failed / Failed to resolve runtime dependencies.

Hi there,
when trying to deploy the CakePHP App from the Stackato Marketplace, I receive the following output in the log console (my highlights). On the same deployment, a Bugzilla deployment works fine:

  • [stackato[fence]] 2014-12-01T15:00:46.000Z: Destroyed Docker container
  • [stackato.appstore] 2014-12-01T15:00:40.000Z: staging failed (400)
  • [stackato.appstore] 2014-12-01T15:00:40.000Z: Error: Application failed to stage: Staging error: cannot get instances since
  • [staging] 2014-12-01T15:00:40.000Z: Staging failed: Buildpack compilation step failed
  • [staging] 2014-12-01T15:00:40.000Z: If the issue persists, please contact support.
  • [staging] 2014-12-01T15:00:40.000Z: ! ERROR: Failed to resolve runtime requirements.
  • [staging] 2014-12-01T15:00:40.000Z:
  • [stackato.appstore] 2014-12-01T15:00:39.000Z: 0/0 instances:
  • [stackato.appstore] 2014-12-01T15:00:38.000Z: 0/0 instances:
  • [stackato.appstore] 2014-12-01T15:00:37.000Z: 0/0 instances:
  • [stackato.appstore] 2014-12-01T15:00:36.000Z: 0/0 instances:
  • [staging] 2014-12-01T15:00:35.000Z: Cloning into '/tmp/buildpacks/heroku-buildpack-php'...
  • [stackato.appstore] 2014-12-01T15:00:35.000Z: 0/0 instances:
  • [stackato.appstore] 2014-12-01T15:00:34.000Z: 0/0 instances:
  • [stackato.appstore] 2014-12-01T15:00:33.000Z: 0/0 instances:
  • [staging] 2014-12-01T15:00:33.000Z: -----> Downloaded app package (2.1M)
  • [stackato.appstore] 2014-12-01T15:00:32.000Z: 0/0 instances:
  • [stackato[cloud_controller_ng]] 2014-12-01T15:00:32.000Z: Updated app 'cakephp-c1i3q' -- {"console"=>true, "state"=>"STARTED"}
  • [stackato[fence]] 2014-12-01T15:00:31.000Z: Prepared Docker container
  • [stackato[fence]] 2014-12-01T15:00:24.000Z: Created Docker container
  • [stackato[dea_ng]] 2014-12-01T15:00:21.000Z: Staging application
  • [stackato[cloud_controller_ng]] 2014-12-01T15:00:20.000Z: Queued deployment of app 'cakephp-c1i3q'
  • [stackato.appstore] 2014-12-01T15:00:20.000Z: Starting Application [cakephp-c1i3q] ...
  • [stackato.appstore] 2014-12-01T15:00:20.000Z: Push Status: OK
  • [stackato.appstore] 2014-12-01T15:00:20.000Z: Uploading (79K) ... OK
  • [stackato.appstore] 2014-12-01T15:00:17.000Z: Packing application ... OK
  • [stackato.appstore] 2014-12-01T15:00:16.000Z: Processing resources ... OK
  • [stackato.appstore] 2014-12-01T15:00:16.000Z: Checking for available resources ... OK
  • [stackato.appstore] 2014-12-01T15:00:15.000Z: Copying to temp space ... OK
  • [stackato.appstore] 2014-12-01T15:00:14.000Z: Checking for bad links ... OK
  • [stackato.appstore] 2014-12-01T15:00:14.000Z: Uploading Application [cakephp-c1i3q] ...
  • [stackato.appstore] 2014-12-01T15:00:14.000Z: Binding cakephp-c1i3q-db to cakephp-c1i3q ... OK
  • [stackato.appstore] 2014-12-01T15:00:14.000Z: Creating new service [cakephp-c1i3q-db] ... OK
  • [stackato.appstore] 2014-12-01T15:00:13.000Z: Service cakephp-c1i3q-db:
  • [stackato[cloud_controller_ng]] 2014-12-01T15:00:13.000Z: Updated app 'cakephp-c1i3q' -- {"route"=>"c15209c2-6aa5-4b2f-9f35-826979dd7354"}
  • [stackato.appstore] 2014-12-01T15:00:13.000Z: Map http://cakephp-c1i3q.stackato-m9gm.local ... OK
  • [stackato[cloud_controller_ng]] 2014-12-01T15:00:12.000Z: Updated app 'cakephp-c1i3q' -- {"buildpack"=>"https://github.com/heroku/heroku-buildpack-php.git", "disk_quota"=>2048, "memory"=>128}
  • [stackato.appstore] 2014-12-01T15:00:12.000Z: Committing ... OK
  • [stackato.appstore] 2014-12-01T15:00:12.000Z: Setting Memory : 128 (was 1024)
  • [stackato.appstore] 2014-12-01T15:00:12.000Z: Setting Disk : 2048 (was 1024)
  • [stackato.appstore] 2014-12-01T15:00:12.000Z: Setting Buildpack : https://github.com/heroku/heroku-buildpack-php.git (was null)
  • [stackato.appstore] 2014-12-01T15:00:12.000Z: Syncing Application [cakephp-c1i3q] to [https://api.stackato-m9gm.local -> <none> -> Test -> cakephp-c1i3q] ...
  • [stackato.appstore] 2014-12-01T15:00:12.000Z: Application Url: http://cakephp-c1i3q.stackato-m9gm.local
  • [stackato.appstore] 2014-12-01T15:00:12.000Z: Instances: 1
  • [stackato.appstore] 2014-12-01T15:00:12.000Z: Zone: default
  • [stackato.appstore] 2014-12-01T15:00:12.000Z: BuildPack: https://github.com/heroku/heroku-buildpack-php.git
  • [stackato.appstore] 2014-12-01T15:00:12.000Z: Updating application 'cakephp-c1i3q'...
  • [stackato.appstore] 2014-12-01T15:00:12.000Z: Using manifest file "manifest.yml"
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: Deploying with arguments: --as cakephp-c1i3q --force-start --url cakephp-c1i3q.stackato-m9gm.local
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: _=/usr/bin/env
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: AUTOSTART=True
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: STACKATO_DOCKER=True
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: GOVERSION=1.2.1
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: HOME=/
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: SHLVL=1
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: URL=cakephp-c1i3q.stackato-m9gm.local
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: ENDPOINT=api.stackato-m9gm.local
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: PWD=/app
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: PATH=/stackato/client:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: SPACE_GUID=f04e69f1-6137-4080-8330-ff5a9b7c0e39
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: VCSTYPE=git
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: TOKEN=bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJjbG91ZF9jb250cm9sbGVyIiwiaWF0IjoxNDE3NDM5NzY5LCJleHAiOjE0MTc1MjYxNjksImNsaWVudF9pZCI6ImNmIiwic2NvcGUiOlsib3BlbmlkIiwicGFzc3dvcmQud3JpdGUiLCJjbG91ZF9jb250cm9sbGVyLmFkbWluIiwiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSIsInNjaW0ucmVhZCIsInNjaW0ud3JpdGUiXSwianRpIjoiNzQyYzVlZjEtZDllMC00OWI2LTgyZTEtNzNjZWE0MDNhMTVjIiwidXNlcl9pZCI6IjdkYmUzM2QzLWE5YTctNDg2Zi04ZTFkLTRlZjdiYzA4Y2QyYSIsInN1YiI6IjdkYmUzM2QzLWE5YTctNDg2Zi04ZTFkLTRlZjdiYzA4Y2QyYSIsInVzZXJfbmFtZSI6IkphbiBIb2x0aHVzZW4iLCJlbWFpbCI6Imphbi5ob2x0aHVzZW5AaHAuY29tIn0.fow2mX5asb_uxzEYk61vcFYIx2UWPKS6KgfggNaNMM8
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: VCSREF=stackato
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: APP_NAME=cakephp-c1i3q
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: OLDPWD=/app
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: VCSURL=https://github.com/Stackato-Apps/cakephp.git
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: BUILDPACK=
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: DOCKER_HOST=16.58.225.240
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: HOSTNAME=ec7aa975c2c3
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: ZONE=default
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: Disabling http proxy, if set, before invoking the client
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: --
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: Your branch is up-to-date with 'origin/stackato'.
  • [stackato.appstore] 2014-12-01T15:00:11.000Z: Already on 'stackato'
  • [stackato.appstore] 2014-12-01T14:59:52.000Z: Cloning into '/app'...
  • [stackato.appstore] 2014-12-01T14:59:52.000Z: Downloading https://github.com/Stackato-Apps/cakephp.git.
  • [stackato.appstore] 2014-12-01T14:59:52.000Z: search emea.hpqcorp.net
  • [stackato.appstore] 2014-12-01T14:59:52.000Z: nameserver 16.110.135.51
  • [stackato.appstore] 2014-12-01T14:59:52.000Z: nameserver 16.110.135.52
  • [stackato.appstore] 2014-12-01T14:59:52.000Z: nameserver 127.0.0.1
  • [stackato.appstore] 2014-12-01T14:59:52.000Z: **********************************************************
  • [stackato.appstore] 2014-12-01T14:59:52.000Z: ...done.
  • [stackato.appstore] 2014-12-01T14:59:50.000Z: * Restarting DNS forwarder and DHCP server dnsmasq
  • [stackato.appstore] 2014-12-01T14:59:49.000Z: Mapping DNS record api.stackato-m9gm.local -> 16.58.225.240
  • [stackato.appstore] 2014-12-01T14:59:49.000Z: Setting up DNSmasq to resolve the cluster ENDPOINT address
  • [stackato.appstore] 2014-12-01T14:59:49.000Z: **********************************************************
  • [stackato.appstore] 2014-12-01T14:59:49.000Z: --
  • [stackato.appstore] 2014-12-01T14:59:49.000Z: stackato 3.1.2 (3.1.2 @ 2014-10-17 11:04:00 -0700)
  • [stackato.appstore] 2014-12-01T14:59:48.000Z: Client version:
  • [stackato[cloud_controller_ng]] 2014-12-01T14:59:45.000Z: Created app 'cakephp-c1i3q'
I am quite new to CloudFoundry / Stackato... not sure where to go from here to resolve... Please do let me know which log files are required, if any. This is a clean Stackato Microcloud running on vsphere, I have just downloaded and patched it (kato patch install). Playing with CakePHP should have been my first test of this...

Any help appreciated!
Jan

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: