Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ledgersmb-admin does not recognize $HOME/.ledgersmb-admin.conf when doing the 1.12 template upgrade #8593

Open
neilt opened this issue Jan 17, 2025 · 0 comments

Comments

@neilt
Copy link
Contributor

neilt commented Jan 17, 2025

When trying the following to upgrade 1.12 templates:

echo "connect_data:" > $HOME/.ledgersmb-admin.conf
echo "    username: postgres" >> $HOME/.ledgersmb-admin.conf
echo "    password: abc" >> $HOME/.ledgersmb-admin.conf
echo "    company: example_inc" >> $HOME/.ledgersmb-admin.conf

cat templates/demo/display_report.html | bin/ledgersmb-admin template load postgres:5432/example_inc display_report html

ledgersmb-admin fails to use $HOME/.ledgersmb-admin.conf for the connection parameters and tries to connect using the user as root.

This is in the LSMB docker install. Not dev-docker.

The error is:

root@5d2a327db6cd:/srv/ledgersmb# cat $HOME/.ledgersmb-admin.conf
connect_data:
    username: postgres
    password: abc
    company: example_inc
root@5d2a327db6cd:/srv/ledgersmb# cat templates/demo/display_report.html | bin/ledgersmb-admin template load postgres:5432/example_inc display_report html
2025/01/17 20:59:54 Could not connect to database: connection to server at "postgres" (172.18.0.2), port 5432 failed: FATAL:  password authentication failed for user "root"
Could not connect to database: connection to server at "postgres" (172.18.0.2), port 5432 failed: FATAL:  password authentication failed for user "root" at lib/LedgerSMB/Admin/Command/template.pm line 205.
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

No branches or pull requests

1 participant