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] FATAL: could not map anonymous shared memory: Cannot allocate memory #189

Closed
pluja opened this issue Feb 10, 2023 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@pluja
Copy link

pluja commented Feb 10, 2023

Describe the bug
Can not start Nostream due to not enough memory.

To Reproduce
Run nostream on a small vps (2GB RAM)

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

System (please complete the following information):

  • OS: Debian
  • Platform: docker
  • Version: latest

Logs

nostream-db       | 2023-02-10 12:18:43.673 UTC [1] FATAL:  could not map anonymous shared memory: Cannot allocate memory
nostream-db       | 2023-02-10 12:18:43.673 UTC [1] HINT:  This error usually means that PostgreSQL's request for a shared memory segment exceeded available memory, swap space, or huge pages. To reduce the request size (currently 4438917120 bytes), reduce PostgreSQL's shared memory usage, perhaps by reducing shared_buffers or max_connections.

Additional context
Is there a way to solve this or are there special memory requirements for Nostream to work?

@pluja pluja added the bug Something isn't working label Feb 10, 2023
@Cameri
Copy link
Owner

Cameri commented Feb 10, 2023

Stop your relay using ./scripts/stop.
Delete your .nostr/data folder, then edit your postgresql.conf file using the values https://pgtune.leopard.in.ua/
Use OTP for DB Type.

@pluja
Copy link
Author

pluja commented Feb 11, 2023

Thanks!

@pluja pluja closed this as completed Feb 11, 2023
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