Results 1 to 9 of 9
  1. #1

    LS wont run from installed version

    I ran the bash install script which built the relative directories under /opt.

    Initial install failed to run because "//logs/LS.out" directory did not exist ( it did in both the original deployed home directory and the /opt version )

    I appear to have got around that but trying to run the init.d start script I get the following in the syslog



    Code:
    Oct 26 09:55:27 localhost background_start.sh[4260]: fs.file-nr = 1920#0110#011367668Oct 26 09:55:27 localhost background_start.sh[4260]: Lightstreamer Server directory:
    Oct 26 09:55:27 localhost background_start.sh[4260]: LS_HOME = "/Lightstreamer"
    Oct 26 09:55:27 localhost background_start.sh[4260]: Lightstreamer Server main configuration file:
    Oct 26 09:55:27 localhost background_start.sh[4260]: LS_CONFIG = "/Lightstreamer/conf/lightstreamer_conf.xml"
    Oct 26 09:55:27 localhost background_start.sh[4260]: Starting Lightstreamer Server...
    Oct 26 09:55:27 localhost background_start.sh[4260]: Please check logs for detailed information.
    and LS goes no further.

    It s odd because LS_HOME is 'Lightstreamer and not /opt/lightstreamer for a start.

    Running the original background script gets a succesful start and run of LS.

    Running Ubuntu 18.04
    Last edited by nimbusgb; October 26th, 2019 at 08:11 PM.

  2. #2
    Hi Guiseppe

    Really would appreciate your help with doing the install.

    Running the install script ( Debian on Ubuntu 18.04 )

    The server does not appear to run properly.

    Running the ./background_start.sh script it works perfectly but no run from the installed one.

    ( Your pm queue is full )

  3. #3
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    975
    Our script just determines LS_HOME by looking at the path of the launched script itself and moving up two directories.
    So it seems that you have run something like:
    /Lightstreamer/bin/unix-like/background_start.sh
    which is not what we expect from the launch through init.d.

    After running the install script (the "Debian" version for Ubuntu), you should have a properly configured /etc/init.d/lightstreamer script file.
    May you please attach this file (perhaps in txt form) for a check?

  4. #4
    The init.d script remains as per the install.

    running the background script was just to prove it works.


    #! /bin/sh
    ### BEGIN INIT INFO
    # Provides: Lightstreamer
    # Required-Start: $network
    # Required-Stop: $network
    # Should-Start:
    # Should-Stop:
    # Default-Start: 2 3 4 5
    # Default-Stop: 0 1 6
    # Short-Description: Lightstreamer Server
    # Description: Lightstreamer Server, Real-Time Data Push - http://www.lightstreamer.com
    ### END INIT INFO


    set -e


    # Lightstreamer specific settings
    # LS_HOME=/opt/Lightstreamer
    LS_HOME="/Lightstreamer"
    # LS_USER=lightstreamer
    LS_USER="lightstreamer"
    # LS_GROUP=lightstreamer
    LS_GROUP="lightstreamer"


    DAEMON="${LS_HOME}/bin/unix-like/LS.sh"
    PIDFILE=/var/run/lightstreamer.pid


    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
    DESC="Lightstreamer Server, Real-Time Data Push"
    NAME="Lightstreamer"


    test -x $DAEMON || exit 0


    . /lib/lsb/init-functions


    d_start() {
    start-stop-daemon --start --make-pidfile \
    --pidfile "${PIDFILE}" --oknodo \
    --background --user ${LS_USER} --group ${LS_GROUP} \
    --exec "${DAEMON}" -- run
    }


    d_stop() {
    start-stop-daemon --stop --pidfile "${PIDFILE}" --oknodo
    }




    case "$1" in
    start)
    log_daemon_msg "Starting ${DESC}" "${NAME}"
    d_start
    log_end_msg $?
    ;;
    stop)
    log_daemon_msg "Stopping ${DESC}" "${NAME}"
    d_stop
    log_end_msg $?
    ;;
    restart|force-reload)
    log_daemon_msg "Restarting ${DESC}" "${NAME}"
    d_stop
    d_start
    log_end_msg $?
    ;;
    status)
    status_of_proc -p "${PIDFILE}" "${DAEMON}" "${NAME}" && exit 0 || exit $?
    ;;
    *)
    echo "Usage: $0 {start|stop|restart|force-reload|status}" >&2
    exit 1
    ;;
    esac


    exit 0

  5. #5
    Here is a session I'm trying

    gmsuser@gmsgateway:/Lightstreamer/bin/unix-like$ sudo /etc/init.d/lightstreamer status[sudo] password for gmsuser:
    ● lightstreamer.service
    Loaded: loaded (/etc/systemd/system/lightstreamer.service; disabled; vendor preset: enabled)
    Active: inactive (dead)
    gmsuser@gmsgateway:/Lightstreamer/bin/unix-like$ sudo /etc/init.d/lightstreamer start
    [ ok ] Starting lightstreamer (via systemctl): lightstreamer.service.
    gmsuser@gmsgateway:/Lightstreamer/bin/unix-like$ sudo /etc/init.d/lightstreamer status
    ● lightstreamer.service
    Loaded: loaded (/etc/systemd/system/lightstreamer.service; disabled; vendor preset: enabled)
    Active: inactive (dead)


    Oct 28 11:34:17 gmsgateway background_start.sh[4740]: Configured file descriptors, hard limit: 4096
    Oct 28 11:34:17 gmsgateway background_start.sh[4740]: Configured sysctl fs.file.* values:
    Oct 28 11:34:17 gmsgateway background_start.sh[4740]: fs.file-max = 367667
    Oct 28 11:34:17 gmsgateway background_start.sh[4740]: fs.file-nr = 1440 0 367667
    Oct 28 11:34:17 gmsgateway background_start.sh[4740]: Lightstreamer Server directory:
    Oct 28 11:34:17 gmsgateway background_start.sh[4740]: LS_HOME = "/Lightstreamer"
    Oct 28 11:34:17 gmsgateway background_start.sh[4740]: Lightstreamer Server main configuration file:
    Oct 28 11:34:17 gmsgateway background_start.sh[4740]: LS_CONFIG = "/Lightstreamer/conf/lightstreamer_conf.xml"
    Oct 28 11:34:17 gmsgateway background_start.sh[4740]: Starting Lightstreamer Server...
    Oct 28 11:34:17 gmsgateway background_start.sh[4740]: Please check logs for detailed information.
    gmsuser@gmsgateway:/Lightstreamer/bin/unix-like$
    lightstreamer is reported as running but it is not.

  6. #6
    hmmm.

    service not enabled!

    missing from your script or the instructions and I've been too close to the problem for the past week!

    now enabled via @> systemctl enable lightstreamer

    but sadly that appears to not address the problem.


    Last edited by nimbusgb; October 28th, 2019 at 12:42 PM.

  7. #7
    I seem to be getting an error when trying to start the service

    13:22:58,288 |-WARN in Logger[javax.management.mbeanserver] - No appenders present in context [default] for logger [javax.management.mbeanserver].
    28.Oct.19 13:22:58,542 <ERROR> Error in JMX support initialization: JMXException: JMXException.
    28.Oct.19 13:22:58,546 <FATAL> Monitoring configuration error.
    Last edited by nimbusgb; October 28th, 2019 at 01:32 PM.

  8. #8
    this looks to be something to do with the systemd startup sequence in Ubuntu 18.04

  9. #9
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    975
    So, to recap:
    The installation is correct and "/Lightstreamer" was the expected LS_HOME in the case shown.
    The launch script output terminates correctly, because after that point any further log is to be expected on the file.
    However, there is an initialization issue and the Server log is unsuitable.

    Please modify conf/lightstreamer_log_conf.xml in the installation directory and change LightstreamerLogger.init to DEBUG for a clearer log.

    Regarding the "//logs/LS.out" issue, this is strange, because the script was supposed to insert the LS_HOME, yielding somethig like /Lightstreamer/logs/LS.out
    Do you still replicate the problem?

 

 

Similar Threads

  1. newbie ask: Web client by pre-installed locally?
    By chenxun in forum Client APIs
    Replies: 1
    Last Post: July 1st, 2010, 03:51 PM
  2. why need java sdk to run server
    By Eric.Patterson in forum General
    Replies: 2
    Last Post: May 16th, 2008, 02:43 PM
  3. How to config 2 adapter run on 01 server?
    By tuongkha in forum Adapter APIs
    Replies: 2
    Last Post: March 18th, 2008, 10:11 AM
  4. Trying to run LS through Https / SSL
    By wmolde in forum Client APIs
    Replies: 2
    Last Post: April 18th, 2007, 04:40 PM

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:59 PM.