unable to use file sharing through dolphin -- file not found

Bug #209873 reported by Jonathan Jesse
30
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KDE Base
Fix Released
High
kdesudo (Ubuntu)
Triaged
Low
Unassigned
kdesudo (nUbuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: systemsettings-kde4

Version: (using KDE 4.0.2)
Installed from: Ubuntu Packages

This is from a fresh install of Kubuntu KDE4 beta. Hopefully this is the correct package and I reported the bug correctly. Please redirect and help me out better with reporting

 I was trying to configure a folder to share between my windows Virtual Machine and my Kubuntu KDE4 host. Right-click on a folder -> Select Properties -> Sharing.
Click on File Sharing and put in my sudo password for kcmshell4 fileshare and receive a file not found.

Tried running from the Konsole and received same error.

however after I installed kdenetwork-filesharing-kde4 I am able to access the sharing portion of things. shouldn't kdenetwork-filesharing-kde4 be installed by default?

Now when I run through the Konsole kdesudo /usr/lib/kde4/bin/kcmshell4 fileshare, and click add get a crash

jjesse@jjesse-laptop804:~$ kdesudo /usr/lib/kde4/bin/kcmshell4 fileshare
QFSFileEngine::open: No file name specified
kcmshell(25469): NFSFile::load: Could not open ""

Load smb config files from /dev/null
Loaded services file OK.
Server role: ROLE_STANDALONE
ASSERT: "i >= 0 && i < size()" in file /usr/include/qt4/QtCore/qstring.h, line 645
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kcmshell4 path = <unknown> pid = 25469
KCrash cannot reach kdeinit, launching directly.
Loading simple Config module ...
Creating backend ...
Loading socket FrontEnd module ...
Starting SCIM as daemon ...

And from the KDE Crash Handeler:

(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb65a5940 (LWP 25469)]
[KCrash handler]
#5 0xb7f8a410 in __kernel_vsyscall ()
#6 0xb7e4bf75 in raise () from /lib/tls/i686/cmov/libc.so.6
#7 0xb7e4d8f1 in abort () from /lib/tls/i686/cmov/libc.so.6
#8 0xb7ce5a75 in qt_message_output () from /usr/lib/libQtCore.so.4
#9 0xb7ce5b38 in qFatal () from /usr/lib/libQtCore.so.4
#10 0xb7ce5cd5 in qt_assert () from /usr/lib/libQtCore.so.4
#11 0xb6857ff0 in QString::operator[] (this=0x3, i=-1208563612)
    at /usr/include/qt4/QtCore/qstring.h:645
#12 0xb6914df3 in KNFSShare::isDirectoryShared (this=0x81776a8,
    path=@0x81f9680) at /build/buildd/kde4libs-4.0.2/kio/kio/knfsshare.cpp:187
#13 0xb4cbf814 in ?? () from /usr/lib/kde4/lib/kde4/kcm_fileshare.so
#14 0x081776a8 in ?? ()
#15 0x081f9680 in ?? ()
#16 0x08201150 in ?? ()
#17 0xb4cf3f10 in ?? () from /usr/lib/kde4/lib/kde4/kcm_fileshare.so
#18 0xbfa73614 in ?? ()
#19 0x081f95e8 in ?? ()
#20 0xbfa73638 in ?? ()
#21 0xb4cbfe74 in ?? () from /usr/lib/kde4/lib/kde4/kcm_fileshare.so
#22 0x081f95e8 in ?? ()
#23 0x00000000 in ?? ()
#0 0xb7f8a410 in __kernel_vsyscall ()

Please let me know how else I can help

Jonathan

Jonathan Jesse (jjesse)
Changed in kdebase-workspace:
assignee: nobody → kubuntu-team
Changed in kdebase:
status: Unknown → New
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

I can confirm this. This sounds similar to bug 191264.

Changed in kdebase-workspace:
status: New → Confirmed
Revision history for this message
Kaz (josejuan-casimirorios) wrote :

Well, the last part of the backtrace says:

Load smb config files from /dev/null
Loaded services file OK.
Server role: ROLE_STANDALONE
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kcmshell4 path = <unknown> pid = 31199
sock_file=/home/kaz/.kde4/socket-sycod-kaz/kdeinit4__0

so I think it may have something with the part: "Load smb config files from /dev/null"

does anyone knows?

(i was searching for a kdenetwork-filesharing-kde4-dbg or something that can help me to give more info, but the only way I found was compile it from source)

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

It doesn't crash anymore, but now nothing happens when you click the configure shares button.
Here is the console output right after kdesudo pops up.
findServiceByDesktopPath: fileshare.desktop not found

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

kdenetwork-filesharing 4.1.0 is installed.

Changed in kdesudo:
assignee: kubuntu-bugs → nobody
importance: Undecided → Low
status: Confirmed → Triaged
Changed in kdebase:
status: New → Invalid
Changed in kdebase:
status: Invalid → Unknown
Changed in kdebase:
status: Unknown → New
Revision history for this message
ororo (ororo) wrote :

I don't know if this can help you, but I noticed the following.

If you run
$ kcmshell4 fileshare
you open correctly the file sharing window, without any rights of modifications.

If you run
$ sudo kcmshell4 fileshare
you still open the correct file sharing window, and with root rights, however the application crashes when you try to use it (well, this is not so stange, why should you use sudo?).

But if you run
$ kdesudo kcmshell4 fileshare
then the answer is:
findServiceByDesktopPath: fileshare.desktop not found

I have kdenetwork-filesharing and samba installed.

Revision history for this message
SRElysian (srelysian) wrote :

This glitch is hard to reproduce. My laptop functions fine for whatever reason, it's aware of the existance of ./usr/share/services/fileshare.desktop ; I can even use it in dolphin.

System Settings -> Advanced -> Samba also works perfectly.

Here on my desktop neither work, I even tried copying the file over to no avail, I don't think a reboot would be required but I may just go ahead and try it anyway. Funny thing is, both systems are identical accept 1 thing. This desktop was installed via 8.10 CD, and my laptop was installed via 8.10 USB thumb drive. Both have the same repositories setup, and same basic package selections. Both have KDE 4.2rc1, altho... my laptop has had beta 1 and beta 2, this desktop didn't get converted to linux until KDE 4.2rc1. Perhaps there's a link there.

Revision history for this message
SRElysian (srelysian) wrote :

some more wierdness, i installed locate to see where the file exists. It didn't show up in /usr/share/services/ it showed up in /usr/share/kde4/services/

On my desktop:

/usr$ find | grep fileshare

./lib/kde4/fileshare_propsdlgplugin.so
./lib/kde4/kcm_fileshare.so
./lib/kde4/libexec/filesharelist
./lib/kde4/libexec/fileshareset
./share/services/fileshare.desktop
./share/locale-langpack/en_GB/LC_MESSAGES/kfileshare.mo
./share/kde4/services/fileshare.desktop
./share/kde4/services/fileshare_propsdlgplugin.desktop
./share/man/man1/filesharelist.1.gz
./share/man/man1/fileshareset.1.gz
./bin/filesharelist
./bin/fileshareset

-----

On my laptop (same cmd:)

./lib/kde4/fileshare_propsdlgplugin.so
./lib/kde4/libexec/filesharelist
./lib/kde4/libexec/fileshareset
./lib/kde4/kcm_fileshare.so
./share/locale-langpack/en_GB/LC_MESSAGES/kfileshare.mo
./share/kde4/services/fileshare_propsdlgplugin.desktop
./share/kde4/services/fileshare.desktop
./share/man/man1/fileshareset.1.gz
./share/man/man1/filesharelist.1.gz
./include/kfileshare.h
./include/kfilesharedialog.h
./include/kfilesharedlg.h
./bin/filesharelist
./bin/fileshareset

-----

At this point I am completely confused... the includes, i'd assume are from -dev packages I don't have over here. Short of that all the file's seem to match up accept the one I copied to /usr/share/services/ despite me copying it FROM my laptop doesn't appear in the laptop's list.

Revision history for this message
Aner Ben-Artzi (anerbenartzi) wrote :

What ororo wrote is about what I'm experiencing.
Fresh install from Kubuntu 8.10 live cd (64 bit). I used adept to add samba and kdenetwork
1. kcmshell4 fileshare:
opens, but nothing useful can be done
2. sudo kcmshell4 fileshare:
opens, but crashes when trying to add share. Crash says the backtrace appears to be of no use.
3. kdesudo kcmshell4 fileshare:
same result as sudo kcmshell4 fileshare.

Terminal output from 2:

Error: "/var/tmp/kdecache-aner" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-aner" is owned by uid 1000 instead of uid 0.
QFSFileEngine::open: No file name specified
kcmshell(9454): NFSFile::load: Could not open ""

Load smb config files from /etc/samba/smb.conf
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
Load smb config files from /dev/null
Loaded services file OK.
Server role: ROLE_STANDALONE
ASSERT: "i >= 0 && i < size()" in file /usr/include/qt4/QtCore/qstring.h, line 646
KCrash: Application 'kcmshell4' crashing...

Terminal output from 3:
QFSFileEngine::open: No file name specified
kcmshell(9496): NFSFile::load: Could not open ""

Load smb config files from /etc/samba/smb.conf
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
Load smb config files from /dev/null
Loaded services file OK.
Server role: ROLE_STANDALONE
ASSERT: "i >= 0 && i < size()" in file /usr/include/qt4/QtCore/qstring.h, line 646
KCrash: Application 'kcmshell4' crashing...

Revision history for this message
Ciso (cisoprogressivo) wrote :

I'm here because my bug has been marked as duplicate of this one.
For me the problem is different, because i have no "fileshare" at all.
No output for: $ kdesudo /usr/bin/kcmshell4 fileshare

I use Kubuntu 9.04 Alpha 5

Revision history for this message
Jithin Emmanuel (jithin1987) wrote :

I have this same problem with kubuntu jaunty alpha 6

Changed in kdebase:
status: New → Fix Released
Revision history for this message
Jithin Emmanuel (jithin1987) wrote :

What is meant by Fix Released. I still cannot share from the share tab on folder properties

Revision history for this message
mugginz (mugginz) wrote :

Could yoy execute the following and see if yo can share the folder.

sudo chmod u+s /usr/lib/kde4/libexec/fileshareset

Thanks, mugginz.

Revision history for this message
Jithin Emmanuel (jithin1987) wrote :

That did nothing, Still clicking on "Configure File Sharing" on folder properties does nothing.

Revision history for this message
Ciso (cisoprogressivo) wrote :

Same for me, nothing changes.

Revision history for this message
Kovica (kovica) wrote :

Command:
kdesudo kcmshell4 fileshare
returns:
kcmshell(788) KServiceFactory::findServiceByDesktopPath: "findServiceByDesktopPath: fileshare.desktop not found"

but command:
sudo kcmshell4 fileshare

shows a files sharing dialog.
If I go to System Settings - Advanced - Samba I don't get anything, while running "sudo kcmshell4 kcmsambaconf" gives me the File sharing dialog.

Revision history for this message
mugginz (mugginz) wrote :

I came across a post by Piotr Kęplicz in a similar bug report that might have some relevance here.

Here's his post.

Piotr Kęplicz wrote 28 minutes ago:

It seems that KDE cache doesn't get updated when it should.

As a workaround, if you experience "findServiceByDesktopPath: fileshare.desktop not found" error when clicking on "Configure file sharing" (kdesudo kcmshell4 fileshare), try removing contents of /var/tmp/kdecache-root. It'll be updated automatically and the file sharing dialog should start without errors.

I wonder if removing /var/tmp/kdecache-root will fix this problem?

Revision history for this message
Jithin Emmanuel (jithin1987) wrote :

@mugginz > I just tried removing kde-cache-user and kde-cache-root. It worked. Now I can start file sharing from folder context menu. But there should be some mechanism by which this folders contents can be reseted.

Revision history for this message
Kovica (kovica) wrote :

Removing content of /var/tmp/kdecache-root fixed the problem.

Revision history for this message
Antonio Navarro (anavarrog) wrote :

Great, it worked, thanks mugginz.

Changed in kdebase:
importance: Unknown → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.