uPortal 5 Gradle Build Home Directory

97 views
Skip to first unread message

JJ Fila

unread,
Jul 19, 2018, 2:14:32 PM7/19/18
to uPortal Community
So we are trying to give uPortal5 another try here, and I ran into a bump along the way:

I was attempting to run the command ./gradlew portalInit in uPortal5, but got the following error:

FAILURE: Build failed with an exception.


...


> ../gradle.properties (No such file or directory)


I added the line println System.getProperty("user.dir")to the file uPortal-start/BuildSrc/gradle.build and learned that the directory it was building from is ~/.gradle/daemon/4.8 This seemed surprising to me - is this where the build directory should be? I expected it to be ~/.gradle

Anyway, I copied the gradle.properties file to the directory ~/.gradle/daemon and it worked, because in the build file it searches for the properties file in the current directory and directory above it:

String gradlePropsLocation = new File('gradle.properties').exists() ? 'gradle.properties' : '../gradle.properties'


That got me past that error, but now am getting an error on tomcatInstall:

* What went wrong:


Execution failed for task ':tomcatInstall'.


> Problem expanding gzip /root/uPortal-start/build/tmp/tomcat/tomcat-gunziped.tar (No such file or directory)


Going to keep digging, but I figured I'd double check on here because I was surprised it didn't work out of the box - did I miss something on the install?


Thanks,
JJ


Drew Wills

unread,
Jul 19, 2018, 3:03:33 PM7/19/18
to uporta...@apereo.org

Wow.

I have worked on uP5 together with dozens of people/institutions/machines, and I have not seen either of these issues before.

Would you be available to get on a Zoom session and run the build together?

drew

--
You received this message because you are subscribed to the Google Groups "uPortal Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uportal-user...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/uportal-user/.

JJ Fila

unread,
Jul 19, 2018, 3:13:58 PM7/19/18
to uPortal Community
Interesting.. not sure what we might have done! Yeah absolutely, are you available before 4 EDT? Otherwise tomorrow works too.

JJ

Drew Wills

unread,
Jul 19, 2018, 5:14:24 PM7/19/18
to uporta...@apereo.org

How about tomorrow at 2pm EDT?

drew

JJ Fila

unread,
Jul 19, 2018, 10:42:45 PM7/19/18
to uPortal Community
Sounds great.

JJ

Stephen

unread,
Jul 23, 2018, 2:57:03 PM7/23/18
to uPortal Community
So We got the uPortal-start to work finally. Not sure if there was a java path issue before but this seemed to work.

apt-add-repository ppa:webupd8team/java
apt
-get update
apt
-get install oracle-java8-installer


add to /etc/environment
JAVA_HOME="/usr/lib/jvm/java-8-oracle"

then (just to work without restarting now)
export JAVA_HOME=/usr/lib/jvm/java-8-oracle


Then this works without any issues
./gradlew tasks
./gradlew portalInit
./gradlew tomcatStart


-Stephen

teshome...@strathmore.edu

unread,
Nov 8, 2018, 1:52:13 PM11/8/18
to uPortal Community
Hi,
I am facing exactly the same problem. Were you finally able to resolve this problem? I am getting "Execution failed for task ' :tomcatInstall'. Problem expanding gzip /../uPortal-start/build/tmp/tomcat/tomcat-gunziped.tar (No such file or directory)

JJ Fila

unread,
Nov 8, 2018, 2:30:38 PM11/8/18
to uPortal Community

Yes we were able to resolve it, and Stephen posted a solution we found above, however if I remember correctly I think the main issue was that we were running this on a VM? And so we moved to using a physical machine. Are you using a VM?

JJ

teshome...@strathmore.edu

unread,
Nov 8, 2018, 3:21:56 PM11/8/18
to uPortal Community
Yes, I am using a VM

JJ Fila

unread,
Nov 8, 2018, 3:23:53 PM11/8/18
to uPortal Community
You could try it locally on your personal machine, to see if that works

teshome...@strathmore.edu

unread,
Nov 8, 2018, 3:26:43 PM11/8/18
to uPortal Community
Looked at the tomcat.gradle file and adjusted the path on line 47 to ('buildSrc/build/tmp/tomcat'). I guessed from the error message that it might be looking for the tomcat file in the wrong directory. But after that I am now faced with another error message about Gradle build daemon quitting unexpectedly

JJ Fila

unread,
Nov 9, 2018, 9:29:43 AM11/9/18
to uPortal Community
Are you still running it on the VM? I'd say give it a try locally. As far as the build daemon quitting, maybe someone else might know more about that than me
Reply all
Reply to author
Forward
0 new messages