# Pgaudit set-user breaks my node

**URL:** <https://forums.percona.com/t/pgaudit-set-user-breaks-my-node/31893>\
**Category:** PostgreSQL\
**Created:** [July 30, 2024, 6:02am UTC](https://forums.percona.com/t/pgaudit-set-user-breaks-my-node/31893 "2024-07-30T06:02:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brand05](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@Brand05](https://forums.percona.com/u/Brand05)\
**Post date:** [July 30, 2024, 6:02am UTC](https://forums.percona.com/t/pgaudit-set-user-breaks-my-node/31893/1 "2024-07-30T06:02:56Z")

</div>

My Percona HA setup is up and working and I am busy with the instructions on " Enable Percona Distribution for PostgreSQL components" page.

When I do the pgaudit setup, everytime I get to the instruction pgaudit set-user “ALTER SYSTEM SET shared\_preload\_libraries = ‘set-user’;” it breaks my node and I have to revert back to snapshot.

$ patronictl -c /etc/patroni/patroni.yml restart cluster\_2

- Cluster: cluster\_2 (7395511988029761997) ------±—±----------+  
| Member | Host | Role | State | TL | Lag in MB |  
±-------±-------------±--------±-------------±—±----------+  
| node1 | 192.168.8.41 | Leader | running | 10 | |  
| node2 | 192.168.8.42 | Replica | start failed | | unknown |  
| node3 | 192.168.8.43 | Replica | streaming | 10 | 0 |  
±-------±-------------±--------±-------------±—±----------+  
Any ideas why this happens?

I am using 15.7 Instructions  
on Alma Linux 9.4  
I have seen this in the forum  
" [kaushal.worxpro](https://forums.percona.com/u/kaushal.worxpro)

[Jun 2022](https://forums.percona.com/t/pg-wont-start-after-shared-preload-libraries-set-user/15055/2)

open the file /var/lib/pgsql/14/data/postgresql.auto.conf and  
please comment this line : shared\_preload\_libraries = ‘“set-user”’  
and then you can restart the postgresql service sudo systemctl restart postgresql-14  
it will work"  
So I looked at this but get a warning not to edit it manually

```auto
sudo nano /mnt/sdb/postgresql/postgresql.auto.conf

# Do not edit this file manually!
# It will be overwritten by the ALTER SYSTEM command.

```

I did manually edit the file but it still give me errors  
2024-07-25 09:39:41,672 INFO: failed to start postgres

$ patronictl -c /etc/patroni/patroni.yml list

- Cluster: cluster\_2 (7395511988029761997) ------±—±----------+  
| Member | Host | Role | State | TL | Lag in MB |  
±-------±-------------±--------±-------------±—±----------+  
| node1 | 192.168.8.41 | Replica | start failed | | unknown |  
| node2 | 192.168.8.42 | Replica | streaming | 11 | 0 |  
| node3 | 192.168.8.43 | Leader | running | 11 | |  
±-------±-------------±--------±-------------±—±----------+
