Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[BUG] Where is the data in PostgreSQL database?

Đang mở
#222 4 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@cameri đang làm issue này rồi.

Từ ngày 20/2/2023.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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
Ngôn ngữ chính
TypeScript
Star
829
Fork
234
Merge trung bình
2 ngày 10 giờ
Pull request đã merge (30 ngày)
24

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cameri/nostream

Tất cả issue của cameri/nostream

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.