james-server-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maomaode <maoma...@gmail.com>
Subject Re: James Server exists abnormally and can not startup
Date Tue, 03 Jul 2007 02:05:41 GMT
Hi Stefano

Really Thanks your help, and your information.

I changed the environment, since it's really changed from the version 2.3.0

But the server still can not start up normally.

And then i search the nohup.log i found this

Exception: Exception caught while storing a stream : 
java.io.FileNotFoundException: 
/data2/bokeland/softwares/james-2.3.1/apps/james/var/mail/outgoing/4D61696C313138333133313337363532382D3835333738352D746F2D7961686F6F2E636F6D2E686F746D61696C2E636F6D2E6D736E2E636F6D2E73696E616D61696C2E636F6D2E7961686F6F2E636F6D2E74772E75726C2E636F6D2E74772E6D61696C2E61706F6C2E636F6D2E74772E736F2D6E65742E6E65742E74772E6D7331312E75726C2E636F6D2E7477.Repository.FileStreamStore

(File name too long)


Seems that James Server trying to write some file, but the file name is 
tooo long

And then i go into the apps/james/var/mail directory when i > ls -l i 
found this:

drwxr-xr-x 2 root root        48 Jul  3 09:51 address-error
drwxr-xr-x 2 root root        48 Jul  3 09:36 error
drwxr-xr-x 7 root root       168 Jun 18 16:21 inboxes
drwxr-xr-x 2 root root 123294544 Jun 30 16:56 outgoing
drwxr-xr-x 2 root root        48 Jun 17 19:56 relay-denied
drwxr-xr-x 2 root root 140114288 Jun 30 17:03 spam
drwxr-xr-x 2 root root      1008 Jun 30 17:03 spool


You may noticed that the outgoing and spam directory size is really wired!?

I go into the outgoing directory , and i can not list the directory with 
 > ls -l and also i can not > rm *

So i decided mv the direcotry :

drwxr-xr-x 2 root root        48 Jul  3 09:51 address-error
drwxr-xr-x 2 root root        48 Jul  3 09:36 error
drwxr-xr-x 7 root root       168 Jun 18 16:21 inboxes
drwxr-xr-x 2 root root        48 Jul  3 09:48 outgoing
drwxr-xr-x 2 root root 123294544 Jun 30 16:56 outgoing_bak
drwxr-xr-x 2 root root        48 Jun 17 19:56 relay-denied
drwxr-xr-x 2 root root 140114288 Jun 30 17:03 spam_bak
drwxr-xr-x 2 root root      1008 Jun 30 17:03 spool


Now i can start the James Server


But I still don't know why the directory size is so big, is it been 
attacked? hacked? or it's the config errors or it's a program errors?
As you can see, mv directory is just a work around solution, i guess the 
problem will happen later

BTW, i can see lots of spam emails in the box, and also a lot of spammer 
use the smtp server, how to stop those emails.


Thanks a lot
mmao

> maomaode ha scritto:
>   
>> Hi Stefano,
>>
>> I did install 2.3.1, but i used the 2.3.0 configuration files.
>> Will that cause problems?
>>     
>
> Yes, make sure to replace the environment.xml in the apps/james/SAR-INF
> folder.
> ------------------
> <?xml version="1.0"?>
>
> <server>
>
>   <!-- Overrides the default behaviour of phoenix that use "." as dir -->
>   <!-- and /SAR-INF/lib/*.jar as include resulting in a full scan -->
>   <!-- of the james folder and very slow startup when there are a lot of -->
>   <!-- messages in var -->
>   <!-- -->
>   <classloaders default="default" version="1.0">
>     <classloader name="default" parent="*system*">
>       <entry location="./SAR-INF/classes" />
>       <fileset dir="./SAR-INF/lib">
>         <include name="*.jar" />
>       </fileset>
>     </classloader>
>     <predefined name="*system*" />
>   </classloaders>
> ----------------
>
> This is the key to solve your problem. (as you can see in the changelog
> : http://svn.apache.org/viewvc?view=rev&revision=526796 . Note that
> james-server.xml is renamed to environment.xml when packaging the sar)
>
>   
>> Actually the server was running for days, and suddenly crashed.
>>     
>
> The crash should not be related in any way with this problem.
> The loop that was causing a big delay at startup for 2.3.0 is only run
> once at startup and simply enumerate any file under the apps/james folder.
>
>   
>> I don't know which log file should i look into?
>>
>> I can reinstall the James Server, but that's the last choice i would
>> like to take.
>>
>> Thanks,
>> mmao
>>     
>
> You're welcome,
> Stefano
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Mime
View raw message