RESOLVED: Subsonic Update

User avatar
bigfoot65
Project Manager
Posts: 11521
Joined: Mon May 25, 2009 4:31 pm

Re: Subsonic Update

Postby bigfoot65 » Tue Sep 30, 2014 11:47 am

Is the user name in that file = root?

[ Post made via Android ] Image
ßîgƒσστ65
Applications Manager

burn913
Posts: 71
Joined: Sun Mar 09, 2014 12:02 pm

Re: Subsonic Update

Postby burn913 » Tue Sep 30, 2014 12:34 pm

No, the username = [my root username]

So that username should literally be "root" not "[my username]"?

I'm a little unclear as to how to actually change the text of that file. I can view it using vi /etc/sysconfig/subsonic

I saw this online basic command resource that seems to explain it a bit: http://www.cs.colostate.edu/helpdocs/vi.html

User avatar
bigfoot65
Project Manager
Posts: 11521
Joined: Mon May 25, 2009 4:31 pm

Re: Subsonic Update

Postby bigfoot65 » Tue Sep 30, 2014 12:37 pm

Let's do this. I changed it in the app back to root. That was the one change I made with the new version.

Uninstall and reinstall. See if that makes a difference.

Once you do so, check /etc/sysconfig/subsonic to see if it says root now.
ßîgƒσστ65
Applications Manager

burn913
Posts: 71
Joined: Sun Mar 09, 2014 12:02 pm

Re: Subsonic Update

Postby burn913 » Tue Sep 30, 2014 12:39 pm

I will give it a try when I get home in a couple of hours. I'll let you know what I find. Thanks!

User avatar
bigfoot65
Project Manager
Posts: 11521
Joined: Mon May 25, 2009 4:31 pm

Re: Subsonic Update

Postby bigfoot65 » Tue Sep 30, 2014 12:44 pm

No problem. I am guessing that changing the user name from root to your user caused the issue. That was what changed besides the version in Subsonic. The ownership permissions for the /var/Podcast has to match the user Subsonic runs as.

In this case, it was your 1st admin user. By changing the user that Subsonic runs as to root, it will match the permissions of the folder.

It would be best if Subsonic was not run as root, but that seems to cause issues. If you want to change it back to your user, we can work through that and the folder ownership permissions as well.
ßîgƒσστ65
Applications Manager

burn913
Posts: 71
Joined: Sun Mar 09, 2014 12:02 pm

Re: Subsonic Update

Postby burn913 » Tue Sep 30, 2014 12:59 pm

Ok that actually makes a lot of sense to me and will likely solve my problem.

I can understand why you would change that to be the username rather than root. After installation, Subsonic suggests running it as a dedicated user (and not as root) for security purposes. I have come close to attempting changing this, but their instructions are pretty vague. These are their instructions:
Change user

By default the Subsonic process is run as the root user. To improve security it is strongly advised that you run it as a dedicated user with less powerful privileges. You can specify this user by setting the SUBSONIC_USER variable in /etc/sysconfig/subsonic.

Note that non-root users are by default not allowed to use ports below 1024. Also make sure to grant the user write permissions in the music directories, otherwise changing album art and tags will fail.
For someone not familiar with editing config files, this doesn't really provide enough guidance. However, I'm not really sure of: what user to make SUBSONIC_USER, how to make the change, and at this point, it seems that this might recreate permission problems.

Thanks

User avatar
bigfoot65
Project Manager
Posts: 11521
Joined: Mon May 25, 2009 4:31 pm

Re: Subsonic Update

Postby bigfoot65 » Tue Sep 30, 2014 2:02 pm

Making the changes is pretty easy. Once you install the app, I am going to put it back to the user name instead of root.

Most users set the folders to their shares, not /var/Music or /var/Podcast. That works better as well.
ßîgƒσστ65
Applications Manager

burn913
Posts: 71
Joined: Sun Mar 09, 2014 12:02 pm

Re: Subsonic Update

Postby burn913 » Tue Sep 30, 2014 2:30 pm

I uninstalled and reinstalled the app and everything is working as normal!

The only media that I don't have on one of my shares is the var/Podcast because I don't care about using it anywhere except in Subsonic, and that's where I created it. Could it solve some permission problems if i switched it to a share? My music runs from my Amahi music share folder.

I am interested in running this on a dedicated user rather than root as long as it's not too much work. If it just involves playing with the permissions, I would be interested in giving it a try. Like i said before, I'm just a bit daunted by the text editing by command line.

Anyways, thanks for solving my immediate problem!

User avatar
bigfoot65
Project Manager
Posts: 11521
Joined: Mon May 25, 2009 4:31 pm

Re: Subsonic Update

Postby bigfoot65 » Tue Sep 30, 2014 2:38 pm

Ok, best to move those podcasts to a share. Create a share called Podcast. As root user, do:

Code: Select all

mv /var/Podcast/* /var/hda/files/podcast chown -R 1stadmin:users /var/hda/files/podcast
1stadmin would be your first admin user in Amahi.

Then you can uninstall and reinstall Subsonic to get the user change from root to your 1stadmin user. I have put the app back to the original way it was set up.

To check if it's changed, do:

Code: Select all

cat /etc/sysconfig/subsonic
The user name line should now reflect your user instead of root.
ßîgƒσστ65
Applications Manager

burn913
Posts: 71
Joined: Sun Mar 09, 2014 12:02 pm

Re: Subsonic Update

Postby burn913 » Tue Sep 30, 2014 2:56 pm

That worked! I was easily able to update the Subsonic settings, and I was able to keep my previously downloaded podcasts too!

Thanks so much! Amahi is the best, and now I believe in bigfoot.

Who is online

Users browsing this forum: No registered users and 3 guests