Quantcast

Extreme frustration: installing dspace on amazon ec2

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Extreme frustration: installing dspace on amazon ec2

nick-2
Comrades:

As unreasonable as it sounds, I have spent more than 80 hours trying to get dspace 1.8.2 installed on an Amazon amzn-ami-pv-2012.09.0.x86_64-ebs instance.

What I have downloaded and installed:
apache-maven-3.0.4
apache-ant-1.8.4
apache-tomcat-6.0.36

The postgres user inits and starts the database.

The dspace user is created, both as a postgres user and as a (Linux) system user.

I unzip dspace-1.8.2 into /var/project.

While in the dspace-1.8.2-release/dspace directory,  I call mvn package, but it says that the project does not have a pom.xml file, which of course it does, right there in the current directory.  In desperation, I run the mvn as root (all of the postings say that it has to be run by the "dspace" user), and it proceeds downloading for about four minutes, but I suspect problems when the last line of the cascade of message from maven is "Cannot include project artifact: org.dspace:dspace:pom:1.8.2; it doesn't have an associated file or directory." and "The following patterns were never triggered in this artifact exclusion filter: ":war:"

(Keeping in mind that I have taken 20 or 30 or more paths through the various combinations of sudo and su and cd and init and createuser and adduser, this is just the latest) -- When I now run ant fresh_install, I get "Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/lib/tools.jar.  Buildfile: ..dspace-1.8.2-release/dspace/target/dspace-1.8.2-build/build.xml"  init_installation:  BUILD FAILED

The "process" can't find the pom.xml, it can't find tools.jar, and I'm not sure what else is wrong....

I will pay someone who will reveal the secret(s) of getting dspace 1.8.2 installed on an amazon ec2 instance.  None of the dozen or so "recipes" I have found on the Internet work.

Nick


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Dspace-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dspace-general
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Extreme frustration: installing dspace on amazon ec2

helix84
Hi Nick,

I don't have the time right now to try installing DSpace on Amazon
(though I'd love to try that some time), but at least I'll respond
with some observations, hopefully they'll help you.

On Tue, Oct 30, 2012 at 11:15 PM,  <[hidden email]> wrote:
> amzn-ami-pv-2012.09.0.x86_64-ebs

Where can I find details about what kind of system this is?

> What I have downloaded and installed:
> apache-maven-3.0.4
> apache-ant-1.8.4
> apache-tomcat-6.0.36

Although docs for 1.8 say 2.2.x or above is fine, I'd try it with
2.2.1, simply because most people likely used it at that time.

> While in the dspace-1.8.2-release/dspace directory,  I call mvn package, but
> it says that the project does not have a pom.xml file, which of course it
> does, right there in the current directory.  In desperation, I run the mvn
> as root (all of the postings say that it has to be run by the "dspace"
> user), and it proceeds downloading for about four minutes, but I suspect
> problems when the last line of the cascade of message from maven is "Cannot
> include project artifact: org.dspace:dspace:pom:1.8.2; it doesn't have an
> associated file or directory." and "The following patterns were never
> triggered in this artifact exclusion filter: ":war:"

The [dspace-src] and [dspace] directories should be owned and mvn/ant
run as the same user Tomcat runs under. If you were building it as
root, then your local maven cache is in /root/.m2.

Remember that if you want a really clean start, you have to run "mvn
clean" and move away your local maven repository (~/.m2). I'd also
delete the [dspace-src] directory and re-extract it just to make sure
there aren't files owned by any other user.

How did you get the 1.8.2 source? SVN/GIT/tarball? Link?

> (Keeping in mind that I have taken 20 or 30 or more paths through the
> various combinations of sudo and su and cd and init and createuser and
> adduser, this is just the latest) -- When I now run ant fresh_install, I get
> "Unable to locate tools.jar. Expected to find it in
> /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/lib/tools.jar.  Buildfile:
> ..dspace-1.8.2-release/dspace/target/dspace-1.8.2-build/build.xml"
> init_installation:  BUILD FAILED

Being able to run ant means that very likely you managed to run maven
successfully!

This particular error pertains to OpenJDK, not DSpace. Try installing
again the latest version of OpenJDK 6 and make sure it's not just JRE,
but JDK!

> I will pay someone who will reveal the secret(s) of getting dspace 1.8.2
> installed on an amazon ec2 instance.  None of the dozen or so "recipes" I
> have found on the Internet work.

I may not have time to get familiar with EC2, prepare the environment
and build DSpace, but if you give me SSH access, I can try doing the
build and fixing your environment.


Regards,
~~helix84

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

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Dspace-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dspace-general
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Extreme frustration: installing dspace on amazon ec2

Yunus Acikoz
In reply to this post by nick-2
Hi Nick,

I recently installed Dspace on an Amazon ec2 instance. Have you installed Oracle Java 6 as suggested? I got a similar error at one of my trials, I guess it was because I didn't set JAVA_HOME variable correctly. Did you check that? Also the folder where it tries to find tools.jar?

Yunus

On Wed, Oct 31, 2012 at 12:15 AM, <[hidden email]> wrote:
Comrades:

As unreasonable as it sounds, I have spent more than 80 hours trying to get dspace 1.8.2 installed on an Amazon amzn-ami-pv-2012.09.0.x86_64-ebs instance.

What I have downloaded and installed:
apache-maven-3.0.4
apache-ant-1.8.4
apache-tomcat-6.0.36

The postgres user inits and starts the database.

The dspace user is created, both as a postgres user and as a (Linux) system user.

I unzip dspace-1.8.2 into /var/project.

While in the dspace-1.8.2-release/dspace directory,  I call mvn package, but it says that the project does not have a pom.xml file, which of course it does, right there in the current directory.  In desperation, I run the mvn as root (all of the postings say that it has to be run by the "dspace" user), and it proceeds downloading for about four minutes, but I suspect problems when the last line of the cascade of message from maven is "Cannot include project artifact: org.dspace:dspace:pom:1.8.2; it doesn't have an associated file or directory." and "The following patterns were never triggered in this artifact exclusion filter: ":war:"

(Keeping in mind that I have taken 20 or 30 or more paths through the various combinations of sudo and su and cd and init and createuser and adduser, this is just the latest) -- When I now run ant fresh_install, I get "Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/lib/tools.jar.  Buildfile: ..dspace-1.8.2-release/dspace/target/dspace-1.8.2-build/build.xml"  init_installation:  BUILD FAILED

The "process" can't find the pom.xml, it can't find tools.jar, and I'm not sure what else is wrong....

I will pay someone who will reveal the secret(s) of getting dspace 1.8.2 installed on an amazon ec2 instance.  None of the dozen or so "recipes" I have found on the Internet work.

Nick


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Dspace-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dspace-general



------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Dspace-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dspace-general
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Extreme frustration: installing dspace on amazon ec2

helix84
On Wed, Oct 31, 2012 at 11:01 AM, Yunus Acikoz <[hidden email]> wrote:
> I recently installed Dspace on an Amazon ec2 instance. Have you installed
> Oracle Java 6 as suggested? I got a similar error at one of my trials, I
> guess it was because I didn't set JAVA_HOME variable correctly. Did you
> check that? Also the folder where it tries to find tools.jar?

Yes, exactly. Either you have JRE installed instead of JDK (which
seemed odd) or, more likely, you have correctly both installed, but
JRE is found, not JDK, so you need to set your JAVA_HOME to point to
JDK.


Regards,
~~helix84

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

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Dspace-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dspace-general
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Extreme frustration: installing dspace on amazon ec2

nick-2
In reply to this post by nick-2
Comrades:

I was able to get dspace installed and running on my Amazon ec2 instance.
The primary obstacles turned out to be these:

1. I had to install Oracle's jdk(1.6.0_37) and then use the "alternatives" apparatus to change the symlinks in /etc/alternatives  to point to the Oracle jdk/jre.

2. Besides re-running maven and ant as the "dspace" user (which I had done before, but been crossed by other issues), I had to "chown dspace" several files and directories somewhat randomly distributed throughout the system, before tomcat could run free. One may or may not have been /sbin/runuser.  I mention that one only as an example of the non-"dspace"-tree location of some of them.  I was rather flailing around then, taking clues from the maven/ant output, so that I don't have a record of what all was chown'ed.

And indeed, export JAVA_HOME was an issue, which I had earlier resolved by a script in /etc/profile.d, although with four different users involved (root, ec2-user (the initial Amazon-created user), postgres, and dspace), that was doomed...  

 
Thank you all for your attention and suggestions.

Nick


-------- Original Message --------
Subject: Re: [Dspace-general] Extreme frustration: installing dspace on
amazon ec2
From: helix84 <[hidden email]>
Date: Wed, October 31, 2012 3:19 am
To: [hidden email]
Cc: Yunus Acikoz <[hidden email]>,
[hidden email]

On Wed, Oct 31, 2012 at 11:01 AM, Yunus Acikoz <[hidden email]> wrote:
> I recently installed Dspace on an Amazon ec2 instance. Have you installed
> Oracle Java 6 as suggested? I got a similar error at one of my trials, I
> guess it was because I didn't set JAVA_HOME variable correctly. Did you
> check that? Also the folder where it tries to find tools.jar?

Yes, exactly. Either you have JRE installed instead of JDK (which
seemed odd) or, more likely, you have correctly both installed, but
JRE is found, not JDK, so you need to set your JAVA_HOME to point to
JDK.


Regards,
~~helix84

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

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Dspace-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dspace-general
Loading...