Skip to content

[BUG]: EACCES: permission denied #262

Description

@hugomeduartesf

Describe the bug
Event listener of chaincode don't work because of lack of permissions to access org certificates.
When i tried solving the problem by giving permissions to the certificates folder, the next error shows permission denied in a folder that don't seems to exist in the extension folder. Also besides the fabric response showing that is successful, it's not adding nothing to the couchdb, maybe it's related.

To Reproduce
Steps to reproduce the behavior:

  1. Follow setup tutorial
  2. Start debug mode in a chaincode
  3. See warning/error (first screenshot)
    ---- I was trying to fix here, i don't know if i'm suppose to do this ----
  4. Give permissions to certificates folder with chmod
  5. Start a new debug session in a chaincode
  6. See warning/error (second screenshot)

Environment:

  • OS: Ubuntu 20.04
  • Docker version 24.0.7
  • Extension version 1.0.0

Screenshots
image
image

Activity

  1. ashwath-spdr commented on Jan 6, 2024

    @ashwath-spdr
    Contributor

    @hugomeduartesf, apologies for the late response.

    Looks like it might actually be a permission issue only. There are multiple files and folders under the "fabric" folder in the extensions directory that the extension uses. Can you please try providing read, write and execute permissions at the /home/hugomeduarte/.vscode/extensions/spydra.hyperledger-fabric-debugger-1.0.0/fabric folder level recursively?

  2. hugomeduartesf commented on Jan 8, 2024

    @hugomeduartesf
    Author

    @ashwath-spdr That's exactly what I did. After giving the permissions the second print show's what happened. The path specified in the second print didn't exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions