Any chance up upgrading the Subsonic pbi to 6.0?

Status
Not open for further replies.

Deviant0ne

Dabbler
Joined
Sep 21, 2015
Messages
20
pffffeeeeeeew. happy again.
Restarting the jail itself solved everything somehow.
I don't get why :)
Several important directories were empty!
And I'm guessing the upgrade succeeded.

6.0 (build a7857c) – April 30, 2016
Server jetty-6.1.x, java 1.7.0_76, FreeBSD (68.9 MB / 137.5 MB)
I had a similar issue where after upgrading the PBI, my Subsonic instance wouldn't start, even after a reboot. I tried to start the Subsonic instance a few hours later and it started without any further issues. I then rebooted and found that the Subsonic instance stated-up again, without any issues. All is well now, which is all I care about!
 

Clevinger

Cadet
Joined
Nov 19, 2014
Messages
9
I had the same issue with Subsonic not starting after this upgrade, but restarting the jail fixed it.
 

Osiris

Contributor
Joined
Aug 15, 2013
Messages
148
I've read your comment about the www folder not being used anyway.
Ok, but at that time, I crawled the entire jail for the view.html (or something like that) ... which my browser said wasn't found.
So the equivalent of
Code:
find / -iname "view.html"

The file actually did not exist in the jail.
Unless it's some kind of pages-in-database kinda framework, there truly were things not yet extracted / compiled / whatever at the end of the pbi upgrade.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I've read your comment about the www folder not being used anyway.
Ok, but at that time, I crawled the entire jail for the view.html (or something like that) ... which my browser said wasn't found.
So the equivalent of
Code:
find / -iname "view.html"

The file actually did not exist in the jail.
Unless it's some kind of pages-in-database kinda framework, there truly were things not yet extracted / compiled / whatever at the end of the pbi upgrade.
I'm not exactly sure how it works. I have the plugin using the standalone version, which just is a .war file, I believe with a built in jetty server. it probably unpacks its www directory after starting under /var/db/subsonic
 

RichTJ99

Patron
Joined
Sep 12, 2013
Messages
384
Hi - I am having an issue with the new subsonic (I didnt have the old one installed since my last freenas reinstall).

I setup the plugin, am able to access the web admin.

I have storage:

/mnt/Pool/Shared/Transfer (pool within freenas)
Storage is pointing to:
/var/music on subsonic.

It is unable to find the directory when I add it with /var/music. When I browse the storage in the jail, so I can add a new directory, the /var/music is redirecting to /mnt/Pool/Shared/Transfer - so the jail is seeing the storage but is unable to add the folder within the web admin.

I get a Folder Not Found error each time. I rebooted the jail, rebooted freenas, nothing seems to work.

The directory in the pool has a group of wheel, the subsonic plugin is in the wheel group.

Any suggestions for getting this going?

Thanks,
Rich
 

Attachments

  • 2.JPG
    2.JPG
    64.5 KB · Views: 224
  • Pool.JPG
    Pool.JPG
    18.2 KB · Views: 240

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949

RichTJ99

Patron
Joined
Sep 12, 2013
Messages
384
Hi,

It looks like the jail can see the directory but subsonic just cant see the folder when I try to add it. It keeps saying "Folder Not Found". So it is unable to scan the directory for the music files.

The default root user is placed in the group called "Wheel". The jail subsonic is in the wheel group so I made sure that the permissions for the folder with the music are in the wheel group also.

Again it keeps saying folder not found. Any other ideas?

Thanks,
Rich

Code:
Welcome to FreeNAS
[root@Nas1] ~# jls
   JID  IP Address      Hostname                      Path
     1  -               Virtualbox                    /mnt/Pool/Jails1/Virtualbox
     2  -               subsonic_1                    /mnt/Pool/Jails1/subsonic_1
[root@Nas1] ~# jexec 2 csh
root@subsonic_1:/ # ls -l /var/music
total 510256
-rwxrwx---+    1 1010  1003      21508 Feb  5 20:07 .DS_Store
drwxrwx---+    2 1010  1003         50 Feb  5 19:33 CD
-rwxrwx---+    1 1010  1003      37767 Feb  6 04:10 Cameraserver4.JPG
drwxrwx---+    4 1010  1003        281 Feb  5 20:07 Jills Music
drwxrwx---+ 1148 1010  1003       1149 Feb  5 20:04 Joes MP3's
-rwxrwx---+    1 1010  1003    1196206 Feb  5 20:07 Library.xml
drwxrwx---+    5 1010  1003          7 Feb  6 02:49 MP3
-rwxrwx---+    1 1010  1003     420332 Feb  5 20:07 Music.txt
drwxrwx---+   26 1010  1003         34 Feb  5 19:40 My Music
drwxrwx---+  150 1010  1003        157 Feb  5 20:07 New MP3


can you show the output of 'ls -l /var/music'
also you may want to try initiating a rescan in subsonic.

when you say the plugin is in the wheel group, I doubt you know exactly what you are saying.
https://forums.freenas.org/index.ph...plugins-write-permissions-to-your-data.27273/
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949

RichTJ99

Patron
Joined
Sep 12, 2013
Messages
384
When I goto users I dont see the media user in my user list. Can I just add that user (if I can find it) to the 'wheel' group which has permissions?

Or am I better off making a new dataset for music & leave all default permissions, creating a cif share & then copying the music to that directory?

Thank you for your help!
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
read the opening post of the thread I linked. I explain there that users in the jail and freenas are not shared.
also I explain how you could use group ownership to access files (Solution 3).
 

Osiris

Contributor
Joined
Aug 15, 2013
Messages
148
Probably unnecessary info, but still giving it ...

I've done it the other way around.
my music is stored in something like /zpool-volume/jailroot/subsonic/music
Rights get screwed up however, by using the linux version of musicbrainz-picard.
I've created a symlink to this folder in one of my cifs shares so the music is directly accessible on the network.
The windows version of musicbrainz-picard tends to leave the rights alone, it seems (probably due to my setup with cifs and acls).

Still ... I've got a cronned script running directly on the nas that throws the rights on the musicfolder wide open every night.
I change the user also to the one I use for cifs sharing.
I'll post the scripts once I got everything running again (just moved to a new house & my rack arrived today).
Basically it reads ...
/nas/path/to/chmod -R 777 /zpool-volume/jailroot/subsonic/music
/nas/path/to/chown -R myuser:wheel /zpool-volume/jailroot/subsonic/music

PS:
User rights in a mixed environment (windohz, android, freenas, linux) remains a bitch.
Certainly with multiple nasses & mounting around.
I had to play around with setting windows rights and setfacl to get everything in order.
 
Status
Not open for further replies.
Top