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 when creating identifier #18

Open
bsantosALB opened this issue Dec 7, 2020 · 3 comments
Open

Error when creating identifier #18

bsantosALB opened this issue Dec 7, 2020 · 3 comments

Comments

@bsantosALB
Copy link

Hello. I've tried to register a new identifier in the universal registrar (
curl -X POST http://localhost:9080/1.0/register?driverId=driver-universalregistrar%2Fdriver-did-sov -d {"options":{"network":"danube"}} ), and the following occured:

image
image

I'm running the latest version of the project, as well as docker-compose. Do you know what it may be?

@peacekeeper
Copy link
Member

Hello @bsantosALB we fixed a few bugs and pushed new images yesterday.. Could you try again?

I.e. do this:

docker-compose -f docker-compose.yml pull

@bsantosALB
Copy link
Author

Hello @peacekeeper, I've performed a new test (cleaning all docker images and such) and the results were unfortunately the same...

@edbkei
Copy link

edbkei commented Dec 4, 2021

similar problem:

ubu20w@DESKTOP-CT0HBV1:$ curl -X POST 'http://localhost:9080/1.0/create?method=sov' -d '{"options":{"network":"danube"}}'
Create problem for {"jobId":null,"options":{"network":"danube"},"secret":null,"didDocument":null}: Driver: Create problem: Please provide a trust anchor seed for the did:sov: driver.ubu20w@DESKTOP-CT0HBV1:
$

Root cause looks:
uni-registrar-web_1 | [qtp1310540333-15] DEBUG http.HttpDriver (create) - Response status from http://driver-did-sov:9080/1.0/create: 500 Server Error
uni-registrar-web_1 | [qtp1310540333-15] DEBUG http.HttpDriver (create) - Response body from http://driver-did-sov:9080/1.0/create: Driver: Create problem: Please provide a trust anchor seed for the did:sov: driver.

Complete log:
uni-registrar-web_1 | [qtp1310540333-15] INFO servlet.CreateServlet (doPost) - Incoming create request for method sov: {"jobId":null,"options":{"network":"danube"},"secret":null,"didDocument":null}
uni-registrar-web_1 | [qtp1310540333-15] DEBUG local.LocalUniRegistrar (create) - Attempting to create {"jobId":null,"options":{"network":"danube"},"secret":null,"didDocument":null} with driver HttpDriver
uni-registrar-web_1 | [qtp1310540333-15] DEBUG http.HttpDriver (create) - Request for create request {"jobId":null,"options":{"network":"danube"},"secret":null,"didDocument":null} to: http://driver-did-sov:9080/1.0/create
driver-did-sov_1 | [qtp1310540333-21] INFO servlet.CreateServlet (doPost) - Driver: Incoming create request: {"jobId":null,"options":{"network":"danube"},"secret":null,"didDocument":null}
driver-did-sov_1 | [qtp1310540333-21] INFO sov.DidSovDriver (openIndy) - Pool config map: {builder=./sovrin/buildernet.txn, danube=./sovrin/danube.txn, staging=./sovrin/stagingnet.txn, _=./sovrin/mainnet.txn}
driver-did-sov_1 | [qtp1310540333-21] INFO sov.DidSovDriver (openIndy) - Pool version map: {builder=2, danube=2, staging=2, _=2}
driver-did-sov_1 | [qtp1310540333-21] WARN servlet.CreateServlet (doPost) - Driver: Create problem for {"jobId":null,"options":{"network":"danube"},"secret":null,"didDocument":null}: Please provide a trust anchor seed for the did:sov: driver.
driver-did-sov_1 | uniregistrar.RegistrationException: Please provide a trust anchor seed for the did:sov: driver.
driver-did-sov_1 | at uniregistrar.driver.did.sov.DidSovDriver.openIndy(DidSovDriver.java:387)
driver-did-sov_1 | at uniregistrar.driver.did.sov.DidSovDriver.create(DidSovDriver.java:141)
driver-did-sov_1 | at uniregistrar.driver.servlet.CreateServlet.doPost(CreateServlet.java:52)
driver-did-sov_1 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
driver-did-sov_1 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
driver-did-sov_1 | at org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1450)
driver-did-sov_1 | at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
driver-did-sov_1 | at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1631)
driver-did-sov_1 | at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:228)
driver-did-sov_1 | at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
driver-did-sov_1 | at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
driver-did-sov_1 | at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)
driver-did-sov_1 | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
driver-did-sov_1 | at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600)
driver-did-sov_1 | at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
driver-did-sov_1 | at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
driver-did-sov_1 | at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
driver-did-sov_1 | at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
driver-did-sov_1 | at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434)
driver-did-sov_1 | at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
driver-did-sov_1 | at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
driver-did-sov_1 | at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
driver-did-sov_1 | at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
driver-did-sov_1 | at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349)
driver-did-sov_1 | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
driver-did-sov_1 | at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191)
driver-did-sov_1 | at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
driver-did-sov_1 | at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
driver-did-sov_1 | at org.eclipse.jetty.server.Server.handle(Server.java:516)
driver-did-sov_1 | at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:400)
driver-did-sov_1 | at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:645)
driver-did-sov_1 | at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:392)
driver-did-sov_1 | at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
driver-did-sov_1 | at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
driver-did-sov_1 | at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
driver-did-sov_1 | at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
driver-did-sov_1 | at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
driver-did-sov_1 | at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
driver-did-sov_1 | at java.base/java.lang.Thread.run(Unknown Source)
uni-registrar-web_1 | [qtp1310540333-15] DEBUG http.HttpDriver (create) - Response status from http://driver-did-sov:9080/1.0/create: 500 Server Error
uni-registrar-web_1 | [qtp1310540333-15] DEBUG http.HttpDriver (create) - Response body from http://driver-did-sov:9080/1.0/create: Driver: Create problem: Please provide a trust anchor seed for the did:sov: driver.
uni-registrar-web_1 | [qtp1310540333-15] WARN http.HttpDriver (create) - Cannot retrieve CREATE STATE for create request {"jobId":null,"options":{"network":"danube"},"secret":null,"didDocument":null} from http://driver-did-sov:9080/1.0/create: Driver: Create problem: Please provide a trust anchor seed for the did:sov: driver.
uni-registrar-web_1 | [qtp1310540333-15] WARN servlet.CreateServlet (doPost) - Create problem for {"jobId":null,"options":{"network":"danube"},"secret":null,"didDocument":null}: Driver: Create problem: Please provide a trust anchor seed for the did:sov: driver.
uni-registrar-web_1 | uniregistrar.RegistrationException: Driver: Create problem: Please provide a trust anchor seed for the did:sov: driver.
uni-registrar-web_1 | at uniregistrar.driver.http.HttpDriver.create(HttpDriver.java:100)
uni-registrar-web_1 | at uniregistrar.local.LocalUniRegistrar.create(LocalUniRegistrar.java:127)
uni-registrar-web_1 | at uniregistrar.web.WebUniRegistrar.create(WebUniRegistrar.java:48)
uni-registrar-web_1 | at uniregistrar.web.servlet.CreateServlet.doPost(CreateServlet.java:57)
uni-registrar-web_1 | at uniregistrar.web.WebUniRegistrar.handleRequest(WebUniRegistrar.java:33)
uni-registrar-web_1 | at org.springframework.web.context.support.HttpRequestHandlerServlet.service(HttpRequestHandlerServlet.java:73)
uni-registrar-web_1 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
uni-registrar-web_1 | at org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1450)
uni-registrar-web_1 | at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
uni-registrar-web_1 | at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1631)
uni-registrar-web_1 | at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:228)
uni-registrar-web_1 | at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
uni-registrar-web_1 | at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
uni-registrar-web_1 | at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)
uni-registrar-web_1 | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
uni-registrar-web_1 | at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600)
uni-registrar-web_1 | at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
uni-registrar-web_1 | at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
uni-registrar-web_1 | at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
uni-registrar-web_1 | at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
uni-registrar-web_1 | at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434)
uni-registrar-web_1 | at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
uni-registrar-web_1 | at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
uni-registrar-web_1 | at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
uni-registrar-web_1 | at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
uni-registrar-web_1 | at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349)
uni-registrar-web_1 | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
uni-registrar-web_1 | at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191)
uni-registrar-web_1 | at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
uni-registrar-web_1 | at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
uni-registrar-web_1 | at org.eclipse.jetty.server.Server.handle(Server.java:516)
uni-registrar-web_1 | at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:400)
uni-registrar-web_1 | at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:645)
uni-registrar-web_1 | at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:392)
uni-registrar-web_1 | at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
uni-registrar-web_1 | at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
uni-registrar-web_1 | at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
uni-registrar-web_1 | at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
uni-registrar-web_1 | at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
uni-registrar-web_1 | at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
uni-registrar-web_1 | at java.base/java.lang.Thread.run(Unknown Source)
uni-registrar-web_1 | [qtp1310540333-15] DEBUG servlet.ServletUtil (sendResponse) - Sending response with status 500 and content type null and body (class java.lang.String)

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

No branches or pull requests

3 participants