Subsonic not starting on Ubuntu, debian installer

Need help? Post your questions here.

Moderator: moderators

Subsonic not starting on Ubuntu, debian installer

Postby telijah » Tue Feb 19, 2013 8:28 pm

So I installed to my Ubuntu web server with debian installer. All seems to go OK, but it will not start. Here is the output when trying to start it using my Webmin control app:

Code: Select all
Executing /etc/init.d/subsonic start ..

ERROR: List of process IDs must follow -p.


Any thoughts?

Running Ubuntu 11.04 on a VPS. I've created a new user for subsonic, and set the permissions correctly as well, and also put the --port=8081 since my web server has other actual web sites...
Last edited by telijah on Wed Feb 20, 2013 8:27 pm, edited 1 time in total.
telijah
 
Posts: 28
Joined: Sun Aug 05, 2012 2:11 pm

Re: Subsonic not starting on Ubuntu, debian installer

Postby telijah » Wed Feb 20, 2013 8:26 pm

Anyone?
telijah
 
Posts: 28
Joined: Sun Aug 05, 2012 2:11 pm

Re: Subsonic not starting on Ubuntu, debian installer

Postby Aethies » Fri Feb 22, 2013 4:54 pm

What does your subsonic log show? /var/log/subsonic
Aethies

Ubuntu Server 12.04
===================
3,281 artists
9,432 albums
113,608 songs
2636.09 GB (10,769 hours)
===================
User avatar
Aethies
 
Posts: 197
Joined: Fri Oct 24, 2008 4:33 pm

Re: Subsonic not starting on Ubuntu, debian installer

Postby telijah » Fri Feb 22, 2013 5:03 pm

There is no log, presumably since I cannot even get the service started. I assume whatever line in /etc/init.d/subsonic is using the -p extension, it is expecting something to show up Below is the full text I receive when trying to start the subsonic service

Code: Select all
Executing /etc/init.d/subsonic start ..

ERROR: List of process IDs must follow -p.
********* simple selection *********  ********* selection by list *********
-A all processes                      -C by command name
-N negate selection                   -G by real group ID (supports names)
-a all w/ tty except session leaders  -U by real user ID (supports names)
-d all except session leaders         -g by session OR by effective group name
-e all processes                      -p by process ID
T  all processes on this terminal     -s processes in the sessions given
a  all w/ tty, including other users  -t by tty
g  OBSOLETE -- DO NOT USE             -u by effective user ID (supports names)
r  only running processes             U  processes for specified users
x  processes w/o controlling ttys     t  by tty
*********** output format **********  *********** long options ***********
-o,o user-defined  -f full            --Group --User --pid --cols --ppid
-j,j job control   s  signal          --group --user --sid --rows --info
-O,O preloaded -o  v  virtual memory  --cumulative --format --deselect
-l,l long          u  user-oriented   --sort --tty --forest --version
-F   extra full    X  registers       --heading --no-heading --context
                    ********* misc options *********
-V,V  show version      L  list format codes  f  ASCII art forest
-m,m,-L,-T,H  threads   S  children in sum    -y change -l format
-M,Z  security data     c  true command name  -c scheduling class
-w,w  wide output       n  numeric WCHAN,UID  -H process hierarchy
Usage: subsonic.sh [options]
  --help               This small usage guide.
  --home=DIR           The directory where Subsonic will create files.
                       Make sure it is writable. Default: /var/subsonic
  --host=HOST          The host name or IP address on which to bind Subsonic.
                       Only relevant if you have multiple network interfaces and want
                       to make Subsonic available on only one of them. The default value
                       will bind Subsonic to all available network interfaces. Default: 0.0.0.0
  --port=PORT          The port on which Subsonic will listen for
                       incoming HTTP traffic. Default: 4040
  --https-port=PORT    The port on which Subsonic will listen for
                       incoming HTTPS traffic. Default: 0 (disabled)
  --context-path=PATH  The context path, i.e., the last part of the Subsonic
                       URL. Typically '/' or '/subsonic'. Default '/'
  --max-memory=MB      The memory limit (max Java heap size) in megabytes.
                       Default: 100
  --pidfile=PIDFILE    Write PID to this file. Default not created.
  --quiet              Don't print anything to standard out. Default false.
  --default-music-folder=DIR    Configure Subsonic to use this folder for music.  This option
                                only has effect the first time Subsonic is started. Default '/var/music'
  --default-podcast-folder=DIR  Configure Subsonic to use this folder for Podcasts.  This option
                                only has effect the first time Subsonic is started. Default '/var/music/Podcast'
  --default-playlist-folder=DIR Configure Subsonic to use this folder for playlists.  This option
                                only has effect the first time Subsonic is started. Default '/var/playlists'


When I look at etc/init.d/subsonic, in the function that starts subsonic, you see the -p otpion being used, but this is where my linux knowledge fails me

Code: Select all
#
# Function that starts the daemon/service
#
do_start()
{
   # Return
   #   0 if daemon has been started
   #   1 if daemon was already running
   #   2 if daemon could not be started

    if [ -e $PIDFILE ]
    then
   ps -p $(cat $PIDFILE) > /dev/null
   [ "$?" = 0 ] && return 1
    fi

    touch $PIDFILE
    chown $SUBSONIC_USER $PIDFILE
    [ -e /var/subsonic ] && chown -R $SUBSONIC_USER /var/subsonic
    [ -e /tmp/subsonic ] && chown -R $SUBSONIC_USER /tmp/subsonic

    start-stop-daemon --start -c $SUBSONIC_USER --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_ARGS || return 2
}
telijah
 
Posts: 28
Joined: Sun Aug 05, 2012 2:11 pm

Re: Subsonic not starting on Ubuntu, debian installer

Postby Aethies » Fri Feb 22, 2013 8:03 pm

I was talking about the /var/subsonic/subsonic.log file. And/or the subsonic_sh.log
Aethies

Ubuntu Server 12.04
===================
3,281 artists
9,432 albums
113,608 songs
2636.09 GB (10,769 hours)
===================
User avatar
Aethies
 
Posts: 197
Joined: Fri Oct 24, 2008 4:33 pm

Re: Subsonic not starting on Ubuntu, debian installer

Postby telijah » Fri Feb 22, 2013 8:21 pm

There doesn't appear to be anything useful in them. subsonic.log just lists a bunch of entries where certain database tables were not found, and so created, and the final line just states no upnp router was found.

subsonic_sh.log also does not see to give me anything related to the startup errors.

I've put both files into my dropbox account: https://www.dropbox.com/sh/lx7erkdoisf25zn/ES5SVBy1Z2
telijah
 
Posts: 28
Joined: Sun Aug 05, 2012 2:11 pm

Re: Subsonic not starting on Ubuntu, debian installer

Postby telijah » Fri Feb 22, 2013 10:00 pm

Well, I found I had a problem with my dpkg cache, so purged it, stil lwas getting the same problem. I uninstalled subsonic, but had to manually remove /etc/default/subsonic; /var/subsonic. Reinstalled, and now the service has started. Not sure if any of it is working yet, but at least the service started.
telijah
 
Posts: 28
Joined: Sun Aug 05, 2012 2:11 pm

Re: Subsonic not starting on Ubuntu, debian installer

Postby telijah » Fri Feb 22, 2013 10:50 pm

So, subsonic is now running on my server, but there is no /etc/default/subsonic file. Is there a "blank" or dummy one I can get?
telijah
 
Posts: 28
Joined: Sun Aug 05, 2012 2:11 pm

Re: Subsonic not starting on Ubuntu, debian installer

Postby Aethies » Sat Feb 23, 2013 2:11 am

I use the standalone, so I couldn't help you there. But I am glad that you got the service to start.
Aethies

Ubuntu Server 12.04
===================
3,281 artists
9,432 albums
113,608 songs
2636.09 GB (10,769 hours)
===================
User avatar
Aethies
 
Posts: 197
Joined: Fri Oct 24, 2008 4:33 pm

Re: Subsonic not starting on Ubuntu, debian installer

Postby telijah » Sat Feb 23, 2013 2:40 am

Yeah, I can access the site now, but I want to change the port and user since it's logged in as root, but without the default file I cannot change those settings like port, user, max memory size etc...
telijah
 
Posts: 28
Joined: Sun Aug 05, 2012 2:11 pm

Re: Subsonic not starting on Ubuntu, debian installer

Postby Aethies » Sat Feb 23, 2013 7:45 pm

You can just create one:

Code: Select all
#
# This is the configuration file for the Subsonic service
# (/etc/init.d/subsonic)
#
# To change the startup parameters of Subsonic, modify
# the SUBSONIC_ARGS variable below.
#
# Type "subsonic --help" on the command line to read an
# explanation of the different options.
#
# For example, to specify that Subsonic should use port 80 (for http)
# and 443 (for https), and use a Java memory heap size of 200 MB, use
# the following:
#
# SUBSONIC_ARGS="--port=80 --https-port=443 --max-memory=200"

SUBSONIC_ARGS="--port=8080 --https-port=4434 --max-memory=512"

# The user which should run the Subsonic process. Default "root".
# 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.

SUBSONIC_USER=system_subsonic


That was pulled from here:

http://sourceforge.net/apps/mediawiki/subsonic/index.php?title=Debian_prebuilt
Aethies

Ubuntu Server 12.04
===================
3,281 artists
9,432 albums
113,608 songs
2636.09 GB (10,769 hours)
===================
User avatar
Aethies
 
Posts: 197
Joined: Fri Oct 24, 2008 4:33 pm

Re: Subsonic not starting on Ubuntu, debian installer

Postby telijah » Sun Feb 24, 2013 4:29 pm

Thats what I was looking for, thanks!
telijah
 
Posts: 28
Joined: Sun Aug 05, 2012 2:11 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 35 guests