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

The DSB application is not authenticating role despite role being approved in the switchboard application #125

Open
syedmuhammaddanish opened this issue Mar 7, 2022 · 0 comments

Comments

@syedmuhammaddanish
Copy link

Hi,

When I try to start the DSB application, It gives error that your role has not been approved. However, my messagebroker role has already been approved in switchboard-dev.energyweb.org. Here is the proof that role has been approved

issuerole1

and here is the log

danish@ubuntu:~/Desktop/dsb$ sudo rush start --verbose

Rush Multi-Project Build Tool 5.40.5 - https://rushjs.io
Node.js version is 14.19.0 (LTS)

Starting "rush start"

Selected 5 projects:
@energyweb/dsb-address-book-core
@energyweb/dsb-address-book-nats-js
@energyweb/dsb-message-broker
@energyweb/dsb-transport-core
@energyweb/dsb-transport-nats-js

Executing a maximum of 1 simultaneous processes...

==[ @energyweb/dsb-transport-core ]================================[ 1 of 5 ]==

"@energyweb/dsb-transport-core" had an empty script.

==[ @energyweb/dsb-address-book-core ]=============================[ 2 of 5 ]==

"@energyweb/dsb-address-book-core" had an empty script.

==[ @energyweb/dsb-address-book-nats-js ]==========================[ 3 of 5 ]==

"@energyweb/dsb-address-book-nats-js" had an empty script.

==[ @energyweb/dsb-transport-nats-js ]=============================[ 4 of 5 ]==

"@energyweb/dsb-transport-nats-js" had an empty script.

==[ @energyweb/dsb-message-broker ]================================[ 5 of 5 ]==

Invoking: nest start

WARNING: Missing strong random number source
2022-03-07 22:18:04.207Z - SysLog - INFO - NestFactory - Starting Nest application...
2022-03-07 22:18:04.245Z - SysLog - INFO - InstanceLoader - HttpModule dependencies initialized
2022-03-07 22:18:04.246Z - SysLog - INFO - InstanceLoader - ConfigHostModule dependencies initialized
2022-03-07 22:18:04.250Z - SysLog - INFO - InstanceLoader - AppModule dependencies initialized
2022-03-07 22:18:04.251Z - SysLog - INFO - InstanceLoader - TerminusModule dependencies initialized
2022-03-07 22:18:04.252Z - SysLog - INFO - InstanceLoader - HealthModule dependencies initialized
2022-03-07 22:18:04.253Z - SysLog - INFO - InstanceLoader - ConfigModule dependencies initialized
2022-03-07 22:18:04.254Z - SysLog - INFO - TransportFactory - Creating NATS Jetstream client at nats://localhost:4222
2022-03-07 22:18:04.255Z - SysLog - INFO - NATSJetstreamTransport - Connecting to nats://localhost:4222 0/5
2022-03-07 22:18:04.439Z - SysLog - INFO - InstanceLoader - AddressBookModule dependencies initialized
2022-03-07 22:18:04.476Z - SysLog - INFO - InstanceLoader - UtilsModule dependencies initialized
2022-03-07 22:18:04.477Z - SysLog - INFO - InstanceLoader - AuthModule dependencies initialized
2022-03-07 22:18:04.478Z - SysLog - INFO - InstanceLoader - ChannelModule dependencies initialized
2022-03-07 22:18:04.478Z - SysLog - INFO - InstanceLoader - MessageModule dependencies initialized

jetstream functionality in nats.js is preview functionality
2022-03-07 22:18:04.523Z - SysLog - INFO - NATSJetstreamTransport - Successfully connected to nats://localhost:4222 with options {"server_id":"NDJH7UMSZFZUQKDLQUTGT753XRIUSVT3FNYETANUHKVI5BS6WCYFQ65I","server_name":"nats_1","version":"2.7.3","proto":1,"git_commit":"1712ee3","go":"go1.17.7","host":"0.0.0.0","port":4222,"headers":true,"max_payload":1048576,"jetstream":true,"client_id":8,"client_ip":"172.18.0.1","cluster":"ewf","connect_urls":["172.18.0.2:4222","172.18.0.3:4222","172.18.0.4:4222"]}
2022-03-07 22:18:04.526Z - SysLog - INFO - InstanceLoader - TransportModule dependencies initialized
2022-03-07 22:18:04.537Z - SysLog - INFO - Bootstrap - Message Broker listening on port 3000
2022-03-07 22:18:04.681Z - SysLog - INFO - Bootstrap - Swagger documentation available on http://localhost:3000/swagger
2022-03-07 22:18:04.706Z - SysLog - INFO - RoutesResolver - AppController {}:
2022-03-07 22:18:04.713Z - SysLog - INFO - RouterExplorer - Mapped {, GET} route
2022-03-07 22:18:04.713Z - SysLog - INFO - RoutesResolver - MessageController {/message}:
2022-03-07 22:18:04.716Z - SysLog - INFO - RouterExplorer - Mapped {/message, POST} route
2022-03-07 22:18:04.717Z - SysLog - INFO - RouterExplorer - Mapped {/message, GET} route
2022-03-07 22:18:04.718Z - SysLog - INFO - RoutesResolver - ChannelController {/channel}:
2022-03-07 22:18:04.719Z - SysLog - INFO - RouterExplorer - Mapped {/channel, POST} route
2022-03-07 22:18:04.720Z - SysLog - INFO - RouterExplorer - Mapped {/channel, PATCH} route
2022-03-07 22:18:04.720Z - SysLog - INFO - RouterExplorer - Mapped {/channel/pubsub, GET} route
2022-03-07 22:18:04.721Z - SysLog - INFO - RouterExplorer - Mapped {/channel/:fqcn, GET} route
2022-03-07 22:18:04.722Z - SysLog - INFO - RouterExplorer - Mapped {/channel/:fqcn, DELETE} route
2022-03-07 22:18:04.722Z - SysLog - INFO - RoutesResolver - HealthController {/health}:
2022-03-07 22:18:04.722Z - SysLog - INFO - RouterExplorer - Mapped {/health, GET} route
2022-03-07 22:18:04.723Z - SysLog - INFO - RoutesResolver - AuthController {/auth}:
2022-03-07 22:18:04.723Z - SysLog - INFO - RouterExplorer - Mapped {/auth/login, POST} route
2022-03-07 22:18:07.201Z - SysLog - ERROR - Bootstrap - ["Application Error",["Message Broker did:ethr:volta:0x33cCD7B00749f9b35FF05cE164542e1b44A0594E does not have "messagebroker.roles.dsb.apps.energyweb.iam.ewc" role.","Please check https://github.com/energywebfoundation/dsb#configuration for more details"]]
Returned error code: 1
"@energyweb/dsb-message-broker" failed to build.

==[ SUCCESS: 4 projects ]======================================================

These projects completed successfully:
@energyweb/dsb-address-book-core
@energyweb/dsb-address-book-nats-js
@energyweb/dsb-transport-core
@energyweb/dsb-transport-nats-js

==[ FAILURE: 1 project ]=======================================================

--[ FAILURE: @energyweb/dsb-message-broker ]----------------[ 12.40 seconds ]--

I feel that although, the role has been approved, the claim has not been added in the DID document. Because, I cannot see the option SYNC TO DID DOCUMENT against the approved role.

Here is my DID did:ethr:volta:0x33cCD7B00749f9b35FF05cE164542e1b44A0594E

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

1 participant