Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

[BUG] Where is the data in PostgreSQL database?

Aberta
#222 4 comentários 0 reações 1 responsável Ver no GitHub

Mantenedores costumam responder em até 1 dia

@cameri já está trabalhando nisso.

Desde 20/2/2023.

Avaliação

Esta issue ainda não foi avaliada.

Descrição

bug

Describe the bug
I have deployed a Nostream relay on my server. I use Damus to post a node and it works fine. However, I cannot find any event in PostgreSQL database. How can I read the database?

To Reproduce
Steps to reproduce the behavior:

  1. docker container ls to find the container id for PostgreSQL
  2. docker exec -it id bash
  3. (inside the docker) psql -U nostr_ts_relay -W
  4. enter the passward nostr_ts_relay
  5. \d
    List of relations
    Schema | Name | Type | Owner
    --------+--------------------------------+----------+----------------
    public | events | table | nostr_ts_relay
    public | invoices | table | nostr_ts_relay
    public | knex_migrations | table | nostr_ts_relay
    public | knex_migrations_id_seq | sequence | nostr_ts_relay
    public | knex_migrations_lock | table | nostr_ts_relay
    public | knex_migrations_lock_index_seq | sequence | nostr_ts_relay
    public | users | table | nostr_ts_relay
    (7 rows)
  6. select * from events and nothing returns

PS: Also, I try to connect the database outside the docker (in Ubuntu physical machine shell), but I cannot log in.
psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: Peer authentication failed for user "nostr_ts_relay"

System (please complete the following information):

  • OS: Ubuntu 22.04.1 LTS
  • Platform: docker (./scripts/start)
  • Version:
    Docker version 23.0.1, build a5ee5b1
    node --version v12.22.9
    nostream version v1.22.3
Linguagem predominante
TypeScript
Estrelas
829
Forks
234
Merge médio
4d 5h
PRs com merge (30d)
22

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de cameri/nostream

Todas as issues de cameri/nostream

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.