aries-cloudagent-python
aries-cloudagent-python copied to clipboard
Error creating wallet : Error: IO error
Trying to build new issuer by aca-py docker image(py36-1.16-1_0.7.4) and seeing permission denied error. Could you please help?
Error creating wallet 'issuerwallet': Error: IO error “in open shift .
` 2022-09-14 09:32:30,594 aries_cloudagent.resolver WARNING Ledger is not configured, not loading IndyDIDResolver 2022-09-14 09:32:31,144 aries_cloudagent.core.profile INFO Create profile manager: indy 2022-09-14 09:32:31,233 indy.libindy.native.command_executor INFO src/commands/mod.rs:127 | Worker thread started 2022-09-14 09:32:31,245 indy.libindy WARNING _indy_loop_callback: Function returned error 2022-09-14 09:32:36,544 indy.libindy WARNING _indy_loop_callback: Function returned error 2022-09-14 09:32:36,557 aries_cloudagent.commands.start ERROR Exception during startup: Traceback (most recent call last): File "/home/indy/.pyenv/versions/3.6.13/lib/python3.6/site-packages/aries_cloudagent/indy/sdk/wallet_setup.py", line 105, in create_wallet credentials=json.dumps(self.wallet_access), File "/home/indy/.pyenv/versions/3.6.13/lib/python3.6/site-packages/indy/wallet.py", line 61, in create_wallet create_wallet.cb) File "/home/indy/.pyenv/versions/3.6.13/lib/python3.6/asyncio/futures.py", line 327, in iter yield self # This tells Task to wait for completion. File "/home/indy/.pyenv/versions/3.6.13/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup future.result() File "/home/indy/.pyenv/versions/3.6.13/lib/python3.6/asyncio/futures.py", line 243, in result raise self._exception indy.error.CommonIOError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/indy/.pyenv/versions/3.6.13/lib/python3.6/site-packages/aries_cloudagent/commands/start.py", line 72, in init
await startup
File "/home/indy/.pyenv/versions/3.6.13/lib/python3.6/site-packages/aries_cloudagent/commands/start.py", line 28, in start_app
await conductor.setup()
File "/home/indy/.pyenv/versions/3.6.13/lib/python3.6/site-packages/aries_cloudagent/core/conductor.py", line 121, in setup
self.root_profile, self.setup_public_did = await wallet_config(context)
Shutting down
File "/home/indy/.pyenv/versions/3.6.13/lib/python3.6/site-packages/aries_cloudagent/config/wallet.py", line 58, in wallet_config
profile = await mgr.provision(context, profile_cfg)
File "/home/indy/.pyenv/versions/3.6.13/lib/python3.6/site-packages/aries_cloudagent/indy/sdk/profile.py", line 181, in provision
opened = await indy_config.create_wallet()
File "/home/indy/.pyenv/versions/3.6.13/lib/python3.6/site-packages/aries_cloudagent/indy/sdk/wallet_setup.py", line 118, in create_wallet
) from x_indy
File "/home/indy/.pyenv/versions/3.6.13/lib/python3.6/site-packages/aries_cloudagent/indy/sdk/wallet_setup.py", line 105, in create_wallet
credentials=json.dumps(self.wallet_access),
File "/home/indy/.pyenv/versions/3.6.13/lib/python3.6/site-packages/indy/wallet.py", line 61, in create_wallet
create_wallet.cb)
File "/home/indy/.pyenv/versions/3.6.13/lib/python3.6/asyncio/futures.py", line 327, in __iter__
yield self # This tells Task to wait for completion.
File "/home/indy/.pyenv/versions/3.6.13/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
future.result()
File "/home/indy/.pyenv/versions/3.6.13/lib/python3.6/asyncio/futures.py", line 243, in result
raise self._exception
aries_cloudagent.core.error.ProfileError: **Error creating wallet 'issuerwallet': Error: IO error
Caused by: Permission denied (os error 13)**`
---------------------script------------------ `FROM bcgovimages/aries-cloudagent:py36-1.16-1_0.7.4
ENV HOME=/home/user
HOME_BIN=/home/user/bin/
PATH=$PATH:/opt/app-root/src/bin
TZ=GMT
ADD scripts/start.sh scripts/entrypoint.sh ${HOME_BIN} USER 0 RUN chmod -R 750${HOME_BIN}/start.sh && chown -R 1001:0 ${HOME_BIN}/start.sh RUN chmod +x ${HOME_BIN}/entrypoint.sh
USER 1001 ARG BUILD_ID ENV BUILD_ID=${BUILD_ID}
WORKDIR /opt/app-root/src/.openshift
EXPOSE 8080
EXPOSE 8443
ENTRYPOINT ["/home/user/bin/entrypoint.sh"]
--------------------------start command ------------------
aca-py start
-l Issuer
-it http 0.0.0.0 8080
-ot http
--admin 0.0.0.0 8443
--admin-insecure-mode
-e http://localhost:8080/
--wallet-type indy
--wallet-name issuerwallet
--wallet-key issuerkey
--log-level 'info'
--auto-provision
--auto-accept-invites
--auto-accept-requests
--auto-ping-connection
--no-ledger `