Ubuntu 6.10 - I'm not sure what's wrong.

ClintiePoo
2007-01-21
2013-05-03
  • ClintiePoo
    ClintiePoo
    2007-01-21

    I'm in Ubuntu Edgy.  I think I followed the directions completely, and the program still is not working for me.  Here's my bash_profile:

    ----------------------------
    # ~/.bash_profile: executed by bash(1) for login shells.
    # see /usr/share/doc/bash/examples/startup-files for examples.
    # the files are located in the bash-doc package.

    # the default umask is set in /etc/login.defs
    #umask 022

    # include .bashrc if it exists
    if [ -f ~/.bashrc ]; then
        . ~/.bashrc
    fi

    # set PATH so it includes user's private bin if it exists
    if [ -d ~/bin ] ; then
        PATH=~/bin:"${PATH}"
    fi

    PATH=$PATH:/usr/java/jre1.5.0_09/bin /usr/lib/jvm/java-1.5.0-sun/jre/bin/java
    export PATH

    ----------------------------

    I have Java 1.5 installed.  When I do java-version, i get:
    --------
    java version "1.5.0_10"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
    Java HotSpot(TM) Client VM (build 1.5.0_10-b03, mixed mode, sharing)

    ---------

    However, here's what it does when I run ./start 192.168.1.102 in a terminal:

    -----------------
    xbox360mediaserve, Copyright (C) 2006 Thomas Walker
    xbox360mediaserve comes with ABSOLUTELY NO WARRANTY; for details see license
    This is free software, and you are welcome to redistribute it
    under certain conditions; see license for details.

    Linux
    192.168.1.102
    Exception in thread "Thread-1" java.lang.NullPointerException
            at org.cybergarage.upnp.ssdp.HTTPMUSocket.getLocalAddress(HTTPMUSocket.java:68)
            at org.cybergarage.upnp.ssdp.HTTPMUSocket.receive(HTTPMUSocket.java:187)
            at org.cybergarage.upnp.ssdp.SSDPSearchSocket.run(SSDPSearchSocket.java:100)
            at java.lang.Thread.run(Thread.java:595)
    Jan 21, 2007 12:13:41 AM org.mortbay.http.HttpServer doStart
    INFO: Version Jetty/5.1.10
    Adding artist:
    Adding playlist:Streams
    No Tracknumber for file /media/sdb1/Music/mp3/Bud/Bud-They Call The Wind Mariah (Live).mp3
    Adding artist:Bud
    New Album:
    Jan 21, 2007 12:13:42 AM org.mortbay.util.Container start
    INFO: Started org.mortbay.jetty.servlet.ServletHandler@10b4b2f
    Jan 21, 2007 12:13:42 AM org.mortbay.util.Container start
    INFO: Started HttpContext[/,/]
    Jan 21, 2007 12:13:42 AM org.mortbay.util.ThreadedServer start
    WARNING: Failed to start: SocketListener0@192.168.1.102:7000
    Jan 21, 2007 12:13:42 AM org.mortbay.util.ThreadedServer start
    WARNING: Failed to start: SocketListener1@127.0.0.1:7000
    org.mortbay.util.MultiException[java.net.BindException: Cannot assign requested address, java.net.BindException: Address already in use]
    ----------------

    I'm not sure where to go from here.  Can someone please help me get this set up?  Thanks!

     
    • Martin Wood
      Martin Wood
      2007-01-21

      Hmm...  Are you running any other UPNP servers on this machine?  What is the output of "netstat -nlp | grep 1900"?  It might be that something is listening on the SSDP port already.

      Out of interest, what does "ps -ef | grep `fuser -n tcp 7000`" give too?

       
    • ClintiePoo
      ClintiePoo
      2007-01-21

      Yeah, I guess I was.  I tried to install TwonkyMedia a while back when I couldn't get this to work.  (Do you know how to uninstall it? I know I'm a n00b...).  Here's what netstat gave me:

      -------
      udp6    8959      0 :::1900                 :::*                               4676/java          
      udp6    9635      0 :::1900                 :::*                               4676/java          
      udp6   10311      0 :::1900                 :::*                               4676/java          
      udp6   11535      0 :::1900                 :::*                               4676/java          
      udp6   45343      0 :::1900                 :::*                               5085/java          
      udp6   46019      0 :::1900                 :::*                               5085/java          
      udp6   46695      0 :::1900                 :::*                               5085/java          
      udp6   47919      0 :::1900                 :::*                               5085/java          
      udp6   73444      0 :::1900                 :::*                               4676/java          
      udp6   74120      0 :::1900                 :::*                               4676/java          
      udp6   74796      0 :::1900                 :::*                               4676/java          
      udp6   76020      0 :::1900                 :::*                               4676/java          
      udp6  107002      0 :::1900                 :::*                               4676/java          
      udp6  107098      0 :::1900                 :::*                               4676/java          
      udp6  107002      0 :::1900                 :::*                               4676/java          
      udp6  107098      0 :::1900                 :::*                               4676/java          
      udp6  107098      0 :::1900                 :::*                               4676/java          
      udp6  107405      0 :::1900                 :::*                               4676/java          
      udp6  107405      0 :::1900                 :::*                               4676/java          
      udp6  107287      0 :::1900                 :::*                               4676/java          
      udp6  107183      0 :::1900                 :::*                               4676/java          
      udp6  107469      0 :::1900                 :::*                               5085/java          
      udp6  107494      0 :::1900                 :::*                               4676/java  

      ------

      I ended both java processes and tried to run the 360mediaserve again.  This time I got this:

      -----
      xbox360mediaserve, Copyright (C) 2006 Thomas Walker
      xbox360mediaserve comes with ABSOLUTELY NO WARRANTY; for details see license
      This is free software, and you are welcome to redistribute it
      under certain conditions; see license for details.

      Linux
      192.168.1.102
      Exception in thread "Thread-1" java.lang.NullPointerException
              at org.cybergarage.upnp.ssdp.HTTPMUSocket.getLocalAddress(HTTPMUSocket.java:68)
              at org.cybergarage.upnp.ssdp.HTTPMUSocket.receive(HTTPMUSocket.java:187)
              at org.cybergarage.upnp.ssdp.SSDPSearchSocket.run(SSDPSearchSocket.java:100)
              at java.lang.Thread.run(Thread.java:595)
      Jan 21, 2007 9:17:18 AM org.mortbay.http.HttpServer doStart
      INFO: Version Jetty/5.1.10
      Adding artist:
      Adding playlist:Streams
      No Tracknumber for file /media/sdb1/Music/mp3/Bud/Bud-They Call The Wind Mariah (Live).mp3
      Adding artist:Bud
      New Album:
      Jan 21, 2007 9:17:18 AM org.mortbay.util.Container start
      INFO: Started org.mortbay.jetty.servlet.ServletHandler@10b4b2f
      Jan 21, 2007 9:17:18 AM org.mortbay.util.Container start
      INFO: Started HttpContext[/,/]
      Jan 21, 2007 9:17:18 AM org.mortbay.util.ThreadedServer start
      WARNING: Failed to start: SocketListener0@192.168.1.102:7000
      Jan 21, 2007 9:17:18 AM org.mortbay.http.SocketListener start
      INFO: Started SocketListener on 127.0.0.1:7000
      org.mortbay.util.MultiException[java.net.BindException: Cannot assign requested address]
      -----

      So I guess I'm getting the same error for some reason.  For your other question, when I do ps -ef | grep `fuser -n tcp 7000` I get an error: Usage: grep [OPTION]... PATTERN [FILE]...
      Try `grep --help' for more information.

      Thanks for the help.  I really hope I can get this working.

       
    • Martin Wood
      Martin Wood
      2007-01-21

      Ahh, fairly sure it will be TwonkyVision interfering then.  No, sorry - I don't know how to uninstall it.  I think they have a forum - I'm sure it'll say there somewhere.  Otherwise, try stopping it temporarily (either properly, or simply killing it - something like "killall java" (since it seems to be Java based) - though watch out if you run anything else important using Java!

       
    • ClintiePoo
      ClintiePoo
      2007-01-21

      I got rid of Twonky completely.  I'm sure it's not running, and the program is still giving me the "Cannot assign requested address" error. 

       
    • ClintiePoo
      ClintiePoo
      2007-01-21

      I definitely don't have /usr/java/jre1.5.0_09/bin as a path for Java.  I have /usr/bin/java.  Is that what I should use instead?

       
      • Martin Wood
        Martin Wood
        2007-01-21

        You wouldn't be getting as far as you are if your Java path was wrong.

        No, I still think something is listening on that port already.  Can you reboot, then run "netstat -nlp | grep 1900" again?  I'm slightly confused, because it is also complaining that  the socket can't attach to port 7000 as well.  I don't know why Java can't bind to these ports, unless they are in use.

        Thomas made some changes in the latest versions, so you could try the testing package.  It means you can stream movies too!

         
    • ClintiePoo
      ClintiePoo
      2007-01-22

      I rebooted and if I run I'm still not sure what's going on... Sorry to be a bother but I really want to get this going.

      Here is my ~/.bash_profile:

      ---------------
      # ~/.bash_profile: executed by bash(1) for login shells.
      # see /usr/share/doc/bash/examples/startup-files for examples.
      # the files are located in the bash-doc package.

      # the default umask is set in /etc/login.defs
      #umask 022

      # include .bashrc if it exists
      if [ -f ~/.bashrc ]; then
          . ~/.bashrc
      fi

      # set PATH so it includes user's private bin if it exists
      if [ -d ~/bin ] ; then
          PATH=~/bin:"${PATH}"
      fi

      PATH=$PATH:/usr/java/jre1.5.0_09/bin
      export PATH
      ----------------------------

      I'm still getting the "org.mortbay.util.MultiException[java.net.BindException: Cannot assign requested address]" error when I run the program.  I can get to the 127.0.0.1:7000/configure page to configure the script, but the xbox does not see the hosted files.

      I forwarded the Ports 7000 TCP and 1900 UDP to the ip of my xbox.  Ubuntu does not have a built in firewall that I know of, so I don't think that's the problem. 

      When I do sudo netstat -nlp | grep 7000 while I have the program running, I get:
      tcp6       0      0 ::ffff:127.0.0.1:7000   :::*                    LISTEN     21614/java

      When I stop the program, I get nothing from this command. 

      I'm sure that the path /usr/java/jre1.5.0_09/bin does not exist on this computer.  Also, I believe I installed 1.5.0_10, not *_09. 

      I didn't even get this far with the testing program.  I'm not worried about video streaming, and I would be happy to get this working.

      Your help is greatly appreciated.

       
      • Martin Wood
        Martin Wood
        2007-01-22

        Your path is fine.  I don't know why your Bash profile adds that extra path for Java, but it doesn't matter.  Do "whereis java" to show that it is reading it from /user/bin/, or "echo $PATH". 

        You can see it binding to port 7000 fine while the program is running, which is great.  It isn't binding to port 1900, which isn't so.  Something is already using that port.  You didn't say what the output of netstat -nlp on port 1900 before you started up the media server, but I'm willing to bet that something has already grabbed it.  Whatever it is, it needs to be stopped...

         
    • Jason Holmes
      Jason Holmes
      2007-01-22

      specify your outgoing address with ./start 192.168.1.* where * is your address and this might fix it.

       
    • ClintiePoo
      ClintiePoo
      2007-01-22

      Wow, just wow.  I'm sorry for all the confusion...

      I did whereis java and found java in /user/bin/.  I corrected the .bash_profile file.  Next, I ran ./start 192.168.1.102 (IP of my 360) and got the same problem.  I ran ./start 192.168.1.101 (IP of my computer) and it WORKS!  Thanks so much for your help!

       
      • Martin Wood
        Martin Wood
        2007-01-23

        D'oh!  I didn't check that from you, sorry.  Well, at least you are sorted!

         
    • ClintiePoo
      ClintiePoo
      2007-01-22

      I'm seriously happy!  I'm listening to Fred Eaglesmith.  Thanks again.