Quantcast
Channel: iRedMail — iRedMail Support
Viewing all articles
Browse latest Browse all 43365

Re: Install Hangs while creating database

$
0
0
ZhangHuangbin wrote:
angeloklin wrote:

root@server:~ # su - postgres -c 'psql -d template1 -f /var/db/postgres/data12/iredmail.sql'
Password for user vmailadmin:

Do you have file /var/db/postgres/.pgpass? Does this file contains credential of pgsql user "vmailadmin" (and few others)?

Should be fixed by setting global variable PGPASSFILE in latest commit:
https://github.com/iredmail/iRedMail/commits/master

Interesting thing is i didn't have this issue while testing locally. sad

Thanks for looking into that.
The password file exists but most passwods are empty.

root@server:~ # cd /var/db/postgres/
root@server:/var/db/postgres # ls -lA
total 12
-rw-------   1 postgres  postgres   149 11 Oct 00:14 .pgpass
-rw-------   1 postgres  postgres  1067 11 Oct 13:19 .psql_history
drwx------  19 postgres  postgres  1024 13 Oct 23:54 data12

root@server:/var/db/postgres # cat .pgpass 
*:*:*:postgres:pass
*:*:*:vmail:
*:*:*:vmailadmin:
*:*:*:iredapd:
*:*:*:iredadmin:
*:*:*:sogo:hSm
*:*:*:roundcube:rNf
*:*:*:amavisd:
*:*:*:fail2ban:

- I do not remember (I did not have) this issue in the past.
- I "think" I had the problem when testing 1.3[.1], but as it was not ready on FreeBSD, I did not bother. Without thinking too much I imagine that could be related to the adjustments of the new version.
- I will test the new commit maybe tomorrow or the day after.
- Please have a look on the `.pgpass` above, in case there are other ids that should be set at this point. Only `postgres`, `sogo` and `roundcube` have non-empty passwords.

Thanks.


Viewing all articles
Browse latest Browse all 43365

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>