Page 1 of 1

Failling to configure the serveur

Posted: Mon Dec 25, 2006 11:54 am
by ElectrInfo
hello,

I have trouble to install my server under fedora core 5 in CLI with --debug, can somebody give me some help on where to investigate ?

...
Configuring Server...
Creating Scalix Server message store (may take a few minutes)...
Fatal error occured: Msg: Failed to configure server -- check the log for errors.
Scalix Installer - cleaning up...
Scalix Installer - done.



Debug log file:
...
2006-12-25 16:31:03,513 INFO Install end
2006-12-25 16:31:03,737 DEBUG Scalix path: /var/opt/scalix/sx/s/
2006-12-25 16:31:03,738 DEBUG Message store checking: /var/opt/scalix/sx/s/sys/version exists: False
2006-12-25 16:31:03,901 DEBUG Scalix path: /var/opt/scalix/sx/s/
2006-12-25 16:31:03,903 DEBUG Message store checking: /var/opt/scalix/sx/s/sys/version exists: False
2006-12-25 16:31:04,062 DEBUG Scalix path: /var/opt/scalix/sx/s/
2006-12-25 16:31:04,063 DEBUG Message store checking: /var/opt/scalix/sx/s/sys/version exists: False
2006-12-25 16:31:04,064 INFO Mailnode name derived from FQDN: scalix
2006-12-25 16:31:12,417 WARNING configured mail domain could not be determined
2006-12-25 16:31:12,618 INFO dns domain lanathome.net has a valid MX record so using it as default
2006-12-25 16:31:26,240 DEBUG Scalix path: /var/opt/scalix/sx/s/
2006-12-25 16:31:26,241 DEBUG Message store checking: /var/opt/scalix/sx/s/sys/version exists: False
2006-12-25 16:32:10,440 DEBUG Calling config-server function create_scalix_instance
2006-12-25 16:32:10,603 DEBUG Scalix path: /var/opt/scalix/sx/s/
2006-12-25 16:32:10,604 DEBUG Message store checking: /var/opt/scalix/sx/s/sys/version exists: False
2006-12-25 16:32:10,605 INFO Creating Scalix instance...(please wait -- this might take several minutes)
2006-12-25 16:32:12,579 DEBUG ommakeom's output had 2 lines
2006-12-25 16:32:12,580 CRITICAL Failed calling command '/opt/scalix/bin/ommakeom' with exit code 98 msg ['Copying Scalix template to /var/opt/scalix/sx/s, please wait', '[OM 28506] Which Scalix Server system?']
2006-12-25 16:32:12,580 CRITICAL Operation failed: config-server function create_scalix_instance failed: Msg: Failed calling command '/opt/scalix/bin/ommakeom' with exit code 98 msg ['Copying Scalix template to /var/opt/scalix/sx/s, please wait', '[OM 28506] Which Scalix Server system?']
2006-12-25 16:32:12,581 ERROR Operation failed: Aborting server configuration

Some Info:
[root@scalix scalix-11.0.0-GA]# uname -a
Linux scalix.lanathome.net. 2.6.18-1.2257.fc5xenU #1 SMP Fri Dec 15 18:10:44 EST 2006 i686 i686 i386 GNU/Linux

Posted: Tue Dec 26, 2006 9:38 am
by anand_joshi
Hi,

It seems issue lies with the hostname resolution, please check /etc/hosts file for properly configured hostname with domain name . It should look like:

Code: Select all

127.0.0.1    localhost.localdomain  localhost
192.168.100.98    xxy-rhel4.xyz.com     xxy-rhel4


I found a similar issue while searching on forum, where installation fails due to improper hostname configuration. See if it helps
http://www.scalix.com/community/viewtopic.php?t=4930




Hope this helps!!

Posted: Tue Dec 26, 2006 7:31 pm
by ElectrInfo
Hi,
thx with your info and the link, I fixed some stuffs, but I have still a problem, seems to be the postgres database not o be initialized or created:

Re-Running the scalix-installer to configure it gives me that:

Please choose an action from the list:
[1] Upgrade one or more Scalix components (custom)
[2] Reconfigure Scalix components on instance scalix
[3] Uninstall Scalix components
-> Please enter your choice: 2

Please choose one or more components to configure:
[1] Scalix DB
(version 11.0.0.653-1)
[2] Scalix Tomcat
(version 5.5.16-140)
[3] Scalix Messaging Services
(version 11.0.0.653-1)
[4] Scalix Management Agent
(version 11.0.0.653-1)
[5] Scalix Web Access
(version 11.0.0.653-1)
[6] Scalix Management Services
(version 11.0.0.653-1)
[7] Scalix Search and Index Service
(version 11.0.0.653-1)
[8] Scalix Mobile Client
(version 11.0.0.653-1)
-> Please enter comma-separated list of numbers: 1

=== PostgreSQL Configuration ===


-> Enter database password:

-> Confirm password:

-> Please specify comma-separated list of IP addresses where Scalix Messaging Services is or will be installed []: 127.0.0.1
Configuring PostgreSQL...
Fatal error occured: Msg: An error occurred configuring Web applications -- check the log for errors.
Scalix Installer - cleaning up...
Scalix Installer - done.



With the DEBUG File:
2006-12-27 00:15:41,940 INFO Obsolete packages installed: {}
2006-12-27 00:15:50,492 INFO Tomcat was running when we started: False
2006-12-27 00:15:51,486 INFO Components to reconfigure: ['scalix-postgres']
2006-12-27 00:16:01,683 DEBUG FunctionThread calling configure_postgres with args (<sxdata.Data instance at 0xb7b0f10c>,)
2006-12-27 00:16:01,684 INFO Configuring PostgreSQL...
2006-12-27 00:16:01,844 DEBUG Installed package postgresql details: postgresql 8.1.4-1.FC5.1 10659976 i386 linux 1.FC5.1 Red Hat (FC-5) (none)
2006-12-27 00:16:01,845 DEBUG Installed PostgreSQL version is: 8.1.4-1.FC5.1
2006-12-27 00:16:01,846 DEBUG Running postgres.configure: ['127.0.0.1']
2006-12-27 00:16:02,770 DEBUG running command '/opt/scalix-postgres/bin/sxpsql-init', exit code 0
2006-12-27 00:16:02,771 DEBUG command output:
2006-12-27 00:16:02,772 DEBUG |
2006-12-27 00:16:03,425 DEBUG running command '/opt/scalix-postgres/bin/sxpsql-setpwd '***'', exit code 2
2006-12-27 00:16:03,427 DEBUG command output:
2006-12-27 00:16:03,427 DEBUG | psql: FATAL: database "scalix" does not exist
2006-12-27 00:16:03,428 ERROR Operation failed: Failed to set password for the 'scalix' database user.


I not desperated because some stuf seems to be working. For example, I can acces to the Rules Wizard //Scalix/rw) and log in, but I'n unable to have the SWA (/swa) or the /webmail. I guess those last two need to acces the database, wich obviously doesn't exisit.

I also tired to run the Database creation scripts: (http://www.scalix.com/wiki/index.php?ti ... stallation)

cd /opt/scalix-postgres/bin
./sxpsql-init
./sxpsql-setpwd mypassword # This is a database password you select
./sxpsql-whitelist 127.0.0.1

but doesn't seems to change anything

Posted: Tue Dec 26, 2006 8:25 pm
by ScalixSupport
I suggest uninstalling all 8 of the components listed below. After they have been uninstalled please make sure that /var/opt/scalix/instance_initials/postgres and /opt/scalix-postgres are deleted. Then re-install those components.

Regards,
Don

many thanks

Posted: Wed Dec 27, 2006 5:53 am
by ElectrInfo
Hi,

Many thanks, seems to be working !!!

For info, when I deinstalled the components, the two dirs where already deletd. !!

Once again many thanks, I finally have it working !! Two months I was triying to !! Will be the first of a couple of install I think !

Regards,

Greg.