Installation with postgresql
Publié : lun. janv. 29, 2018 12:24 pm
When trying to install with postgresql on Debian 8 as recommended (the "Jessie 8.0 +" is not clear whether Stretch aka. 9.0 is supported or not), we can hit a number of issues:
[ul]
[li]the [url=https://sites.google.com/a/henix.fr/wik ... stallation]debian instructions[/url] do not mention that the install requires a choice between h2 and mysql. It should probably hint to select h2 and go on manually, but the fact that psql is not available here necessarily raises questions in user's mind
[li]the [url=https://sites.google.com/a/henix.fr/wik ... postgresql]psql instructions[/url] don't work on a freshly installed jessie, starting with an encoding-related error on CREATE DATABASE, which I could get over by following [url=https://stackoverflow.com/questions/167 ... 1|274.4785]these instructions[/url]
[li]then user creation is rejected because a dash in username, so I had to change "squash-tm" to "squashtm"
[li]then GRANT was rejected because of a syntax error, presumably missing DATABASE like in "GRANT ALL PRIVILEGES ON DATABASE squashtm TO squashtm;"
[li]then the page does not tell about the db initialization, only in [url=http://www.squashtest.org/forum/10-inst ... ng=en#6096]this post[/url] can we get a hint, it would be great to have the relevant scripts shipped in the deb, even if not used by db-common
[li]"sudo -u postgres psql squashtm -f postgresql-full-install-version-1.17.0.RELEASE.sql" gives a number of warnings, notably acl-related
[li]then it systemd is the selected init system, the squashtm service just won't launch, I had to switch back to sysvinit
[li]then I see a number of errors at startup in the logs, starting with "permission denied for relation core_config" and "Error starting ApplicationContext"
[/ul]
I don't have much time to dig any further, and will switch to mysql for the time being...
[ul]
[li]the [url=https://sites.google.com/a/henix.fr/wik ... stallation]debian instructions[/url] do not mention that the install requires a choice between h2 and mysql. It should probably hint to select h2 and go on manually, but the fact that psql is not available here necessarily raises questions in user's mind
[li]the [url=https://sites.google.com/a/henix.fr/wik ... postgresql]psql instructions[/url] don't work on a freshly installed jessie, starting with an encoding-related error on CREATE DATABASE, which I could get over by following [url=https://stackoverflow.com/questions/167 ... 1|274.4785]these instructions[/url]
[li]then user creation is rejected because a dash in username, so I had to change "squash-tm" to "squashtm"
[li]then GRANT was rejected because of a syntax error, presumably missing DATABASE like in "GRANT ALL PRIVILEGES ON DATABASE squashtm TO squashtm;"
[li]then the page does not tell about the db initialization, only in [url=http://www.squashtest.org/forum/10-inst ... ng=en#6096]this post[/url] can we get a hint, it would be great to have the relevant scripts shipped in the deb, even if not used by db-common
[li]"sudo -u postgres psql squashtm -f postgresql-full-install-version-1.17.0.RELEASE.sql" gives a number of warnings, notably acl-related
[li]then it systemd is the selected init system, the squashtm service just won't launch, I had to switch back to sysvinit
[li]then I see a number of errors at startup in the logs, starting with "permission denied for relation core_config" and "Error starting ApplicationContext"
[/ul]
I don't have much time to dig any further, and will switch to mysql for the time being...