Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96731 - amarok doesn't add files to your collection if it can't write to the directory containing the files
Summary: amarok doesn't add files to your collection if it can't write to the director...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-21 13:47 UTC by Jeremy Kitchen
Modified: 2005-06-22 00:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Kitchen 2005-06-21 13:47:36 UTC
I have a very large music collection stored on a central fileserver in my  
apartment.  The file server runs gentoo linux, and uses samba to serve files  
to my work desktop (NFS is basically impossible to use through NAT, so I went  
with samba, works great).  
  
My work desktop is a gentoo box running kde 3.4.1 and currently amarok 1.2.4  
(although the problem existed with 1.2.3 as well, so I tried to update to  
1.2.4 to see if that would fix it, it didn't.)  
  
the file store is mounted on /home/vault and the music is in /home/vault/music   
  
When I configure amarok to import /home/vault/music into my collection, it  
scans through everything, yet it adds nothing to my collection.  If I tell it  
to import playlists as well, it will import all of my playlists, but I will  
still have no 'collection'  
  
I copied one of the albums to a local directory ~/music and imported it, and  
it worked fine.  
  
ls -al of both directories showed no differences, and cksfv of the mp3 files  
showed 0 modifications to any of the files.  
  
I'm not entirely sure why amarok won't import the files, but I believe it has  
to do with the fact that my samba share is not writeable, since that appears  
to be the only difference between the two directories.  
 
here's the output of 'ls 
-al /home/vault/music/Bad_Religion-The_Empire_Strikes_First-Advance-2004-XXL/' 
kitchen@kitchen ~ $ ls 
-al /home/vault/music/Bad_Religion-The_Empire_Strikes_First-Advance-2004-XXL/ 
total 66244 
drwxr-xr-x  1 root root       0 Apr  2  2004 #ALTROCK EFNET 
drwxr-xr-x  1 root root       0 Apr  2  2004 . 
drwxr-xr-x  1 root root       0 May 26 17:14 .. 
-rwxr--r--  1 root root     591 Apr  2  2004 
00-bad_religion-the_empire_strikes_first-advance-2004-xxl.m3u 
-rwxr--r--  1 root root    9769 Apr  2  2004 
00-bad_religion-the_empire_strikes_first-advance-2004-xxl.nfo 
-rwxr--r--  1 root root     790 Apr  2  2004 
00-bad_religion-the_empire_strikes_first-advance-2004-xxl.sfv 
-rwxr--r--  1 root root 1599403 Apr  2  2004 01-bad_religion-overture-xxl.mp3 
-rwxr--r--  1 root root 3392386 Apr  2  2004 
02-bad_religion-sinister_rouge-xxl.mp3 
-rwxr--r--  1 root root 2663320 Apr  2  2004 
03-bad_religion-social_suicide-xxl.mp3 
-rwxr--r--  1 root root 3270084 Apr  2  2004 
04-bad_religion-atheist_peace-xxl.mp3 
-rwxr--r--  1 root root 5220959 Apr  2  2004 
05-bad_religion-all_there_is-xxl.mp3 
-rwxr--r--  1 root root 5786743 Apr  2  2004 
06-bad_religion-los_angeles_is_burning-xxl.mp3 
-rwxr--r--  1 root root 5222326 Apr  2  2004 
07-bad_religion-let_them_eat_war-xxl.mp3 
-rwxr--r--  1 root root 4284349 Apr  2  2004 08-bad_religion-gods_love-xxl.mp3 
-rwxr--r--  1 root root 7180406 Apr  2  2004 
09-bad_religion-to_another_abyss-xxl.mp3 
-rwxr--r--  1 root root 4050472 Apr  2  2004 
10-bad_religion-the_quickening-xxl.mp3 
-rwxr--r--  1 root root 5911718 Apr  2  2004 
11-bad_religion-the_empire_strikes_first-xxl.mp3 
-rwxr--r--  1 root root 6897454 Apr  2  2004 
12-bad_religion-beyond_electric_dreams-xxl.mp3 
-rwxr--r--  1 root root 6140817 Apr  2  2004 
13-bad_religion-boot_stamping_on_a_human_face-xxl.mp3 
-rwxr--r--  1 root root 6138494 Apr  2  2004 
14-bad_religion-live_again_-_the_fall_of_man-xxl.mp3 
 
and the local directory: 
kitchen@kitchen ~ $ ls -al 
~/music/Bad_Religion-The_Empire_Strikes_First-Advance-2004-XXL/ 
total 66280 
drwxr-xr-x  2 kitchen users      48 Apr  2  2004 #ALTROCK EFNET 
drwxr-xr-x  3 kitchen users    1152 Apr  2  2004 . 
drwxr-xr-x  3 kitchen users     120 Jun 21 15:27 .. 
-rwxr--r--  1 kitchen users     591 Apr  2  2004 
00-bad_religion-the_empire_strikes_first-advance-2004-xxl.m3u 
-rwxr--r--  1 kitchen users    9769 Apr  2  2004 
00-bad_religion-the_empire_strikes_first-advance-2004-xxl.nfo 
-rwxr--r--  1 kitchen users     790 Apr  2  2004 
00-bad_religion-the_empire_strikes_first-advance-2004-xxl.sfv 
-rwxr--r--  1 kitchen users 1599403 Apr  2  2004 
01-bad_religion-overture-xxl.mp3 
-rwxr--r--  1 kitchen users 3392386 Apr  2  2004 
02-bad_religion-sinister_rouge-xxl.mp3 
-rwxr--r--  1 kitchen users 2663320 Apr  2  2004 
03-bad_religion-social_suicide-xxl.mp3 
-rwxr--r--  1 kitchen users 3270084 Apr  2  2004 
04-bad_religion-atheist_peace-xxl.mp3 
-rwxr--r--  1 kitchen users 5220959 Apr  2  2004 
05-bad_religion-all_there_is-xxl.mp3 
-rwxr--r--  1 kitchen users 5786743 Apr  2  2004 
06-bad_religion-los_angeles_is_burning-xxl.mp3 
-rwxr--r--  1 kitchen users 5222326 Apr  2  2004 
07-bad_religion-let_them_eat_war-xxl.mp3 
-rwxr--r--  1 kitchen users 4284349 Apr  2  2004 
08-bad_religion-gods_love-xxl.mp3 
-rwxr--r--  1 kitchen users 7180406 Apr  2  2004 
09-bad_religion-to_another_abyss-xxl.mp3 
-rwxr--r--  1 kitchen users 4050472 Apr  2  2004 
10-bad_religion-the_quickening-xxl.mp3 
-rwxr--r--  1 kitchen users 5911718 Apr  2  2004 
11-bad_religion-the_empire_strikes_first-xxl.mp3 
-rwxr--r--  1 kitchen users 6897454 Apr  2  2004 
12-bad_religion-beyond_electric_dreams-xxl.mp3 
-rwxr--r--  1 kitchen users 6140817 Apr  2  2004 
13-bad_religion-boot_stamping_on_a_human_face-xxl.mp3 
-rwxr--r--  1 kitchen users 6138494 Apr  2  2004 
14-bad_religion-live_again_-_the_fall_of_man-xxl.mp3 
 
As you can see, there are no differences between the two :( 

Reproducible: Always
Steps to Reproduce:
1. mount a read only filesystem with some music 
2. try to import your collection 
3. cry 
 
Actual Results:  
nothing was imported into the collection 

Expected Results:  
it should have imported my collection!! 

kitchen@kitchen ~ $ emerge info  
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,  
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r9 i686)  
=================================================================  
System uname: 2.6.11-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz  
Gentoo Base System version 1.6.12  
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Jun 13 2005, 18:37:03)]  
ccache version 2.3 [enabled]  
dev-lang/python:     2.3.5  
sys-apps/sandbox:    [Not Present]  
sys-devel/autoconf:  2.59-r6, 2.13  
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5  
sys-devel/binutils:  2.15.92.0.2-r10  
sys-devel/libtool:   1.5.16  
virtual/os-headers:  2.6.8.1-r2  
ACCEPT_KEYWORDS="x86"  
AUTOCLEAN="yes"  
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"  
CHOST="i686-pc-linux-gnu"  
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"  
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"  
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"  
DISTDIR="/usr/portage/distfiles"  
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"  
GENTOO_MIRRORS="http://distfiles.gentoo.org  
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"  
MAKEOPTS="-j2"  
PKGDIR="/usr/portage/packages"  
PORTAGE_TMPDIR="/var/tmp"  
PORTDIR="/usr/portage"  
SYNC="rsync://rsync.gentoo.org/gentoo-portage"  
USE="x86 X alsa apm arts avi berkdb bitmap-fonts cdparanoia crypt cups curl  
dga divx4linux dts dv dvb dvd dvdread edl emboss encode fam foomaticdb fortran  
gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 jpeg kde ldap libg++ libwww  
live lzo mad matroska mikmod motif mp3 mpeg mysql ncurses nls ogg oggvorbis  
opengl oss pam pdflib perl png python qt quicktime readline real rtc samba sdl  
spell ssl tcpd tga theora tiff truetype truetype-fonts type1-fonts vorbis xml2  
xmms xv xvid xvmc zlib userland_GNU kernel_linux elibc_glibc"  
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS,  
PORTDIR_OVERLAY  
 
I marked the severity as Major, since this should be functional, especially 
for shared music stores (my roommate and I both have music collections we 
share with each other, but neither of us give each other write access to each 
other's shares, and we shouldn't have to) 
 
Thanks :)
Comment 1 Jeremy Kitchen 2005-06-21 14:32:16 UTC
also, when telling amarok to import music, I get errors like this 
in /var/log/everything/current (using metalog) 
 
Jun 21 16:30:19 [kernel] smb_open: 
Bad_Religion-The_Empire_Strikes_First-Advance-2004-XXL/01-bad_religion-overture-xxl.mp3 
access denied, access=0, wish=2 
Jun 21 16:30:19 [kernel] smb_open: 
Bad_Religion-The_Empire_Strikes_First-Advance-2004-XXL/02-bad_religion-sinister_rouge-xxl.mp3 
access denied, access=0, wish=2 
Jun 21 16:30:19 [kernel] smb_open: 
Bad_Religion-The_Empire_Strikes_First-Advance-2004-XXL/03-bad_religion-social_suicide-xxl.mp3 
access denied, access=0, wish=2 
Jun 21 16:30:19 [kernel] smb_open: 
Bad_Religion-The_Empire_Strikes_First-Advance-2004-XXL/04-bad_religion-atheist_peace-xxl.mp3 
access denied, access=0, wish=2 
 
and here's my fstab entry for the store: 
//edge.scriptkitchen.com/vault /home/vault smbfs        auto,guest              
0 0 
 
and 'mount' output: 
//edge.scriptkitchen.com/vault on /home/vault type smbfs (0) 
 
 
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-06-21 15:57:40 UTC
Jeremy, next time, posting some *less sensitive* directory listing to the bug
would be advisable. There are countries where this stuff is illegalm you know... ;p
Comment 3 Gregorio Guidi (RETIRED) gentoo-dev 2005-06-22 00:56:13 UTC
It seems this is already reported at bugs.kde.org: 
https://bugs.kde.org/show_bug.cgi?id=102281