GoogleCloudPlatform / google-cloud-gemserver

CLI to deploy a private gem server to Google App Engine Flex
Apache License 2.0
46 stars 14 forks source link

Crash when setting up default key during create #6

Closed dazuma closed 7 years ago

dazuma commented 7 years ago

Excerpt from running google-cloud-gemserver create on a new project.

Saving configuration
Would you like to setup a default key? [Y/n] (default yes)

/usr/local/google/home/dazuma/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/google-cloud-gemserver-0.1.0/lib/google/cloud/gemserver/cli/server.rb:167:in `extract_key': undefined method `+' for nil:NilClass (NoMethodError)
        from /usr/local/google/home/dazuma/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/google-cloud-gemserver-0.1.0/lib/google/cloud/gemserver/cli/server.rb:107:in `setup_default_keys'
        from /usr/local/google/home/dazuma/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/google-cloud-gemserver-0.1.0/lib/google/cloud/gemserver/cli/server.rb:73:in `deploy'
        from /usr/local/google/home/dazuma/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/google-cloud-gemserver-0.1.0/lib/google/cloud/gemserver/cli.rb:68:in `create'
        from /usr/local/google/home/dazuma/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
        from /usr/local/google/home/dazuma/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
        from /usr/local/google/home/dazuma/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
        from /usr/local/google/home/dazuma/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/base.rb:444:in `start'
        from /usr/local/google/home/dazuma/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/google-cloud-gemserver-0.1.0/lib/google/cloud/gemserver/cli.rb:43:in `start'
        from /usr/local/google/home/dazuma/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/google-cloud-gemserver-0.1.0/bin/google-cloud-gemserver:5:in `<top (required)>'
        from /usr/local/google/home/dazuma/.rbenv/versions/2.4.1/bin/google-cloud-gemserver:22:in `load'
        from /usr/local/google/home/dazuma/.rbenv/versions/2.4.1/bin/google-cloud-gemserver:22:in `<main>'
arhamahmed commented 7 years ago

What is the output of ./bin/google-cloud-gemserver create_key? If the output includes "Internal server error" then something went wrong with the deploy and this will fail.

dazuma commented 7 years ago

It does say Internal Server Error.

The app does seem to be running at some level, though. I can hit the root (which redirects to rubygems.org).

arhamahmed commented 7 years ago

The error originates from here. It has happened before, but it isn't consistent. I am not sure exactly what causes migrations to occasionally fail.