Moderators: ScalixSupport, admin
Code: Select all
omstat -u all
Code: Select all
omshowu -n <lastname> -f
Code: Select all
cd /var/opt/scalix/??/s/user/????????/
Code: Select all
rm -r imap-cache
Code: Select all
#! /usr/bin/python
#
# program: sxclearimap.py
# author: Robert Chavers
# email: rchavers att aetco dott us
#
# purpose: create an output file called sxclearimap.sh
# when sxclearimap.sh is executed, it will
# delete all files located in every scalix users'
# imap-cache folders
# WARNING: use at your own risk!
import os, sys, re
instance_cfg = '/etc/opt/scalix/instance.cfg'
re_datadir = re.compile("OMDATADIR=(.*?)\r?\n", re.IGNORECASE)
re_userfolder = re.compile('User Folder : ~/*(.*?)\r?\n', re.IGNORECASE)
# get scalix datadir location
omdatadir = re_datadir.findall(open(instance_cfg, 'r').read())[0]
# get a list of all scalix users
user_list = os.popen('omshowu -m all','r').readlines()
# loop through all users to find their imap-cache folders
out = ['#!/bin/sh']
for user_line in user_list:
user_name = user_line.split('/')[0].strip()
# get this user's info
userinfo = os.popen('omshowu -n "%s" -f' %user_name,'r').read()
# find this user's imap-cache folder
userfolder = re_userfolder.findall(userinfo)[0]
userfolder = '/'.join(userfolder.split('/')[:-1])
imapfolder = os.path.join(omdatadir, userfolder, 'imap-cache')
# append the rm command to the output file
out.append('rm -f %s/*' %imapfolder)
# extra blank line at the end
out.append('')
# write the output file to the current folder
open('sxclearimap.sh', 'w').write('\n'.join(out))
Code: Select all
cat sxclearimap.sh
Code: Select all
sh sxclearimap.sh
Code: Select all
service scalix-postgres restart
Trevor Benson wrote:Is there any other issue that can cause something like this? I have followed the directions 3 times but it doesnt resolve my issue. Although maybe mine is not exactly the same.
I have lots of subfolders under the Inbox. All of these folders update properly and show new mail as it arrived. However, the Inbox itself does not. The left pane file list shows an increase in inbox messages that matches the new message count, but the right pane NEVER shows me new inbox messages. This is the same from FF on Linux and IE on windows.
I am running Scalix 11.0.3. When i do athen the messages that are missing shop up (if i dont close SWA). But subsequent emails do not show up. I have to restart scalix-postgress to get inbox, but subfolders work fine still.Code: Select all
service scalix-postgres restart
The word above is supposed to be SHOW, but it keeps showing SHOP instead... not sure why....
Thanks,
Trevor
Code: Select all
rpm -qa|grep scalix
scalix-tomcat-5.5.16-263
scalix-res-11.0.4.25-1
scalix-mobile-11.0.4.25-1
scalix-tomcat-connector-11.0.4.25-1.rhel4
scalix-server-11.0.4.10790-1.rhel4
scalix-platform-11.0.4.25-1
scalix-swa-11.0.4.25-1
scalix-sis-11.0.4.25-1
scalix-postgres-11.0.4.25-1
scalix-sac-11.0.4.25-1
Code: Select all
ERROR: invalid byte sequence for encoding "UNICODE": 0x00
ERROR: current transaction is aborted, commands ignored until end of transaction block
ERROR: invalid byte sequence for encoding "UNICODE": 0x00
ERROR: current transaction is aborted, commands ignored until end of transaction block
ERROR: invalid byte sequence for encoding "UNICODE": 0x00
ERROR: current transaction is aborted, commands ignored until end of transaction block
ERROR: invalid byte sequence for encoding "UNICODE": 0x00
ERROR: current transaction is aborted, commands ignored until end of transaction block
mshade wrote:I have a user experiencing this problem now - we also migrated from 10 - but to 11.0.4 instead of 11.0.3.
Clearing imap cache fixed the problem temporarily yesterday, but today it returned. Today, I took a look at the postresql pgstartup.log as well, and saw some entries like this:Code: Select all
ERROR: invalid byte sequence for encoding "UNICODE": 0x00
ERROR: current transaction is aborted, commands ignored until end of transaction block
ERROR: invalid byte sequence for encoding "UNICODE": 0x00
ERROR: current transaction is aborted, commands ignored until end of transaction block
ERROR: invalid byte sequence for encoding "UNICODE": 0x00
ERROR: current transaction is aborted, commands ignored until end of transaction block
ERROR: invalid byte sequence for encoding "UNICODE": 0x00
ERROR: current transaction is aborted, commands ignored until end of transaction block
After logging in with SWA, I noticed that some of the messages had corrupt 'from' addresses, in Unicode.
It looks like this may be part of the issue. Any other thoughts?[/code]
Users browsing this forum: No registered users and 4 guests