Skip to content

Docker-compose won't run without sudo after tor service previously initialized #76

@UTXOnly

Description

@UTXOnly

Steps to Reproduce

  • Run 4) Start Nostpy relay (Clearnet + Tor) from menu.py without sudo
    • This runs without error the first time
  • Spin down tor compose stack
  • Run 4) Start Nostpy relay (Clearnet + Tor) from menu.py without sudo
    • fails with error below due to docker/tor/data being unreadable/executable by non root user
 => ERROR [internal] load build context                                                                                                                                                           0.0s
 => => transferring context: 17.84kB                                                                                                                                                              0.0s
------
 > [internal] load build context:
------
ERROR: failed to solve: error from sender: open /home/ubuntu/nostpy-relay/docker/tor/data/hidden_service: permission denied
ERROR: Service 'websocket_handler' failed to build : Build failed
Error occurred: Command '['docker-compose', '-f', 'docker-compose-tor.yaml', 'up', '-d']' returned non-zero exit status 1.

Expected behavior
As the user that initialized the local repo, to select 4) Start Nostpy relay (Clearnet + Tor) and have the docker compose stack start without elevated permissions after the tor/data directory has been initialized

Suggested Fix

  • Add $USER to ACL that has permission to access that directory from menu.py

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions