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.
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