push cf2 app with ironfoundry v2 failed

46 views
Skip to first unread message

Wangwei

unread,
Nov 6, 2013, 5:00:48 AM11/6/13
to ironf...@googlegroups.com
hello
    i have installed the cloudfoundry v2 and then installed the inronfoundry v2,  i made the default stack to msclr in the cloud_controller_ng\config\stack.yml when i push a app with the msclr stack, i got the error below,

C:\Users\Ray\cf-vagrant-installer\test\fixtures\apps\sinatra>cf push
Using manifest file manifest.yml

Uploading xbdtb... OK
Stopping xbdtb... OK

Preparing to start xbdtb... OK
Checking status of app 'xbdtb'...
  0 of 1 instances running (1 down)
  0 of 1 instances running (1 down)
  0 of 1 instances running (1 down)
  0 of 1 instances running (1 down)
  0 of 1 instances running (1 down)
  0 of 1 instances running (1 down)
  0 of 1 instances running (1 down)
  0 of 1 instances running (1 down)
  0 of 1 instances running (1 down)
  0 of 1 instances running (1 down)
  0 of 1 instances running (1 down)
  0 of 1 instances running (1 down)
  0 of 1 instances running (1 starting)
  0 of 1 instances running (1 starting)
  0 of 1 instances running (1 starting)
  0 of 1 instances running (1 crashing)
Push unsuccessful.
TIP: The system will continue to attempt restarting all requested app instances
that have crashed. Try 'cf app' to monitor app status. To troubleshoot crashes,
try 'cf events' and 'cf crashlogs'.

the ironfoundry v2, i installed dea_ng by the "Installation package" method here https://github.com/IronFoundry/dea_ng/blob/ironfoundry/WINDOWS.md and installed warden.net  by the msi installer, and with all the prerequisites installed described here https://github.com/IronFoundry/ironfoundry/blob/master/INSTALL.md, IIS Hostable Web Core installed, powershell execution policy to RemoteSigned(32 and 64bit)

i tried several times and found there were crash logs generated in the file like C:\IronFoundry\dea_ng\crashes\715a2d7a0d8345a8b92117d51d83aba3\logs\staging_task.log, and were deleted immediatly, i triedto copy them rapidly and got the carsh logs below

----> Downloaded app package (0KB)
----> Downloaded app buildpack cache (0KB)
C:\Ruby193\bin\ruby.exe : ruby: no Ruby script found in input (LoadError)
???? C:\IronFoundry\Warden\Containers\17ad66cs8hl\w1g450kk.ps1:7 ??: 1
+ C:\Ruby193\bin\ruby.exe 'C:\IronFoundry\dea_ng\app\buildpacks\bin\run' 'C:\Ir
onF ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
    + CategoryInfo          : NotSpecified: (ruby: no Ruby s...put (LoadError) 
   :String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
ruby
: no Ruby script found in input (LoadError)

C:/IronFoundry/dea_ng/app/buildpacks/lib/buildpack.rb:48:in `build_pack'
: Unable to detect a supported application type (RuntimeError)
    from C:/IronFoundry/dea_ng/app/buildpacks/lib/buildpack.rb:29:in `block in 
compile_with_timeout'
    from C:/Ruby193/lib/ruby/1.9.1/timeout.rb:69:in `timeout'
    from C:/IronFoundry/dea_ng/app/buildpacks/lib/buildpack.rb:28:in `compile_w
ith_timeout'
    from C:/IronFoundry/dea_ng/app/buildpacks/lib/buildpack.rb:19:in `block in 
stage_application'

    from C:/IronFoundry/dea_ng/app/buildpacks/lib/buildpack.rb:15:in `chdir'

    from C:/IronFoundry/dea_ng/app/buildpacks/lib/buildpack.rb:15:in `stage_app
lication'

    from C:/IronFoundry/dea_ng/app/buildpacks/bin/run:17:in `<main>'

and the warden's log seems no error,

i don't understand the source code very well,so any one know what's the problem and how to fix this error?

thank you 

Wangwei

unread,
Dec 2, 2013, 3:35:21 AM12/2/13
to ironf...@googlegroups.com
I fixed this by my self, the problem is the difference between whindow7 adn window8, my os is windows7,and i read and modify the source code then it works very well, now, the app is pushed successfully, and the web site is accessing no problem by the app domain, first the there must be a web.config file in the app directory that is going to be pushed, this is the ironfoundry .net buildpack's feature, there are 2 problem when the source running on windows7, the first is the buildpack uri, i trace it out and find that the uri is in a incorrect form like https:\\github.com\IronFoundry\cloudfoundry-buildpack-clr even i pass this param by command line with --buildpack https://github.com/IronFoundry/cloudfoundry-buildpack-clr, so i forece it to be https://github.com/IronFoundry/cloudfoundry-buildpack-clr by adding a assign statement in the source file "C:\IronFoundry\dea_ng\app\buildpacks\lib\buildpack.rb" function clone_buildpack, i don't know how to fix it perfectly, the second is the incorrect tmp file path form '"/tmp/buildpacks/#{File.basename(buildpack_url)}"' at the same position, on window7 this path form will be navigated to 'c://tmp/buildpacks/...', and will cause a file existing error, so i modify this to 'tmp/buildpacks/#{File.basename(buildpack_url)}"', this function will be:
 def clone_buildpack(buildpack_url)
      # ironfoundry TODO why /tmp ???
      buildpack_path = "tmp/buildpacks/#{File.basename(buildpack_url)}"
      ok = system("git clone --recursive #{buildpack_url} #{buildpack_path}")
      raise "Failed to git clone buildpack" unless ok
      Buildpacks::Installer.new(Pathname.new(buildpack_path), app_dir, cache_dir)
    end
 
Reply all
Reply to author
Forward
0 new messages