New installation with Debian 7 and Plesk 12 (latest release with all updates):
I tried to add a PostgreSQL server. I used this URL as a little howto http://kb.mediatemple.net/questions/723/How+do+I+install+PostgreSQL+on+my+server%3F#dv_managed/Step_3_Register_PostgreSQL_with_Plesk. The point where things go south is:
# /opt/psa/bin/database-server --update-server localhost:5432 -type postgresql -admin admin -passwd `cat /etc/psa/.psa.shadow`
SUCCESS: Server localhost:5432 is successfully updated.
However, this "SUCCESS" is actually false. It turns out my license key doesn't have support for PostgreSQL. I tried to remove the database, but that doesn't work either:
The only solution I found working is to manually remove the entry from PSA's mysql database 'DatabaseServers':
Then, when I use "create-server" instead of "update-server" I get the proper error message:
So the bug is:
- The update-server commands returns SUCCESS when there actually isn't any success. All it does is add a entry in PSA's MySQL database. The server does not turn up in the webinterface. It should either return "server not found" or "not supported by license", but not a false SUCCESS.
- It is not possible to remove the server with remove-server, it returns an invalid "not found" message.
I tried to add a PostgreSQL server. I used this URL as a little howto http://kb.mediatemple.net/questions/723/How+do+I+install+PostgreSQL+on+my+server%3F#dv_managed/Step_3_Register_PostgreSQL_with_Plesk. The point where things go south is:
Code:
/usr/local/psa/bin/database-server --update-server localhost:5432 -type postgresql -admin admin -passwd `cat /etc/psa/.psa.shadow`
# /opt/psa/bin/database-server --update-server localhost:5432 -type postgresql -admin admin -passwd `cat /etc/psa/.psa.shadow`
SUCCESS: Server localhost:5432 is successfully updated.
However, this "SUCCESS" is actually false. It turns out my license key doesn't have support for PostgreSQL. I tried to remove the database, but that doesn't work either:
Code:
# /opt/psa/bin/database-server --remove-server localhost:5432
Database server localhost:5432 is not found
The only solution I found working is to manually remove the entry from PSA's mysql database 'DatabaseServers':
Code:
USE psa;
DELETE DatabaseServers WHERE type = 'postgresql';
Then, when I use "create-server" instead of "update-server" I get the proper error message:
Code:
# /opt/psa/bin/database-server --create-server localhost:5432 -type postgresql -admin admin -passwd `cat /etc/psa/.psa.shadow`
To use Postgresql server, you need the support for it in your license key. Please consult your Parallels sales representative.
So the bug is:
- The update-server commands returns SUCCESS when there actually isn't any success. All it does is add a entry in PSA's MySQL database. The server does not turn up in the webinterface. It should either return "server not found" or "not supported by license", but not a false SUCCESS.
- It is not possible to remove the server with remove-server, it returns an invalid "not found" message.