Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

[BUG] Where is the data in PostgreSQL database?

Offen
#222 4 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@cameri arbeitet bereits daran.

Seit 20.2.2023.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

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
Vorherrschende Sprache
TypeScript
Sterne
829
Forks
234
Ø Merge
2 T. 10 Std.
Gemergte PRs (30 T.)
24

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus cameri/nostream

Alle Issues in cameri/nostream

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.