dspace-cris-5.6.X create administrator on the windows 10

478 views
Skip to first unread message

Yen-Tang Chen

unread,
Feb 9, 2017, 1:24:47 AM2/9/17
to DSpace Technical Support
Dear all

I install dspace-cris-5.6.X on the windows 10

step " Administrator Account: Create an initial administrator account"  has been wrong!
dspace create-administrator error message => dspace-cris-5.6.x-create-administrator.png


"Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded"

Although dspace-cris-5.6.x has started successfully , Administrator account is alway failure


I try to use dspace-cris-5.5.0 in the same environment that ([dspace]/bin/dspace create-administrator) is successful (dspace-cris-5.5.0-create-administrator.png)


I don't know why this happened......



 dspace.log Error message (dspace)
 
 
 



Sincerely yours, Yen-Tang Chen



************************************************************************************************
Yen-Tang Chen
Lib. Information Technology Services Div., NTU Library, http://www.lib.ntu.edu.tw/en
office: No. 1, Sec 4, Roosevelt Road, Taipei 10617, Taiwan, R.O.C.
TEL:886-2-33662291
EMAIL:exia...@gmail.com
************************************************************************************************


dspace-cris-5.5.0-create-administrator.png
dspace-cris-5.6.x-create-administrator.png
dspace.log

Pascarelli Luigi Andrea

unread,
Feb 9, 2017, 4:12:18 AM2/9/17
to Yen-Tang Chen, DSpace Technical Support

Dear Yen-Tang Chen,

usually this error appears when build.properties is missing a property. Check your build.properties against the https://github.com/4Science/DSpace/blob/dspace-5_x_x-cris/build.properties

Let me know.

Regards,

Luigi Andrea

--
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To post to this group, send email to dspac...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

-- 
Luigi Andrea Pascarelli

DSpace and DSpace-CRIS Committer

4Science,  www.4science.it 

office: Via Edoardo D'Onofrio 304, 00155 Roma, Italy
tel: +39 333 934 1782
skype: l_a_p82
linkedin: luigiandreapascarelli

an Itway Group Company 
Italy, France, Spain, Portugal, Greece, Turkey, Lebanon, Qatar, U.A.Emirates

====================================
Save a tree. Don't print this e-mail unless it's really necessary.

DISCLAIMER: The information contained in this message is confidential, can be legally protected by local Laws, 
and must be exclusively used by the recipient. The publication, use, distribution, printing or unauthorized copy 
of the content of this message is strictly forbidden and it can be illegal. If you received this message by mistake, 
please destroy it and notify it to the sender.

Yen-Tang Chen

unread,
Feb 9, 2017, 6:31:34 AM2/9/17
to DSpace Technical Support, exia...@gmail.com, LuigiAndrea...@4science.it
Dear Luigi Andrea Pascarelli


Thank you for the information

This is my build.properties
 
 I only change dspace.install.dir , db.url , db.username and db.password on the windows 10
build.properties

Pascarelli Luigi Andrea

unread,
Feb 9, 2017, 6:42:17 AM2/9/17
to Yen-Tang Chen, DSpace Technical Support

Dear Yen-Tang Chen,

at first glance seems correct; Can you send me the output of "ls -rtl" command of the [dspace.dir]/lib ?

Thank you very much.

Regards,

Luigi Andrea

Yen-Tang Chen

unread,
Feb 9, 2017, 7:26:03 PM2/9/17
to DSpace Technical Support, exia...@gmail.com, LuigiAndrea...@4science.it
Dear Luigi Andrea Pascarelli

Sorry for the delay in replying to your message.

I cann't use the output of "ls -rtl" command of the [dspace.dir]/lib on the windows 10.
So I try to use "dir -rtl" command of the [dspace.dir]/lib. (command_windows.png)
The result is " File not found " !!
 
 But I use the output of "ls -rtl" command of the [dspace.dir]/lib om the linux
 The result is successful. (command_linux)
command_windows.png
command_linux.png

Yen-Tang Chen

unread,
Feb 9, 2017, 7:37:35 PM2/9/17
to DSpace Technical Support, exia...@gmail.com, LuigiAndrea...@4science.it
Dear Luigi Andrea Pascarelli



I cann't use the output of "ls -rtl" command of the [dspace.dir]/lib on the windows 10.
So I try to use "dir" command of the [dspace.dir]/lib. (command_windows_001.png~command_windows_005.png)
command_windows_001.png
command_windows_002.png
command_windows_003.png
command_windows_004.png
command_windows_005.png
windows_001.png

Pascarelli Luigi Andrea

unread,
Feb 10, 2017, 10:06:50 AM2/10/17
to Yen-Tang Chen, DSpace Technical Support
Dear Yea-Tang Chen,

probably you have a very memory-constrained environment. Please, check
and share details of memory of your system (RAM, swap, etc...) and if
exist JAVA_OPTS environment variable.

Please, share also CATALINA_OPTS environment variable (if exist). This
information is usefull to determine the amount of memory dedicated to
Tomcat.

In fact a test to do is trying to stop Tomcat process and launch the
create-administrator script, just to figure out if there is enough
available memory.

Regards,

Luigi Andrea

Yen-Tang Chen

unread,
Feb 13, 2017, 2:49:05 AM2/13/17
to DSpace Technical Support, exia...@gmail.com, LuigiAndrea...@4science.it
Dear Luigi Andrea Pascarelli


My colleague create administrator successfully on the windows 7.

This is my colleague Environment settings

windows 7
JAVA_HOME = jdk_1.7.0_79
JAVA_OPTS = -Xms1024m -Xmx2048m
tomcat 8 (use jdk_1.8.0_111)

(cpu_memory.png, windows 7, java.png, Solr Admin.png)


But I still create administrator fail  on the windows

This is my Environment settings
windows 10
JAVA_HOME = jdk_1.7.0_79
JAVA_OPTS = -Xms1024m -Xmx2048m
tomcat 7 (use jdk_1.7.0_79)

(Solr Admin_me.png, tomcat7.png, memory.png)

I don't set up CATALINA_OPTS environment variable

Do you have recommend windows environment?
java , tomcat version, JAVA_OPTS, etc....
cpu_memory.png
java.png
Solr Admin.png
windows 7.png
Solr Admin_me.png
tomcat7.png
memory.png

Pascarelli Luigi Andrea

unread,
Feb 14, 2017, 10:38:05 AM2/14/17
to Yen-Tang Chen, DSpace Technical Support
Sorry, but I don't realize what is the problem. I'm using Windows 10 and I never had this issue.

Actually I use jdk1.8.0_91 and Tomcat 8.0.38 version. Usually I never setup JAVA_OPTS, but I'm using CATALINA_OPTS for Tomcat and for batch script the default settings of "dspace" script. Try it, please.

Another suggestion is to use an advanced command line for Windows like the one provided by https://www.cygwin.com/


Let me know.

Regards,

Luigi Andrea

Yen-Tang Chen

unread,
Feb 15, 2017, 12:35:20 AM2/15/17
to DSpace Technical Support, exia...@gmail.com, LuigiAndrea...@4science.it
Dear Luigi Andrea Pascarelli


Thank you for all your assistance

I have followed your advice that I try to use cygwin create-administrator on the windows 10
It does create-administrator successful
I use cygwin mvn package, ant fresh_install that I use cmd create-administrator successful. (dspace create-administrator_001.png)

but I cann't use cygwin create-administrator (dspace create-administrator.png)
cygwin Error message : Can not find or can not load the main category org.dspace.app.launcher.ScriptLauncher
I have no clue.


Thank you again for everything you’ve done
dspace create-administrator.png
dspace create-administrator_001.png

Pascarelli Luigi Andrea

unread,
Feb 15, 2017, 5:15:56 AM2/15/17
to Yen-Tang Chen, DSpace Technical Support

Dear Yen-Tang Chen,

cygwin is only a tool to help you in shell scripting, but in this case i think that it added a bit of confusion.

In any case if you want use this command line tool follow http://www.inonit.com/cygwin/faq/

In your case edit "dspace" script and replace the last line with:

java $JAVA_OPTS -classpath `cygpath -wp $FULLPATH` org.dspace.app.launcher.ScriptLauncher "$@"

Regards,

Luigi Andrea

julius...@tuwien.ac.at

unread,
Apr 18, 2018, 8:34:41 AM4/18/18
to DSpace Technical Support
hello

i experienced the same problem as described in this thread. When trying to create a administrator from the comand line i do get:

Using DSpace installation in: c:\crisdspace
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space



Any dspace command from the command line produces:

Using DSpace installation in: C:\crisdspace
Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
        at java.util.Arrays.copyOf(Unknown Source)
        at java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source)
        at java.lang.AbstractStringBuilder.append(Unknown Source)
        at java.lang.StringBuffer.append(Unknown Source)
        at org.apache.log4j.helpers.PatternParser$LiteralPatternConverter.format(PatternParser.java:419)
        at org.apache.log4j.PatternLayout.format(PatternLayout.java:506)
        at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:310)
        at org.dspace.app.util.DailyFileAppender.subAppend(DailyFileAppender.java:195)
        at org.apache.log4j.WriterAppender.append(WriterAppender.java:162)
        at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
        at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
        at org.apache.log4j.Category.callAppenders(Category.java:206)
        at org.apache.log4j.Category.forcedLog(Category.java:391)
        at org.apache.log4j.Category.log(Category.java:856)
        at org.slf4j.impl.Log4jLoggerAdapter.log(Log4jLoggerAdapter.java:595)
        at org.apache.commons.logging.impl.SLF4JLocationAwareLog.info(SLF4JLocationAwareLog.java:155)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:444)
        at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1096)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:492)
        at org.dspace.servicemanager.spring.SpringServiceManager.startup(SpringServiceManager.java:221)
        at org.dspace.servicemanager.DSpaceServiceManager.startup(DSpaceServiceManager.java:212)
        at org.dspace.servicemanager.DSpaceKernelImpl.start(DSpaceKernelImpl.java:153)
        at org.dspace.servicemanager.DSpaceKernelImpl.start(DSpaceKernelImpl.java:128)
        at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:50)



My setup:
Windows 10
dspace-cris-6
JDK : 1.8.x
Tomcat: 8.x

Any hint how this can be solved would be welcomed.

Kind regards

Julius

Claudia Jürgen

unread,
Apr 18, 2018, 8:40:01 AM4/18/18
to dspac...@googlegroups.com
Hallo Julius,

take a look at:
https://wiki.duraspace.org/display/DSDOC5x/Performance+Tuning+DSpace
which should be applicable to CRIS too.

Sonnige Grüße

Claudia Jürgen
>> EMAIL:exia...@gmail.com <javascript:>
>>
>> ************************************************************************************************
>>
>>
>> --
>> Luigi Andrea Pascarelli
>>
>> DSpace and DSpace-CRIS Committer
>>
>> 4Science, www.4science.it
>>
>> office: Via Edoardo D'Onofrio 304, 00155 Roma, Italy
>> tel: +39 333 934 1782
>> skype: l_a_p82
>> linkedin: luigiandreapascarelli
>>
>> an Itway Group Company
>> Italy, France, Spain, Portugal, Greece, Turkey, Lebanon, Qatar, U.A.Emirates
>>
>> ====================================
>> Save a tree. Don't print this e-mail unless it's really necessary.
>>
>> DISCLAIMER: The information contained in this message is confidential, can be legally protected by local Laws,
>> and must be exclusively used by the recipient. The publication, use, distribution, printing or unauthorized copy
>> of the content of this message is strictly forbidden and it can be illegal. If you received this message by mistake,
>> please destroy it and notify it to the sender.
>>
>>

--
Claudia Juergen
Eldorado

Technische Universität Dortmund
Universitätsbibliothek
Vogelpothsweg 76
44227 Dortmund

Tel.: +49 231-755 40 43
Fax: +49 231-755 40 32
claudia...@tu-dortmund.de
www.ub.tu-dortmund.de

Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie ist ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der für diese E-Mail bestimmte Adressat sein, unterrichten Sie bitte den Absender und vernichten Sie diese Mail. Vielen Dank.
Unbeschadet der Korrespondenz per E-Mail, sind unsere Erklärungen ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher Schriftform (mit eigenhändiger Unterschrift) oder durch Übermittlung eines solchen Schriftstücks per Telefax erfolgen.

Important note: The information included in this e-mail is confidential. It is solely intended for the recipient. If you are not the intended recipient of this e-mail please contact the sender and delete this message. Thank you. Without prejudice of e-mail correspondence, our statements are only legally binding when they are made in the conventional written form (with personal signature) or when such documents are sent by fax.

julius...@tuwien.ac.at

unread,
Apr 18, 2018, 10:23:55 AM4/18/18
to DSpace Technical Support
hallo Claudia 

thanks for the hint. Even giving the dspace comannd line tool 4 Gig of RAM did not solve the problem. A normal dspace install (without cris) works fine. Interestingly enough if i deploy the cris-dsapce webapps to tomcat they do work. Any idea?

julius...@tuwien.ac.at

unread,
May 3, 2018, 6:23:54 AM5/3/18
to DSpace Technical Support
hi Claudia

giving the command line tool more ram as you suggested did the trick. Now everything works fine. The reason it didn't work in the first place was a syntax error that i  had in my dspace.bat file. 

Thanks for your help

Julius


Am Mittwoch, 18. April 2018 14:40:01 UTC+2 schrieb Claudia Jürgen:
Reply all
Reply to author
Forward
0 new messages