You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With 1.3.19 I'm having trouble with permissions plugin. Somehow what once was working is broken.
When I import stuff beets finds them. Matches them. Tries to import them and at the last step it starts throwing out errors like below.
[10:58] root@hades: /Depo/Beets # beet -vv import -qapi /Depo/torrents/1976\ Olmaz\ Olsun\ -\ Vurdumduymaz/
user configuration: /root/.config/beets/config.yaml
data directory: /root/.config/beets
plugin paths:
Sending event: pluginload
artresizer: method is (2, (6, 8, 9))
thumbnails: using IM to write metadata
thumbnails: using GIO to compute URIs
library database: /root/beets-musiclibrary.blb
library directory: /Depo/Beets
Sending event: library_opened
Sending event: import_begin
Sending event: import_task_created
Sending event: import_task_start
chroma: chroma: fingerprinted '/Depo/torrents/1976 Olmaz Olsun - Vurdumduymaz/AA - Olmaz Olsun.mp3'
chroma: matched recordings [u'006c8845-1749-45f1-b880-5569c84c2f8c'] on releases [u'd5151720-2b4b-4a13-ba90-e9b21d51957f', u'5e3ce113-d3f1-417c-ad2e-50730bace078', u'7902319c-c74a-4941-aae8-49e160cc29be']
chroma: chroma: fingerprinted '/Depo/torrents/1976 Olmaz Olsun - Vurdumduymaz/BB - Seni Gidi Vurdumduymaz.mp3'
chroma: matched recordings [u'8b98d9a8-cb0d-4680-8c4b-a8a2c238b4d3'] on releases [u'd5151720-2b4b-4a13-ba90-e9b21d51957f', u'5e3ce113-d3f1-417c-ad2e-50730bace078', u'7902319c-c74a-4941-aae8-49e160cc29be']
Looking up: /Depo/torrents/1976 Olmaz Olsun - Vurdumduymaz
Tagging Sezen Aksu - Olmaz Olsun www.USELESSSITE.com by atis
No album IDs found.
Search terms: Sezen Aksu - Olmaz Olsun www.USELESSITE.com by atis
Album might be VA: False
Sending event: albuminfo_received
Sending event: albuminfo_received
Sending event: albuminfo_received
chroma: acoustid album candidates: 3
Sending event: albuminfo_received
Sending event: albuminfo_received
Sending event: albuminfo_received
Sending event: albuminfo_received
Sending event: albuminfo_received
Sending event: albuminfo_received
Sending event: albuminfo_received
Sending event: albuminfo_received
Evaluating 8 candidates.
Candidate: Sezen Aksu - Olmaz Olsun / Seni Gidi Vurdumduymaz
Success. Distance: 0.17
Candidate: Sezen Aksu - Kusura Bakma / Yaşanmamış Yıllar
Success. Distance: 0.59
Candidate: Sezen Aksu - Allahaısmarladık / Kaç Yıl Geçti Aradan
Success. Distance: 0.54
Candidate: Sezen Aksu - Kaybolan Yıllar / Neye Yarar
Success. Distance: 0.47
Candidate: Sezen Aksu - Gölge Etme / Aşk
Success. Distance: 0.52
Candidate: Sezen Aksu - Olmaz Olsun / Seni Gidi Vurdumduymaz
Duplicate.
Candidate: Sezen Aksu - Kaybolmayan Yıllar, Vol.1
Success. Distance: 0.91
Candidate: Sezen Aksu - Allahaısmarladık
Success. Distance: 0.55
/Depo/torrents/1976 Olmaz Olsun - Vurdumduymaz (2 items)
Correcting tags from:
Sezen Aksu - Olmaz Olsun www.USELESSSITE.com by atis
To:
Sezen Aksu - Olmaz Olsun / Seni Gidi Vurdumduymaz
URL:
http://musicbrainz.org/release/d5151720-2b4b-4a13-ba90-e9b21d51957f
(Similarity: 82.7%) (album) (Vinyl, 1976, TR, Hop Plak)
Sending event: import_task_choice
Sending event: import_task_apply
0 of 2 items replaced
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
lastgenre: added last.fm album genre (artist): Turkish Pop
Sending event: database_change
Sending event: database_change
Sending event: database_change
fetchart: trying source filesystem for album Sezen Aksu - Olmaz Olsun / Seni Gidi Vurdumduymaz
fetchart: using well-named art file Folder.jpg
fetchart: using local image /Depo/torrents/1976 Olmaz Olsun - Vurdumduymaz/Folder.jpg
lyrics: lyrics already present: Sezen Aksu - Olmaz Olsun / Seni Gidi Vurdumduymaz - Olmaz Olsun
lyrics: lyrics already present: Sezen Aksu - Olmaz Olsun / Seni Gidi Vurdumduymaz - Seni Gidi Vurdumduymaz
the: "Sezen Aksu" -> "Sezen Aksu"
Sending event: before_item_moved
Sending event: item_moved
Sending event: database_change
Sending event: database_change
Sending event: write
hook: running command "echo writing to /Depo/Beets/Sezen Aksu/1976 - Olmaz Olsun _ Seni Gidi Vurdumduymaz/01 - Olmaz Olsun.mp3" for event write
writing to /Depo/Beets/Sezen Aksu/1976 - Olmaz Olsun _ Seni Gidi Vurdumduymaz/01 - Olmaz Olsun.mp3
Sending event: after_write
the: "Sezen Aksu" -> "Sezen Aksu"
Sending event: before_item_moved
Sending event: item_moved
Sending event: database_change
Sending event: database_change
Sending event: write
hook: running command "echo writing to /Depo/Beets/Sezen Aksu/1976 - Olmaz Olsun _ Seni Gidi Vurdumduymaz/02 - Seni Gidi Vurdumduymaz.mp3" for event write
writing to /Depo/Beets/Sezen Aksu/1976 - Olmaz Olsun _ Seni Gidi Vurdumduymaz/02 - Seni Gidi Vurdumduymaz.mp3
Sending event: after_write
Sending event: database_change
Sending event: database_change
Sending event: import_task_files
Sending event: art_set
embedart: Embedding album art into Sezen Aksu - Olmaz Olsun / Seni Gidi Vurdumduymaz
embedart: embedding /Depo/Beets/Sezen Aksu/1976 - Olmaz Olsun _ Seni Gidi Vurdumduymaz/cover.jpg
Sending event: write
hook: running command "echo writing to /Depo/Beets/Sezen Aksu/1976 - Olmaz Olsun _ Seni Gidi Vurdumduymaz/01 - Olmaz Olsun.mp3" for event write
writing to /Depo/Beets/Sezen Aksu/1976 - Olmaz Olsun _ Seni Gidi Vurdumduymaz/01 - Olmaz Olsun.mp3
Sending event: after_write
embedart: embedding /Depo/Beets/Sezen Aksu/1976 - Olmaz Olsun _ Seni Gidi Vurdumduymaz/cover.jpg
Sending event: write
hook: running command "echo writing to /Depo/Beets/Sezen Aksu/1976 - Olmaz Olsun _ Seni Gidi Vurdumduymaz/02 - Seni Gidi Vurdumduymaz.mp3" for event write
writing to /Depo/Beets/Sezen Aksu/1976 - Olmaz Olsun _ Seni Gidi Vurdumduymaz/02 - Seni Gidi Vurdumduymaz.mp3
Sending event: after_write
thumbnails: generating thumbnail for Sezen Aksu - Olmaz Olsun / Seni Gidi Vurdumduymaz
artresizer: ImageMagick resizing /Depo/Beets/Sezen Aksu/1976 - Olmaz Olsun _ Seni Gidi Vurdumduymaz/cover.jpg to /root/.cache/thumbnails/normal/7a9ad5edde6ed1bd33182ea13e240746.png
thumbnails: wrote thumbnail for Sezen Aksu - Olmaz Olsun / Seni Gidi Vurdumduymaz
Sending event: database_change
acousticbrainz: getting data for: Sezen Aksu - Olmaz Olsun / Seni Gidi Vurdumduymaz - Olmaz Olsun
acousticbrainz: fetching URLs: https://acousticbrainz.org/006c8845-1749-45f1-b880-5569c84c2f8c/low-level https://acousticbrainz.org/006c8845-1749-45f1-b880-5569c84c2f8c/high-level
acousticbrainz: recording ID 006c8845-1749-45f1-b880-5569c84c2f8c not found
acousticbrainz: getting data for: Sezen Aksu - Olmaz Olsun / Seni Gidi Vurdumduymaz - Seni Gidi Vurdumduymaz
acousticbrainz: fetching URLs: https://acousticbrainz.org/8b98d9a8-cb0d-4680-8c4b-a8a2c238b4d3/low-level https://acousticbrainz.org/8b98d9a8-cb0d-4680-8c4b-a8a2c238b4d3/high-level
acousticbrainz: recording ID 8b98d9a8-cb0d-4680-8c4b-a8a2c238b4d3 not found
Sending event: album_imported
There was a problem setting permission on /Depo/Beets/Sezen Aksu/1976 - Olmaz Olsun _ Seni Gidi Vurdumduymaz/01 - Olmaz Olsun.mp3
There was a problem setting permission on /Depo/Beets/Sezen Aksu/1976 - Olmaz Olsun _ Seni Gidi Vurdumduymaz/02 - Seni Gidi Vurdumduymaz.mp3
There was a problem setting permission on /Depo/Beets/Sezen Aksu
There was a problem setting permission on /Depo/Beets/Sezen Aksu/1976 - Olmaz Olsun _ Seni Gidi Vurdumduymaz
Sending event: import
Sending event: cli_exit
hook: running command "echo beets just exited!" for event cli_exit
beets just exited!
hook: running command "echo have a nice day!" for event cli_exit
have a nice day
Now, let's check it in the database and let's check the permissions. More than once I realized that the files were moved to my library directory but not registered in the database.
[10:59] root@hades: /Depo/Beets # beet ls "Olmaz Olsun"
Sezen Aksu - Allahaısmarladık - Olmaz Olsun
Sezen Aksu - Olmaz Olsun / Seni Gidi Vurdumduymaz - Olmaz Olsun
Sezen Aksu - Olmaz Olsun / Seni Gidi Vurdumduymaz - Seni Gidi Vurdumduymaz
Nilüfer - Nilufer '84 - Olmaz Olsun
beets just exited!
have a nice day!
[11:02] root@hades: /Depo/Beets # ls -l Sezen\ Aksu/1976\ -\ Olmaz\ Olsun\ _\ Seni\ Gidi\ Vurdumduymaz/
01 - Olmaz Olsun.mp3 02 - Seni Gidi Vurdumduymaz.mp3 cover.jpg*
[11:02] root@hades: /Depo/Beets # ls -l Sezen\ Aksu/1976\ -\ Olmaz\ Olsun\ _\ Seni\ Gidi\ Vurdumduymaz/
total 8,1M
--w----r-T 1 nomad nomad 4,5M Haz 28 10:59 01 - Olmaz Olsun.mp3
--w----r-T 1 nomad nomad 3,7M Haz 28 10:59 02 - Seni Gidi Vurdumduymaz.mp3
-rwxr--r-- 1 nomad nomad 7,7K Haz 23 19:41 cover.jpg*
[11:02] root@hades: /Depo/Beets # ls -l Sezen\ Aksu/
total 4,0K
d-wxrw--wt 2 root root 4,0K Haz 28 10:59 1976 - Olmaz Olsun _ Seni Gidi Vurdumduymaz/
Also mind the nomad user for the mp3 files. Which actually is the downloading user.
I ran beets as root this time but originally I am running it as non-root user. I was testing if the same problem occurs when I run it as root. Turns out it does. And I manually have to set permissions to 755 for directories and 644 for files after it.
Once permissions plugin is disabled, problem goes away.
Setup
OS: Debian 8, Jessie
Python version: 2.7.9
beets version: 1.3.19
Turning off plugins made problem go away (yes/no): yes
Well, it seems that did it.
I imported a new folder after enabling this and it looks like it's been created with the correct permissions and without any errors.
Problem
With 1.3.19 I'm having trouble with permissions plugin. Somehow what once was working is broken.
When I import stuff beets finds them. Matches them. Tries to import them and at the last step it starts throwing out errors like below.
Running this command in verbose (
-vv
) mode:Led to this problem:
Now, let's check it in the database and let's check the permissions. More than once I realized that the files were moved to my library directory but not registered in the database.
Also mind the nomad user for the mp3 files. Which actually is the downloading user.
I ran beets as root this time but originally I am running it as non-root user. I was testing if the same problem occurs when I run it as root. Turns out it does. And I manually have to set permissions to 755 for directories and 644 for files after it.
Once permissions plugin is disabled, problem goes away.
Setup
My configuration (output of
beet config
) is:The text was updated successfully, but these errors were encountered: