Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error saving metadata template #4

Closed
michael-conway opened this issue Mar 30, 2017 · 4 comments
Closed

Error saving metadata template #4

michael-conway opened this issue Mar 30, 2017 · 4 comments
Assignees
Labels

Comments

@michael-conway
Copy link

michael-conway commented Mar 30, 2017

Add mdtemplate in belphegor and save...

Mar 30 16:07:13 dsai-de-svcs terrain[1056]: {"@timestamp":"2017-03-30T16:07:13.393-04:00","@Version":1,"message":"POST /admin/filesystem/metadata/templates","loggerName":"AccessLogger","thread":"qtp833320357-1592","level":"INFO","HOSTNAME":"d661372ac928","request":"{"ssl-client-cert":null,"protocol":"HTTP/1.1","remote-addr":"172.25.8.218","params":{"ip-address":"192.168.1.5"},"jwt-claims":{"sub":"testde8","email":"testde8@mail.org","given_name":"testde8","family_name":"testde8","name":"testde8 testde8","org.iplantc.de:entitlement":["group1","de_admin","group2"]},"route-params":{},"headers":{"x-de-request-id":"UI-caf83f7f-41ac-4f53-9f8c-f36c28fef6ad","x-iplant-de-jwt":"eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJ0ZXN0ZGU4IiwiZW1haWwiOiJ0ZXN0ZGU4QG1haWwub3JnIiwiZ2l2ZW5fbmFtZSI6InRlc3RkZTgiLCJmYW1pbHlfbmFtZSI6InRlc3RkZTgiLCJuYW1lIjoidGVzdGRlOCB0ZXN0ZGU4Iiwib3JnLmlwbGFudGMuZGU6ZW50aXRsZW1lbnQiOlsiZ3JvdXAxIiwiZGVfYWRtaW4iLCJncm91cDIiXX0.eiOyNguaf6s7JsmlMxCrPbEtTTMNjg86BMNiURCSEDZrQmepsIwPTPpd0FDb4gfOuYp9-4t-w9Q_v8fW7ILcMfivR8pYINfRXODTz0fg3hmnUPX-HePnvAki8Xav9GR7MxeXdsWb4l26DRtkD7_t2GRAyU0gMjdezFwOHownNPIhObgbvdX257OY8K19u7BlxIXsph6BEb9m7D-fldWLXS280DBAhMXk39KQh1IiLl_TAVHt_T24OwJtCu5GBGm8065OCKZWcTeEOGVsp1R77KzB8oG8kZuRETHDX8yVqrPGrByfUIDl9JR2EYBycr2l80eNXE-aWgTEjdHOUKhNzA","user-agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/56.0.2924.76 Chrome/56.0.2924.76 Safari/537.36","connection":"keep-alive","host":"dsai-de-svcs.edc.renci.org:6000","accept-encoding":"gzip,deflate","content-length":"139","content-type":"application/json; charset=UTF-8"},"server-port":6000,"content-length":139,"query-params":{"ip-address":"192.168.1.5"},"content-type":"application/json; charset=UTF-8","path-info":"/filesystem/metadata/templates","character-encoding":"UTF-8","context":"/admin","uri":"/admin/filesystem/metadata/templates","server-name":"dsai-de-svcs.edc.renci.org","query-string":"ip-address=192.168.1.5","scheme":"http","request-method":"post"}","group-id":"org.iplantc","art-id":"terrain","service":"terrain","user-info":"{"user":"testde8","email":"testde8@mail.org","first-name":"testde8","last-name":"testde8"}","desc":"DE service for business logic","app-name":"terrain","service":"terrain"}
Mar 30 16:07:13 dsai-de-svcs terrain[1056]: {"@timestamp":"2017-03-30T16:07:13.394-04:00","@Version":1,"message":"[call][do-metadata-template-add]","loggerName":"trace.terrain.services.filesystem.metadata-templates","thread":"qtp833320357-1592","level":"TRACE","HOSTNAME":"d661372ac928","group-id":"org.iplantc","art-id":"terrain","service":"terrain","user-info":"{"user":"testde8","email":"testde8@mail.org","first-name":"testde8","last-name":"testde8"}","desc":"DE service for business logic","app-name":"terrain","service":"terrain"}
Mar 30 16:07:13 dsai-de-svcs metadata[1056]: {"@timestamp":"2017-03-30T16:07:13.395-04:00","@Version":1,"message":"POST /admin/templates","loggerName":"AccessLogger","thread":"qtp1650914876-17","level":"INFO","HOSTNAME":"f479dac2541b","request":"{"ssl-client-cert":null,"protocol":"HTTP/1.1","remote-addr":"192.168.1.1","params":{"user":"testde8","deleted":false,"name":"aaaa","attributes":[{"required":false,"description":"Test","name":"Attribute0.6197533966558049","type":"String"}]},"body-params":{"deleted":false,"name":"aaaa","attributes":[{"required":false,"description":"Test","name":"Attribute0.6197533966558049","type":"String"}]},"headers":{"connection":"close","user-agent":"Apache-HttpClient/4.5 (Java/1.8.0_74)","host":"dsai-de-svcs.edc.renci.org:5016","accept-encoding":"gzip, deflate","content-length":"139","content-type":"application/json"},"server-port":5016,"content-length":139,"form-params":{},"query-params":{"user":"testde8"},"content-type":"application/json","character-encoding":"UTF-8","uri":"/admin/templates","server-name":"dsai-de-svcs.edc.renci.org","query-string":"user=testde8","scheme":"http","request-method":"post"}","group-id":"org.iplantc","art-id":"metadata","service":"metadata","user-info":"{"user":"testde8"}","desc":"The REST API for the Discovery Environment Metadata services.","app-name":"metadata","service":"metadata"}
Mar 30 16:07:13 dsai-de-svcs metadata[1056]: {"@timestamp":"2017-03-30T16:07:13.402-04:00","@Version":1,"message":"POST /admin/templates","loggerName":"AccessLogger","thread":"qtp1650914876-17","level":"ERROR","stack_trace":"clojure.lang.ExceptionInfo: throw+: #schema.utils.ErrorContainer{:error {:attributes [{:type (not (#{} :String))}]}, :type :compojure.api.exception/request-validation}\n\tat metadata.routes.templates$fn__11386$fn__11395.invoke(templates.clj:46) ~[na:na]\n\tat compojure.core$make_route$fn__1814.invoke(core.clj:130) ~[na:na]\n\tat compojure.core$wrap_route_middleware$fn__1810.invoke(core.clj:118) ~[na:na]\n\tat compojure.core$if_route$fn__1782.invoke(core.clj:41) ~[na:na]\n\tat compojure.core$if_method$fn__1774.invoke(core.clj:27) ~[na:na]\n\tat compojure.api.meta$body_coercer_middleware$fn__9279.invoke(meta.clj:62) ~[na:na]\n\tat compojure.core$routing$fn__1821.invoke(core.clj:144) ~[na:na]\n\tat clojure.core$some.invoke(core.clj:2570) ~[metadata-standalone.jar:na]\n\tat compojure.core$routing.doInvoke(core.clj:144) ~[na:na]\n\tat clojure.lang.RestFn.applyTo(RestFn.java:139) [metadata-standalone.jar:na]\n\tat clojure.core$apply.invoke(core.clj:632) ~[metadata-standalone.jar:na]\n\tat compojure.core$routes$fn__1825.invoke(core.clj:149) ~[na:na]\n\tat compojure.core$routing$fn__1821.invoke(core.clj:144) ~[na:na]\n\tat clojure.core$some.invoke(core.clj:2570) ~[metadata-standalone.jar:na]\n\tat compojure.core$routing.doInvoke(core.clj:144) ~[na:na]\n\tat clojure.lang.RestFn.invoke(RestFn.java:423) [metadata-standalone.jar:na]\n\tat metadata.routes.templates$fn__11386.invoke(templates.clj:36) ~[na:na]\n\tat compojure.core$if_context$fn__1883.invoke(core.clj:211) ~[na:na]\n\tat compojure.core$routing$fn__1821.invoke(core.clj:144) ~[na:na]\n\tat clojure.core$some.invoke(core.clj:2570) ~[metadata-standalone.jar:na]\n\tat compojure.core$routing.doInvoke(core.clj:144) ~[na:na]\n\tat clojure.lang.RestFn.applyTo(RestFn.java:139) [metadata-standalone.jar:na]\n\tat clojure.core$apply.invoke(core.clj:632) ~[metadata-standalone.jar:na]\n\tat compojure.core$routes$fn__1825.invoke(core.clj:149) ~[na:na]\n\tat clojure.lang.AFn.applyToHelper(AFn.java:154) [metadata-standalone.jar:na]\n\tat clojure.lang.AFn.applyTo(AFn.java:144) [metadata-standalone.jar:na]\n\tat clojure.lang.AFunction$1.doInvoke(AFunction.java:29) [metadata-standalone.jar:na]\n\tat clojure.lang.RestFn.invoke(RestFn.java:408) [metadata-standalone.jar:na]\n\tat clojure.lang.Var.invoke(Var.java:379) ~[metadata-standalone.jar:na]\n\tat compojure.core$routing$fn__1821.invoke(core.clj:144) ~[na:na]\n\tat clojure.core$some.invoke(core.clj:2570) ~[metadata-standalone.jar:na]\n\tat compojure.core$routing.doInvoke(core.clj:144) ~[na:na]\n\tat clojure.lang.RestFn.applyTo(RestFn.java:139) [metadata-standalone.jar:na]\n\tat clojure.core$apply.invoke(core.clj:632) ~[metadata-standalone.jar:na]\n\tat compojure.core$routes$fn__1825.invoke(core.clj:149) ~[na:na]\n\tat service_logging.middleware$wrap_logging$fn__1954.invoke(middleware.clj:84) ~[na:na]\n\tat service_logging.middleware$add_user_to_context$fn__1966.invoke(middleware.clj:111) ~[na:na]\n\tat ring.middleware.keyword_params$wrap_keyword_params$fn__6001.invoke(keyword_params.clj:35) [na:na]\n\tat clojure_commons.lcase_params$wrap_lcase_params$fn__54.invoke(lcase_params.clj:18) ~[na:na]\n\tat clojure_commons.query_params$wrap_query_params$fn__131.invoke(query_params.clj:62) ~[na:na]\n\tat service_logging.middleware$clean_context$fn__1949.invoke(middleware.clj:72) ~[na:na]\n\tat compojure.core$routing$fn__1821.invoke(core.clj:144) ~[na:na]\n\tat clojure.core$some.invoke(core.clj:2570) ~[metadata-standalone.jar:na]\n\tat compojure.core$routing.doInvoke(core.clj:144) ~[na:na]\n\tat clojure.lang.RestFn.applyTo(RestFn.java:139) [metadata-standalone.jar:na]\n\tat clojure.core$apply.invoke(core.clj:632) ~[metadata-standalone.jar:na]\n\tat compojure.core$routes$fn__1825.invoke(core.clj:149) ~[na:na]\n\tat clojure.lang.AFn.applyToHelper(AFn.java:154) [metadata-standalone.jar:na]\n\tat clojure.lang.AFn.applyTo(AFn.java:144) [metadata-standalone.jar:na]\n\tat clojure.lang.AFunction$1.doInvoke(AFunction.java:29) [metadata-standalone.jar:na]\n\tat clojure.lang.RestFn.invoke(RestFn.java:408) [metadata-standalone.jar:na]\n\tat ring.middleware.http_response$wrap_http_response$fn__5965.invoke(http_response.clj:8) ~[na:na]\n\tat ring.swagger.middleware$wrap_swagger_data$fn__8479.invoke(middleware.clj:33) ~[na:na]\n\tat compojure.api.middleware$wrap_options$fn__8721.invoke(middleware.clj:93) [na:na]\n\tat ring.middleware.format_params$wrap_format_params$fn__5112.invoke(format_params.clj:117) ~[na:na]\n\tat ring.middleware.format_params$wrap_format_params$fn__5112.invoke(format_params.clj:119) ~[na:na]\n\tat ring.middleware.format_params$wrap_format_params$fn__5112.invoke(format_params.clj:119) ~[na:na]\n\tat ring.middleware.format_params$wrap_format_params$fn__5112.invoke(format_params.clj:119) ~[na:na]\n\tat ring.middleware.format_params$wrap_format_params$fn__5112.invoke(format_params.clj:119) ~[na:na]\n\tat compojure.api.middleware$wrap_exceptions$fn__8710.invoke(middleware.clj:59) ~[na:na]\n\tat ring.middleware.format_response$wrap_format_response$fn__5869.invoke(format_response.clj:183) [na:na]\n\tat ring.middleware.keyword_params$wrap_keyword_params$fn__6001.invoke(keyword_params.clj:35) [na:na]\n\tat ring.middleware.nested_params$wrap_nested_params$fn__6051.invoke(nested_params.clj:84) [na:na]\n\tat ring.middleware.params$wrap_params$fn__6135.invoke(params.clj:64) [na:na]\n\tat compojure.api.middleware$wrap_options$fn__8721.invoke(middleware.clj:93) [na:na]\n\tat clojure.lang.AFn.applyToHelper(AFn.java:154) [metadata-standalone.jar:na]\n\tat clojure.lang.AFn.applyTo(AFn.java:144) [metadata-standalone.jar:na]\n\tat clojure.lang.AFunction$1.doInvoke(AFunction.java:29) [metadata-standalone.jar:na]\n\tat clojure.lang.RestFn.invoke(RestFn.java:408) [metadata-standalone.jar:na]\n\tat ring.adapter.jetty$proxy_handler$fn__23760.invoke(jetty.clj:24) [na:na]\n\tat ring.adapter.jetty.proxy$org.eclipse.jetty.server.handler.AbstractHandler$ff19274a.handle(Unknown Source) [na:na]\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) [metadata-standalone.jar:na]\n\tat org.eclipse.jetty.server.Server.handle(Server.java:497) [metadata-standalone.jar:na]\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310) [metadata-standalone.jar:na]\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) [metadata-standalone.jar:na]\n\tat org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540) [metadata-standalone.jar:na]\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) [metadata-standalone.jar:na]\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) [metadata-standalone.jar:na]\n\tat java.lang.Thread.run(Thread.java:745) [na:1.8.0_74]\n","HOSTNAME":"f479dac2541b","exception":"{"error_code":"ERR_ILLEGAL_ARGUMENT","reason":{"attributes":[{"type":"(not (#{} :String))"}]}}","group-id":"org.iplantc","art-id":"metadata","service":"metadata","response":"{"status":400,"headers":{"Content-Type":"application/json; charset=utf-8"},"uri":"/admin/templates","request-method":"post"}","desc":"The REST API for the Discovery Environment Metadata services.","app-name":"metadata","service":"metadata"}
Mar 30 16:07:13 dsai-de-svcs terrain[1056]: {"@timestamp":"2017-03-30T16:07:13.404-04:00","@Version":1,"message":"POST /admin/filesystem/metadata/templates","loggerName":"AccessLogger","thread":"qtp833320357-1592","level":"ERROR","stack_trace":"clojure.lang.ExceptionInfo: clj-http: status 400\n\tat clj_http.client$wrap_exceptions$fn__3862.invoke(client.clj:196) ~[terrain-standalone.jar:na]\n\tat clj_http.client$wrap_accept$fn__4022.invoke(client.clj:565) ~[terrain-standalone.jar:na]\n\tat clj_http.client$wrap_accept_encoding$fn__4028.invoke(client.clj:579) ~[terrain-standalone.jar:na]\n\tat clj_http.client$wrap_content_type$fn__4017.invoke(client.clj:554) ~[terrain-standalone.jar:na]\n\tat clj_http.client$wrap_form_params$fn__4099.invoke(client.clj:726) ~[terrain-standalone.jar:na]\n\tat clj_http.client$wrap_nested_params$fn__4116.invoke(client.clj:755) ~[terrain-standalone.jar:na]\n\tat clj_http.client$wrap_method$fn__4069.invoke(client.clj:670) ~[terrain-standalone.jar:na]\n\tat clj_http.cookies$wrap_cookies$fn__2171.invoke(cookies.clj:124) ~[terrain-standalone.jar:na]\n\tat clj_http.links$wrap_links$fn__3072.invoke(links.clj:51) ~[terrain-standalone.jar:na]\n\tat clj_http.client$wrap_unknown_host$fn__4125.invoke(client.clj:771) ~[terrain-standalone.jar:na]\n\tat clj_http.client$post.doInvoke(client.clj:886) ~[terrain-standalone.jar:na]\n\tat clojure.lang.RestFn.invoke(RestFn.java:423) [terrain-standalone.jar:na]\n\tat terrain.clients.metadata.raw$admin_add_template.invoke(raw.clj:185) ~[terrain-standalone.jar:na]\n\tat terrain.clients.metadata$admin_add_template.invoke(metadata.clj:28) ~[terrain-standalone.jar:na]\n\tat terrain.services.filesystem.metadata_templates$add_metadata_template.invoke(metadata_templates.clj:27) ~[terrain-standalone.jar:na]\n\tat terrain.services.filesystem.metadata_templates$do_metadata_template_add.invoke(metadata_templates.clj:88) ~[terrain-standalone.jar:na]\n\tat clojure.lang.AFn.applyToHelper(AFn.java:154) ~[terrain-standalone.jar:na]\n\tat clojure.lang.AFn.applyTo(AFn.java:144) ~[terrain-standalone.jar:na]\n\tat clojure.core$apply.invoke(core.clj:630) [terrain-standalone.jar:na]\n\tat dire.core$supervised_meta.doInvoke(core.clj:240) ~[terrain-standalone.jar:na]\n\tat clojure.lang.RestFn.invoke(RestFn.java:442) [terrain-standalone.jar:na]\n\tat clojure.core$partial$fn__4527.invoke(core.clj:2494) ~[terrain-standalone.jar:na]\n\tat clojure.lang.AFn.applyToHelper(AFn.java:156) ~[terrain-standalone.jar:na]\n\tat clojure.lang.RestFn.applyTo(RestFn.java:132) [terrain-standalone.jar:na]\n\tat clojure.core$apply.invoke(core.clj:632) [terrain-standalone.jar:na]\n\tat robert.hooke$compose_hooks$fn__9218.doInvoke(hooke.clj:40) ~[terrain-standalone.jar:na]\n\tat clojure.lang.RestFn.applyTo(RestFn.java:137) [terrain-standalone.jar:na]\n\tat clojure.core$apply.invoke(core.clj:630) [terrain-standalone.jar:na]\n\tat robert.hooke$run_hooks.invoke(hooke.clj:46) ~[terrain-standalone.jar:na]\n\tat robert.hooke$prepare_for_hooks$fn__9223$fn__9224.doInvoke(hooke.clj:54) ~[terrain-standalone.jar:na]\n\tat clojure.lang.RestFn.applyTo(RestFn.java:137) [terrain-standalone.jar:na]\n\tat clojure.lang.AFunction$1.doInvoke(AFunction.java:29) ~[terrain-standalone.jar:na]\n\tat clojure.lang.RestFn.applyTo(RestFn.java:137) [terrain-standalone.jar:na]\n\tat clojure.core$apply.invoke(core.clj:630) [terrain-standalone.jar:na]\n\tat terrain.util$ctlr.doInvoke(util.clj:39) ~[terrain-standalone.jar:na]\n\tat clojure.lang.RestFn.invoke(RestFn.java:467) [terrain-standalone.jar:na]\n\tat clojure.core$partial$fn__4531.invoke(core.clj:2507) ~[terrain-standalone.jar:na]\n\tat clojure.lang.AFn.applyToHelper(AFn.java:154) ~[terrain-standalone.jar:na]\n\tat clojure.lang.RestFn.applyTo(RestFn.java:132) [terrain-standalone.jar:na]\n\tat clojure.core$apply.invoke(core.clj:630) [terrain-standalone.jar:na]\n\tat terrain.util$controller.doInvoke(util.clj:46) ~[terrain-standalone.jar:na]\n\tat clojure.lang.RestFn.invoke(RestFn.java:442) [terrain-standalone.jar:na]\n\tat terrain.routes.filesystem$admin_filesystem_metadata_routes$fn__11960.invoke(filesystem.clj:138) ~[terrain-standalone.jar:na]\n\tat compojure.core$make_route$fn__11754.invoke(core.clj:130) ~[terrain-standalone.jar:na]\n\tat compojure.core$pre_init$fn__11793.invoke(core.clj:256) [terrain-standalone.jar:na]\n\tat service_logging.middleware$wrap_logging$fn__5852.invoke(middleware.clj:84) ~[terrain-standalone.jar:na]\n\tat compojure.core$pre_init$fn__11795$fn__11796.invoke(core.clj:259) [terrain-standalone.jar:na]\n\tat compojure.core$pre_init$fn__11793.invoke(core.clj:256) [terrain-standalone.jar:na]\n\tat compojure.api.middleware$wrap_exceptions$fn__16217.invoke(middleware.clj:59) ~[terrain-standalone.jar:na]\n\tat compojure.core$pre_init$fn__11795$fn__11796.invoke(core.clj:259) [terrain-standalone.jar:na]\n\tat compojure.core$pre_init$fn__11793.invoke(core.clj:256) [terrain-standalone.jar:na]\n\tat terrain.util.jwt$validate_group_membership$fn__7146.invoke(jwt.clj:70) [terrain-standalone.jar:na]\n\tat terrain.auth.user_attributes$wrap_auth_selection$fn__7177.invoke(user_attributes.clj:82) [terrain-standalone.jar:na]\n\tat compojure.core$pre_init$fn__11795$fn__11796.invoke(core.clj:259) [terrain-standalone.jar:na]\n\tat compojure.core$pre_init$fn__11793.invoke(core.clj:256) [terrain-standalone.jar:na]\n\tat terrain.core$wrap_user_info$fn__17033.invoke(core.clj:60) [terrain-standalone.jar:na]\n\tat compojure.core$pre_init$fn__11795$fn__11796.invoke(core.clj:259) [terrain-standalone.jar:na]\n\tat compojure.core$pre_init$fn__11793.invoke(core.clj:256) [terrain-standalone.jar:na]\n\tat terrain.auth.user_attributes$wrap_current_user$fn__7169.invoke(user_attributes.clj:67) [terrain-standalone.jar:na]\n\tat terrain.util.jwt$validate_jwt_assertion$fn__7150.invoke(jwt.clj:92) [terrain-standalone.jar:na]\n\tat terrain.auth.user_attributes$wrap_auth_selection$fn__7177.invoke(user_attributes.clj:82) [terrain-standalone.jar:na]\n\tat compojure.core$pre_init$fn__11795$fn__11796.invoke(core.clj:259) [terrain-standalone.jar:na]\n\tat compojure.core$wrap_route_middleware$fn__11750.invoke(core.clj:117) [terrain-standalone.jar:na]\n\tat compojure.core$if_route$fn__11726.invoke(core.clj:41) [terrain-standalone.jar:na]\n\tat compojure.core$if_method$fn__11718.invoke(core.clj:27) [terrain-standalone.jar:na]\n\tat compojure.core$routing$fn__11761.invoke(core.clj:144) [terrain-standalone.jar:na]\n\tat clojure.core$some.invoke(core.clj:2570) [terrain-standalone.jar:na]\n\tat compojure.core$routing.doInvoke(core.clj:144) [terrain-standalone.jar:na]\n\tat clojure.lang.RestFn.applyTo(RestFn.java:139) [terrain-standalone.jar:na]\n\tat clojure.core$apply.invoke(core.clj:632) [terrain-standalone.jar:na]\n\tat compojure.core$routes$fn__11765.invoke(core.clj:149) [terrain-standalone.jar:na]\n\tat compojure.core$routing$fn__11761.invoke(core.clj:144) [terrain-standalone.jar:na]\n\tat clojure.core$some.invoke(core.clj:2570) [terrain-standalone.jar:na]\n\tat compojure.core$routing.doInvoke(core.clj:144) [terrain-standalone.jar:na]\n\tat clojure.lang.RestFn.applyTo(RestFn.java:139) [terrain-standalone.jar:na]\n\tat clojure.core$apply.invoke(core.clj:632) [terrain-standalone.jar:na]\n\tat compojure.core$routes$fn__11765.invoke(core.clj:149) [terrain-standalone.jar:na]\n\tat terrain.core$delayed_handler$fn__17030.invoke(core.clj:50) [terrain-standalone.jar:na]\n\tat compojure.core$wrap_routes$fn__11801.invoke(core.clj:267) [terrain-standalone.jar:na]\n\tat compojure.core$wrap_routes$fn__11801.invoke(core.clj:267) [terrain-standalone.jar:na]\n\tat compojure.core$wrap_routes$fn__11801.invoke(core.clj:267) [terrain-standalone.jar:na]\n\tat compojure.core$wrap_routes$fn__11801.invoke(core.clj:267) [terrain-standalone.jar:na]\n\tat compojure.core$wrap_routes$fn__11801.invoke(core.clj:267) [terrain-standalone.jar:na]\n\tat compojure.core$routing$fn__11761.invoke(core.clj:144) [terrain-standalone.jar:na]\n\tat clojure.core$some.invoke(core.clj:2570) [terrain-standalone.jar:na]\n\tat compojure.core$routing.doInvoke(core.clj:144) [terrain-standalone.jar:na]\n\tat clojure.lang.RestFn.invoke(RestFn.java:423) [terrain-standalone.jar:na]\n\tat terrain.core$terrain_routes$fn__17055.invoke(core.clj:215) [terrain-standalone.jar:na]\n\tat compojure.core$if_context$fn__11783.invoke(core.clj:211) [terrain-standalone.jar:na]\n\tat compojure.core$routing$fn__11761.invoke(core.clj:144) [terrain-standalone.jar:na]\n\tat clojure.core$some.invoke(core.clj:2570) [terrain-standalone.jar:na]\n\tat compojure.core$routing.doInvoke(core.clj:144) [terrain-standalone.jar:na]\n\tat clojure.lang.RestFn.applyTo(RestFn.java:139) [terrain-standalone.jar:na]\n\tat clojure.core$apply.invoke(core.clj:632) [terrain-standalone.jar:na]\n\tat compojure.core$routes$fn__11765.invoke(core.clj:149) [terrain-standalone.jar:na]\n\tat terrain.core$delayed_handler$fn__17030.invoke(core.clj:50) [terrain-standalone.jar:na]\n\tat ring.middleware.keyword_params$wrap_keyword_params$fn__13940.invoke(keyword_params.clj:35) [terrain-standalone.jar:na]\n\tat clojure_commons.lcase_params$wrap_lcase_params$fn__12504.invoke(lcase_params.clj:18) [terrain-standalone.jar:na]\n\tat clojure_commons.query_params$wrap_query_params$fn__12523.invoke(query_params.clj:62) [terrain-standalone.jar:na]\n\tat service_logging.middleware$clean_context$fn__5847.invoke(middleware.clj:72) [terrain-standalone.jar:na]\n\tat ring.adapter.jetty$proxy_handler$fn__116.invoke(jetty.clj:24) [na:na]\n\tat ring.adapter.jetty.proxy$org.eclipse.jetty.server.handler.AbstractHandler$ff19274a.handle(Unknown Source) [na:na]\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) [terrain-standalone.jar:na]\n\tat org.eclipse.jetty.server.Server.handle(Server.java:497) [terrain-standalone.jar:na]\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310) [terrain-standalone.jar:na]\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) [terrain-standalone.jar:na]\n\tat org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540) [terrain-standalone.jar:na]\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) [terrain-standalone.jar:na]\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) [terrain-standalone.jar:na]\n\tat java.lang.Thread.run(Thread.java:745) [na:1.8.0_74]\n","HOSTNAME":"d661372ac928","exception":"{"error_code":"ERR_REQUEST_FAILED"}","group-id":"org.iplantc","art-id":"terrain","service":"terrain","response":"{"status":400,"headers":{"Date":"Thu, 30 Mar 2017 20:07:13 GMT","Content-Type":"application/json; charset=utf-8","Connection":"close","Server":"Jetty(9.2.z-SNAPSHOT)"},"request-ti

@michael-conway michael-conway self-assigned this Mar 30, 2017
@michael-conway
Copy link
Author

michael-conway commented Mar 31, 2017

request info

Request URL:https://xxx/belphegor/belphegor/api.rpc
Request Method:POST
Status Code:200 OK
Remote Address:xxx443
Response Headers
view source
Connection:keep-alive
Content-Disposition:attachment
Content-Encoding:gzip
Content-Length:182
Content-Type:application/json;charset=utf-8
Date:Fri, 31 Mar 2017 14:52:49 GMT
Server:nginx/1.11.5
X-Content-Type-Options:nosniff
X-Frame-Options:SAMEORIGIN
X-XSS-Protection:1; mode=block
Request Headers
view source
Accept:*/*
Accept-Encoding:gzip, deflate, br
Accept-Language:en-US,en;q=0.8
Connection:keep-alive
Content-Length:517
Content-Type:text/x-gwt-rpc; charset=UTF-8
...
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/56.0.2924.76 Chrome/56.0.2924.76 Safari/537.36
X-GWT-Module-Base:https://xxxxxxxxxxx/belphegor/belphegor/
X-GWT-Permutation:8953B3E39A1895FFE458D7FD4A0C5054
Request Payload
7|0|8|https://xxxxxxxxx/belphegor/belphegor/|3601531DxxxxxxxxxA009F52ED307F9|org.iplantc.de.shared.services.DEService|getServiceData|org.iplantc.de.shared.services.ServiceCallWrapper/1670665327|{"deleted":false,"name":"aaa","attributes":[{"required":false,"description":"Test","name":"Attribute0.4566206809746085","type":"String"}]}|http://xxxxxxx:6000/admin/filesystem/metadata/templates|org.iplantc.de.shared.services.BaseServiceCallWrapper$Type/482079673|1|2|3|4|1|5|5|6|7|0|8|2|

@michael-conway
Copy link
Author

in DE core error message

{"error_code":"ERR_ILLEGAL_ARGUMENT","reason":{"attributes":[{"type":"(not (#{} :String))"}]}}

@michael-conway
Copy link
Author

replay

rrain"}
Apr 3 09:15:44 dsai-de-svcs metadata[1056]: {"@timestamp":"2017-04-03T09:15:44.559-04:00","@Version":1,"message":"POST /admin/templates","loggerName":"AccessLogger","thread":"qtp1650914876-17","level":"INFO","HOSTNAME":"f479dac2541b","request":"{"ssl-client-cert":null,"protocol":"HTTP/1.1","remote-addr":"192.168.1.1","params":{"user":"testde8","deleted":false,"name":"test1","attributes":[{"required":false,"description":"Test data","name":"experiment","type":"String"}]},"body-params":{"deleted":false,"name":"test1","attributes":[{"required":false,"description":"Test data","name":"experiment","type":"String"}]},"headers":{"connection":"close","user-agent":"Apache-HttpClient/4.5 (Java/1.8.0_74)","host":"dsai-de-svcs.edc.renci.org:5016","accept-encoding":"gzip, deflate","content-length":"128","content-type":"application/json"},"server-port":5016,"content-length":128,"form-params":{},"query-params":{"user":"testde8"},"content-type":"application/json","character-encoding":"UTF-8","uri":"/admin/templates","server-name":"dsai-de-svcs.edc.renci.org","query-string":"user=testde8","scheme":"http","request-method":"post"}","group-id":"org.iplantc","art-id":"metadata","service":"metadata","user-info":"{"user":"testde8"}","desc":"The REST API for the Discovery Environment Metadata services.","app-name":"metadata","service":"metadata"}
Apr 3 09:15:44 dsai-de-svcs metadata[1056]: {"@timestamp":"2017-04-03T09:15:44.575-04:00","@Version":1,"message":"POST /admin/templates","loggerName":"AccessLogger","thread":"qtp1650914876-17","level":"ERROR","stack_trace":"clojure.lang.ExceptionInfo: throw+: #schema.utils.ErrorContainer{:error {:attributes [{:type (not (#{} :String))}]}, :type :compojure.api.exception/request-validation}\n\tat metadata.routes.templates$fn__11386$fn__11395.invoke(templates.clj:46) ~[na:na]\n\tat compojure.core$make_route$fn__1814.invoke(core.clj:130) ~[na:na]\n\tat compojure.core$wrap_route_middleware$fn__1810.invoke(core.clj:118) ~[na:na]\n\tat compojure.core$if_route$fn__1782.invoke(core.clj:41) ~[na:na]\n\tat compojure.core$if_method$fn__1774.invoke(core.clj:27) ~[na:na]\n\tat compojure.api.meta$body_coercer_middleware$fn__9279.invoke(meta.clj:62) ~[na:na]\n\tat compojure.core$routing$fn__1821.invoke(core.clj:144) ~[na:na]\n\tat clojure.core$some.invoke(core.clj:2570) ~[metadata-standalone.jar:na]\n\tat compojure.core$routing.doInvoke(core.clj:144) ~[na:na]\n\tat clojure.lang.RestFn.applyTo(RestFn.java:139) [metadata-standalone.jar:na]\n\tat clojure.core$apply.invoke(core.clj:632) ~[metadata-standalone.jar:na]\n\tat compojure.core$routes$fn__1825.invoke(core.clj:149) ~[na:na]\n\tat compojure.core$routing$fn__1821.invoke(core.clj:144) ~[na:na]\n\tat clojure.core$some.invoke(core.clj:2570) ~[metadata-standalone.jar:na]\n\tat compojure.core$routing.doInvoke(core.clj:144) ~[na:na]\n\tat clojure.lang.RestFn.invoke(RestFn.java:423) [metadata-standalone.jar:na]\n\tat metadata.routes.templates$fn__11386.invoke(templates.clj:36) ~[na:na]\n\tat compojure.core$if_context$fn__1883.invoke(core.clj:211) ~[na:na]\n\tat compojure.core$routing$fn__1821.invoke(core.clj:144) ~[na:na]\n\tat clojure.core$some.invoke(core.clj:2570) ~[metadata-standalone.jar:na]\n\tat compojure.core$routing.doInvoke(core.clj:144) ~[na:na]\n\tat clojure.lang.RestFn.applyTo(RestFn.java:139) [metadata-standalone.jar:na]\n\tat clojure.core$apply.invoke(core.clj:632) ~[metadata-standalone.jar:na]\n\tat compojure.core$routes$fn__1825.invoke(core.clj:149) ~[na:na]\n\tat clojure.lang.AFn.applyToHelper(AFn.java:154) [metadata-standalone.jar:na]\n\tat clojure.lang.AFn.applyTo(AFn.java:144) [metadata-standalone.jar:na]\n\tat clojure.lang.AFunction$1.doInvoke(AFunction.java:29) [metadata-standalone.jar:na]\n\tat clojure.lang.RestFn.invoke(RestFn.java:408) [metadata-standalone.jar:na]\n\tat clojure.lang.Var.invoke(Var.java:379) ~[metadata-standalone.jar:na]\n\tat compojure.core$routing$fn__1821.invoke(core.clj:144) ~[na:na]\n\tat clojure.core$some.invoke(core.clj:2570) ~[metadata-standalone.jar:na]\n\tat compojure.core$routing.doInvoke(core.clj:144) ~[na:na]\n\tat clojure.lang.RestFn.applyTo(RestFn.java:139) [metadata-standalone.jar:na]\n\tat clojure.core$apply.invoke(core.clj:632) ~[metadata-standalone.jar:na]\n\tat compojure.core$routes$fn__1825.invoke(core.clj:149) ~[na:na]\n\tat service_logging.middleware$wrap_logging$fn__1954.invoke(middleware.clj:84) ~[na:na]\n\tat service_logging.middleware$add_user_to_context$fn__1966.invoke(middleware.clj:111) ~[na:na]\n\tat ring.middleware.keyword_params$wrap_keyword_params$fn__6001.invoke(keyword_params.clj:35) [na:na]\n\tat clojure_commons.lcase_params$wrap_lcase_params$fn__54.invoke(lcase_params.clj:18) ~[na:na]\n\tat clojure_commons.query_params$wrap_query_params$fn__131.invoke(query_params.clj:62) ~[na:na]\n\tat service_logging.middleware$clean_context$fn__1949.invoke(middleware.clj:72) ~[na:na]\n\tat compojure.core$routing$fn__1821.invoke(core.clj:144) ~[na:na]\n\tat clojure.core$some.invoke(core.clj:2570) ~[metadata-standalone.jar:na]\n\tat compojure.core$routing.doInvoke(core.clj:144) ~[na:na]\n\tat clojure.lang.RestFn.applyTo(RestFn.java:139) [metadata-standalone.jar:na]\n\tat clojure.core$apply.invoke(core.clj:632) ~[metadata-standalone.jar:na]\n\tat compojure.core$routes$fn__1825.invoke(core.clj:149) ~[na:na]\n\tat clojure.lang.AFn.applyToHelper(AFn.java:154) [metadata-standalone.jar:na]\n\tat clojure.lang.AFn.applyTo(AFn.java:144) [metadata-standalone.jar:na]\n\tat clojure.lang.AFunction$1.doInvoke(AFunction.java:29) [metadata-standalone.jar:na]\n\tat clojure.lang.RestFn.invoke(RestFn.java:408) [metadata-standalone.jar:na]\n\tat ring.middleware.http_response$wrap_http_response$fn__5965.invoke(http_response.clj:8) ~[na:na]\n\tat ring.swagger.middleware$wrap_swagger_data$fn__8479.invoke(middleware.clj:33) ~[na:na]\n\tat compojure.api.middleware$wrap_options$fn__8721.invoke(middleware.clj:93) [na:na]\n\tat ring.middleware.format_params$wrap_format_params$fn__5112.invoke(format_params.clj:117) ~[na:na]\n\tat ring.middleware.format_params$wrap_format_params$fn__5112.invoke(format_params.clj:119) ~[na:na]\n\tat ring.middleware.format_params$wrap_format_params$fn__5112.invoke(format_params.clj:119) ~[na:na]\n\tat ring.middleware.format_params$wrap_format_params$fn__5112.invoke(format_params.clj:119) ~[na:na]\n\tat ring.middleware.format_params$wrap_format_params$fn__5112.invoke(format_params.clj:119) ~[na:na]\n\tat compojure.api.middleware$wrap_exceptions$fn__8710.invoke(middleware.clj:59) ~[na:na]\n\tat ring.middleware.format_response$wrap_format_response$fn__5869.invoke(format_response.clj:183) [na:na]\n\tat ring.middleware.keyword_params$wrap_keyword_params$fn__6001.invoke(keyword_params.clj:35) [na:na]\n\tat ring.middleware.nested_params$wrap_nested_params$fn__6051.invoke(nested_params.clj:84) [na:na]\n\tat ring.middleware.params$wrap_params$fn__6135.invoke(params.clj:64) [na:na]\n\tat compojure.api.middleware$wrap_options$fn__8721.invoke(middleware.clj:93) [na:na]\n\tat clojure.lang.AFn.applyToHelper(AFn.java:154) [metadata-standalone.jar:na]\n\tat clojure.lang.AFn.applyTo(AFn.java:144) [metadata-standalone.jar:na]\n\tat clojure.lang.AFunction$1.doInvoke(AFunction.java:29) [metadata-standalone.jar:na]\n\tat clojure.lang.RestFn.invoke(RestFn.java:408) [metadata-standalone.jar:na]\n\tat ring.adapter.jetty$proxy_handler$fn__23760.invoke(jetty.clj:24) [na:na]\n\tat ring.adapter.jetty.proxy$org.eclipse.jetty.server.handler.AbstractHandler$ff19274a.handle(Unknown Source) [na:na]\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) [metadata-standalone.jar:na]\n\tat org.eclipse.jetty.server.Server.handle(Server.java:497) [metadata-standalone.jar:na]\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310) [metadata-standalone.jar:na]\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) [metadata-standalone.jar:na]\n\tat org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540) [metadata-standalone.jar:na]\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) [metadata-standalone.jar:na]\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) [metadata-standalone.jar:na]\n\tat java.lang.Thread.run(Thread.java:745) [na:1.8.0_74]\n","HOSTNAME":"f479dac2541b","exception":"{"error_code":"ERR_ILLEGAL_ARGUMENT","reason":{"attributes":[{"type":"(not (#{} :String))"}]}}","group-id":"org.iplantc","art-id":"metadata","service":"metadata","response":"{"status":400,"headers":{"Content-Type":"application/json; charset=utf-8"},"uri":"/admin/templates","request-method":"post"}","desc":"The REST API for the Discovery Environment Metadata services.","app-name":"metadata","service":"metadata"}

@michael-conway
Copy link
Author

metadata database was not initialized with the matching string values in value_types. Adding to db manually and restarting metadata resolves this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant