spydra-tech / fabric-debugger

Extension for Visual Studio Code that makes it easy for developers to build and debug Chaincode right from within the IDE.
Apache License 2.0
14 stars 3 forks source link

[BUG]: EACCES: permission denied #262

Open hugomeduartesf opened 6 months ago

hugomeduartesf commented 6 months ago

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:

Screenshots image image

ashwath-spdr commented 6 months ago

@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?

hugomeduartesf commented 6 months ago

@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.