cameri / nostream

A Nostr Relay written in TypeScript
MIT License
713 stars 181 forks source link

[BUG] Installation permission problem #360

Open asyscom opened 5 months ago

asyscom commented 5 months ago

Describe the bug During the installation, when try to start realy after modification (second time) of configuration file (first run works fine) i've this error: node@vmi1610975:~$ ./scripts/start WARN[0000] The "NODELESS_WEBHOOK_SECRET" variable is not set. Defaulting to a blank string. WARN[0000] The "OPENNODE_API_KEY" variable is not set. Defaulting to a blank string. WARN[0000] The "ZEBEDEE_API_KEY" variable is not set. Defaulting to a blank string. WARN[0000] The "LNBITS_API_KEY" variable is not set. Defaulting to a blank string. WARN[0000] The "SECRET" variable is not set. Defaulting to a blank string. WARN[0000] The "NODELESS_API_KEY" variable is not set. Defaulting to a blank string. [+] Building 0.2s (5/15) docker:default => [nostream internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 702B 0.0s => [nostream internal] load metadata for docker.io/library/node:18-alpine3.16 0.0s => [nostream internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => ERROR [nostream internal] load build context 0.1s => => transferring context: 5.35kB 0.0s => [nostream build 1/6] FROM docker.io/library/node:18-alpine3.16 0.0s

[nostream internal] load build context:

failed to solve: error from sender: open /home/node/.nostr/data: permission denied

The permission of ./data: drwxrwxr-x 4 node node 4096 Jan 31 10:58 . drwxr-x--- 13 node node 4096 Jan 31 11:26 .. drwx------ 19 systemd-coredump root 4096 Jan 31 10:53 data drwxr-xr-x 2 root root 4096 Jan 31 10:52 db-logs -rwxrwxr-x 1 node node 4272 Jan 31 10:58 settings.yaml

I noticed that in guide the user to create should be nostream while in docker-compose file the path is /home/node, here a piece of code example from docker-compose.yaml

services: nostream: build: . container_name: nostream environment: SECRET: ${SECRET} RELAY_PORT: 8008

Master

  NOSTR_CONFIG_DIR: /home/node/.nostr

thanks Davide