cli icon indicating copy to clipboard operation
cli copied to clipboard

Error CF Push weblogic application

Open yinlosky opened this issue 12 years ago • 5 comments

Hi, I was trying to push a weblogic application to cf, however the following error message popped out.

Aww shucks.

Something completely unexpected happened. This is a bug in cf. Please file this bug : https://github.com/cloudfoundry/cli/issues Tell us that you ran this command:

cf push myweblogicapp -m 1024m -b https://github.com/pivotal-cf/weblogic-buildpack.git

this error occurred:

runtime error: invalid memory address or nil pointer dereference

and this stack trace:

goroutine 1 [running]:
main.displayCrashDialog(0x195ee5f0, 0x40)
    /home/ubuntu/go/src/github.com/cloudfoundry/cli/main/main.go:158 +0xc0
main.handlePanics()
    /home/ubuntu/go/src/github.com/cloudfoundry/cli/main/main.go:121 +0x1ee
runtime.panic(0x83df180, 0x8a9ec68)
    /usr/local/go/src/pkg/runtime/panic.c:248 +0xef
io.Copy(0x0, 0x0, 0xb758d968, 0x19045a10, 0x0, ...)
    /usr/local/go/src/pkg/io/io.go:354 +0x1c7
github.com/cloudfoundry/gofileutils/fileutils.CopyPathToWriter(0x19528e80, 0x72, 0x0, 0x0, 0x0, ...)
    /home/ubuntu/go/src/github.com/cloudfoundry/cli/Godeps/_workspace/src/github.com/cloudfoundry/gofileutils/fileutils/file_utils.go:74 +0xad
github.com/cloudfoundry/cli/cf/app_files.func·004(0x19528e93, 0x5f, 0x19528e80, 0x72, 0x19528e93, ...)
    /home/ubuntu/go/src/github.com/cloudfoundry/cli/tmp/cli_gopath/src/github.com/cloudfoundry/cli/cf/app_files/zipper.go:68 +0x192
github.com/cloudfoundry/cli/cf/app_files.func·003(0x19528e80, 0x72, 0xb758d938, 0x18e94630, 0x0, ...)
    /home/ubuntu/go/src/github.com/cloud

yinlosky avatar Sep 30 '14 03:09 yinlosky

We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/79757438.

cf-gitbot avatar Sep 30 '14 03:09 cf-gitbot

Hi,

I suspect the cf push is not specifying any specific path to an app and so the entire current directory is being pushed as an app. Quite possible this is quite large to overwhelm the cli.

Also, couple of changes are required:

  1. Clone the weblogic buildpack git project and modify the repository for weblogic and oracle jdk to point to some accessible location. The repo referred in the weblogic-buildpack refers to a local repo like 12.1.1.1:7777/fileserver/<jdk/wls>/index.yml which hosts the binaries. This has to be mimicked by your cloned buildpack so the CF install can access it somehow (like from some internal server or amazon s3 bucket once you download the bits from oracle website). This is explained here: https://github.com/pivotal-cf/weblogic-buildpack/blob/master/docs/container-wls.md#requirements

  2. Use -p <PathToAppFile.war/ear> option or move the app to a specific folder and then run the cf push from within that folder to push the app bits.

thanks, Sabha

sparameswaran avatar Sep 30 '14 04:09 sparameswaran

@yinlosky Were you able to follow @sparameswaran's suggestion above? Thanks Greg

goehmen avatar Oct 01 '14 23:10 goehmen

Sorry for late reply.
The suggestion above is correct. I didn't set up Java and weblogic access point.
However, I decided not to use weblogic in cf.
thanks

Sent from Yahoo Mail for iPhone

yinlosky avatar Oct 02 '14 03:10 yinlosky

Thanks. I'll close the issue. Reopen it if you find the need.

goehmen avatar Oct 02 '14 18:10 goehmen