Page 1 of 1
Messed up restore
Posted: Tue Apr 18, 2006 1:53 am
by simrid
Hiya all,
Just started playing with Scalix and have skillfully managed to break my server doing a restore. This is test server so no big worries at the moment, really I'm just trying to get familiar with it. javascript:emoticon(':)')
Smile
The problem:
After I "restored" (see procedure below) users cannot log into their accounts via Outlook or via the Web Interface. Pop3 logins seems fine. I can log into console with the admin account and create new local users but they cannot log in either.
Also I have no been able to find any useful logging output. Does anyone have suggestions about what logs/ what debug settings to use?
What I did to backup:
- /var/opt/scalix is on an LVM.
- Did an omsuspend
- Created snapshot
- released omsuspend
- mounted snapshot and copied the user mailbox directorys to a smb share.
- umounted and destroyed snapshot.
What I did to restore:
- shutdown Scalix
- copied backup user mailbox directories over the top of the real ones. (Yes, I have since discovered this is naughty but where's the fun is following doco :) lol jk)
- restart Scalix
Thats it. Any suggestions would be greatly appreciated :)
Cheers
:)
Posted: Tue Apr 18, 2006 7:38 am
by ScalixSupport
You copied? What was your copy command? Did you use -p to retain permissions? Using tar would be a better way to go.
To try and fix this up see the man page for omcheck.
Regards,
Don
Posted: Tue Apr 18, 2006 10:07 pm
by simrid
As you suspected it was a permissions problem... omcheck fixed it all up nicely.
Thanks Don
Posted: Wed Apr 19, 2006 8:22 pm
by netphantom
Hi,
I still have the same problem, simrid had.
I made a backup by copying the /var/opt/scalix files from one server to another one.
At the new one I made a clean SuSE 10.0 installation and and a scalix 10 installation, after that I copied the files to the new one.
With omcheck -s -d I created a script and executed it.
But I had no positive result, I cannot login with webmail, but with pop3.
In the log file fatal I get the following error:
ERROR IMAP Server Da(IMAP Server Pr) Fri May 19 19:33:11 2006
[OM 24070] Debug message for Lab use :
imapCreateAdminSocket: Could not bind to socket /var/opt/scalix/temp/imap-admin.6942 Error was: Permission denied
User Name: sxadmin / linux, site/CN=sxadmin
Pid of logging process: 6942
SERIOUS ERROR IMAP Server Da(IMAP Server Pr) Fri May 19 19:33:11 2006
[OM 24070] Debug message for Lab use :
imapCoreServer:Failed to create admin socket:
User Name: sxadmin / linux, site/CN=sxadmin
Pid of logging process: 6942
By checking again the permissions with omcheck -i -d all seems to look fine.
Can you give me another hint, what I could have done wrong?
Bye
Posted: Wed Apr 19, 2006 8:26 pm
by ScalixSupport
Is your apache server running?
ps -ef |grep apache
You'll want to configure this to start on boot.
Regards,
Don
Posted: Wed Apr 19, 2006 8:39 pm
by netphantom
yes, it is running ...
NOTE: I have added my post before ...
Posted: Fri Apr 21, 2006 2:17 am
by netphantom
Hi,
do you have no idea, what could be the cause of this problem?
Best regards
Posted: Tue May 02, 2006 10:10 am
by netphantom
Hi I still did not find a solution for my problem ... ;(
Does anyone hav a hint what I can do or where I can look for?
Bye
Posted: Tue May 02, 2006 10:18 am
by ScalixSupport
The error message could not be clearer. The IMAP server is unable to create a socket file. Please run omcheck -i -s and report back.
Cheers,
Sascha.
Posted: Wed May 03, 2006 5:38 am
by netphantom
The output shows following:
Code: Select all
# ---------------------------------------------------------
#
#Now checking component OM-ADM
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-AMECAT
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-AMEPAW
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-AMEPDA
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-AMERW
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-AMEWAP
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-APPL
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-BB
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-CHSCAT
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-CHSPAW
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-CHSPDA
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-CHSRW
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-CORE
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-DSYNC
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-ENGCAT
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-ENGPAW
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-ENGPDA
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-ENGRW
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-ENGWAP
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-FINCAT
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-FINPAW
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-FINPDA
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-FINRW
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-FINWAP
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-FRECAT
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-FREPAW
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-FREPDA
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-FRERW
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-FREWAP
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-GERCAT
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-GERPAW
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-GERPDA
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-GERRW
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-GERWAP
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-IMAP4
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-ITACAT
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-ITAPAW
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-ITAPDA
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-ITARW
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-ITAWAP
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-KORCAT
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-KORPAW
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-KORPDA
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-KORRW
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-LC
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-LDAP
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-MAN
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-NIPCAT
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-NIPPAW
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-NIPPDA
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-NIPRW
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-PMOVER
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-POP3
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-PTBCAT
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-PTBPAW
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-PTBPDA
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-PTBRW
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-PTBWAP
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-RC
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-SPACAT
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-SPAPAW
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-SPAPDA
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-SPARW
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-SPAWAP
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-SWECAT
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-SWEPAW
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-SWEPDA
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-SWERW
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-SWEWAP
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking component OM-UNIX
#
#
#Component checks complete.
# ---------------------------------------------------------
#
#Now checking Mailstore files OM-CDADIRS
#
#
#Mailstore files OM-CDADIRS checks complete.
# ---------------------------------------------------------
#
#Now checking Mailstore files OM-CDAFILES
#
#
#Mailstore files OM-CDAFILES checks complete.
# ---------------------------------------------------------
#
#Now checking Mailstore files OM-DITSFILES
#
#
#Mailstore files OM-DITSFILES checks complete.
# ---------------------------------------------------------
#
#Now checking Mailstore files OM-DSDIRS
#
#
#Mailstore files OM-DSDIRS checks complete.
# ---------------------------------------------------------
#
#Now checking Mailstore files OM-DSFILES
#
#
#Mailstore files OM-DSFILES checks complete.
# ---------------------------------------------------------
#
#Now checking Mailstore files OM-ISDIRS
#
#
#Mailstore files OM-ISDIRS checks complete.
# ---------------------------------------------------------
#
#Now checking Mailstore files OM-ISFILES
#
#
#Mailstore files OM-ISFILES checks complete.
# ---------------------------------------------------------
#
#Now checking Mailstore files OM-LICFILES
#
#
#Mailstore files OM-LICFILES checks complete.
# ---------------------------------------------------------
#
#Now checking Mailstore files OM-MSGPFILES
#
#
#Mailstore files OM-MSGPFILES checks complete.
Bye,
Sascha
Posted: Wed May 03, 2006 7:55 am
by ScalixSupport
OK, really what it comes down to is this :
imapCreateAdminSocket: Could not bind to socket /var/opt/scalix/temp/imap-admin.6942 Error was: Permission denied
Can you please su to scalix and cd to that directory and then create that/any file. Obviously, there is a permissions problem that needs to be fixed.
From the output you pasted it is not clear to me what parameters you used and if that actually changed anything.
Cheers,
Sascha.
Posted: Wed May 03, 2006 8:23 am
by netphantom
Hi,
I created this file, but it has not success, because next time I try to log in, another file should be generated.
If I want to login, I get the error message above. The file imap-admin.XXXX then should be generated, but it does not. Even if I set the permission to 777 for var/opt/scalix/temp.
My previous system was a fresh suse 10.0 system. Because of a hard disk crash I installed a suse 10.0 at VMWare Server, installed scalix from rpm and then I copied the old files to the new server.
Could there be a problem because of system users or their UID?
Bye,
Sascha
Posted: Fri May 05, 2006 5:14 am
by netphantom
I have found the solution! :) :) :) :)
I simply had to change the IP address from the new server the the old one. Now it works ...
Bye,
Sascha