permissions problem? don't think so...

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

permissions problem? don't think so...

Postby jiml8 » May 27th, '14, 21:09

Here's an odd one, and I don't know if it has anything to do with Mageia or with KDE, or not.

I have a FreeBSD virtual machine that I load either in VMware Workstation or in Virtualbox (I have tried both). Then, I use sshfs to mount a directory from this VM on my host, so I can get at it with my host's tools (mainly editors).

When I use either kate or kwrite, I am unable to save my changes to the VM's directory; I get this message:
The document could not be saved, as it was not possible to write to /mnt/sde1/home/jiml/voipmonitor/voipmonitor.cpp.

Check that you have write access to this file or that enough disk space is available.

Yes, I do have write permission, and yes there is plenty of disk space.

If I use emacs, I can write changes without difficulty.

Now, I certainly can use emacs (and I have been doing so), but I like kate a lot better. Anyone have a clue what is happening?
jiml8
 
Posts: 1254
Joined: Jul 7th, '13, 18:09

Re: permissions problem? don't think so...

Postby doktor5000 » May 27th, '14, 21:43

Can you check in kate/kwrite in options if support to recognise changes in remote files is enabled?
And if automatic saving of backup file ending with ~ is enabled?

You could also run kdebugdialog, and enable the debug areas for kate, then run kate from a terminal, and have a look in .xsession-errors afterwards.

Otherwise if you can reproduce it, report it to our bugzilla, if you can report it with another distro, report it to bugs.kde.org.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18067
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: permissions problem? don't think so...

Postby jiml8 » May 28th, '14, 01:31

Backup on save is disabled. I can't find any options that appear associated with recognizing changes in files.

Running kdebugdialog and enabling kate debugs resulted in no entries in .xsession-errors. However, the following did appear on the console:

Code: Select all
kate(6151)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::ListJob(0x1ab0ed0) KIO::Slave(0x1d93a30)
kate(6151)/kio (KDirListerCache) KDirListerCache::slotResult: finished listing KUrl("file:///home/jiml")
kate(6151)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::ListJob(0x1a83600) KIO::Slave(0x1dce220)
kate(6151)/kio (KDirListerCache) KDirListerCache::slotResult: finished listing KUrl("trash:/")
kate(6151)/kparts KParts::ReadWritePart::setModified: setModified( true )
kate(6151)/kate-filetree KateFileTreeModel::documentModifiedChanged: BEGIN!
kate(6151)/kate-filetree KateFileTreeModel::documentModifiedChanged: modified!
kate(6151)/kate-filetree KateFileTreeModel::setupIcon: BEGIN!
kate(6151)/kate-filetree KateFileTreeModel::setupIcon: END!
kate(6151)/kate-filetree KateFileTreeModel::documentModifiedChanged: END!
kate(6151)/Kate (Document) KateBuffer::canEncode: ENC NAME:  "ISO-8859-1"
kate(6151)/Kate (Document) KateModeManager::fileType:
kate(6151)/Kate (Document) Kate::TextBuffer::save: Saved file  "/mnt/sde1/home/jiml/voipmonitor/voipmonitor.cpp" with codec "ISO-8859-1" with errors
kate(6151)/kdeui (KNotification) KNotificationManager::close: 71
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0xd6000dd
kate(6151)/Kate (Plugins) kate::CloseExceptPlugin::writeSessionConfig: WRITE SESSION CONFIG: sc= true
kate(6151)/kio (KDirListerCache) KDirListerCache::stopListingUrl: KDirLister(0x1aa6b50)  url= KUrl("trash:/")
kate(6151)/kio (KDirListerCache) KDirListerCache::forgetDirs: KDirLister(0x1aa6b50) item moved into cache: KUrl("trash:/")
kate(6151)/kio (KDirListerCache) KDirListerCache::stopListingUrl: KDirLister(0x1b621a0)  url= KUrl("file:///home/jiml")
kate(6151)/kio (KDirListerCache) KDirListerCache::forgetDirs: KDirLister(0x1b621a0) item moved into cache: KUrl("file:///home/jiml")
kate(6151)/Kate (App) KateContainer::deleteViewBarForView: main window is not a katemainwindow
kate(6151)/Kate (App) KateContainer::deleteViewBarForView: main window is not a katemainwindow
kate(6151) KteCollaborativePlugin::removeView: removing view KateView(0x1ab2d10)
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0xd6000e7
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0xd600012
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0xd600012
kate(6151)/kate-filetree KateFileTreePluginSettings::save: save config!
kate(6151) KteCollaborativePlugin::removeDocument: remove document: "/mnt/sde1/home/jiml/voipmonitor/voipmonitor.cpp"
kate(6151) KteCollaborativePlugin::removeDocument: tried to remove document KateDocument(0x196c420) which is not being managed
kate(6151) KteCollaborativePlugin::removeDocument: remove document: "/mnt/sde1/home/jiml/voipmonitor/voipmonitor.cpp"
kate(6151) KteCollaborativePlugin::removeDocument: tried to remove document KateDocument(0x196c420) which is not being managed
kate(6151)/kio (Slave) KIO::Slave::kill: killing slave pid 6164 ( "trash://" )
kate(6151)/kio (Slave) KIO::Slave::kill: killing slave pid 6165 ( "file://" )


The sequence of events was that I loaded the file, made a trivial change, and tried to save it. At the save is where this segment begins. After the save failed, I closed kate, and selected to cancel when I got the prompt about unsaved changes.

Does not look useful to me. Might have something to do with the KateFileTreePlugin; I seriously doubt that a directory mounted with sshfs will make it into a KDE file tree in the "usual" fashion, and if kate/kwrite depends critically on that plugin, this could be why it doesn't (and, presumably, won't) work. But I'm just guessing.
jiml8
 
Posts: 1254
Joined: Jul 7th, '13, 18:09


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest