Got SWA up and running on Friday (See post "11.10.1 upgrade "broke" SWA) but today it is taking about 5-8 minutes for people's inbox to load and sometimes in doesn't even load at all. I checked to make make sure only one Tomcat was running (it is) I also looked to make sure the swa.soap.soapRequestTimeout=60 line was installed correctly, I aslso checked the CPU usage time and nothing is taking more than 1-2% or less time. What else should I check to see why SWA is taking so long to load. Basically my users can't use SWA.
Scalix 11 is a one way upgrade. You CANNOT go back. The changes made to the mailstore are permanent. It's better to wait to try to resolve the slowness.
Does the PostgreSQL log in /var/opt/scalix/??/postgres show any errors?
I didn't find a PostgreSQL log in /var/opt/scalix/??/postgres. But did find a postgresstart.log Here is its output:
2007-02-05 08:54:20 NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "folder_status_pkey" for table "folder_status"
2007-02-05 08:54:20 NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "message_pkey" for table "message"
2007-02-05 08:54:20 NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "deleted_pkey" for table "deleted"
2007-02-05 10:31:47 ERROR: schema "sx_ba99d8b48badfa783e8171f0a51addca" does not exist
2007-02-05 10:31:47 ERROR: current transaction is aborted, commands ignored until end of transaction block
2007-02-05 10:31:47 NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "folder_status_pkey" for table "folder_status"
2007-02-05 10:31:47 NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "message_pkey" for table "message"
2007-02-05 10:31:47 NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "deleted_pkey" for table "deleted"
2007-02-05 11:16:20 ERROR: schema "sx_cd2b47601d526187d3dc89baa2b2b15c" does not exist
2007-02-05 11:16:20 ERROR: current transaction is aborted, commands ignored until end of transaction block
2007-02-05 11:16:20 NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "folder_status_pkey" for table "folder_status"
2007-02-05 11:16:20 NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "message_pkey" for table "message"
2007-02-05 11:16:20 NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "deleted_pkey" for table "deleted"
2007-02-05 11:31:23 LOG: recycled transaction log file "0000000000000001"
2007-02-05 12:16:28 LOG: recycled transaction log file "0000000000000002"
2007-02-05 12:21:06 LOG: unexpected EOF on client connection
2007-02-05 12:21:06 LOG: unexpected EOF on client connection
2007-02-05 12:21:06 LOG: unexpected EOF on client connection
2007-02-05 12:21:06 LOG: unexpected EOF on client connection
2007-02-05 12:21:06 LOG: unexpected EOF on client connection
2007-02-05 12:22:06 LOG: received fast shutdown request
2007-02-05 12:22:06 LOG: shutting down
2007-02-05 12:22:08 LOG: database system is shut down
2007-02-05 12:25:00 LOG: could not bind IPv4 socket: Cannot assign requested address
HINT: Is another postmaster already running on port 5733? If not, wait a few seconds and retry.
2007-02-05 12:25:00 FATAL: could not create listen socket for "linux"
There were no other log files under /var/opt/scalix/??/postgres
the schema "error" message is normal, it's just a namespace in the DB that is created for each users. the first time,it's not there but we try to access it, hence the error.
- is postgres running correctly? (lsof -i :5733, ps -ef | grep postmaster)
- does your scalix-api logfile (in tomcat/logs) have any errors about trying to connect to the database?
-Problem encountered during authenication M00021 could not connect to database
-java.sql.SQLException: Connection could not be aquired from underlying databse
-599 FATAL [DbUtils.getSession:51] could not create database connection
All of these errors repeat many times over in the log.
Looks like things are running now. Tested loging into SWA. Instead of the 1 minutes to show the folder list and another minute to show the INBOX messages (this is not exagerating, I timed it) it now takes about 5-7 seconds for the folders to load and the messages to come up. Big improvement.
Thanks
Will I have to double check to make sure this postgres database starts if I do a server e-boot?
very unlikely; the downloaded file is a tar.gz, which hardly unpacks when it is corrupted. we also publish the MD5 checksums on our website, those you could verify using the linux-supplied md5 tool.
you might want to check the latest /var/log/scalix-installer log if something went wrong during installation of the update.