Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Not starting #24

Open
wendelicious opened this issue Aug 14, 2016 · 0 comments
Open

Not starting #24

wendelicious opened this issue Aug 14, 2016 · 0 comments

Comments

@wendelicious
Copy link

wendelicious commented Aug 14, 2016

Can't seem to build the project as-is. I configured gcloud_directory and even tried the gcloud maven plugin v20160810. I've tried both providing and not providing app.yaml.

I imagine I'm missing something. Any tips/pointers?

This is what I'm seeing:

[INFO] Webapp assembled in [101 msecs]
[INFO] Building war: /Users/wendel.schultz/development/dietsoda/google-solutions/asset-profiler/default/target/guestbook-stage3-1.0-SNAPSHOT.war
[INFO] WEB-INF/web.xml already added, skipping
[INFO] 
[INFO] <<< gcloud-maven-plugin:2.0.9.120.v20160803:run (default-cli) < package @ guestbook-stage3 <<<
[INFO] 
[INFO] --- gcloud-maven-plugin:2.0.9.120.v20160803:run (default-cli) @ guestbook-stage3 ---
[INFO] 
[INFO] Running gcloud app run...
[INFO] Running python -S /usr/local/installs/google-cloud-sdk/platform/google_appengine/dev_appserver.py --skip_sdk_update_check=true -A app /Users/wendel.schultz/development/dietsoda/google-solutions/asset-profiler/default/target/guestbook-stage3-1.0-SNAPSHOT/app.yaml
[INFO] INFO     2016-08-14 06:04:17,968 application_configuration.py:431] No version specified. Generated version id: 20160814t060417
[INFO] Traceback (most recent call last):
[INFO]   File "/usr/local/installs/google-cloud-sdk/platform/google_appengine/dev_appserver.py", line 84, in <module>
[INFO]     _run_file(__file__, globals())
[INFO]   File "/usr/local/installs/google-cloud-sdk/platform/google_appengine/dev_appserver.py", line 80, in _run_file
[INFO]     execfile(_PATHS.script_file(script_name), globals_)
[INFO]   File "/usr/local/installs/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 1040, in <module>
[INFO]     main()
[INFO]   File "/usr/local/installs/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 1033, in main
[INFO]     dev_server.start(options)
[INFO]   File "/usr/local/installs/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 758, in start
[INFO]     options.config_paths, options.app_id)
[INFO]   File "/usr/local/installs/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/application_configuration.py", line 831, in __init__
[INFO]     module_configuration = ModuleConfiguration(config_path, app_id)
[INFO]   File "/usr/local/installs/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/application_configuration.py", line 152, in __init__
[INFO]     'When there is a Dockerfile in the current directory, the only '
[INFO] google.appengine.tools.devappserver2.errors.DockerfileError: When there is a Dockerfile in the current directory, the only supported runtime is runtime: custom.  Please switch to runtime: custom.  The devappserver does not actually use your Dockerfile, so please use either the --runtime flag to specify the runtime you want or use the --custom_entrypoint flag to describe how to start your application.
[ERROR] Error: gcloud app command with exit code : 1
Exception in thread "standard-out-redirection-devappserver" [ERROR] 
java.lang.RuntimeException: The Java Dev Server has stopped.org.apache.maven.plugin.MojoExecutionException: Error: gcloud app command exit code is: 1
    at com.google.appengine.gcloudapp.AbstractGcloudMojo$1.run(AbstractGcloudMojo.java:417)
    at com.google.appengine.gcloudapp.AbstractGcloudMojo.startCommand(AbstractGcloudMojo.java:451)
    at com.google.appengine.gcloudapp.GCloudAppRun.execute(GCloudAppRun.java:280)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)

Environment:

  • Python v 2.7.9
wendelsmbp2:stage3 wendel.schultz$ mvn -version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T09:41:47-07:00)
Maven home: /usr/local/installs/maven/current
Java version: 1.8.0_40, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.10.3", arch: "x86_64", family: "mac"
wendelsmbp2:default wendel.schultz$
wendelsmbp2:default wendel.schultz$ gcloud components update app-engine-java
You have specified individual components to update.  If you are trying
 to install new components, use:
  $ gcloud components install app-engine-java
Do you want to run install instead (y/N)?  y

All components are up to date.
wendelsmbp2:default wendel.schultz$
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant