I run it on RedHat EL3. James is running as root - I don't know if it is possible to run it as different user and bind it on port 25.

I'm starting to thing that this has something to do with the files under /var repository. We have hundreds of thousands emails under /var. What happened is that I started it to test it with the self created var repository and while it was running we received lots of emails - 60658 files in address-error, which makes about 30K emails I think. Then I stopped it and ran it again. This time it started much slower, I even thought it's not starting again but it started. This is from the phoenix.log:

INFO 2007-03-27 03:26:16.747 [Phoenix.] (): Verify that if target is null then actions is null. INFO 2007-03-27 03:26:35.538 [Phoenix.] (): Verifying that the name specified for Blocks and BlockListeners are valid.

As you can see it took 20 sec to get through this verification. And after that this was logged:

INFO 2007-03-27 03:26:35.674 [Phoenix.] (): 15 Blocks to process for phase "startup". Order of processing = [dnsserver, database- connections, mailstore, users-store, localusersrepository, spoolrepository, sockets, thread-manag er, scheduler, James, mailetpackages, matcherpackages, spoolmanager, connections, smtpserver]. ERROR 2007-03-27 03:26:51.704 [Phoenix.] (): Component named "spoolmanager" failed to pass through the Starting stage. (Reason: java.lang.OutOfMemoryError). ERROR 2007-03-27 03:26:51.705 [Phoenix.] (): There was an error running phase "startup" for Block named "spoolmanager". (Reason: Component named "spoolmanager" failed to pass through the Starting stage. (Reason: java.lang.OutOf
MemoryError).).
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException: Component named "spoolmanager" failed to pass through the Starting stage. (Reason: java.lang.OutOfMemoryError). at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail (LifecycleHelper.java:354) at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup (LifecycleHelper.java:226) at org.apache.avalon.phoenix.components.application.DefaultApplication.star tup(DefaultApplication.java:530) at org.apache.avalon.phoenix.components.application.DefaultApplication.doRu nPhase(DefaultApplication.java:478) at org.apache.avalon.phoenix.components.application.DefaultApplication.runP hase(DefaultApplication.java:409) at org.apache.avalon.phoenix.components.application.DefaultApplication.star t(DefaultApplication.java:180) at org.apache.avalon.framework.container.ContainerUtil.start (ContainerUtil.java:260)
rethrown from
java.lang.OutOfMemoryError
INFO 2007-03-27 03:26:51.709 [Phoenix.] (): exception while starting:Component named "spoolmanager" failed to pass through the Starting stage. (Reason: java.lang.OutOfMemoryError).

WARN 2007-03-27 03:26:51.713 [Phoenix.] (): Failed to start application james. org.apache.avalon.framework.CascadingException: Failed to start application james. at org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup (DefaultKernel.java:313) at org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication (DefaultKernel.java:376) at org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy (DefaultDeployer.java:357) at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile (DefaultEmbeddor.java:542) at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile (DefaultEmbeddor.java:535) at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile s(DefaultEmbeddor.java:520) at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefa ultApplications(DefaultEmbeddor.java:509)
rethrown from
org.apache.avalon.phoenix.interfaces.ApplicationException: Component named "spoolmanager" failed to pass through the Starting stage. (Reason: java.lang.OutOfMemoryError). at org.apache.avalon.phoenix.components.application.DefaultApplication.star t(DefaultApplication.java:186) at org.apache.avalon.framework.container.ContainerUtil.start (ContainerUtil.java:260) at org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup (DefaultKernel.java:295) at org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication (DefaultKernel.java:376) at org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy (DefaultDeployer.java:357) at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile (DefaultEmbeddor.java:542) at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile (DefaultEmbeddor.java:535)
rethrown from
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException: Component named "spoolmanager" failed to pass through the Starting stage. (Reason: java.lang.OutOfMemoryError). at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail (LifecycleHelper.java:354) at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup (LifecycleHelper.java:226) at org.apache.avalon.phoenix.components.application.DefaultApplication.star tup(DefaultApplication.java:530) at org.apache.avalon.phoenix.components.application.DefaultApplication.doRu nPhase(DefaultApplication.java:478) at org.apache.avalon.phoenix.components.application.DefaultApplication.runP hase(DefaultApplication.java:409) at org.apache.avalon.phoenix.components.application.DefaultApplication.star t(DefaultApplication.java:180) at org.apache.avalon.framework.container.ContainerUtil.start (ContainerUtil.java:260)
rethrown from
java.lang.OutOfMemoryError
WARN 2007-03-27 03:26:51.745 [Phoenix.] (): Failed to stop application james as it is not initialized/started.




On 27.03.2007, at 13:40, Stefano Bagnara wrote:

zkn ha scritto:
Thanks,
I have forgotten that I have to remove the blocks from assembly.xml if it was the same for 2.2.0. Thanks, it's ok now. I used the new config file and moved everything from the old file to the new one step by step and also it works with the self created /var directory so I think it is ok. The problem is only when I put the symlink to the old repository. I changed the log level to DEBUG but again nothing in james log files. It seems to me that james is not starting at all. If james starts successfully it will be logged in the console file. But there is nothing in there.

So it only does not work if you use the symlink, right?

I agree it is weird: what OS, filesystem are you using, what rights have your user (the one running james) on the link and on the target folder?


Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to