[Dspace-tech] Problem update Mirage 2 in DSpace 5.x

272 views
Skip to first unread message

Carlos Walter Blandon Alvarez

unread,
Aug 26, 2015, 1:50:47 PM8/26/15
to dspac...@lists.sourceforge.net
Hi everybody.

I try to upgrade Dspace 5. I Install prerequisites for OSX / Linux (https://github.com/DSpace/DSpace/tree/master/dspace-xmlui-mirage2)

Then I execute the next command to build Dspace:

"mvn -U clean package -Dmirage2.on=true -Dmirage2.deps.included=false"

But it gives me the next error for Mirage 2.

[INFO] ------ (Mirage2) org.codehaus.mojo:exec-maven-plugin:1.3.1:exec
npm WARN package.json Mir...@0.1.1 No description
npm WARN package.json Mir...@0.1.1 No repository field.
npm WARN package.json Mir...@0.1.1 No README data
npm WARN cannot run in wd Mir...@0.1.1 bower install (wd=/usr/java/dspace-5.0-src-release/dspace/modules/xmlui-mirage2/target/themes/Mirage2)
[INFO] ------ (Mirage2) org.codehaus.mojo:exec-maven-plugin:1.3.1:exec
Running "copy:classic_mirage_color_scheme" (copy) task
Copied 1 files

Running "compass:prod" (compass) task
error styles/main.scss (Line 16: File to import not found or unreadable: ../vendor/bootstrap-sass-official/assets/stylesheets/bootstrap.
Load paths:
Compass::SpriteImporter
/usr/java/dspace-5.0-src-release/dspace/modules/xmlui-mirage2/target/themes/Mirage2/styles
/usr/local/rvm/gems/ruby-2.2.0/gems/compass-core-1.0.3/stylesheets)
Compilation failed in 1 files.


Regards,

Walter Blandón
Profesional-Analista Gestión Tecnológica
Centro Cultural Biblioteca LEV
Teléfono (57 4) 261 9500, extensión 9365
cbla...@eafit.edu.co


sn...@buntblock.de

unread,
Aug 26, 2015, 1:51:02 PM8/26/15
to dspac...@lists.sourceforge.net

Hi Carlos,

are you running the mvn command as root ?

When running 'bower' as root user you will get this message:
_________________________________________________________________________
bower ESUDO Cannot be run with sudo

Additional error details:
Since bower is a user command, there is no need to execute it with
superuser permissions.
If you're having permission errors when using bower without sudo,
please spend a few minutes learning more about how your system should
work and make any necessary repairs.

http://www.joyent.com/blog/installing-node-and-npm
https://gist.github.com/isaacs/579814

You can however run a command with sudo using --allow-root option
_________________________________________________________________________

The result for the mirage2theme build is that all vendor addons ,
specified in .bowerrc are missing.

"bootstrap-sass-official": "3.3.0",
"modernizr": "2.8.3",
"jquery": "~1.10.2",
"jquery-ui": "1.10.3",
"jqueryuibootstrap": "4f3772cd37b898f456c0126c4b44178ce8d4aad7",
"handlebars": "2.0.0",
"respond": "1.4.2",
"html5shiv": "3.7.2",
"holderjs": "2.4.1",
"datatables": "1.10.3"

If you are not root user, then it might be a different problem.


If this is correct it could be mentioned in the docs for mirage2theme.


good luck

snemi


Carlos Walter Blandon Alvarez

unread,
Aug 26, 2015, 1:51:10 PM8/26/15
to sn...@buntblock.de, dspac...@lists.sourceforge.net
Hi snemi.

I am working as root and I get the lines you mention with "bower" command.

the .bowerrc file have only the next lines
[dspace-source]/dspace-xmlui-mirage2/src/main/webapp/.bowerrc

{
"directory": "vendor"
}

Any solution?


Thanks.

Walter Blandón
Profesional-Analista Gestión Tecnológica
Centro Cultural Biblioteca LEV
Teléfono (57 4) 261 9500, extensión 9365
cbla...@eafit.edu.co


-----Mensaje original-----
De: sn...@buntblock.de [mailto:sn...@buntblock.de]
Enviado el: jueves, 22 de enero de 2015 8:11 a. m.
Para: dspac...@lists.sourceforge.net
Asunto: Re: [Dspace-tech] Problem update Mirage 2 in DSpace 5.x
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
DSpace-tech mailing list
DSpac...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

helix84

unread,
Aug 26, 2015, 1:51:11 PM8/26/15
to Carlos Walter Blandon Alvarez, dspac...@lists.sourceforge.net
Hi Carlos,

it should be easier running without " -Dmirage2.deps.included=false".


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Carlos Walter Blandon Alvarez

unread,
Aug 26, 2015, 1:51:16 PM8/26/15
to hel...@centrum.sk, dspac...@lists.sourceforge.net
Hi helix84

I ran with " -Dmirage2.deps.included=false" because I previously installed Bower, Grunt, Ruby and Compass.

I am running again "mvn -U clean package -Dmirage2.on=true" with root user. It finished build process but some errors, for example:

[INFO] ------ (Mirage2) de.saumya.mojo:gem-maven-plugin:1.0.6:exec
[WARNING] Compass can't find any Sass files to compile.
[WARNING] Is your compass configuration correct?.
[WARNING] If you're trying to start a new project, you have left off the directory argument.
[WARNING] Run "compass -h" to get help.
[ERROR] PluginManagerException:
org.apache.maven.plugin.PluginExecutionException: Execution null of goal de.saumya.mojo:gem-maven-plugin:1.0.6:exec failed: Java returned: 1
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:115)
at com.soebes.maven.plugins.iterator.ExecutorMojo.executeMojo(ExecutorMojo.java:302)
at com.soebes.maven.plugins.iterator.ExecutorMojo.execute(ExecutorMojo.java:235)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)


Thanks.

Walter Blandón

Profesional-Analista Gestión Tecnológica
Centro Cultural Biblioteca LEV
Teléfono (57 4) 261 9500, extensión 9365
cbla...@eafit.edu.co


-----Mensaje original-----
De: ivan....@gmail.com [mailto:ivan....@gmail.com] En nombre de helix84
Enviado el: jueves, 22 de enero de 2015 11:10 a. m.
Para: Carlos Walter Blandon Alvarez
CC: dspac...@lists.sourceforge.net
Asunto: Re: [Dspace-tech] Problem update Mirage 2 in DSpace 5.x

sn...@buntblock.de

unread,
Aug 26, 2015, 1:57:03 PM8/26/15
to dspac...@lists.sourceforge.net
Hi Carlos,

as i mentioned before, please run it with a regular user account and
not as root.
"mvn -U clean package -Dmirage2.on=true"

good luck

snemi



Zitat von Carlos Walter Blandon Alvarez <cbla...@eafit.edu.co>:

Tim Donohue

unread,
Aug 26, 2015, 1:57:21 PM8/26/15
to dspac...@lists.sourceforge.net
Thanks for the notes on this snemi!

For now, I've added a warning about building Mirage 2 as "root" to the
DSpace 5 documentation.

https://wiki.duraspace.org/display/DSDOC5x/Mirage+2+Configuration+and+Customization#Mirage2ConfigurationandCustomization-CommonBuildIssues

It's also been linked over to the DSpace 5 Install & Upgrade
instructions on the wiki.

- Tim

Carlos Walter Blandon Alvarez

unread,
Aug 26, 2015, 1:58:51 PM8/26/15
to dspac...@lists.sourceforge.net
Hi.

I ran the command as you I would suggest. But I see the following errors, however the process ends well. I have not executed "and update" command:

[INFO] /usr/java/dspace-5.0-src-release/dspace/modules/xmlui-mirage2/target/themes/Mirage2/node/node: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
[ERROR] MojoFailureException:
org.apache.maven.plugin.MojoFailureException: Failed to run task
at com.github.eirslett.maven.plugins.frontend.mojo.NpmMojo.execute(NpmMojo.java:45)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
at com.soebes.maven.plugins.iterator.ExecutorMojo.executeMojo(ExecutorMojo.java:302)
at com.soebes.maven.plugins.iterator.ExecutorMojo.execute(ExecutorMojo.java:235)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: com.github.eirslett.maven.plugins.frontend.lib.TaskRunnerException: 'npm install --color=false' failed. (error code 127)
at com.github.eirslett.maven.plugins.frontend.lib.NodeTaskExecutor.execute(NodeTaskExecutor.java:38)
at com.github.eirslett.maven.plugins.frontend.mojo.NpmMojo.execute(NpmMojo.java:43)
... 24 more
[INFO] ------ (Mirage2) com.github.eirslett:frontend-maven-plugin:0.0.16:grunt
[INFO] Running 'grunt classic_mirage_color_scheme no-compass-prod --no-color' in /usr/java/dspace-5.0-src-release/dspace/modules/xmlui-mirage2/target/themes/Mirage2
[INFO] /usr/java/dspace-5.0-src-release/dspace/modules/xmlui-mirage2/target/themes/Mirage2/node/node: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
[ERROR] MojoFailureException:
org.apache.maven.plugin.MojoFailureException: Failed to run task
at com.github.eirslett.maven.plugins.frontend.mojo.GruntMojo.execute(GruntMojo.java:36)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
at com.soebes.maven.plugins.iterator.ExecutorMojo.executeMojo(ExecutorMojo.java:302)
at com.soebes.maven.plugins.iterator.ExecutorMojo.execute(ExecutorMojo.java:235)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: com.github.eirslett.maven.plugins.frontend.lib.TaskRunnerException: 'grunt classic_mirage_color_scheme no-compass-prod --no-color' failed. (error code 127)
at com.github.eirslett.maven.plugins.frontend.lib.NodeTaskExecutor.execute(NodeTaskExecutor.java:38)
at com.github.eirslett.maven.plugins.frontend.mojo.GruntMojo.execute(GruntMojo.java:34)
... 24 more
[INFO] ------ (Mirage2) de.saumya.mojo:gem-maven-plugin:1.0.6:exec
[WARNING] Compass can't find any Sass files to compile.
[WARNING] Is your compass configuration correct?.
[WARNING] If you're trying to start a new project, you have left off the directory argument.
[WARNING] Run "compass -h" to get help.
[ERROR] PluginManagerException:
org.apache.maven.plugin.PluginExecutionException: Execution null of goal de.saumya.mojo:gem-maven-plugin:1.0.6:exec failed: Java returned: 1
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:143)
at com.soebes.maven.plugins.iterator.ExecutorMojo.executeMojo(ExecutorMojo.java:302)
at com.soebes.maven.plugins.iterator.ExecutorMojo.execute(ExecutorMojo.java:235)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: Java returned: 1
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:87)
at de.saumya.mojo.ruby.script.AntLauncher.doExecute(AntLauncher.java:107)
at de.saumya.mojo.ruby.script.AntLauncher.executeIn(AntLauncher.java:141)
at de.saumya.mojo.ruby.script.Script.executeIn(Script.java:108)
at de.saumya.mojo.gem.ExecMojo.executeWithGems(ExecMojo.java:106)
at de.saumya.mojo.gem.AbstractGemMojo.executeJRuby(AbstractGemMojo.java:469)
at de.saumya.mojo.jruby.AbstractJRubyMojo.execute(AbstractJRubyMojo.java:298)
at de.saumya.mojo.gem.AbstractGemMojo.execute(AbstractGemMojo.java:222)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
... 23 more
[INFO]


Regards,

Walter Blandón
Profesional-Analista Gestión Tecnológica
Centro Cultural Biblioteca LEV
Teléfono (57 4) 261 9500, extensión 9365
cbla...@eafit.edu.co

Carrera 49 N° 7 sur – 50, Medellín – Colombia
Línea de atención al usuario: (57 4) 4489500  www.eafit.edu.co
· Inspira Crea Transforma ·


-----Mensaje original-----
De: sn...@buntblock.de [mailto:sn...@buntblock.de]
Enviado el: viernes, 23 de enero de 2015 4:49 a. m.
Para: dspac...@lists.sourceforge.net
Asunto: Re: [Dspace-tech] Problem update Mirage 2 in DSpace 5.x

Hi Carlos,

Carlos Walter Blandon Alvarez

unread,
Aug 26, 2015, 1:59:26 PM8/26/15
to dspac...@lists.sourceforge.net
Hi.

Attach image with Mirage 2 activate. What can be happening?


Regards,

Walter Blandón
Profesional-Analista Gestión Tecnológica
Centro Cultural Biblioteca LEV
Teléfono (57 4) 261 9500, extensión 9365
cbla...@eafit.edu.co

Carrera 49 N° 7 sur – 50, Medellín – Colombia
Línea de atención al usuario: (57 4) 4489500  www.eafit.edu.co
· Inspira Crea Transforma ·


-----Mensaje original-----
De: Carlos Walter Blandon Alvarez [mailto:cbla...@eafit.edu.co]
Enviado el: martes, 03 de febrero de 2015 11:40 a. m.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/
Mirage2.jpg

Carlos Walter Blandon Alvarez

unread,
Aug 26, 2015, 2:00:15 PM8/26/15
to dspac...@lists.sourceforge.net
Problem solved!

I reviewed the documentation again and just missing to update "git" in the server. I then ran “maven”and “ant” again and "Mirage 2 theme" display it fine.


Thanks.

Walter Blandón
Profesional-Analista Gestión Tecnológica
Centro Cultural Biblioteca LEV
Teléfono (57 4) 261 9500, extensión 9365
cbla...@eafit.edu.co

Carrera 49 N° 7 sur – 50, Medellín – Colombia
Línea de atención al usuario: (57 4) 4489500  www.eafit.edu.co
· Inspira Crea Transforma ·


-----Mensaje original-----
De: Carlos Walter Blandon Alvarez [mailto:cbla...@eafit.edu.co]
Enviado el: jueves, 05 de febrero de 2015 9:40 a. m.
Reply all
Reply to author
Forward
0 new messages