Subsonic Permissions / plugin not working?

Status
Not open for further replies.

RichTJ99

Patron
Joined
Sep 12, 2013
Messages
384
Hi,

I installed Subsonic with the plugin. I then gave my user account (Rich) and user group (RichTJ) default permissions to the storage directory so I could map a windows share & copy my music to the share.

I copied the data, and pointed subsonic to the music directory & hit add to library.

I notice that i am getting messages:

Subsonic_1 Cron[19614]: login_getclass: unknown class 'dameon'
Subsonic_1 Cron[19614]: secure_path: /etc/login.conf is not owned by root

Subsonic_1 Cron[20162]: secure_path: /etc/login.conf is not owned by root

I see these periodically in the log, so I changed the storage owner permissions back to root/wheel (not something I use myself)

Now if i goto my subsonic web page, it wont load, but i still get the messages.

I tried stopping the jail, restarting the jail, rebooting the freenas, etc.

Any suggestions?

Thanks,
Rich
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
when you changed permissions did you so do for the jail's files? that will break the jail and you'll need to reinstall a new instance of subsonic.

never do this, only ever change permissions of datasets you mount into the jail for programs to access.
 

RichTJ99

Patron
Joined
Sep 12, 2013
Messages
384
Hi,

I think i went into the individual plugins storage. I did the same thing for Virtualbox so I could transfer iso files to the jail & the permissions are still set with me (not root) as the owner & it works fine.

I did the same thing for plex also (attached).

Plex also continues to work.

I dont mind deleting & redoing the jail, i just want to figure what i did wrong so I dont do it again.

Plex & Virtualbox - I change overship of the jail to me, then goto Cifs & create a new share so I can put data into it.

Is that the wrong way to do it?

Thanks,
Rich
 

Attachments

  • subsonic.JPG
    subsonic.JPG
    112.3 KB · Views: 221

Joshua Parker Ruehlig

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

I think i went into the individual plugins storage. I did the same thing for Virtualbox so I could transfer iso files to the jail & the permissions are still set with me (not root) as the owner & it works fine.

I did the same thing for plex also (attached).

Plex also continues to work.

I dont mind deleting & redoing the jail, i just want to figure what i did wrong so I dont do it again.

Plex & Virtualbox - I change overship of the jail to me, then goto Cifs & create a new share so I can put data into it.

Is that the wrong way to do it?

Thanks,
Rich
it's wrong to change the ownership/permission of OS files (which is what the jail dataset has). im not experienced with CIFS so I'll let someone else answer.

plex continues to work? Then I don't everything you said is 100% accurate then. 'ls -l /' and 'service plexmediaserver onerestart' will show you didn't change permissions, or plex doesn't actually work anymore.
 

RichTJ99

Patron
Joined
Sep 12, 2013
Messages
384
Yes Plex continues to work, subsonic doesnt work.

Do I just type that info into a command line?
 

Joshua Parker Ruehlig

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

RichTJ99

Patron
Joined
Sep 12, 2013
Messages
384
Sorry to ask but how do i get to the jail via shell?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Sorry to ask but how do i get to the jail via shell?
if you're just using the shell from the freenas webui there's specific ones available on the Jails tab.
 

RichTJ99

Patron
Joined
Sep 12, 2013
Messages
384
This is what it says:

root@plexmediaserver_1:/ # service plexmediaserver onerestart
Stopping plexmediaserver.
Waiting for PIDS: 7511.
Cleaning up leftover child processes.
Waiting for PIDS: 9390 8546.
Starting plexmediaserver.
root@plexmediaserver_1:/ #
root@plexmediaserver_1:/ #
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
you didn't show the output of 'ls -l /'

also, can you show the output of 'service subsonic onestart' and 'ls -l /' in the subsonic jail?
 

RichTJ99

Patron
Joined
Sep 12, 2013
Messages
384
I think it had more but i cant figure how to scroll in the web shell

-rw-r--r-- 2 root wheel 965 Jul 10 2014 .cshrc
drwxr-xr-x 2 root wheel 4 Dec 15 12:43 .plugins
-rw-r--r-- 2 root wheel 253 Jul 10 2014 .profile
-r--r--r-- 1 root wheel 6197 Jul 10 2014 COPYRIGHT
drwxrwxrwx 2 1001 1001 38 Dec 16 17:39 Movies
drwxr-xr-x 2 root wheel 46 Jul 10 2014 bin
drwxr-xr-x 7 root wheel 40 Jul 10 2014 boot
dr-xr-xr-x 9 root wheel 512 Dec 31 16:14 dev
drwxr-xr-x 21 root wheel 104 Dec 31 16:14 etc
drwxr-xr-x 3 root wheel 49 Jul 10 2014 lib
drwxr-xr-x 3 root wheel 5 Apr 2 2015 libexec
drwxr-xr-x 2 root wheel 2 Jul 10 2014 media
drwxr-xr-x 2 root wheel 2 Jul 10 2014 mnt
drwxr-xr-x 2 1001 1001 2 Dec 15 17:25 plexdata
drwxrwxr-x+ 2 1001 1001 4 Dec 16 23:45 plexdata2
dr-xr-xr-x 1 root wheel 0 Dec 31 16:20 proc
drwxr-xr-x 2 root wheel 144 Jul 10 2014 rescue
drwxr-xr-x 2 root wheel 7 Dec 31 14:22 root
drwxr-xr-x 2 root wheel 132 Jul 10 2014 sbin
lrwxr-xr-x 1 root wheel 11 Jul 10 2014 sys -> usr/src/sys
drwxrwxrwt 6 root wheel 7 Dec 31 16:15 tmp
drwxr-xr-x 15 root wheel 15 Dec 15 12:43 usr
drwxr-xr-x 25 root wheel 25 Dec 31 16:14 var
root@plexmediaserver_1:/ #



Subsonic:

total 275
-rwxrwxr-x 2 1001 1001 965 Jul 10 2014 .cshrc
drwxrwxr-x 2 1001 1001 4 Dec 17 00:04 .plugins
-rwxrwxr-x 2 1001 1001 253 Jul 10 2014 .profile
-rwxrwxr-x 1 1001 1001 6197 Jul 10 2014 COPYRIGHT
drwxrwxr-x 12 1001 1001 18 Dec 17 17:26 Music1
drwxrwxr-x 2 1001 1001 46 Jul 10 2014 bin
drwxrwxr-x 7 1001 1001 40 Jul 10 2014 boot
dr-xr-xr-x 9 root wheel 512 Dec 31 16:15 dev
drwxrwxr-x 21 1001 1001 104 Dec 31 16:15 etc
drwxrwxr-x 3 1001 1001 49 Jul 10 2014 lib
drwxrwxr-x 3 1001 1001 5 Apr 2 2015 libexec
drwxrwxr-x 2 1001 1001 2 Jul 10 2014 media
drwxrwxr-x 2 1001 1001 2 Jul 10 2014 mnt
drwxrwxr-x 12 1001 1001 18 Dec 17 17:26 music1
dr-xr-xr-x 1 root wheel 0 Dec 31 16:21 proc
drwxrwxr-x 2 1001 1001 144 Jul 10 2014 rescue
drwxrwxr-x 2 1001 1001 6 Jul 10 2014 root
drwxrwxr-x 2 1001 1001 132 Jul 10 2014 sbin
lrwxr-xr-x 1 root wheel 11 Jul 10 2014 sys -> usr/src/sys
drwxrwxr-x 7 1001 1001 7 Dec 31 16:15 tmp
drwxrwxr-x 15 1001 1001 15 Dec 17 00:04 usr
drwxrwxr-x 25 1001 1001 25 Dec 31 16:15 var


root@subsonic_1:/ # service subsonic onestart
Starting subsonic.
su: pam_start: system error
/usr/local/etc/rc.d/subsonic: WARNING: failed to start subsonic
root@subsonic_1:/ # service subsonic onerestart
subsonic not running?
Starting subsonic.
su: pam_start: system error
/usr/local/etc/rc.d/subsonic: WARNING: failed to start subsonic
root@subsonic_1:/ #
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
you changed the permissions/ownership of you subsonic jail which broke it. the plex jail looks fine, maybe there you properly changed the permissions/ownership of a dataset mounted into your jail.

you'll need to install a new instance of subsonic. if you have configuration in your old subsonic to save you can backup and restore /var/db/subsonic
 

RichTJ99

Patron
Joined
Sep 12, 2013
Messages
384
Thanks for the help! I cant figure what I did differently for plex that i was able to make a windows share, put my data on it & have plex still see it.

I guess the good thing about jails is it is easy to play break, delete & move on.
 
Status
Not open for further replies.
Top