Trouble with initial installation and music import

Need help? Post your questions here.

Moderator: moderators

Trouble with initial installation and music import

Postby agenerette » Tue Nov 28, 2017 1:43 pm

Here are the steps that I followed:

http://www.subsonic.org/pages/installation.jsp#debian

Spun up an Ubuntu 16.04 instance on AWS.
I might want to make it such that a connections to the server have to run over vsa-vpn. So, I put it in the same VPC and subnet as that host.

Out of the starting gate, I added a 8GB EBS volume to the instance, set that up to be managed by LVM, and moved "/var" to it.

Instaledl Java: sudo apt-get install openjdk-7-jre:

useradd ... and add the new user to sudo/wheel group and set that group up for passwordless sudo and su to the new user
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-7-jre

NOTE: I burned the vsa-media-baseline AMI at this point.

Download the Subsonic .deb package and install it (as a non-root user):

sudo dpkg -i subsonic-x.x.deb

Setup ssh tunnel between local admin workstation and vsa-media:

agenerette-personal-MBP:scriptsandsuch anthony$ ssh -L 4040:localhost:4040 agenerette@vsa-media.vsysadmins.com

I paused, at this point, on the evening of 11/26, and shut down the instance. NOTE: it seems that as soon as I tried to change the "admin" password, the host stopped listening on port 4040.

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/default/subsonic.

I created a user named "subsonic" and set SUBSONIC_USER to that name.

NOTE: I made that last change and restarted the instance and found that though the subsonic daemon came up, there was nothing listening on port 4040. Restarts of the daemon and of the instance... setting the SUBSONIC_USER variable's value back to "root": nothing helped. I also saw this problem, as mentioned, above, when I changed the admin password.

So, terminated the EC2 instance, went thru the setup steps, again, and left root as the user running the Subsonic process and left the password for admin at its default value.

I started going thru the following note, for getting things setup: http://isubapp.com/quick-start/. Nothing on that page or in any of the stuff that I found on gave me a clue on how to upload music from my iTunes library, though: except where I saw something in that quick-start guided about Subsonic's being able to detect iTunes libraries. So, I rsync'd my entire ~/Music/iTunes folder over...

$ rsync -av ~/Music/iTunes/ root@vsa-media.vsysadmins.com:/var/music/.

Since then, I've tried doing manual scans, I left the instance running, over night, thinking that maybe the scheduled 3:00 scan would do the trick. As far as I can tell, though, Subsonic still isn't recognizing the data, though I can see all of the stuff sitting out there.

Checking /var/subsonic, I found entries like these, at the bottom of the file:

[2017-11-28 04:56:31,585] INFO MediaScannerService - Marking non-present files.
[2017-11-28 04:56:31,587] INFO MediaScannerService - Marking non-present artists.
[2017-11-28 04:56:31,587] INFO MediaScannerService - Marking non-present albums.
[2017-11-28 04:56:31,588] INFO MediaScannerService - Completed media library scan.
[2017-11-28 04:56:31,640] INFO PlaylistService - Starting playlist import.
[2017-11-28 04:56:31,640] INFO PlaylistService - Completed playlist import.
[2017-11-28 04:59:21,431] INFO PlayerDao - Created player 4.
[2017-11-28 05:21:14,259] WARN NetworkService - No UPnP router found.

In the /etc/default/subsonic config file, I found:
# SUBSONIC_ARGS="--port=80 --https-port=443 --max-memory=200"

SUBSONIC_ARGS="--max-memory=150"
So, I tried commenting out the 2nd line, ucommenting the first one, and doing a "sudo service subsonic restart", though it didn't seem likely that this would help with the music library's not showing up. I don't know if the service is just taking forever to come up, but now, in my ssh-tunnel shell, I started seeing:

root@ip-172-31-9-37:~# channel 3: open failed: connect failed: Connection refused
channel 4: open failed: connect failed: Connection refused
channel 3: open failed: connect failed: Connection refused
channel 4: open failed: connect failed: Connection refused

Which made it clear that there was nothing listening on port 4040. So, I reversed my changes to the /etc/default/subsonic file. The service appears to be back up and running, but, still, no music is showing on my Home=>All page.
agenerette
 
Posts: 2
Joined: Tue Nov 28, 2017 1:32 pm

Re: Trouble with initial installation and music import

Postby toolman » Tue Nov 28, 2017 8:34 pm

Did you make sure that the account You are using has the correct priviliges to acces your music-folders?
You might presume that tha admin account has these rights automatically, but in Subsonic that is not how it works.
toolman
 
Posts: 538
Joined: Fri Dec 11, 2009 4:18 pm
Location: Netherlands

Re: Trouble with initial installation and music import

Postby agenerette » Wed Nov 29, 2017 2:38 am

<sigh>

I feel pretty silly. That was it, @toolman. Thanks.
agenerette
 
Posts: 2
Joined: Tue Nov 28, 2017 1:32 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 8 guests