Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jul 2008
    Location
    london
    Posts
    1

    Starting Lighstreaemer automatically on Mac OSX - error

    Hello

    I have a copy of Lightstreamer moderato running on Mac OS X (10.5.5).

    I can start it without problems from the command line using this command
    sudo /Library/Lightstreamer/bin/unix-like/LS.sh background

    However when I set up a LaunchDaemon, so that it starts automatically, I get an error in the LS.out logfile about permission denied. LaunchDaemons are supposed to run as root, so I don't know why this error is occurring. The log file output is shown below. Do you know what the permission denied refers to.

    Code:
    10.Jan.12 11:48:54,870 < INFO> Starting MAC address check
    10.Jan.12 11:48:54,874 < INFO> Found MAC address 00:1e:52:f2:2f:0d
    10.Jan.12 11:48:54,874 < INFO> Found MAC address 00:1e:52:f2:2f:0c
    10.Jan.12 11:48:54,874 < INFO> MAC address check successful
    10.Jan.12 11:48:54,875 < INFO> License correctly bound with the following parameter(s):
    10.Jan.12 11:48:54,875 < INFO>         Client ID       : EaijMmzTfb0mGWZH802TQ
    10.Jan.12 11:48:54,875 < INFO>         Mac Address     : 00:1e:52:f2:2f:0c
    10.Jan.12 11:48:54,883 < WARN> Signature and data files don't match.
    10.Jan.12 11:48:54,883 < INFO> Lightstreamer Server starting in Moderato edition
    10.Jan.12 11:48:54,905 < WARN> JMX management features not available with the current license
    10.Jan.12 11:48:54,926 < INFO> Started HTML Adaptor for JMX on port 6666
    10.Jan.12 11:48:54,943 < INFO> Started JMXMP Connector for JMX on port 9999
    10.Jan.12 11:48:54,960 < INFO> Loading Metadata Provider HELLOWORLD
    10.Jan.12 11:48:54,963 < INFO> Loading Data Provider HELLOWORLD
    10.Jan.12 11:48:54,967 < INFO> Loading Metadata Provider STOCKLISTDEMO
    10.Jan.12 11:48:54,969 < INFO> Loading Data Provider STOCKLISTDEMO
    10.Jan.12 11:48:54,977 < INFO> Loading Metadata Provider STOCKLISTDEMOORIG
    10.Jan.12 11:48:54,991 < INFO> Loading Data Provider STOCKLISTDEMOORIG
    10.Jan.12 11:48:55,028 < INFO> Pump pool size set by default at 8
    10.Jan.12 11:48:55,042 < INFO> Events pool size set by default at 8
    10.Jan.12 11:48:55,047 < INFO> Lightstreamer Server 3.4.8 build 1398 starting...
    10.Jan.12 11:48:55,067 <ERROR> Could not listen on port 80 for socket Lightstreamer HTTP Server
    java.net.SocketException: Permission denied
    	at sun.nio.ch.Net.bind(Native Method)
    	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
    	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
    	at com.lightstreamer.i.a.f.j(f.java)
    	at com.lightstreamer.i.a.f.<init>(f.java)
    	at com.lightstreamer.i.a.e.a(e.java)
    	at com.lightstreamer.i.j.a(j.java)
    	at com.lightstreamer.i.j.a(j.java)
    	at com.lightstreamer.LS.main(LS.java)
    10.Jan.12 11:48:55,069 < WARN> Asynchronous sockets not available; synchronous sockets will be used for server Lightstreamer HTTP Server
    10.Jan.12 11:48:55,082 <ERROR> Could not listen on port 80 for socket Lightstreamer HTTP Server
    java.net.BindException: Permission denied
    	at java.net.PlainSocketImpl.socketBind(Native Method)
    	at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
    	at java.net.ServerSocket.bind(ServerSocket.java:319)
    	at java.net.ServerSocket.<init>(ServerSocket.java:185)
    	at java.net.ServerSocket.<init>(ServerSocket.java:141)
    	at com.lightstreamer.i.a.g.i(g.java)
    	at com.lightstreamer.i.a.g.<init>(g.java)
    	at com.lightstreamer.i.a.e.a(e.java)
    	at com.lightstreamer.i.j.a(j.java)
    	at com.lightstreamer.i.j.a(j.java)
    	at com.lightstreamer.LS.main(LS.java)
    10.Jan.12 11:48:55,083 <ERROR> Error in HTTP server opening
    java.net.BindException: Permission denied
    	at java.net.PlainSocketImpl.socketBind(Native Method)
    	at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
    	at java.net.ServerSocket.bind(ServerSocket.java:319)
    	at java.net.ServerSocket.<init>(ServerSocket.java:185)
    	at java.net.ServerSocket.<init>(ServerSocket.java:141)
    	at com.lightstreamer.i.a.g.i(g.java)
    	at com.lightstreamer.i.a.g.<init>(g.java)
    	at com.lightstreamer.i.a.e.a(e.java)
    	at com.lightstreamer.i.j.a(j.java)
    	at com.lightstreamer.i.j.a(j.java)
    	at com.lightstreamer.LS.main(LS.java)
    10.Jan.12 11:48:55,083 <FATAL> Unable to setup HTTP server
    10.Jan.12 11:48:55,083 < INFO> Exiting.....
    This is the very same error I would see if I tried to start LIghtstreamer from a non-root account. However LaunchDaemons should be running as root, so I don't understand why this error is occurring. Could anyone point me to what permissions I need to change to get rid of this error.

    Many thanks

    Gerard

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    975
    In unix/linux the limitation is about opening ports with numbers lower than 1024 for listening.
    I think it's the same for MAC OS X.
    In fact, this limitation should only apply to non-root accounts.
    As long as you are testing, you could just configure Lightstreamer for listening on a higher port number.

    I can't answer about the MAC OS X LaunchDaemons insights; I hope someone else can.
    The Server does nothing in particular to have this permission granted; it just relies on the system.

  3. #3
    Member
    Join Date
    Sep 2006
    Location
    Bologna
    Posts
    2
    Hello Gerard,

    did you add a Socket entry in your plist file as specified on Apple's docs? Please see section "Listening on sockets" here: http://developer.apple.com/library/m...unchdJobs.html

    Best regards,

    Gianluca

 

 

Similar Threads

  1. Starting Lighstreaemer automatically on Mac OSX - error
    By gerardisdell in forum Adapter APIs
    Replies: 1
    Last Post: January 12th, 2012, 09:44 AM
  2. Web client automatically refresh????
    By lethanhclub in forum Client APIs
    Replies: 5
    Last Post: September 11th, 2009, 10:01 AM
  3. Replies: 7
    Last Post: March 19th, 2008, 09:31 AM
  4. Just Starting
    By benkayam in forum Adapter APIs
    Replies: 1
    Last Post: June 28th, 2007, 10:58 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 10:16 PM.