Skip to content

Conversation

cuichenli
Copy link
Member

@cuichenli cuichenli requested review from a team and puckpuck as code owners June 27, 2025 10:27
@TylerHelmuth
Copy link
Member

@puckpuck please take a look

Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Jul 25, 2025
@github-actions github-actions bot removed the Stale label Jul 26, 2025
@cuichenli
Copy link
Member Author

bump

Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Aug 19, 2025
Copy link
Contributor

github-actions bot commented Sep 3, 2025

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Sep 3, 2025
@dmitryax dmitryax reopened this Sep 3, 2025
@dmitryax
Copy link
Member

dmitryax commented Sep 3, 2025

@cuichenli please bump the chart version

@github-actions github-actions bot removed the Stale label Sep 4, 2025
@cuichenli
Copy link
Member Author

@cuichenli please bump the chart version

updated.

@TylerHelmuth
Copy link
Member

@cuichenli have you tested this change and confirmed the postgres instance starts correctly and things can communicate with it?

Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Sep 30, 2025
@ebarped
Copy link

ebarped commented Oct 7, 2025

I tested the chart and i can confirm @TylerHelmuth:

  • that posgresql starts correctly and executes the init script:
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory /var/lib/postgresql/data ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default "max_connections" ... 100
selecting default "shared_buffers" ... 128MB
selecting default time zone ... Etc/UTC
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok


Success. You can now start the database server using:

    pg_ctl -D /var/lib/postgresql/data -l logfile start

initdb: warning: enabling "trust" authentication for local connections
initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
waiting for server to start....2025-10-07 08:55:51.068 UTC [55] LOG:  starting PostgreSQL 17.5 (Debian 17.5-1.pgdg130+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 14.2.0-19) 14.2.0, 64-bit
2025-10-07 08:55:51.072 UTC [55] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2025-10-07 08:55:51.087 UTC [58] LOG:  database system was shut down at 2025-10-07 08:55:50 UTC
2025-10-07 08:55:51.096 UTC [55] LOG:  database system is ready to accept connections
 done
server started
CREATE DATABASE


/usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/01-init.sql
CREATE ROLE
CREATE TABLE
CREATE TABLE
CREATE TABLE
GRANT


waiting for server to shut down...2025-10-07 08:55:51.293 UTC [55] LOG:  received fast shutdown request
.2025-10-07 08:55:51.297 UTC [55] LOG:  aborting any active transactions
2025-10-07 08:55:51.298 UTC [55] LOG:  background worker "logical replication launcher" (PID 61) exited with exit code 1
2025-10-07 08:55:51.299 UTC [56] LOG:  shutting down
2025-10-07 08:55:51.305 UTC [56] LOG:  checkpoint starting: shutdown immediate
2025-10-07 08:55:51.589 UTC [56] LOG:  checkpoint complete: wrote 941 buffers (5.7%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.024 s, sync=0.242 s, total=0.291 s; sync files=320, longest=0.005 s, average=0.001 s; distance=4318 kB, estimate=4318 kB; lsn=0/19251C0, redo lsn=0/19251C0
2025-10-07 08:55:51.599 UTC [55] LOG:  database system is shut down
 done
server stopped

PostgreSQL init process complete; ready for start up.

2025-10-07 08:55:51.737 UTC [1] LOG:  starting PostgreSQL 17.5 (Debian 17.5-1.pgdg130+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 14.2.0-19) 14.2.0, 64-bit
2025-10-07 08:55:51.737 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2025-10-07 08:55:51.737 UTC [1] LOG:  listening on IPv6 address "::", port 5432
2025-10-07 08:55:51.746 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2025-10-07 08:55:51.756 UTC [73] LOG:  database system was shut down at 2025-10-07 08:55:51 UTC
2025-10-07 08:55:51.765 UTC [1] LOG:  database system is ready to accept connections
  • i dont see that the accounting service is interacting with the db:
otel=# select * from orderitem;
 item_cost_currency_code | item_cost_units | item_cost_nanos | product_id | quantity | order_id 
-------------------------+-----------------+-----------------+------------+----------+----------
(0 rows)

otel=# select * from shipping;
 shipping_tracking_id | shipping_cost_currency_code | shipping_cost_units | shipping_cost_nanos | street_address | city | state | country | zip_code | order_id 
----------------------+-----------------------------+---------------------+---------------------+----------------+------+-------+---------+----------+----------
(0 rows)

EDIT: ℹ️

I updated the accounting tag to 2.1.0, because from that version the app writes to DB, and i can see them now:

otel=# select * from orderitem;
 item_cost_currency_code | item_cost_units | item_cost_nanos | product_id | quantity |               order_id               
-------------------------+-----------------+-----------------+------------+----------+--------------------------------------
 USD                     |             209 |       949999999 | 2ZYFJ3GM2N |       10 | c129437f-a365-11f0-84a1-f648c8b7cb9a
 USD                     |            3599 |               0 | 9SIQT8TOJO |        3 | c468e416-a365-11f0-84a1-f648c8b7cb9a
 USD                     |               0 |       990000000 | HQTGWGPNH4 |        4 | c468e416-a365-11f0-84a1-f648c8b7cb9a
 USD                     |             209 |       949999999 | 2ZYFJ3GM2N |        2 | c4b22187-a365-11f0-84a1-f648c8b7cb9a
 USD                     |            3599 |               0 | 9SIQT8TOJO |       10 | c4b22187-a365-11f0-84a1-f648c8b7cb9a
 USD                     |              21 |       949999999 | L9ECAV7KIM |        3 | c66f494b-a365-11f0-84a1-f648c8b7cb9a
 USD                     |              57 |       799999999 | LS4PSXUNUM |       10 | cf8221be-a365-11f0-84a1-f648c8b7cb9a
 USD                     |             209 |       949999999 | 2ZYFJ3GM2N |        1 | d29722b5-a365-11f0-84a1-f648c8b7cb9a
 USD                     |              57 |       799999999 | LS4PSXUNUM |        4 | d9877c72-a365-11f0-84a1-f648c8b7cb9a
 USD                     |             129 |       949999999 | 1YMWWN1N4O |        3 | db465bc8-a365-11f0-84a1-f648c8b7cb9a

@github-actions github-actions bot removed the Stale label Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants