This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Collection is not writable

Tags: collection, delete files, not writable collection, delete files, not writable collection, delete files, not writable
(comma "," separated)
User avatar
sonay
Registered Member
Posts
54
Karma
0
OS

Collection is not writable  Topic is solved

Sun Aug 29, 2010 11:02 pm
Amarok doesn't let me delete files and when asked to organize, says the collection is not writable. What's wrong with my collection?

Image

Note: Almost irrelevant(I believe), I have only one album in my collection, since this is a new netbook and I didn't copy my files yet
valoriez
KDE CWG
Posts
625
Karma
3
OS

Re: Collection is not writable

Sun Aug 29, 2010 11:23 pm
Perhaps your permissions are awry? Try:

Code: Select all
chown -R username folder/


replacing username and folder with the correct local terms.

Valorie
User avatar
sonay
Registered Member
Posts
54
Karma
0
OS

Re: Collection is not writable

Sun Aug 29, 2010 11:42 pm
I have already tried

Code: Select all
chown -hR /home/sonay


that doesn't seem to work, even with sudo ???
User avatar
sonay
Registered Member
Posts
54
Karma
0
OS

Re: Collection is not writable

Sun Aug 29, 2010 11:47 pm
It looks like amarok is not allowed to write in my home directory:

Image
valoriez
KDE CWG
Posts
625
Karma
3
OS

Re: Collection is not writable

Mon Aug 30, 2010 1:12 am
Try unchecking your /home, sonay, and everything but music under that. You don't really want to scan your entire ~/home, right?

Also, try again without the h and leading slash: chown -R home/sonay

Valorie
User avatar
toad
Global Moderator
Posts
1258
Karma
7
OS

Re: Collection is not writable

Mon Aug 30, 2010 5:03 am
I'd check permissions in ~/.kde4/share/apps/amarok and

ls -la ~/.kde4/share/apps/|grep amarok

Also, do you use an external database?


Debian testing
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS

Re: Collection is not writable

Mon Aug 30, 2010 8:24 am
You do not have user access to ~/home/, you only have user access to ~/home/yourname/.
Remember, Linux is a multiuser system, and Amarok runs in userspace, and should never be run with admin privileges.
With your configuration, Amarok tries to write to ~/home instead of ~/home/yourname/


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
User avatar
sonay
Registered Member
Posts
54
Karma
0
OS

Re: Collection is not writable

Mon Aug 30, 2010 9:03 pm
Thank you all, the problem was due to selecting /home for the collection, as some of you guest. It should have been /home/sonay, however I don't understand why it is a problem for amarok to delete a file in /home/sonay/music directory since it has permissions to write there.
User avatar
toad
Global Moderator
Posts
1258
Karma
7
OS

Re: Collection is not writable

Mon Aug 30, 2010 9:07 pm
Yeah, I don't get that either. Either a bug or if you think of it kindly a quirk :) Perhaps it doesn't look into directories recursively.

On second thought, it is probably a feature :D


Debian testing
User avatar
sonay
Registered Member
Posts
54
Karma
0
OS

Re: Collection is not writable

Mon Aug 30, 2010 9:13 pm
Mamarok wrote:You do not have user access to ~/home/, you only have user access to ~/home/yourname/.
Remember, Linux is a multiuser system, and Amarok runs in userspace, and should never be run with admin privileges.
With your configuration, Amarok tries to write to ~/home instead of ~/home/yourname/


I didn't run amarok with sudo privileges, I just used sudo to use "chown" command which wasn't necessary. I was just trying a long shot.

Thank you by the way, your suggestion worked :)
User avatar
sonay
Registered Member
Posts
54
Karma
0
OS

Re: Collection is not writable

Mon Aug 30, 2010 9:23 pm
toad wrote:Yeah, I don't get that either. Either a bug or if you think of it kindly a quirk :) Perhaps it doesn't look into directories recursively.

On second thought, it is probably a feature :D


:) should I send a bug report?
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS

Re: Collection is not writable

Mon Aug 30, 2010 9:40 pm
It's just logical: the entry point to your collection was set to home/, where you don't have write access, hence the collection was not writable, regardless of the permissions of the subdirectories. Not a bug.


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
User avatar
sonay
Registered Member
Posts
54
Karma
0
OS

Re: Collection is not writable

Wed Sep 01, 2010 12:57 pm
Mamarok wrote:It's just logical: the entry point to your collection was set to home/, where you don't have write access, hence the collection was not writable, regardless of the permissions of the subdirectories. Not a bug.


I disagree. If that were logical, then I shouldn't be able to choose a directory that I don't own in the first place. And secondly, every directory is a subdirectory of / and since no user except root is able to write the entry point, then no normal user could have ever written to any directory.

Or I don't get what you're meaning as I am not a native English speaker, then, please, excuse me.
User avatar
toad
Global Moderator
Posts
1258
Karma
7
OS

Re: Collection is not writable

Wed Sep 01, 2010 1:26 pm
Let's not split hairs here.

It sorts of make sense, but I wouldn't call it necessarily logical either. After all, collection info afaik is written into ~/.kde4/share/apps/amarok - so regardless of which directories you have asked amarok to trawl through (let's say for argument's sake you have read access to them) you should still be able to write to your collection.

But hey, at least you got it sorted. And yes, you are free to draw the devs attention to it by filing a bug. However, one reason they may have implemented this as it is, is because otherwise you'd only have to say your collection is at / so that amarok spends an age and a half to trawl through your entire file system in search of music. I can understand why that behaviour is to be discouraged.


Debian testing
User avatar
sonay
Registered Member
Posts
54
Karma
0
OS

Re: Collection is not writable

Wed Sep 01, 2010 3:02 pm
I am not trying to get it upstream the way I wanted, in fact I have been using Amarok for more than a year and this is the first time I experienced such a thing and it didn't bug me at all. I am just trying to understand, since I am just a curious person. Anyway, it works.

Thanks to KDE developers for providing me such a beautiful and featureful player.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]