LibreOffice 3.4.5 smashes on OpenSuse 12.1 since some samba stuff missin

g day dear suse-friends.

i am running opensuse on a akoya-notebook (see below-)

each time i run libreoffice and want to save some writer documents the openOffice-Programme smashes and vanishes…

note: i have the following version up and running:

LibreOffice 3.4.5
OOO340m1 (Build:1505)

see the errors that show up if i start libreoffice with console:



martin@linux-wyee:~> libreoffice --writer
LibreOffice(14544) KSambaSharePrivate::testparmParamValue: We got some errors while running testparm "Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
ERROR: pid directory /var/run/samba does not exist
"
martin@linux-wyee:~>

by the way - this might be of interest: see what i have on the machine.::



Linux linux-wyee.site 3.1.9-1.4-desktop #1 SMP PREEMPT Fri Jan 27 08:55:10 UTC 2012 (efb5ff4) i686 athlon i386 GNU/Linux
linux-wyee:/home/martin # zypper lr -d
# | Alias                                       | Name                                        | Aktiviert | Aktualisieren | Priorität | Typ    | URI                                                                                   | Dienst
--+---------------------------------------------+---------------------------------------------+-----------+---------------+-----------+--------+---------------------------------------------------------------------------------------+-------
1 | Aktualisierungen-für-openSUSE-12.1-12.1-1.4 | Aktualisierungen für openSUSE 12.1 12.1-1.4 | Ja        | Ja            |   99      | rpm-md | http://download.opensuse.org/update/12.1/                                             |       
2 | openSUSE-12.1-12.1-1.4                      | openSUSE-12.1-12.1-1.4                      | Ja        | Nein          |   99      | yast2  | cd:///?devices=/dev/disk/by-id/ata-TSSTcorp_CDDVDW_SN-S083C_m1L3456789KLMNOP,/dev/sr0 |       
3 | packman-x86_64                              | packman-x86_64                              | Ja        | Nein          |   99      | rpm-md | http://packman.inode.at/suse/12.1/                                                    |       
4 | repo-debug                                  | openSUSE-12.1-Debug                         | Nein      | Ja            |   99      | NONE   | http://download.opensuse.org/debug/distribution/12.1/repo/oss/                        |       
5 | repo-debug-update                           | openSUSE-12.1-Update-Debug                  | Nein      | Ja            |   99      | NONE   | http://download.opensuse.org/debug/update/12.1/                                       |       
6 | repo-non-oss                                | openSUSE-12.1-Non-Oss                       | Ja        | Ja            |   99      | yast2  | http://download.opensuse.org/distribution/12.1/repo/non-oss/                          |       
7 | repo-oss                                    | openSUSE-12.1-Oss                           | Ja        | Ja            |   99      | yast2  | http://download.opensuse.org/distribution/12.1/repo/oss/                              |       
8 | repo-source                                 | openSUSE-12.1-Source                        | Nein      | Ja            |   99      | NONE   | http://download.opensuse.org/source/distribution/12.1/repo/oss/             


any guess what goes wrong here…!!!

love to discuss this with you

Run the following terminal commands and post the results here in code # tags using the advanced message editor if you please:

testparm -s

AND

hostname

Might be usefull to see your fstab file as well:

cat /etc/fstab

Thank You,

hello dear James good evening,

great to hear form you. Many thanks for shaing a helping hand. I have runned all your code-snippets and commands in Terminal.
see the following results:

Have a closer look: what is given back by the system - when i run** testparm -s**


martin@linux-wyee:~> testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[profiles]"
Processing section "[users]"
Processing section "[groups]"
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
ERROR: pid directory /var/run/samba does not exist
Server role: ROLE_STANDALONE
[global]
        map to guest = Bad User
        printcap name = cups
        logon path = \\%L\profiles\.msprofile
        logon drive = P:
        logon home = \\%L\%U\.9xprofile
        usershare allow guests = Yes
        idmap config * : backend = tdb
        cups options = raw

[homes]
        comment = Home Directories
        valid users = %S, %D%w%S
        read only = No
        inherit acls = Yes
        browseable = No

[profiles]
        comment = Network Profiles Service
        path = %H
        read only = No
        create mask = 0600
        directory mask = 0700
        store dos attributes = Yes

[users]
        comment = All users
        path = /home
        read only = No                                                                                                                                                                          
        inherit acls = Yes                                                                                                                                                                      
        veto files = /aquota.user/groups/shares/                                                                                                                                                
                                                                                                                                                                                                
[groups]                                                                                                                                                                                        
        comment = All groups                                                                                                                                                                    
        path = /home/groups                                                                                                                                                                     
        read only = No
        inherit acls = Yes

[printers]
        comment = All Printers
        path = /var/tmp
        create mask = 0600
        printable = Yes
        print ok = Yes
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/drivers
        write list = @ntadmin, root
        force group = ntadmin
        create mask = 0664
        directory mask = 0775
martin@linux-wyee:~> 

**The hostname:
**


martin@linux-wyee:~> hostname
linux-wyee.site

and the fstab


martin@linux-wyee:~> cat /etc/fstab
/dev/disk/by-id/ata-Hitachi_HTS545050B9A300_101011PBN403B7KBEDWL-part1 swap                 swap       defaults              0 0
/dev/disk/by-id/ata-Hitachi_HTS545050B9A300_101011PBN403B7KBEDWL-part13 /                    ext4       acl,user_xattr        1 1
/dev/disk/by-id/ata-Hitachi_HTS545050B9A300_101011PBN403B7KBEDWL-part14 /home                ext4       defaults              1 2
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
martin@linux-wyee:~> 

again James - many thanks for the hints and the ideas regarding the commands - now i look forward to hear from you again…

have a great day!!

So, you might try this in terminal (and leave the session open):

su -
dir /var/run/samba

I get this output:

total 8
-rw-r--r-- 1 root root 5 Apr 13 17:33 nmbd.pid
-rw-r--r-- 1 root root 5 Apr 13 17:33 smbd.pid

If you get this then the folder does not exist:

dir /var/run/samba
ls: cannot access /var/run/samba: No such file or directory

You can do this then:

mkdir /var/run/samba

And then restart your PC. It might be that the programs smb and nmb are not running, but show me what this stuff does right now.

Thank You,

hello good day

thx for the quick answer…



martin@linux-wyee:~> su -
Passwort: 
linux-wyee:~ # dir /var/run/samba
ls: cannot access /var/run/samba: No such file or directory
linux-wyee:~ # 

afterwards i created the directory - and then i restarted the computer…

but beliefe me - it still is the same behaviour… i t still smashes


martin@linux-wyee:~> libreoffice --writer
LibreOffice(3601) KSambaSharePrivate::testparmParamValue: We got some errors while running testparm "Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
ERROR: pid directory /var/run/samba does not exist
" 

afterwards i created one…


martin@linux-wyee:~> mkdir /var/run/samba
mkdir: cannot create direcrory  „/var/run/samba“ : no permissions
martin@linux-wyee:~> su

Passwort:



linux-wyee:/home/martin # mkdir /var/run/samba
linux-wyee:/home/martin # mkdir /var/run/samba
mkdir: caonnot create directory  „/var/run/samba“ allreeady exists

but see - what is this here - i do not know what i should say here…:



linux-wyee:/home/martin # libreoffice --writer
LibreOffice(3703)/kdeui (kdelibs): Session bus not found 
To circumvent this problem try the following command (with Linux and bash) 
export $(dbus-launch) 
linux-wyee:/home/martin # libreoffice --writer
LibreOffice(3720)/kdeui (kdelibs): Session bus not found 
To circumvent this problem try the following command (with Linux and bash) 
export $(dbus-launch) 
linux-wyee:/home/martin # 


it still smashes - i have no glue… any idea here? I look forward to hear from you

So I wonder why we are trying to start this from a terminal session? From a desktop I could do: Alt-F2 and type in libreoffice --writer

You could try using dbus-launch to start it as in terminal do:

**dbus-launch libreoffice --writer**

And see if that lets it run from terminal.

Thank You,

hi james

thx i try it out later the day.

come back and let you know the results…

So, it complains about a folder that’s not there. What if you just create an empty folder?

Question: did you by any chance move stuff from /var to another place ? Or symlink ?

On 2012-04-14 11:46, dilbertone wrote:

> but see - what is this here - i do not know what i should say
> here…:
>
>
> Code:
> --------------------
>
>
> linux-wyee:/home/martin # libreoffice --writer
> LibreOffice(3703)/kdeui (kdelibs): Session bus not found
>
>
> --------------------

Warning: you did “su” before, you are working as root on your home
directory. This will not work and will break things.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

hello Knurpht , hello Robin Listas good day James, :wink:

afaik i did nothing of the following.

should ido such things.

@Robin Listas: your re right - i try to avoid workin as a root on the machine… this makes all very dangerous

btw: the errors are still happening… - see what i have in **the terminal **


martin@linux-wyee:~> ~> libreoffice --writer
bash: /home/martin: Ist ein Verzeichnis
martin@linux-wyee:~>  libreoffice --writer
X Error: BadMatch (invalid parameter attributes) 8
  Major opcode: 42 (X_SetInputFocus)
  Resource id:  0x1a000173
LibreOffice(5560) KSambaSharePrivate::testparmParamValue: We got some errors while running testparm "Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
ERROR: pid directory /var/run/samba does not exist
" 

well i am pretty clueless here… what can i do now!?

On 2012-04-23 23:36, dilbertone wrote:

> @Robin Listas: your re right - i try to avoid workin as a root on the
> machine… this makes all very dangerous

Did you, per chance, do “su” without dash, then started libreoffice?
Because it the previous post to which I responded I think you did - and
this will result in files owned by root under your home, and will impede
libreoffice from running again.

So check the permissions of all the files under “.libreoffice/”.

> Code:
> --------------------
>
> martin@linux-wyee:~> ~> libreoffice --writer
> bash: /home/martin: Ist ein Verzeichnis

What does it mean? In English :slight_smile:

You can force a program to run in English by doing:

LANG=en_US.UTF-8 libreoffice --writer

> martin@linux-wyee:~> libreoffice --writer
> X Error: BadMatch (invalid parameter attributes) 8
> Major opcode: 42 (X_SetInputFocus)
> Resource id: 0x1a000173
> LibreOffice(5560) KSambaSharePrivate::testparmParamValue: We got some errors while running testparm "Load smb config files from /etc/samba/smb.conf
> Loaded services file OK.
> ERROR: pid directory /var/run/samba does not exist
> "
>
> --------------------

Maybe your samba config has a problem, you should solve them. Apparently LO
checks it.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

hello dear Robin

thx again -

guess that the issue (s) with the Superuser - and that i sometimes do things as su - without thinkin about the status - is pretty dangerous.
guess that i have somewhat misconfigured the machine… - i do some checks accordingly…

this means

> martin@linux-wyee:~> ~> libreoffice --writer
> bash: /home/martin: Ist ein Verzeichnis
> martin@linux-wyee:~> ~> libreoffice --writer
> bash: /home/martin: Is a directory

i come back tomorrow…

btw. james (guess he was it) is still thinkin that something with samba goes wrong… read the comments at the beginning of the thread. At least he WAS thinkin that this was the cause…

i come back tomorrow … must sleep now… it is pretty late] :wink:

cu tomorrow
dilbert

hi dear linux-fans,

each time i try to save the data - i fail… it is annoying …


 libreoffice --writer
X Error: BadMatch (invalid parameter attributes) 8
  Major opcode: 42 (X_SetInputFocus)
  Resource id:  0x1ac0687c
X Error: BadMatch (invalid parameter attributes) 8
  Major opcode: 42 (X_SetInputFocus)
  Resource id:  0x1ac0687c
martin@linux-wyee:~>  libreoffice --writer
X Error: BadMatch (invalid parameter attributes) 8
  Major opcode: 42 (X_SetInputFocus)
  Resource id:  0x1ac00173

any suggestions - ideas - plans how to get rid of these terrible bugs

On 2012-04-29 09:16, dilbertone wrote:
>
> hi dear linux-fans,
>
> each time i try to save the data - i fail… it is annoying …

In what directory are you attempting to write? Do you have permissions?


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)