Re: [gentoo-user] Re: Java jdk

2009-08-03 Thread Mike Kazantsev
On Mon, 3 Aug 2009 00:38:32 + (UTC)
James wirel...@tampabay.rr.com wrote:

 Mike Kazantsev mk.fraggod at gmail.com writes:
 
 
emerge -1 dev-util/strace  strace -f ooffice 2strace.log
grep -2 -e EACCES -e EPERM strace.log
tail -500 strace.log | less (to see what happened last)
 
 
 
 OK,  Here are the bottom lines:

...

 access(/usr/lib64/openoffice/program/../share/uno_packages/cache/registry/
 com.sun.star.comp.deployment.configuration.PackageRegistryBackend/registry/
 data/org/openoffice,
 F_OK) = -1 EACCES (Permission denied)

Why is that?


 stat(/usr/lib64/openoffice/program/../share/uno_packages/cache/registry/
 com.sun.star.comp.deployment.configuration.PackageRegistryBackend/
 registry/data/org/openoffice/Setup.xcu,
 0x7fff6244bd80) = -1 EACCES (Permission denied)

...same file again and (shortly) a crash.


Prehaps you should check if it has some 0600 or 0640 mode and correct
it to 644. Prehaps it's one of the parent dirs, just try to stat it as a
user.


-- 
Mike Kazantsev // fraggod.net


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Java jdk

2009-08-03 Thread Dale
James wrote:
 Mike Kazantsev mk.fraggod at gmail.com writes:


   
 access(/usr/lib64/openoffice/program/../share/uno_packages/cache/registry/
 com.sun.star.comp.deployment.configuration.PackageRegistryBackend/registry/
 data/org/openoffice,
 F_OK) = -1 EACCES (Permission denied)
   

   
 Why is that?
 


 Good question, dunno


   
 stat(/usr/lib64/openoffice/program/../share/uno_packages/cache/registry/
 com.sun.star.comp.deployment.configuration.PackageRegistryBackend/
 registry/data/org/openoffice/Setup.xcu,
 0x7fff6244bd80) = -1 EACCES (Permission denied)
   

   
 ...same file again and (shortly) a crash.
 

   
 Prehaps you should check if it has some 0600 or 0640 mode and correct
 it to 644. Prehaps it's one of the parent dirs, just try to stat it as a
 user.
 


 Well here's what I found:

 # ls -alg /usr/lib64/openoffice/share/uno_packages/cache
 total 13
 drwxr-xr-x 4 root   168 Aug  2 16:34 .
 drwxr-xr-x 3 root72 Mar 26 02:33 ..
 drwx-- 8 root   520 Jul 17 08:13 registry
 -rw--- 1 root 1 Aug  2 16:34 stamp.sys
 drwx-- 2 root48 Jul 17 08:13 uno_packages
 -rw--- 1 root 12288 Jul 17 08:13 uno_packages.db


 so from that cache dir
 chmod -R 755 *

 fix it!

 Thanks,


 James


   

So it was a permissions issue.  I suspected that.  If you didn't change
that, you may want to file a bug so it can be fixed.

Dale

:-)  :-) 



Re: [gentoo-user] Re: Java jdk

2009-08-02 Thread Dale
James wrote:
 walt w41ter at gmail.com writes:


   
 IMO unless you're doing some really unusual/obscure java thing,
 you don't want or need the blacktown-jdk.  I'm guessing that if
 you delete that and run revdep-rebuild you'll probably see those
 other packages get rebuilt against the sun-jdk-1.6 and that will
 get rid of the virtual jdk-1.4.2 for you.
 


 OK 
 did that.

 java-check-environment
 snip  
 Java environment is sane. Congratulations!

 eselect java-vm list
 Available Java Virtual Machines:
   [1]   sun-jdk-1.6  system-vm

 But look here:

 eix virtual/jdk
 [I] virtual/jdk
  Available versions:
 (1.4)   1.4.1 1.4.2
 (1.5)   1.5.0
 (1.6)   1.6.0
  Installed versions:  1.4.2(1.4)(14:13:11 07/07/09) 1.6.0(1.6)(14:10:01
 07/07/09)
  Homepage:http://java.sun.com/
  Description: Virtual for JDK



 ooffice runs as root, but faults as any normal
 user on the system:

 terminate called after throwing an instance of
 'com::sun::star::uno::RuntimeException'


 Any other ideas?


 James


   

Usually if something runs as root but not a user, it's a permissions
issue.  You running something special on your system?  Hardened or
something more secure?

Dale

:-)  :-) 



Re: [gentoo-user] Re: Java jdk

2009-08-02 Thread Mike Kazantsev
On Sun, 2 Aug 2009 23:45:16 + (UTC)
James wirel...@tampabay.rr.com wrote:

 Dale rdalek1967 at gmail.com writes:
 
 
  Usually if something runs as root but not a user, it's a permissions
  issue.  You running something special on your system?  Hardened or
  something more secure?
 
 
 Nope,
 
 It's been a normal (stable) gentoo workstation
 with OO for a couple of years.  KDE4 and X
 started this spiral downward, methinks.

Prehaps you can run it via strace to see which ops (on which files) give
it permission errors just before crash?

  emerge -1 dev-util/strace  strace -f ooffice 2strace.log
  grep -2 -e EACCES -e EPERM strace.log
  tail -500 strace.log | less (to see what happened last)

-- 
Mike Kazantsev // fraggod.net


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Java jdk

2009-08-02 Thread Dale
James wrote:
 Dale rdalek1967 at gmail.com writes:


   
 Usually if something runs as root but not a user, it's a permissions
 issue.  You running something special on your system?  Hardened or
 something more secure?
 


 Nope,

 It's been a normal (stable) gentoo workstation
 with OO for a couple of years.  KDE4 and X
 started this spiral downward, methinks.


  in /usr/bin  we see


 -rwxr-xr-x 1 root root   76 Aug  2 14:34 oobase
 -rwxr-xr-x 1 root root   76 Aug  2 14:34 oocalc
 -rwxr-xr-x 1 root root 8.2K Aug  2 14:34 ooconfig
 -rwxr-xr-x 1 root root   76 Aug  2 14:34 oodraw
 -rwxr-xr-x 1 root root   71 Aug  2 14:34 ooffice
 -rwxr-xr-x 1 root root   80 Aug  2 14:34 oofromtemplate
 -rwxr-xr-x 1 root root   79 Aug  2 14:34 ooimpress
 -rwxr-xr-x 1 root root   76 Aug  2 14:34 oomath
 -rwxr-xr-x 1 root root 3.0K Aug  2 14:34 ootool
 -rwxr-xr-x 1 root root   75 Aug  2 14:34 ooweb
 -rwxr-xr-x 1 root root   78 Aug  2 14:34 oowriter


 It starts up and throws that java runtime exception
 I thought rebuilding dev-db/hsqldb might
 help, but no..

 Google for days now produces nothing

 ???


 James



   

Same here.  Have you tried renaming the config directory and letting it
recreate it fresh?  Sometimes that helps.  You know, the /home/user
name/.ooo3 directory?  You can rename it, move it or something then
restart OOo and see if it works. 

If that fails, kick it.  LOL

Dale

:-)  :-)