Compilation error: java.io.IOException: Cannot run program "cp": java.io.IOException: error=12, Cannot allocate memory

114 views
Skip to first unread message

Ulf

unread,
Nov 7, 2010, 7:18:36 AM11/7/10
to EtherPad Open Source Discussion
Hi everyone.

I’m almost giving up, this will be my last try: I try to compile
Etherpad on my OpenVZ server. It’s running a Debian 5.0 as the host
system, in the VE I’ve got Ubuntu 10.04. I installed Etherpad in this
VE with the instructions from the official Ubuntu Wiki:
https://wiki.ubuntu.com/Etherpad.

Everything runs fine until it comes to compilation. After calling bin/
build.sh as described in the wiki the first steps are running fine.
But then I’m running into a memory error:

java.io.IOException: Cannot run program "cp": java.io.IOException:
error=12, Cannot allocate memory
Well, I understand the error message but don’t see the cause. The
command free tells me that there’s plenty memory left in this VE:

total used free shared buffers
cached
Mem: 2415236 1140872 1274364 0
0 0
-/+ buffers/cache: 1140872 1274364
Swap: 0 0 0

Beautiful. But even repeating the compilation process doesn’t bring me
any further.

Any help would be appreciated.

John McLear

unread,
Nov 7, 2010, 8:27:07 AM11/7/10
to EtherPad Open Source Discussion
you need swap space for etherpad

google search for etherpad minimum requirements.

Ulf

unread,
Nov 7, 2010, 9:12:59 AM11/7/10
to EtherPad Open Source Discussion
OK, I managed to add swap space to my VE:

total used free shared buffers
cached
Mem: 4025396 2602484 1422912 0 62164
1048164
-/+ buffers/cache: 1492156 2533240
Swap: 4200888 0 4200888

Another call of the build script results in this error:

Cannot start compilation daemon.
tried command: scala scala.tools.nsc.CompileServer
Cannot start compilation daemon.
tried command: scala scala.tools.nsc.CompileServer
Exception in thread "main" java.lang.Exception: fsc failure

Noel

unread,
Nov 7, 2010, 9:28:44 AM11/7/10
to etherpad-open-...@googlegroups.com
Have you tried installing the apt package?

this was recently fixed. new source is

deb http://apt.etherpad.org all .

Ulf

unread,
Nov 7, 2010, 10:02:23 AM11/7/10
to EtherPad Open Source Discussion
I actually did. My installation is more or less 1 day old. And I used
the mentioned APT package.


On 7 Nov., 15:28, Noel <wwydi...@gmail.com> wrote:
> Have you tried installing the apt package?
>
> this was recently fixed.  new source is
>
> debhttp://apt.etherpad.orgall .

Ulf

unread,
Nov 22, 2010, 8:43:47 PM11/22/10
to EtherPad Open Source Discussion
Well, I’m giving up. Here’s the complete output I got running the
build.sh script:

unzipping JARs...
making cached JAR....
compiling...
compiling with 'fsc'...
compiling common...
Note: net.appjet.common/util/HttpServletRequestFactory.java uses or
overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: net.appjet.common/util/HttpServletRequestFactory.java uses
unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
compiling sars...
compiling cli...
done with cli
compiling rhino abstraction...
warning: there were deprecation warnings; re-run with -deprecation for
details
one warning found
compiling appserver source...
warning: there were deprecation warnings; re-run with -deprecation for
details
warning: there were unchecked warnings; re-run with -unchecked for
details
two warnings found
compiling ajstdlib...
warning: there were deprecation warnings; re-run with -deprecation for
details
one warning found
compilng etherpad...
compiling ooservice...
copying files...
obfuscating...
building javascript classfiles...
done.
copying cached JAR...
making JAR...
cleaning up...
done.
java.io.IOException: Cannot run program "cp": java.io.IOException:
error=12, Cannot allocate memory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:431)
at java.lang.Runtime.exec(Runtime.java:328)
at Main$$anon$2.copyFile$1((virtual file):252)
at Main$$anon$2.doMake((virtual file):263)
at Main$$anon$2.<init>((virtual file):337)
at Main$.main((virtual file):4)
at Main.main((virtual file))
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at scala.tools.nsc.ObjectRunner$$anonfun$run
$1.apply(ObjectRunner.scala:75)
at scala.tools.nsc.ObjectRunner
$.withContextClassLoader(ObjectRunner.scala:49)
at scala.tools.nsc.ObjectRunner$.run(ObjectRunner.scala:74)
at scala.tools.nsc.ScriptRunner$.scala$tools$nsc$ScriptRunner$
$runCompiled(ScriptRunner.scala:381)
at scala.tools.nsc.ScriptRunner$$anonfun$runScript
$1.apply(ScriptRunner.scala:414)
at scala.tools.nsc.ScriptRunner$$anonfun$runScript
$1.apply(ScriptRunner.scala:413)
at scala.tools.nsc.ScriptRunner
$.withCompiledScript(ScriptRunner.scala:351)
at scala.tools.nsc.ScriptRunner$.runScript(ScriptRunner.scala:413)
at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:
168)
at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)
Caused by: java.io.IOException: java.io.IOException: error=12, Cannot
allocate memory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 22 more

Maybe this is of any help. Don’t know what else to do. Can someone
please help me?
Reply all
Reply to author
Forward
0 new messages