Author Topic: libre office wont start (permissioning issue)  (Read 1616 times)

0 Members and 1 Guest are viewing this topic.

Offline waynea

  • Jr. Member
  • **
  • Posts: 46
  • Karma: -1
  • I've just joined!
    • View Profile
    • Awards
libre office wont start (permissioning issue)
« on: November 18, 2013, 09:12:04 pm »
Hi there
Ive posted this one on the Linux mint forum but it isnít a specific Mint issue. (context is that I'm a newbie, incredibly impressed at how good the Linux has been so far. Ive had minor issues - two solved, but this one is a real pain.
Here goes... There are times when writer and calc will not start. clicking on the desktop icon generates no error but nothing happens.
If however, I right click <open as administrator> it works perfectly. So on the surface this is a permissions issue
I can trace exactly what invokes this - it follows trying to open a file stored on my windows desktop over my wifi. It then will not let me view a local file.
If I then reboot, I can use libreOffice correctly as me without having to use as root, that is the permissioning is now correct.
as a complete noob, could someone tell me what command to run from terminal to check permissions and correct them?
But does anyone have an idea as to what is the root cause of the problem? what is changing Libre Office so that you have to be root to use it? and what I can do to fix as this drives me up the wall?
(Im on Mint 15, Mate 32bit,running on a partitiion on my lenovo X60 for what it is worth)

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14294
  • Karma: 355
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: libre office wont start (permissioning issue)
« Reply #1 on: November 18, 2013, 09:45:30 pm »
OK, it's my guess that LO is having issues with ownership/permission of the files on your Windows partition.

Then  stalling half way through loading the file .. so it's still running in the background so won't open again.

Did that make sense ?

Try opening a file on you windows partition .. then when it fails, run:
Code: [Select]
ps aux | grep [l]ibre
and see if there's a libreoffice process running ?

if so you should be able to kill it with:
Code: [Select]
sudo killall oosplash

then you should be able to open LO properly again.



What is returned in the terminal if you run:
Code: [Select]
libreoffice --writer /path/to/file/on/windows/partition/filename.doc
?
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline waynea

  • Jr. Member
  • **
  • Posts: 46
  • Karma: -1
  • I've just joined!
    • View Profile
    • Awards
Re: libre office wont start (permissioning issue)
« Reply #2 on: November 18, 2013, 10:07:14 pm »
Hi there - many thanks for super fast reply - I'm absolutely sure your analysis is correct.
So I ran the first command and got

wayne@linuxmint ~ $ ps aux | grep [l]ibre
wayne     3586  0.0  0.0  34344  2844 ?        Sl   19:32   0:00 /usr/lib/libreoffice/program/oosplash --writer /run/user/wayne/gvfs/smb-share:server=master,share=r/Wayne/job apps/Business Case V3.doc
wayne     3629  0.0  0.0  16520  1968 ?        Sl   19:32   0:00 /usr/lib/libreoffice/program/oosplash --writer /run/user/wayne/gvfs/smb-share:server=master,share=r/Wayne/companies editors/guildhall notes 23 oct.doc
wayne     3645  0.0  0.0  16520  1960 ?        Sl   19:32   0:00 /usr/lib/libreoffice/program/oosplash --writer /run/user/wayne/gvfs/smb-share:server=master,share=r/Wayne/companies editors/guildhall notes 23 oct.doc
wayne     3660  0.0  0.0  16520  1960 ?        Sl   19:32   0:00 /usr/lib/libreoffice/program/oosplash --writer /run/user/wayne/gvfs/smb-share:server=master,share=r/Wayne/job apps/cover.DOC
wayne     3711  0.0  0.0  16520  1964 ?        Sl   19:33   0:00 /usr/lib/libreoffice/program/oosplash --writer /run/user/wayne/gvfs/smb-share:server=master,share=r/Wayne/job apps/cover.DOC
wayne     3726  0.0  0.0  16520  1964 ?        Sl   19:33   0:00 /usr/lib/libreoffice/program/oosplash --calc
wayne     3743  0.0  0.0  16520  1964 ?        Sl   19:33   0:00 /usr/lib/libreoffice/program/oosplash --calc
wayne     3758  0.0  0.0  16520  1964 ?        Sl   19:33   0:00 /usr/lib/libreoffice/program/oosplash --writer
wayne     3865  0.0  0.0  16520  1960 ?        Sl   19:36   0:00 /usr/lib/libreoffice/program/oosplash --writer
wayne     4092  0.0  0.0  16520  1964 ?        Sl   19:49   0:00 /usr/lib/libreoffice/program/oosplash --writer /run/user/wayne/gvfs/smb-share:server=master,share=r/Wayne/ELAS/ELAS omn losses.doc
wayne     4208  0.0  0.0  16520  1964 ?        Sl   19:52   0:00 /usr/lib/libreoffice/program/oosplash --writer /home/wayne/ringways/guildhall notes 23 oct.odt
wayne     4223  0.0  0.0  16520  1964 ?        Sl   19:52   0:00 /usr/lib/libreoffice/program/oosplash --writer /home/wayne/ringways/guildhall notes 23 oct.odt
wayne     4292  0.0  0.0  16520  1964 ?        Sl   19:54   0:00 /usr/lib/libreoffice/program/oosplash --calc /home/wayne/ringways/lewisham.xls
wayne     5756  0.0  0.0  16520  1964 ?        Sl   21:35   0:00 /usr/lib/libreoffice/program/oosplash --writer /run/user/wayne/gvfs/smb-share:server=master,share=r/daisy ma/Costa-Gavras Final/Abstract.doc

where r is the drive on my windows box upstairs and you can see the files I cant open. When I try to kill the running process I get

wayne@linuxmint ~ $ sudo killall oosplash
[sudo] password for wayne:
wayne@linuxmint ~ $ sudo killall oosplash
oosplash: no process found
wayne@linuxmint ~ $

so it thinks oosplash is not running.....

when i try to run
libreoffice --writer /path/to/file/on/windows/partition/filename.doc
nothing happens....

and I still cant open files on the windows box. (If I try as admin then I get the LO splash screen but still cant get any further. And I now cant open LO files on my Linux box, so something has changed the permissions I think...

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14294
  • Karma: 355
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: libre office wont start (permissioning issue)
« Reply #3 on: November 18, 2013, 11:12:29 pm »
Dunno why:
Code: [Select]
sudo killall oosplash
isn't working .. it should as the process is clearly running.

What's the output from:
Code: [Select]
ls -al "/run/user/wayne/gvfs/smb-share:server=master,share=r/Wayne/job apps/Business Case V3.doc"

Can you also try this:
Code: [Select]
libreoffice --writer "/run/user/wayne/gvfs/smb-share:server=master,share=r/Wayne/job apps/Business Case V3.doc"
does that open the file in LO ?



Can you also try this ..

Instead of browsing to the file on your Windows share in your file manager, then clicking the document to open .. try Opening LO Writer, then click
File>Open
then browse to the
/run/user/wayne/gvfs/smb-share:server=master,share=r/Wayne/job apps/Business Case V3.doc
file from within Writer .. does it open that way ?

--
« Last Edit: November 18, 2013, 11:17:06 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline waynea

  • Jr. Member
  • **
  • Posts: 46
  • Karma: -1
  • I've just joined!
    • View Profile
    • Awards
Re: libre office wont start (permissioning issue)
« Reply #4 on: November 18, 2013, 11:31:20 pm »
thanks again Mark. I'll have to try this tomorrow (the Mrs has gone to bed and so desktop is off). speak soon - wayne

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14294
  • Karma: 355
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: libre office wont start (permissioning issue)
« Reply #5 on: November 19, 2013, 12:06:43 am »
OK :)
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline waynea

  • Jr. Member
  • **
  • Posts: 46
  • Karma: -1
  • I've just joined!
    • View Profile
    • Awards
Re: libre office wont start (permissioning issue)
« Reply #6 on: November 19, 2013, 11:20:44 am »
this is truly weird....it works perfectly now...so like all the best bugs it's intermittent....grrrr.....the next time it occurs i'll paste the results and i'll try to identify what maybe a secondary causal factor....many thanks..

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14294
  • Karma: 355
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: libre office wont start (permissioning issue)
« Reply #7 on: November 19, 2013, 01:23:57 pm »
No problem .. Intermittent problems are bitter/sweet .. a pain to diagnose, but half the time not a problem at all  :o
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline waynea

  • Jr. Member
  • **
  • Posts: 46
  • Karma: -1
  • I've just joined!
    • View Profile
    • Awards
Re: libre office wont start (permissioning issue)
« Reply #8 on: November 19, 2013, 07:19:25 pm »
right then...!!!
I get from the command you suggested
wayne@linuxmint ~ $ ls -al "/run/user/wayne/gvfs/smb-share:server=master,share=r/Wayne/job apps/Business Case V3.doc"
-rwx------ 1 wayne wayne 166400 Oct  8  2011 /run/user/wayne/gvfs/smb-share:server=master,share=r/Wayne/job apps/Business Case V3.doc

but I cant browse from the Writer icon on my linux box because it is now locked up to me (as permissioning has transferred to root by the bug!
if I log in as admin I can browser
/run/user/wayne/ and see gvfs but clicking on that takes me to a blank screen

does that help?

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14294
  • Karma: 355
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: libre office wont start (permissioning issue)
« Reply #9 on: November 19, 2013, 08:46:49 pm »
Opening a file can't change any permissions for a program.

Running the program from the command line with "sudo" might ..  as a graphical app it should really be started with "gksudo" if you want to start it with elevated privileges.

I'm beginning to think this may be due to the spaces in the path and filename .. and the new way gvfs works.

What happens if you change

job apps  -->  job_apps
and
Business Case V3.doc  --> Business_Case_V3.doc

just as a test.
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1552
  • Karma: 123
  • Gender: Male
    • View Profile
    • Awards
Re: libre office wont start (permissioning issue)
« Reply #10 on: November 19, 2013, 08:52:13 pm »
Does this happens on all files you try to open from that remote location?
If so then try to mount that drive/partition before you try to access it from LibreOffice.
See if that makes any difference. If it does (and you use this location a lot)
then you can set it to mount at boot in fstab.

Offline waynea

  • Jr. Member
  • **
  • Posts: 46
  • Karma: -1
  • I've just joined!
    • View Profile
    • Awards
Re: libre office wont start (permissioning issue)
« Reply #11 on: November 19, 2013, 10:30:46 pm »
hi seso
yes it does.....but as a clueless noob on linux (veteran of Windows from 95 onwards!) , could you explain how I can follow that approach?

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14294
  • Karma: 355
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: libre office wont start (permissioning issue)
« Reply #12 on: November 19, 2013, 10:59:14 pm »
Can you answer me a question .. is the Windows box called "master" ?

If so .. What happens of you run:
Code: [Select]
ping -c 5 master
?
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline waynea

  • Jr. Member
  • **
  • Posts: 46
  • Karma: -1
  • I've just joined!
    • View Profile
    • Awards
Re: libre office wont start (permissioning issue)
« Reply #13 on: November 20, 2013, 03:49:01 pm »
Hi Mark - thanks for continuing interest in this one!!
There is some evidence that your suspicion about naming convention may be correct - files in the format file name do seem much more likely to cause the issue than ones called file_name. Am investigating and testing further

the results of the pin to Master (the windows box) are below..so I dont think this is a timeout/network issue
wayne@linuxmint ~ $ ping -c 5 master
PING master (192.168.0.6) 56(84) bytes of data.
64 bytes from master (192.168.0.6): icmp_req=1 ttl=128 time=1.17 ms
64 bytes from master (192.168.0.6): icmp_req=2 ttl=128 time=1.29 ms
64 bytes from master (192.168.0.6): icmp_req=3 ttl=128 time=1.28 ms
64 bytes from master (192.168.0.6): icmp_req=4 ttl=128 time=2.64 ms
64 bytes from master (192.168.0.6): icmp_req=5 ttl=128 time=1.28 ms

--- master ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 1.178/1.537/2.647/0.557 ms


Offline waynea

  • Jr. Member
  • **
  • Posts: 46
  • Karma: -1
  • I've just joined!
    • View Profile
    • Awards
Re: libre office wont start (permissioning issue)
« Reply #14 on: November 20, 2013, 04:02:14 pm »
spoke too soon - I can now reproduce it again clicking between files with no spaces in the name

I now can get packet loss
wayne@linuxmint ~ $ ping -c 5 master
PING master (192.168.0.6) 56(84) bytes of data.
64 bytes from master (192.168.0.6): icmp_req=1 ttl=128 time=1.32 ms
64 bytes from master (192.168.0.6): icmp_req=2 ttl=128 time=4.50 ms
64 bytes from master (192.168.0.6): icmp_req=3 ttl=128 time=1.42 ms
64 bytes from master (192.168.0.6): icmp_req=4 ttl=128 time=1.77 ms

--- master ping statistics ---
5 packets transmitted, 4 received, 20% packet loss, time 4006ms
rtt min/avg/max/mdev = 1.325/2.258/4.502/1.306 ms

grrrrrrrrrrrrrrrrrrrrrrrrrrrrrr,   ths is driving me up the wall.....need to be edit files upstairs while sitting in an armchair downstairs!!!! My plan is to move the upstair box off of windows next year, perhaps the issue may vanish then.....


 


SimplePortal 2.3.3 © 2008-2010, SimplePortal