Skip to content

Development Faq

user_name edited this page Feb 3, 2023 · 4 revisions

FAQ

A list of common issues & resolutions shared by the V1 contributors

Avoid redundant files from iCloud backup

  • Issue: when working on MacOS with iCloud backup turned on, redundant files could be generated in GitHub projects. (e.g. file.go and file 2.go) Details can be found here in this link.
  • Solution: adding .nosync as suffix to the workspace folder, e.g. pocket.nosync. Alternative, working in a folder that iCloud doesn't touch also works.

NOTE: Consider turning off the gofmt in your IDE to prevent unexpected formatting

Unable to start LocalNet - permission denied

  • Issue: when trying to run make compose_and_watch on an operating system with SELinux, the command gives the error:
Recreating node2.consensus ... done
Recreating node4.consensus ... done
Recreating node1.consensus ... done
Recreating node3.consensus ... done
Attaching to node3.consensus, node1.consensus, node2.consensus, node4.consensus
node2.consensus    | /bin/sh: can't open 'build/scripts/watch.sh': Permission denied
node1.consensus    | /bin/sh: can't open 'build/scripts/watch.sh': Permission denied
node3.consensus    | /bin/sh: can't open 'build/scripts/watch.sh': Permission denied
node1.consensus exited with code 2
node4.consensus    | /bin/sh: can't open 'build/scripts/watch.sh': Permission denied
node2.consensus exited with code 2
node3.consensus exited with code 2
node4.consensus exited with code 2
  • Solution: A temporary fix would be to run
su -c "setenforce 0"

Whereas a permanent approach would be to allow the docker container access to the local repository

sudo chcon -Rt svirt_sandbox_file_t ./pocket

See this stackoverflow post for more details.

Clone this wiki locally