Music is not added

General discussions.

Moderator: moderators

Music is not added

Postby sashpta » Wed May 31, 2017 2:42 pm

Heyo,
I just installed Subsonic on my RaspberryPi3 using the following guide http://lifehacker.com/how-to-turn-a-ras ... 1583221462

Unfortunately I am not able to add music. When I do 'scan now' it scans 100+ files but nothing is added to my library :/


Does someone maybe have an idea on how to fix this?

Thx in advance.
sashpta
 
Posts: 4
Joined: Wed May 31, 2017 2:38 pm

Re: Music is not added

Postby mitrailer » Wed May 31, 2017 4:15 pm

Check if your user has the permission to view the folder.

Enter subsonic with the "admin" account. Go to "Settings -> Users" then select your user and check the boxes bellow "Allow access to these media folders"

Cheers
mitrailer
 
Posts: 138
Joined: Fri May 09, 2014 12:35 am

Re: Music is not added

Postby sashpta » Wed May 31, 2017 5:01 pm

mitrailer wrote:Check if your user has the permission to view the folder.


Thx for the reply.
The user has permissions. Furthermore neither the admin nor the user can see the music.
https://gyazo.com/53e34bcd2fde55af55a2db47a45d6884 that's what happens when I click on scan now

and here are the users settings: https://gyazo.com/29d29b79407c1e3c304ed4d5ca54b3ab
sashpta
 
Posts: 4
Joined: Wed May 31, 2017 2:38 pm

Re: Music is not added

Postby mitrailer » Wed May 31, 2017 5:36 pm

Ok, check if "subsonic" have permission (SUBSONIC_USER=[new username]) to access the hard drive.

You have two possibilities

1. Set SUBSONIC_USER=pi (but it is no recomended)
2. Use the terminal and give [new username] permission to read/write the hard drive or pass the ownership of the hard drive to [new username] . You can google plenty of way any of this.

NOTE: you can install java with
Code: Select all
sudo apt-get update && sudo apt-get install oracle-java8-jdk
mitrailer
 
Posts: 138
Joined: Fri May 09, 2014 12:35 am

Re: Music is not added

Postby sashpta » Wed May 31, 2017 7:36 pm

mitrailer wrote:Ok, check if "subsonic" have permission (SUBSONIC_USER=[new username]) to access the hard drive.

You have two possibilities

1. Set SUBSONIC_USER=pi (but it is no recomended)
2. Use the terminal and give [new username] permission to read/write the hard drive or pass the ownership of the hard drive to [new username] . You can google plenty of way any of this.

NOTE: you can install java with
Code: Select all
sudo apt-get update && sudo apt-get install oracle-java8-jdk


Ye I guess it was a premissions problem.
I now did it all again but now I used scp to send the music files to the home directory of the user 'subsonic'.
Linking his homefolder works.
Unfortunately I cannot make it work to use the music on the external drive.

I now changed the permissions so that they are exactly the same (actually everyone can do everything) but it just won't work
Here the cli output of the home directory where all works
Code: Select all
subsonic@raspberrypi:/data/music/HappyCramper $ ls -l ~
total 4
drwxrwxrwx 2 subsonic subsonic 4096 May 31 19:15 HappyCamper

subsonic@raspberrypi:/data/music/HappyCramper $ ls -l ~/HappyCamper/
total 111448
-rwxr-xr-x 1 subsonic subsonic 10796488 May 31 19:15 01 Intro to Anxiety.mp3
-rwxr-xr-x 1 subsonic subsonic 10944445 May 31 19:15 02 Are U Having Any Fun (Feat. Meghan Tonjes).mp3
-rwxr-xr-x 1 subsonic subsonic 11057294 May 31 19:15 03 Remind Me Of.mp3
-rwxr-xr-x 1 subsonic subsonic 12014421 May 31 19:15 04 So Close To Happiness.mp3
-rwxr-xr-x 1 subsonic subsonic 12560276 May 31 19:15 05 Too Invested.mp3
-rwxr-xr-x 1 subsonic subsonic 11104106 May 31 19:15 06 Surprise Party (Feat. Blackbear).mp3
-rwxr-xr-x 1 subsonic subsonic 11541291 May 31 19:15 07 Make You Feel (Feat. Ricky Smith).mp3
-rwxr-xr-x 1 subsonic subsonic 11948383 May 31 19:15 08 Champagne and Pools (Feat. Blackbear & SuperDuperKyle).mp3
-rwxr-xr-x 1 subsonic subsonic 10455433 May 31 19:15 09 25th Hour.mp3
-rwxr-xr-x 1 subsonic subsonic 11683398 May 31 19:16 10 King to Me.mp3




Here the output of the external drive.
Code: Select all
subsonic@raspberrypi:/data/music/HappyCramper $ ls -l /home | grep subsonic
drwxr-xr-x 4 subsonic  subsonic  4096 May 31 19:16 subsonic

subsonic@raspberrypi:/data/music/HappyCramper $ ls -l ~
total 4
drwxrwxrwx 2 subsonic subsonic 4096 May 31 19:15 HappyCamper

subsonic@raspberrypi:/data/music/HappyCramper $ ls -l / | grep data # doesnt work
drwxrwxrwx   4 subsonic subsonic  4096 May 31 19:19 data

subsonic@raspberrypi:/data/music/HappyCramper $ ls -l /data
total 20
drwx-w---- 2 root     users    16384 May 31 18:49 lost+found
drwxrwxrwx 3 subsonic subsonic  4096 May 31 19:22 music

subsonic@raspberrypi:/data/music/HappyCramper $ ls -l /data/music/
total 4
drwxrwxrwx 2 subsonic subsonic 4096 May 31 19:21 HappyCramper

subsonic@raspberrypi:/data/music/HappyCramper $ ls -l /data/music/HappyCramper/
total 111448
-rwxr-xr-x 1 subsonic subsonic 10796488 May 31 19:21 01 Intro to Anxiety.mp3
-rwxr-xr-x 1 subsonic subsonic 10944445 May 31 19:21 02 Are U Having Any Fun (Feat. Meghan Tonjes).mp3
-rwxr-xr-x 1 subsonic subsonic 11057294 May 31 19:21 03 Remind Me Of.mp3
-rwxr-xr-x 1 subsonic subsonic 12014421 May 31 19:21 04 So Close To Happiness.mp3
-rwxr-xr-x 1 subsonic subsonic 12560276 May 31 19:21 05 Too Invested.mp3
-rwxr-xr-x 1 subsonic subsonic 11104106 May 31 19:21 06 Surprise Party (Feat. Blackbear).mp3
-rwxr-xr-x 1 subsonic subsonic 11541291 May 31 19:21 07 Make You Feel (Feat. Ricky Smith).mp3
-rwxr-xr-x 1 subsonic subsonic 11948383 May 31 19:21 08 Champagne and Pools (Feat. Blackbear & SuperDuperKyle).mp3
-rwxr-xr-x 1 subsonic subsonic 10455433 May 31 19:21 09 25th Hour.mp3
-rwxr-xr-x 1 subsonic subsonic 11683398 May 31 19:21 10 King to Me.mp3



Here the settings: https://gyazo.com/335b16a6603c2d6f7c50b1aec8fd8b5e
users settings: https://gyazo.com/0b68618d6aa4ae5c93ceea3f25c8558d



UPDATE:
I could make it work by moving `subsonic`'s home directory to `/data/music`
Probably not the best solution but it works for now.
However I'd appreciate another solution if there is any :)
sashpta
 
Posts: 4
Joined: Wed May 31, 2017 2:38 pm


Return to General

Who is online

Users browsing this forum: No registered users and 7 guests