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/335b16a6603c2d6f7c50b1aec8fd8b5eusers settings:
https://gyazo.com/0b68618d6aa4ae5c93ceea3f25c8558dUPDATE:
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
