[solved] error 503 service_unavailable

Need help? Post your questions here.

Moderator: moderators

[solved] error 503 service_unavailable

Postby mcmillanje » Sat Dec 25, 2010 4:53 am

[edit]

Seems it was a problem with my hosts file. When I replaced it with a cleaned up one provided by stozher it worked like a charm.

The answer to the other error was assigning a static ip address (called "reserved ip" by my netgear router.) followed the tutorial mentioned in this thread:
http://forum.subsonic.org/forum/viewtopic.php?p=18609#18609

[/edit]



Ubuntu linux 10.10
Subsonic 4.2
Installed subsonic. Uninstalled. Reinstalled. Now whenever I go to localhost::4040 (the port its set to) It gives me the following error:
Code: Select all
HTTP ERROR: 503

SERVICE_UNAVAILABLE

RequestURI=/

Powered by jetty://


Don't know how to access it anymore. Help?

also: when it was installed i donated and made a subsonic subdomain (mcmillanje.subsonic.org). whenever I try to set it up on that again it says "domain registered, cannot connect... something about time-out"

can you help? :lol:[/url]
Last edited by mcmillanje on Mon Dec 27, 2010 9:00 am, edited 1 time in total.
mcmillanje
 
Posts: 14
Joined: Sat Dec 25, 2010 4:18 am

Postby Exrace » Sat Dec 25, 2010 5:46 am

Default install port is 80
Any reason you set to 4040?
Exrace
 
Posts: 218
Joined: Thu Nov 11, 2010 5:02 am

Postby mcmillanje » Sat Dec 25, 2010 6:08 am

It seemed to be set on that by default.... I'll try 80 but 4040 worked originally.
mcmillanje
 
Posts: 14
Joined: Sat Dec 25, 2010 4:18 am

Postby stozher » Sat Dec 25, 2010 6:35 am

http://localhost:4040/

Check configuration options in /etc/default/subsonic (daemon options) or /usr/share/subsonic/subsonic.sh (user startup options). Check also if a service started in GNOME: System / Administration / Services
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby mcmillanje » Sat Dec 25, 2010 8:09 pm

/etc/default/subsonic

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 7070
# and use a Java memory heap size of 80 MB, use the following:
#
# SUBSONIC_ARGS="--port=7070 --max-memory=80"

SUBSONIC_ARGS="--port=4040 --max-memory=100"


/usr/share/subsonic/subsonic.sh

Code: Select all
#!/bin/sh

###################################################################################
# Shell script for starting Subsonic.  See http://subsonic.org.
#
# Author: Sindre Mehus
###################################################################################

SUBSONIC_HOME=/var/subsonic
SUBSONIC_HOST=0.0.0.0
SUBSONIC_PORT=4040
SUBSONIC_CONTEXT_PATH=/
SUBSONIC_MAX_MEMORY=100
SUBSONIC_PIDFILE=
SUBSONIC_DEFAULT_MUSIC_FOLDER=/var/music
SUBSONIC_DEFAULT_PODCAST_FOLDER=/var/music/Podcast
SUBSONIC_DEFAULT_PLAYLIST_FOLDER=/var/playlists

quiet=0

usage() {
    echo "Usage: subsonic.sh [options]"
    echo "  --help               This small usage guide."
    echo "  --home=DIR           The directory where Subsonic will create files."
    echo "                       Make sure it is writable. Default: /var/subsonic"
    echo "  --host=HOST          The host name or IP address on which to bind Subsonic."
    echo "                       Only relevant if you have multiple network interfaces and want"
    echo "                       to make Subsonic available on only one of them. The default value"
    echo "                       will bind Subsonic to all available network interfaces. Default: 0.0.0.0"
    echo "  --port=PORT          The port on which Subsonic will listen for"
    echo "                       incoming HTTP traffic. Default: 4040"
    echo "  --context-path=PATH  The context path, i.e., the last part of the Subsonic"
    echo "                       URL. Typically '/' or '/subsonic'. Default '/'"
    echo "  --max-memory=MB      The memory limit (max Java heap size) in megabytes."
    echo "                       Default: 100"
    echo "  --pidfile=PIDFILE    Write PID to this file. Default not created."
    echo "  --quiet              Don't print anything to standard out. Default false."
    echo "  --default-music-folder=DIR    Configure Subsonic to use this folder for music.  This option "
    echo "                                only has effect the first time Subsonic is started. Default '/var/music'"
    echo "  --default-podcast-folder=DIR  Configure Subsonic to use this folder for Podcasts.  This option "
    echo "                                only has effect the first time Subsonic is started. Default '/var/music/Podcast'"
    echo "  --default-playlist-folder=DIR Configure Subsonic to use this folder for playlists.  This option "
    echo "                                only has effect the first time Subsonic is started. Default '/var/playlists'"
    exit 1
}

# Parse arguments.
while [ $# -ge 1 ]; do
    case $1 in
        --help)
            usage
            ;;
        --home=?*)
            SUBSONIC_HOME=${1#--home=}
            ;;
        --host=?*)
            SUBSONIC_HOST=${1#--host=}
            ;;
        --port=?*)
            SUBSONIC_PORT=${1#--port=}
            ;;
        --context-path=?*)
            SUBSONIC_CONTEXT_PATH=${1#--context-path=}
            ;;
        --max-memory=?*)
            SUBSONIC_MAX_MEMORY=${1#--max-memory=}
            ;;
        --pidfile=?*)
            SUBSONIC_PIDFILE=${1#--pidfile=}
            ;;
        --quiet)
            quiet=1
            ;;
        --default-music-folder=?*)
            SUBSONIC_DEFAULT_MUSIC_FOLDER=${1#--default-music-folder=}
            ;;
        --default-podcast-folder=?*)
            SUBSONIC_DEFAULT_PODCAST_FOLDER=${1#--default-podcast-folder=}
            ;;
        --default-playlist-folder=?*)
            SUBSONIC_DEFAULT_PLAYLIST_FOLDER=${1#--default-playlist-folder=}
            ;;
        *)
            usage
            ;;
    esac
    shift
done

# Use JAVA_HOME if set, otherwise assume java is in the path.
JAVA=java
if [ -e "${JAVA_HOME}" ]
    then
    JAVA=${JAVA_HOME}/bin/java
fi

# Create Subsonic home directory.
mkdir -p ${SUBSONIC_HOME}
LOG=${SUBSONIC_HOME}/subsonic_sh.log
rm -f ${LOG}

cd $(dirname $0)
if [ -L $0 ] && ([ -e /bin/readlink ] || [ -e /usr/bin/readlink ]); then
    cd $(dirname $(readlink $0))
fi

${JAVA} -Xmx${SUBSONIC_MAX_MEMORY}m \
  -Dsubsonic.home=${SUBSONIC_HOME} \
  -Dsubsonic.host=${SUBSONIC_HOST} \
  -Dsubsonic.port=${SUBSONIC_PORT} \
  -Dsubsonic.contextPath=${SUBSONIC_CONTEXT_PATH} \
  -Dsubsonic.defaultMusicFolder=${SUBSONIC_DEFAULT_MUSIC_FOLDER} \
  -Dsubsonic.defaultPodcastFolder=${SUBSONIC_DEFAULT_PODCAST_FOLDER} \
  -Dsubsonic.defaultPlaylistFolder=${SUBSONIC_DEFAULT_PLAYLIST_FOLDER} \
  -jar subsonic-booter-jar-with-dependencies.jar > ${LOG} 2>&1 &

# Write pid to pidfile if it is defined.
if [ $SUBSONIC_PIDFILE ]; then
    echo $! > ${SUBSONIC_PIDFILE}
fi

if [ $quiet = 0 ]; then
    echo Started Subsonic [PID $!, ${LOG}]
fi

mcmillanje
 
Posts: 14
Joined: Sat Dec 25, 2010 4:18 am

Postby stozher » Sat Dec 25, 2010 11:56 pm

Change in "/etc/default/subsonic"

SUBSONIC_ARGS="--port=4040 --max-memory=256"

and in /usr/share/subsonic/subsonic.sh

SUBSONIC_MAX_MEMORY=256

PM to me your "/etc/hosts" file.

Stop SS service! Rename directory "/var/subsonic/jetty" to "jetty.bak" and start SS service again...
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby mcmillanje » Sun Dec 26, 2010 8:35 am

stopped subsonic, changed settings, mv'd jetty, started subsonic. Issue remains. Sent you my hosts file.

thanks for your help in troubleshooting this issue. :)
mcmillanje
 
Posts: 14
Joined: Sat Dec 25, 2010 4:18 am

Postby mcmillanje » Sun Dec 26, 2010 6:47 pm

actually, after restarting my computer it goes to subsonic again :shock:

however, when i put in my license code then try to link to mcmillanje.subsonic.org (in network settings) it first says
Code: Select all
Status: Failed to test web address. subsonic.org (UnknownHostException)


after hitting it a few times it says:
Code: Select all
Status: mcmillanje.subsonic.org is registered, but could not connect to it. (ConnectTimeoutException)



???
mcmillanje
 
Posts: 14
Joined: Sat Dec 25, 2010 4:18 am

Postby mcmillanje » Sun Dec 26, 2010 7:51 pm

must be a router problem. canyouseeme.org doesn't see me, but when i use a local machine to my local ip (192.168.1.2:4040) it loads subsonic right away.... tried resetting / rebooting router. Subsonic says port forwarding is successful... hmm.
mcmillanje
 
Posts: 14
Joined: Sat Dec 25, 2010 4:18 am

Re: [solved] error 503 service_unavailable

Postby unamused » Sat May 20, 2017 1:55 pm

I'm getting this error now. No idea how to solve it

please help, thanks
unamused
 
Posts: 20
Joined: Thu Mar 17, 2011 1:43 pm
Location: Cambridge, MA


Return to Help

Who is online

Users browsing this forum: No registered users and 26 guests