Re: Problems building James/Cassandra backend

2016-09-23 Thread Marc Chamberlin

On 9/23/2016 1:17 AM, Matthieu Baechler wrote:

Hi Marc,

Thank you for reporting about that.

I created an issue for that : 
https://issues.apache.org/jira/browse/JAMES-1827


I tried to fix the documentation here : 
https://github.com/linagora/james-project/pull/415


Could you check that my PR fixes your problem ?

Regards,



Hi Matthiew,  Thanks for the update, I got further, at least I got Maven 
to compile the Guice Cassandra project. But when I attempted to deploy 
it, using your new fix, things didn't go well -


bigbang:/james/docker/james-project # docker run --name=cassandra 
cassandra:2.2.3

Error response from daemon: 404 page not found


So I decided to try an run this as originally specified to see what 
would happen...


bigbang:/james/docker/james-project # docker run --name=cassandra 
cassandra


which gave me a whine about it being "Unable to find image 
'cassandra:latest' locally" at which point it said -


latest: Pulling from library/cassandra

and is happily downloading a whole bunch of stuff.  Please forgive the 
blind man here for he not know-est what he does-est


Marc...



--
"The Truth is out there" - Spooky


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



答复: james-cli failure [unsigned]

2016-09-23 Thread li hai ming


Thanks Bernd.



I re-started James, and got below memory info:

[lihaiming@iZ28m97ac83Z bin]$ free -mh

  totalusedfree  shared  buff/cache   available

Mem:   991M741M106M 50M143M 90M

Swap:0B  0B  0B



Certainly no problem to run james-cli.



The I wondering who ate the memory from 106M ???



Btw: I have changed the startup parameter as

root   946   909  9 19:04 pts/400:00:19 
/etc/alternatives/jre_1.8.0/bin/java -XX:+HeapDumpOnOutOfMemoryError -Xms128m 
-Xmx256m …



发送自 Windows 10 版邮件应用



发件人: Bernd Waibel
发送时间: 2016年9月23日 17:50
收件人: James Users List
主题: AW: james-cli failure [unsigned]



Hi,

you have a total of 991 Mb with 790 Mb used.
So you have 69 Mb free, but James want to commit 89 Mb.

And you do not have a swap space.
It seems that your machine do not have enough memory, or other processes do use 
the memory.

Best regards
Bernd Waibel
-Ursprüngliche Nachricht-
Von: li hai ming [mailto:haiming...@outlook.com]
Gesendet: Freitag, 23. September 2016 10:20
An: 'James Users List' 
Betreff: RE: james-cli failure [unsigned]

Thanks.

When James is started, there is no problem to execute james-cli.
But after a while, below memory error occurs.

Someone is eating the memory?

Btw: i have java8 and use ./james/bin/run.sh&. (./james/james start does NOT
work on my server).

Pls also see below <<<.

[@iZ28m97ac83Z bin]$ free -mh
  totalusedfree  shared  buff/cache
available
Mem:   991M790M 69M 50M131M
48M
Swap:0B  0B  0B

-Original Message-
From: Bernd Waibel [mailto:bwai...@intarsys.de]
Sent: Friday, September 23, 2016 15:24
To: James Users List 
Subject: AW: james-cli failure [unsigned]

Hi

no, never had seen this before.
I could only remember: we had a user who wanted to send a very large video
file via mail.
The video was too much for any mail server to be handled.
Most mail servers do have a limit of about 20 MB per mail.

Did James try to handle a large mail (89 MB) in this case of situation?
<<< no. we just started James and are doing some experimental by sending
small emails.

I think I could not help, but maybe recommend:
What surprised me is that 89 Megabyte should be committed.
How much memory do you have? (free -mh).
It could just be a memory problem (not having enough OS memory free).

You could read that:
http://stackoverflow.com/questions/27262629/jvm-cant-map-reserved-memory-whe
n-running-in-docker-container

Best regards
Bernd Waibel

-Ursprüngliche Nachricht-
Von: li hai ming [mailto:haiming...@outlook.com]
Gesendet: Freitag, 23. September 2016 05:58
An: 'server-user' 
Betreff: RE: james-cli failure

Does anyone meet the same problem? any clue on the root cause and the
solution?

From: haiming li [mailto:haiming...@outlook.com]
Sent: Thursday, September 22, 2016 12:25
To: 'server-user' 
Subject: james-cli failure

We have v3-beta4 up and running since yesterday. This morning I got below
error when trying to run james-cli.

[...]$ ./james-cli.sh -h localhost -p  listdomains OpenJDK 64-Bit Server
VM warning: INFO: os::commit_memory(0xeaaa, 89522176, 0) failed;
error='Cannot allocate memory' (errno=12) # # There is insufficient memory
for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 89522176 bytes for
committing reserved memory.
# An error report file with more information is saved as:
# .../apache-james-3.0-beta4/bin/hs_err_pid21130.log



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


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


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



AW: james-cli failure [unsigned]

2016-09-23 Thread Bernd Waibel
Hi,

you have a total of 991 Mb with 790 Mb used.
So you have 69 Mb free, but James want to commit 89 Mb.

And you do not have a swap space.
It seems that your machine do not have enough memory, or other processes do use 
the memory.

Best regards
Bernd Waibel
-Ursprüngliche Nachricht-
Von: li hai ming [mailto:haiming...@outlook.com] 
Gesendet: Freitag, 23. September 2016 10:20
An: 'James Users List' 
Betreff: RE: james-cli failure [unsigned]

Thanks. 

When James is started, there is no problem to execute james-cli.
But after a while, below memory error occurs.

Someone is eating the memory?

Btw: i have java8 and use ./james/bin/run.sh&. (./james/james start does NOT
work on my server).

Pls also see below <<<.

[@iZ28m97ac83Z bin]$ free -mh
  totalusedfree  shared  buff/cache
available
Mem:   991M790M 69M 50M131M
48M
Swap:0B  0B  0B

-Original Message-
From: Bernd Waibel [mailto:bwai...@intarsys.de] 
Sent: Friday, September 23, 2016 15:24
To: James Users List 
Subject: AW: james-cli failure [unsigned]

Hi 

no, never had seen this before. 
I could only remember: we had a user who wanted to send a very large video
file via mail. 
The video was too much for any mail server to be handled.
Most mail servers do have a limit of about 20 MB per mail.

Did James try to handle a large mail (89 MB) in this case of situation?
<<< no. we just started James and are doing some experimental by sending
small emails.

I think I could not help, but maybe recommend:
What surprised me is that 89 Megabyte should be committed.
How much memory do you have? (free -mh).
It could just be a memory problem (not having enough OS memory free).

You could read that:
http://stackoverflow.com/questions/27262629/jvm-cant-map-reserved-memory-whe
n-running-in-docker-container

Best regards
Bernd Waibel

-Ursprüngliche Nachricht-
Von: li hai ming [mailto:haiming...@outlook.com]
Gesendet: Freitag, 23. September 2016 05:58
An: 'server-user' 
Betreff: RE: james-cli failure

Does anyone meet the same problem? any clue on the root cause and the
solution?

From: haiming li [mailto:haiming...@outlook.com]
Sent: Thursday, September 22, 2016 12:25
To: 'server-user' 
Subject: james-cli failure

We have v3-beta4 up and running since yesterday. This morning I got below
error when trying to run james-cli.

[...]$ ./james-cli.sh -h localhost -p  listdomains OpenJDK 64-Bit Server
VM warning: INFO: os::commit_memory(0xeaaa, 89522176, 0) failed;
error='Cannot allocate memory' (errno=12) # # There is insufficient memory
for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 89522176 bytes for
committing reserved memory.
# An error report file with more information is saved as:
# .../apache-james-3.0-beta4/bin/hs_err_pid21130.log



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


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


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



RE: james-cli failure [unsigned]

2016-09-23 Thread li hai ming
Thanks. 

When James is started, there is no problem to execute james-cli.
But after a while, below memory error occurs.

Someone is eating the memory?

Btw: i have java8 and use ./james/bin/run.sh&. (./james/james start does NOT
work on my server).

Pls also see below <<<.

[@iZ28m97ac83Z bin]$ free -mh
  totalusedfree  shared  buff/cache
available
Mem:   991M790M 69M 50M131M
48M
Swap:0B  0B  0B

-Original Message-
From: Bernd Waibel [mailto:bwai...@intarsys.de] 
Sent: Friday, September 23, 2016 15:24
To: James Users List 
Subject: AW: james-cli failure [unsigned]

Hi 

no, never had seen this before. 
I could only remember: we had a user who wanted to send a very large video
file via mail. 
The video was too much for any mail server to be handled.
Most mail servers do have a limit of about 20 MB per mail.

Did James try to handle a large mail (89 MB) in this case of situation?
<<< no. we just started James and are doing some experimental by sending
small emails.

I think I could not help, but maybe recommend:
What surprised me is that 89 Megabyte should be committed.
How much memory do you have? (free -mh).
It could just be a memory problem (not having enough OS memory free).

You could read that:
http://stackoverflow.com/questions/27262629/jvm-cant-map-reserved-memory-whe
n-running-in-docker-container

Best regards
Bernd Waibel

-Ursprüngliche Nachricht-
Von: li hai ming [mailto:haiming...@outlook.com]
Gesendet: Freitag, 23. September 2016 05:58
An: 'server-user' 
Betreff: RE: james-cli failure

Does anyone meet the same problem? any clue on the root cause and the
solution?

From: haiming li [mailto:haiming...@outlook.com]
Sent: Thursday, September 22, 2016 12:25
To: 'server-user' 
Subject: james-cli failure

We have v3-beta4 up and running since yesterday. This morning I got below
error when trying to run james-cli.

[...]$ ./james-cli.sh -h localhost -p  listdomains OpenJDK 64-Bit Server
VM warning: INFO: os::commit_memory(0xeaaa, 89522176, 0) failed;
error='Cannot allocate memory' (errno=12) # # There is insufficient memory
for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 89522176 bytes for
committing reserved memory.
# An error report file with more information is saved as:
# .../apache-james-3.0-beta4/bin/hs_err_pid21130.log



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


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



Re: Problems building James/Cassandra backend

2016-09-23 Thread Matthieu Baechler

Hi Marc,

Thank you for reporting about that.

I created an issue for that : 
https://issues.apache.org/jira/browse/JAMES-1827


I tried to fix the documentation here : 
https://github.com/linagora/james-project/pull/415


Could you check that my PR fixes your problem ?

Regards,

--
Matthieu Baechler

On 09/23/2016 12:03 AM, Marc Chamberlin wrote:
Hi - I was attempting to follow the quick start for Cassandra backend 
guide at https://james.apache.org/server/3/quick-start-cassandra.html 
and ran into troubles in Step 3 - Compile.  Running on OpenSuSE 42.1 
(Leap) and got the following warnings/errors -


Downloaded: 
https://repo.maven.apache.org/maven2/biz/aQute/bnd/bndlib/2.1.0/bndlib-2.1.0.jar 
(1356 KB at 18.2 KB/sec)

[WARNING]
[WARNING] Some problems were encountered while building the effective 
model for org.apache.james:apache-mailet-standard:bundle:2.5.1-SNAPSHOT
[WARNING] 
'dependencies.dependency.(groupId:artifactId:type:classifier)' must be 
unique: org.mockito:mockito-core:jar -> duplicate declaration of 
version (?) @ 
org.apache.james:apache-mailet-standard:[unknown-version], 
/james/docker/james-project/mailet/standard/pom.xml, line 84, column 21

[WARNING]
[WARNING] It is highly recommended to fix these problems because they 
threaten the stability of your build.

[WARNING]
[WARNING] For this reason, future Maven versions might no longer 
support building such malformed projects.

[WARNING]
[ERROR] [ERROR] Could not find the selected project in the reactor: 
server/container/cassandra-guice @
[ERROR] Could not find the selected project in the reactor: 
server/container/cassandra-guice -> [Help 1]

[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with 
the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, 
please read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException



Any ideas what when wrong and what I need to do?   Thanks in 
advance...   Marc...




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




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



AW: james-cli failure [unsigned]

2016-09-23 Thread Bernd Waibel
Hi 

no, never had seen this before. 
I could only remember: we had a user who wanted to send a very large video file 
via mail. 
The video was too much for any mail server to be handled.
Most mail servers do have a limit of about 20 MB per mail.
Did James try to handle a large mail (89 MB) in this case of situation?

I think I could not help, but maybe recommend:
What surprised me is that 89 Megabyte should be committed.
How much memory do you have? (free -mh).
It could just be a memory problem (not having enough OS memory free).

You could read that:
http://stackoverflow.com/questions/27262629/jvm-cant-map-reserved-memory-when-running-in-docker-container

Best regards
Bernd Waibel

-Ursprüngliche Nachricht-
Von: li hai ming [mailto:haiming...@outlook.com] 
Gesendet: Freitag, 23. September 2016 05:58
An: 'server-user' 
Betreff: RE: james-cli failure

Does anyone meet the same problem? any clue on the root cause and the solution?

From: haiming li [mailto:haiming...@outlook.com]
Sent: Thursday, September 22, 2016 12:25
To: 'server-user' 
Subject: james-cli failure

We have v3-beta4 up and running since yesterday. This morning I got below error 
when trying to run james-cli.

[...]$ ./james-cli.sh -h localhost -p  listdomains
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0xeaaa, 
89522176, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 89522176 bytes for committing 
reserved memory.
# An error report file with more information is saved as:
# .../apache-james-3.0-beta4/bin/hs_err_pid21130.log



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