catharsis / spotifile

FUSE file system for Spotify
BSD 3-Clause "New" or "Revised" License
149 stars 7 forks source link

Permission denied #19

Closed raoulh closed 9 years ago

raoulh commented 9 years ago

I have a lot of permission denied errors when doing:

cat spotifile/playlists/MyPlaylist/TitleName/name
Artist Name
cat: spotifile/playlists/MyPlaylist/TitleName/name: Permission denied

or

cat spotifile/connection 
logged incat: spotifile/connection: Permission denied
catharsis commented 9 years ago

Please start spotifile with the -d flag to run in the foreground with additional debug information. You should be able to deduce which call is denying access, that way.

Also, what version are you running?

raoulh commented 9 years ago

I'm using latest from git in Archlinux. (btw the AUR package is not building, but that's another point). So i ran spotifile with -d and did a cat connection:

LOOKUP /connection
getattr /connection
   NODEID: 2
   unique: 11, success, outsize: 144
unique: 12, opcode: OPEN (14), nodeid: 2, insize: 48, pid: 9687
open flags: 0x8000 /connection
   open[140215784062960] flags: 0x8000 /connection
   unique: 12, success, outsize: 32
unique: 13, opcode: READ (15), nodeid: 2, insize: 80, pid: 9687
read[140215784062960] 131072 bytes from 0 flags: 0x8000
   read[140215784062960] 9 bytes from 0
   unique: 13, success, outsize: 25
unique: 14, opcode: READ (15), nodeid: 2, insize: 80, pid: 9687
read[140215784062960] 131072 bytes from 9 flags: 0x8000
   read[140215784062960] 0 bytes from 9
   unique: 14, success, outsize: 16
unique: 15, opcode: FLUSH (25), nodeid: 2, insize: 64, pid: 9687
flush[140215784062960]
[W @ 2015-08-21 13:22:40 CEST] spotifile: Unimplemented function spfs_flush called!
lock[140215784062960] F_SETLK F_UNLCK start: 0 len: 0 pid: 0
[W @ 2015-08-21 13:22:40 CEST] spotifile: Unimplemented function spfs_lock called!
   unique: 15, error: -13 (Permission denied), outsize: 16
unique: 16, opcode: RELEASE (18), nodeid: 2, insize: 64, pid: 0
release[140215784062960] flags: 0x8000
   unique: 16, success, outsize: 16
catharsis commented 9 years ago

Ah, good - thanks for the report. I just need to update the default return for the locking function until I come around to properly implementing it. You could try running d7ae3668e9515eb0faf5ecf39bf014bcf9465aba instead for now. That's been working alright for me for a couple of days now.