Skip to content

The log shows permission error during the web module bootup. #82

@drq

Description

@drq

Describe the bug
We have seen following exception in the logs even the web module seems to boot up just fine..

2025-04-29T01:21:02.168347213Z 2025-04-29 01:21:02,161 () volttron.client.vip.agent.subsystems.rpc(269) DEBUG: **user caps is: []
2025-04-29T01:21:02.168349747Z 2025-04-29 01:21:02,167 () volttron.client.vip.agent.subsystems.rpc(143) ERROR: unhandled exception in JSON-RPC method 'initialize_configs':
2025-04-29T01:21:02.168352332Z Traceback (most recent call last):
2025-04-29T01:21:02.943232330Z VOLTTRON is not running. This command requires VOLTTRON platform to be running
2025-04-29T01:21:13.712889639Z File "/home/volttron/datavolume/venv/lib/python3.10/site-packages/volttron/client/vip/agent/subsystems/rpc.py", line 140, in method
2025-04-29T01:21:13.712931045Z return method(args, **kwargs)
2025-04-29T01:21:13.712934726Z File "/home/volttron/datavolume/venv/lib/python3.10/site-packages/volttron/client/vip/agent/subsystems/rpc.py", line 280, in checked_method
2025-04-29T01:21:13.712936504Z raise jsonrpc.exception_from_json(jsonrpc.UNAUTHORIZED, msg)
2025-04-29T01:21:13.712938091Z volttron.utils.jsonrpc.Error: method 'initialize_configs' requires capabilities {'edit_config_store'}, but capability [] was provided for user platform.web
2025-04-29T01:21:13.712940204Z
2025-04-29T01:21:13.712941683Z Traceback (most recent call last):
2025-04-29T01:21:13.712943286Z File "src/gevent/greenlet.py", line 908, in gevent._gevent_cgreenlet.Greenlet.run
2025-04-29T01:21:13.712944907Z File "/home/volttron/datavolume/venv/lib/python3.10/site-packages/volttron/client/vip/agent/subsystems/configstore.py", line 90, in _onconfig
2025-04-29T01:21:13.712946575Z self._rpc().call(CONFIGURATION_STORE, "initialize_configs", self.vip_identity).get()
2025-04-29T01:21:13.712948201Z File "src/gevent/event.py", line 329, in gevent._gevent_cevent.AsyncResult.get
2025-04-29T01:21:13.712949773Z File "src/gevent/event.py", line 359, in gevent._gevent_cevent.AsyncResult.get
2025-04-29T01:21:13.712951346Z File "src/gevent/event.py", line 329, in gevent._gevent_cevent.AsyncResult.get
2025-04-29T01:21:13.712952989Z File "src/gevent/event.py", line 329, in gevent._gevent_cevent.AsyncResult.get
2025-04-29T01:21:13.712966236Z File "src/gevent/event.py", line 347, in gevent._gevent_cevent.AsyncResult.get
2025-04-29T01:21:13.712967934Z File "src/gevent/event.py", line 327, in gevent._gevent_cevent.AsyncResult._raise_exception
2025-04-29T01:21:13.712969570Z File "/home/volttron/datavolume/venv/lib/python3.10/site-packages/gevent/_compat.py", line 67, in reraise
2025-04-29T01:21:13.712971284Z raise value
2025-04-29T01:21:13.712972844Z volttron.utils.jsonrpc.RemoteError: volttron.utils.jsonrpc.Error(-32001, "method 'initialize_configs' requires capabilities {'edit_config_store'}, but capability [] was provided for user platform.web")
2025-04-29T01:21:13.712975322Z 2025-04-29T01:21:02Z <Greenlet at 0x7f7574608360: <bound method ConfigStore._onconfig of <volttron.client.vip.agent.subsystems.configstore.ConfigStore object at 0x7f7575ff16c0>>(<volttron.client.vip.agent.core.ZMQCore object at )> failed with RemoteError
2025-04-29T01:21:13.712977700Z
2025-04-29T01:21:13.712980119Z 2025-04-29 01:21:02,188 () volttron.client.vip.agent.subsystems.auth(371) DEBUG: self. user to cap {'platform.health': {'edit_config_store': {'identity': 'platform.health'}}, 'platform.config_store': {'sync_agent_config': None}, 'platform.auth': {'edit_config_store': {'identity': 'platform.auth'}}, 'control.connection': {'edit_config_store': {'identity': '/.
/'}, 'allow_auth_modifications': None}, 'platform': {'edit_config_store': {'identity': '/.*/'}}}
2025-04-29T01:21:13.712982387Z 2025-04-29 01:21:02,189 () volttron.client.vip.agent.subsystems.rpc(269) DEBUG: **user caps is: {'sync_agent_config': None}
2025-04-29T01:21:13.712984029Z 2025-04-29 01:21:02,192 () volttron.client.vip.agent.subsystems.configstore(247) DEBUG: Processing callbacks for affected files: {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions