Page 1 of 1

SMS API does not work after changing the initial IP address

Posted: Thu Jan 18, 2007 4:18 pm
by Trevor Benson
I installed 11 on a temporary IP (x.y.z.40) until ready to migrate out our original system (x.y.z.25). When I replaced the old system with the new on I changed the /etc/hosts as well. My postgresql starts without any issues. Prior to the change i could access the API on both servers.

After migrating the IP's of both systems all of my API tests are failing. This happens on both the old server and the new server. When I try there is an error that HTTP authentication is required, fairly bogus error as I am authenticating the same way as before when it worked. I send credentials, and when tried through a browser, the same working credentials from SWA that opens webmail fail to access the mailbox via the API.

I tracked back the errors in /var/opt/scalix/ml/tomcat/logs/scalix-api.log which were

Code: Select all

2007-01-18 11:05:03,757 FATAL [DbUtils.getSession:51] could not create database connection


After this I spent some time running a find on /var/opt/scalix/NN to track down x.y.z.40, as it appears something went awry when the IP address changed. I ran into the file /var/opt/scalix/ml/postgres/data/pg_hba.conf containing this line:

Code: Select all

# List of Scalix Platform hosts begins here
host    scalix      scalix      x.y.z.40/32   md5
# List of Scalix Platform hosts ends here


Changing this to:

Code: Select all

host    scalix      scalix      x.y.z.25/32   md5

and then performing a

Code: Select all

service scalix-postgres restart
restores access to the API.

For anyone tracking the status of this issue i have submitted it to scalixzillla as Bug 14487.

For anyone needing to change the IP address of an existing Scalix 11 server you can find the How-To I wrote up on the wiki, currently provided at http://www.scalix.com/wiki/index.php?ti ... s/ChangeIP