Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Installation permission problem #360

Open
asyscom opened this issue Jan 31, 2024 · 0 comments
Open

[BUG] Installation permission problem #360

asyscom opened this issue Jan 31, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@asyscom
Copy link

asyscom commented Jan 31, 2024

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

  • OS: [Ubuntu 22]
  • Platform: [docker]
  • Version: [25.0.1, build 29cf629]

thanks Davide

@asyscom asyscom added the bug Something isn't working label Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants