Exception when running autoupdater (2.5.1 -> 2.5.4)

35 views
Skip to first unread message

hans...@gmail.com

unread,
Mar 22, 2014, 5:23:16 PM3/22/14
to dot...@googlegroups.com
Dear all,

I am trying to update from 2.5.1 to 2.5.4 using autoupdater but keep having file validation problem. I have tried to download the update patch again several times already. The log is as follows. Any idea? Thanks!



------------------------------------------------------------------------------------------------------------------------------------------------------------

root@sub [~/dotcms/autoupdater]# ./autoUpdater.sh -file update_2.5.4.zip
Running from .
dotCMS Home: /root/dotcms
Java Home: /usr/local/jdk

    Your Version  :2.5.1 file update_2.5.4.zip
Version from File : 2.5.4

Starting validations and back-ups creation...
Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/jna/jna5238754666518375089.tmp: /tmp/jna/jna5238754666518375089.tmp: failed to map segment from shared object: Operation not permitted
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1851)
        at java.lang.Runtime.load0(Runtime.java:795)
        at java.lang.System.load(System.java:1062)
        at com.sun.jna.Native.loadNativeLibraryFromJar(Native.java:771)
        at com.sun.jna.Native.loadNativeLibrary(Native.java:697)
        at com.sun.jna.Native.<clinit>(Native.java:127)
        at com.liferay.util.jna.CLibrary.<clinit>(CLibrary.java:8)
        at com.liferay.util.jna.JNALibrary.link(JNALibrary.java:17)
        at com.liferay.util.FileUtil.copyFile(FileUtil.java:161)
        at com.liferay.util.FileUtil.copyDirectory(FileUtil.java:113)
        at com.liferay.util.FileUtil.copyDirectory(FileUtil.java:89)
        at com.liferay.util.FileUtil.copyDirectory(FileUtil.java:70)
        at com.dotcms.autoupdater.FileUpdater.preUpdate(FileUpdater.java:73)
        at com.dotcms.autoupdater.UpdateAgent.run(UpdateAgent.java:207)
        at com.dotcms.autoupdater.UpdateAgent.main(UpdateAgent.java:44)

Jason Tesser

unread,
Mar 22, 2014, 7:06:43 PM3/22/14
to dot...@googlegroups.com

What version of Java is at your /usr/local/jdk

--
You received this message because you are subscribed to the Google Groups "Dotcms User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+un...@googlegroups.com.
To post to this group, send email to dot...@googlegroups.com.
Visit this group at http://groups.google.com/group/dotcms.
For more options, visit https://groups.google.com/d/optout.

hans...@gmail.com

unread,
Mar 22, 2014, 10:55:13 PM3/22/14
to dot...@googlegroups.com, hans...@gmail.com

java version "1.7.0_51"
OpenJDK Runtime Environment (rhel-2.4.4.1.el6_5-x86_64 u51-b02)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)

Jason Tesser

unread,
Mar 22, 2014, 11:13:42 PM3/22/14
to dot...@googlegroups.com

Maybe a permission issue with tmp not sure cannot reproduce this

On Mar 22, 2014 5:23 PM, <hans...@gmail.com> wrote:

Hans Paul

unread,
Mar 22, 2014, 11:28:46 PM3/22/14
to dot...@googlegroups.com

I have also tried to installed Sun JDK 8 and still ran into the same problem.

hans...@gmail.com

unread,
Mar 23, 2014, 11:31:08 AM3/23/14
to dot...@googlegroups.com
should not be related to permission.. as I was logged in as root

HolmesSPH

unread,
Mar 23, 2014, 3:38:54 PM3/23/14
to dot...@googlegroups.com, hans...@gmail.com
If you're using SElinux, disable it and see if the problem goes away. 

hans...@gmail.com

unread,
Mar 24, 2014, 2:54:32 AM3/24/14
to dot...@googlegroups.com, hans...@gmail.com
it looks likes SElinux is already disabled .. should not be the cause 

garret...@gmail.com

unread,
Mar 27, 2014, 12:29:31 AM3/27/14
to dot...@googlegroups.com, hans...@gmail.com
I ran into this same issue.

Remove noexec from your /tmp mount point (mount -o remount,exec /tmp)

Dotcms, I would document this on your Docs site and make the autocomplete tool smart enough to detect this in the future.

Garrett

Hans Paul

unread,
Mar 27, 2014, 12:48:54 AM3/27/14
to garret...@gmail.com, dot...@googlegroups.com

Thanks!  Will definitely give it a try!

Reply all
Reply to author
Forward
0 new messages