Uploaded image for project: 'National Data Service'
  1. National Data Service
  2. NDS-651

HTTP 500 when toggling secure flag on an application

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • Labs Workbench - Beta
    • None
    • Backend
    • None
    • NDS Sprint 14

    Description

      Received HTTP 500 attempting to set secure === false on Clowder on https://www.workbench.nationaldataservice.org/#/

      General:

      Request URL:https://www.workbench.nationaldataservice.org/api/stacks/ssof8g
      Request Method:PUT
      Status Code:500 
      Remote Address:141.142.210.100:443

      Request Headers:

      :authority:www.workbench.nationaldataservice.org
      :method:PUT
      :path:/api/stacks/ssof8g
      :scheme:https
      accept:application/json, text/plain, */*
      accept-encoding:gzip, deflate, sdch, br
      accept-language:en-US,en;q=0.8
      authorization:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0NzYyMzQzOTQsImlkIjoibGFtYmVydDgiLCJvcmlnX2lhdCI6MTQ3NjIzMjU4Miwic2VydmVyIjoibmRzbGFicy1hcGlzZXJ2ZXIteGttMmwiLCJ1c2VyIjoibGFtYmVydDgifQ.j76tj_v6-nw58JuM4uht8lpslHbAMqO077zXkdM2alQ
      cache-control:no-cache
      content-length:1804
      content-type:application/json
      cookie:namespace=lambert8; token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0NzYyMzQzOTQsImlkIjoibGFtYmVydDgiLCJvcmlnX2lhdCI6MTQ3NjIzMjU4Miwic2VydmVyIjoibmRzbGFicy1hcGlzZXJ2ZXIteGttMmwiLCJ1c2VyIjoibGFtYmVydDgifQ.j76tj_v6-nw58JuM4uht8lpslHbAMqO077zXkdM2alQ
      dnt:1
      origin:https://www.workbench.nationaldataservice.org
      pragma:no-cache
      referer:https://www.workbench.nationaldataservice.org/
      user-agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36

      Request Payload:

      {"id":"ssof8g","key":"clowder","name":"Clowder","services":[{"id":"ssof8g-clowder","stack":"clowder","service":"clowder","imageTag":"","status":"","statusMessages":[],"endpoints":[{"host":"ssof8g-clowder.workbench.nationaldataservice.org","port":9000,"nodePort":0,"protocol":"http","path":"","url":"ssof8g-clowder.workbench.nationaldataservice.org"}],"createdTime":0,"updateTime":0,"config":{"ELASTICSEARCH_CLUSTERNAME":"clowder","RABBITMQ_EXCHANGE":"clowder","SMTP_HOST":"smtp.ncsa.illinois.edu","TOOLMANAGER_URI":"http://localhost:8082"},"volumeMounts":null,"internalIP":"10.254.120.205"},{"id":"ssof8g-mongo","stack":"clowder","service":"mongo","imageTag":"","status":"","statusMessages":[],"endpoints":[{"host":"","port":27017,"nodePort":0,"protocol":"tcp","path":"","url":""}],"createdTime":0,"updateTime":0,"config":{},"volumeMounts":{"AppData/ssof8g-mongo-kpqn8":"/data/db"},"internalIP":"10.254.79.76"},{"id":"ssof8g-rabbitmq","stack":"clowder","service":"rabbitmq","imageTag":"","status":"","statusMessages":[],"endpoints":[{"host":"ssof8g-rabbitmq.workbench.nationaldataservice.org","port":5672,"nodePort":0,"protocol":"tcp","path":"","url":"ssof8g-rabbitmq.workbench.nationaldataservice.org"},{"host":"ssof8g-rabbitmq.workbench.nationaldataservice.org","port":15672,"nodePort":0,"protocol":"tcp","path":"","url":"ssof8g-rabbitmq.workbench.nationaldataservice.org"}],"createdTime":0,"updateTime":0,"config":{},"volumeMounts":{},"internalIP":"10.254.32.174"},{"id":"ssof8g-plantcv","stack":"clowder","service":"plantcv","imageTag":"","status":"","statusMessages":[],"createdTime":0,"updateTime":0,"config":{"RABBITMQ_EXCHANGE":"clowder","RABBITMQ_QUEUE":"terra.plantcv","RABBITMQ_VHOST":"%2F"},"volumeMounts":{},"internalIP":""}],"status":"stopped","createdTime":0,"updateTime":0,"secure":false}

      Response:

      {"Error":"runtime error: invalid memory address or nil pointer dereference\ngoroutine 41822 [running]:\nruntime/debug.Stack(0x0, 0x0, 0x0)\n\t/golang/go/src/runtime/debug/stack.go:24 +0x80\ngithub.com/ndslabs/apiserver/vendor/github.com/ant0ine/go-json-rest/rest.(*RecoverMiddleware).MiddlewareFunc.func1.1(0xc8204135c0, 0x7fea83598098, 0xc821620c30)\n\t/go/src/github.com/ndslabs/apiserver/vendor/github.com/ant0ine/go-json-rest/rest/recover.go:41 +0x53\npanic(0x13f2840, 0xc820016090)\n\t/golang/go/src/runtime/panic.go:426 +0x4e9\nmain.(*Server).createIngressRule(0xc8201681c0, 0xc820dc90d8, 0x8, 0x0, 0xc8219367e0, 0x0, 0x0)\n\t/go/src/github.com/ndslabs/apiserver/cmd/server/server.go:1571 +0x8c9\nmain.(*Server).PutStack(0xc8201681c0, 0x7fea835980d8, 0xc8219db180, 0xc8209b8640)\n\t/go/src/github.com/ndslabs/apiserver/cmd/server/server.go:1626 +0xcbf\nmain.(*Server).PutStack-fm(0x7fea835980d8, 0xc8219db180, 0xc8209b8640)\n\t/go/src/github.com/ndslabs/apiserver/cmd/server/server.go:325 +0x3e\ngithub.com/ndslabs/apiserver/vendor/github.com/ant0ine/go-json-rest/rest.(*router).AppFunc.func1(0x7fea835980d8, 0xc8219db180, 0xc8209b8640)\n\t/go/src/github.com/ndslabs/apiserver/vendor/github.com/ant0ine/go-json-rest/rest/router.go:56 +0xf1\ngithub.com/ndslabs/apiserver/vendor/github.com/StephanDollberg/go-json-rest-middleware-jwt.(*JWTMiddleware).middlewareImpl(0xc820266060, 0x7fea835980d8, 0xc8219db180, 0xc8209b8640, 0xc8203990c0)\n\t/go/src/github.com/ndslabs/apiserver/vendor/github.com/StephanDollberg/go-json-rest-middleware-jwt/auth_jwt.go:103 +0x2bf\ngithub.com/ndslabs/apiserver/vendor/github.com/StephanDollberg/go-json-rest-middleware-jwt.(*JWTMiddleware).MiddlewareFunc.func2(0x7fea835980d8, 0xc8219db180, 0xc8209b8640)\n\t/go/src/github.com/ndslabs/apiserver/vendor/github.com/StephanDollberg/go-json-rest-middleware-jwt/auth_jwt.go:82 +0x47\ngithub.com/ndslabs/apiserver/vendor/github.com/ant0ine/go-json-rest/rest.(*IfMiddleware).MiddlewareFunc.func1(0x7fea835980d8, 0xc8219db180, 0xc8209b8640)\n\t/go/src/github.com/ndslabs/apiserver/vendor/github.com/ant0ine/go-json-rest/rest/if.go:47 +0x6b\ngithub.com/ndslabs/apiserver/vendor/github.com/ant0ine/go-json-rest/rest.(*CorsMiddleware).MiddlewareFunc.func1(0x7fea835980d8, 0xc8219db180, 0xc8209b8640)\n\t/go/src/github.com/ndslabs/apiserver/vendor/github.com/ant0ine/go-json-rest/rest/cors.go:86 +0xc2\ngithub.com/ndslabs/apiserver/pkg/middleware.(*NoCacheMiddleware).MiddlewareFunc.func1(0x7fea835980d8, 0xc8219db180, 0xc8209b8640)\n\t/go/src/github.com/ndslabs/apiserver/pkg/middleware/no_cache.go:17 +0x12b\ngithub.com/ndslabs/apiserver/vendor/github.com/ant0ine/go-json-rest/rest.(*ContentTypeCheckerMiddleware).MiddlewareFunc.func1(0x7fea835980d8, 0xc8219db180, 0xc8209b8640)\n\t/go/src/github.com/ndslabs/apiserver/vendor/github.com/ant0ine/go-json-rest/rest/content_type_checker.go:38 +0x1e9\ngithub.com/ndslabs/apiserver/vendor/github.com/ant0ine/go-json-rest/rest.(*JsonIndentMiddleware).MiddlewareFunc.func1(0x7fea83598098, 0xc821620c30, 0xc8209b8640)\n\t/go/src/github.com/ndslabs/apiserver/vendor/github.com/ant0ine/go-json-rest/rest/json_indent.go:35 +0x118\ngithub.com/ndslabs/apiserver/vendor/github.com/ant0ine/go-json-rest/rest.(*RecoverMiddleware).MiddlewareFunc.func1(0x7fea83598098, 0xc821620c30, 0xc8209b8640)\n\t/go/src/github.com/ndslabs/apiserver/vendor/github.com/ant0ine/go-json-rest/rest/recover.go:57 +0x81\ngithub.com/ndslabs/apiserver/vendor/github.com/ant0ine/go-json-rest/rest.(*PoweredByMiddleware).MiddlewareFunc.func1(0x7fea83598098, 0xc821620c30, 0xc8209b8640)\n\t/go/src/github.com/ndslabs/apiserver/vendor/github.com/ant0ine/go-json-rest/rest/powered_by.go:26 +0xa7\ngithub.com/ndslabs/apiserver/vendor/github.com/ant0ine/go-json-rest/rest.(*RecorderMiddleware).MiddlewareFunc.func1(0x7fea83598058, 0xc8209b8660, 0xc8209b8640)\n\t/go/src/github.com/ndslabs/apiserver/vendor/github.com/ant0ine/go-json-rest/rest/recorder.go:22 +0xbc\ngithub.com/ndslabs/apiserver/vendor/github.com/ant0ine/go-json-rest/rest.(*TimerMiddleware).MiddlewareFunc.func1(0x7fea83598058, 0xc8209b8660, 0xc8209b8640)\n\t/go/src/github.com/ndslabs/apiserver/vendor/github.com/ant0ine/go-json-rest/rest/timer.go:20 +0x117\ngithub.com/ndslabs/apiserver/vendor/github.com/ant0ine/go-json-rest/rest.(*AccessLogApacheMiddleware).MiddlewareFunc.func1(0x7fea83598058, 0xc8209b8660, 0xc8209b8640)\n\t/go/src/github.com/ndslabs/apiserver/vendor/github.com/ant0ine/go-json-rest/rest/access_log_apache.go:87 +0x55\ngithub.com/ndslabs/apiserver/vendor/github.com/ant0ine/go-json-rest/rest.adapterFunc.func1(0x7fea83597ff8, 0xc821a9bd40, 0xc821655340)\n\t/go/src/github.com/ndslabs/apiserver/vendor/github.com/ant0ine/go-json-rest/rest/middleware.go:70 +0x132\nnet/http.HandlerFunc.ServeHTTP(0xc820399440, 0x7fea83597ff8, 0xc821a9bd40, 0xc821655340)\n\t/golang/go/src/net/http/server.go:1618 +0x3a\nnet/http.(*ServeMux).ServeHTTP(0xc82000eff0, 0x7fea83597ff8, 0xc821a9bd40, 0xc821655340)\n\t/golang/go/src/net/http/server.go:1910 +0x17d\nnet/http.serverHandler.ServeHTTP(0xc8202e8480, 0x7fea83597ff8, 0xc821a9bd40, 0xc821655340)\n\t/golang/go/src/net/http/server.go:2081 +0x19e\nnet/http.(*conn).serve(0xc8210e6c00)\n\t/golang/go/src/net/http/server.go:1472 +0xf2e\ncreated by net/http.(*Server).Serve\n\t/golang/go/src/net/http/server.go:2137 +0x44e\n"}

      Response Headers:

      cache-control:no-cache, no-store, must-revalidate
      content-type:application/json; charset=utf-8
      date:Wed, 12 Oct 2016 00:36:39 GMT
      expires:0
      pragma:no-cache
      server:nginx/1.11.1
      status:500
      strict-transport-security:max-age=15724800; includeSubDomains; preload
      x-powered-by:go-json-rest

      Gliffy Diagrams

        Attachments

          Activity

            People

              willis8 Craig Willis
              lambert8 Sara Lambert
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 30 minutes
                  30m
                  Remaining:
                  Remaining Estimate - 30 minutes
                  30m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified

                  Tasks