[livesupport-dev] Debian installation question
  • first I apologise if this is not the proper list to post this question, but since I am trying to install with both package & cvs, it might be benifitial in the package maintance if these install issues can be clarified Smile

    Quick questions..I am trying to use the debian package (I did download
    the cvs and got it built, but couldn't build debian package from it so
    I'll look at it again next month).
    For the current debian packages, the libraries installed easily and I have gotten the station installed once, and am working on getting it installed a 2nd time on the actually station server.
    Here is the logfile from the install. I am guessing it is because of
    installation user/database/something with that Smile I know I modified the
    install script to get it working but cant' see where Sad

    Creating symlinks...
    Initializing database...
    DB Error: connect failed

    Database connection problem.
    Check if database 'LiveSupport' exists with corresponding permissions.
    Database access is defined by 'dsn' values in var/conf.php.
    DB Error: connect failed
    dpkg: error processing livesupport-station (--configure):
    subprocess post-installation script returned error exit status 1


    And here is the database info from the start of the script:
    installation directory: /opt/livesupport
    host name: localhost.localdomain
    web server port: 80
    scheduler port: 3344
    database server: localhost
    database: LiveSupport
    database user: livesupport
    database user password: livesupport
    apache daemon group: www-data
    apache document root: /var/www
    broadcast device: plughw:0,0


    And here is the postInstallSchedule.sh executed by the installer (I also
    tried to make it skip this & manually create the pgsql database/user,
    but that didn't work either.
    postInstallScheduler.sh:
    if [ "x$ls_dbserver" != "localhost" ]; then
    su - $postgres_user -c "echo \"CREATE USER $ls_dbuser \
    ENCRYPTED PASSWORD '$ls_dbpassword' \
    CREATEDB NOCREATEUSER;\" \
    | psql template1" \
    || echo "Couldn't create database user $ls_dbuser.";

    su - $postgres_user -c "echo \"CREATE DATABASE \\\"$ls_database\\\" \
    OWNER $ls_dbuser ENCODING 'utf-8';\" \
    | psql template1" \
    || echo "Couldn't create database $ls_database.";


    Now for the studio side, it installed OK, but when I try to run here is
    what I get (this is on the dev box where I got the station installed and
    i think running:
    sudo /opt/livesupport/bin/gLiveSupport.sh
    using configuration file: /opt/livesupport/etc/gLiveSupport.xml
    EXE: /opt/livesupport/bin/gLiveSupport
    Libdir: /opt/livesupport/lib:
    using config file '/opt/livesupport/etc/gLiveSupport.xml'
    /opt/livesupport/bin/gLiveSupport.sh: line 63: 6749
    Aborted $gLiveSupport_exe -c $config_file


    I just can't figure out for the life of me why the script is aborting!
    It executes everything fine up to there. In fact I replaced the
    $gLiveSupport_exe... with the actual full path & config file and it
    still aborted.

    I decided to run strace and here is what I see at the end:
    6752 write(2, "/opt/livesupport/bin/gLiveSuppor"..., 111) = 111
    6752 rt_sigprocmask(SIG_SETMASK, [], NULL, Cool = 0
    6752 --- SIGCHLD (Child exited) @ 0 (0) ---
    6752 waitpid(-1, 0xbfa48b04, WNOHANG) = -1 ECHILD (No child processes)
    6752 sigreturn() = ? (mask now [])
    6752 rt_sigaction(SIGINT, {SIG_DFL}, {0x8079c70, [], 0}, Cool = 0
    6752 rt_sigprocmask(SIG_BLOCK, NULL, [], Cool = 0
    6752 read(255, "\n#/opt/livesupport/bin/gLiveSupp"..., 2673) = 85
    6752 rt_sigprocmask(SIG_BLOCK, NULL, [], Cool = 0
    6752 rt_sigprocmask(SIG_BLOCK, NULL, [], Cool = 0
    6752 rt_sigprocmask(SIG_BLOCK, NULL, [], Cool = 0
    6752 rt_sigprocmask(SIG_SETMASK, [], NULL, Cool = 0

    That last read is the line I tried to useto run it manually

    Here is an output of an ldd on gLiveSupport from within the script (ie
    proper library path):
    libicutu.so.30 => /opt/livesupport/lib/libicutu.so.30 (0xb7f3a000)
    libicuio.so.30 => /opt/livesupport/lib/libicuio.so.30 (0xb7f2f000)
    libxml++-2.6.so.2 => /opt/livesupport/lib/libxml++-2.6.so.2
    (0xb7f0f000)
    libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb7dfd000)
    libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7dee000)
    libz.so.1 => /usr/lib/libz.so.1 (0xb7dda000)
    libglibmm-2.4.so.1 => /opt/livesupport/lib/libglibmm-2.4.so.1
    (0xb7d90000)
    libgobject-2.0.so.0 => /opt/livesupport/lib/libgobject-2.0.so.0
    (0xb7d5c000)
    libsigc-2.0.so.0 => /opt/livesupport/lib/libsigc-2.0.so.0
    (0xb7d56000)
    libglib-2.0.so.0 => /opt/livesupport/lib/libglib-2.0.so.0
    (0xb7cd6000)
    libcurl.so.3 => /opt/livesupport/lib/libcurl.so.3 (0xb7ca7000)
    libssl.so.0.9.7 => /usr/lib/i686/cmov/libssl.so.0.9.7 (0xb7c76000)
    libcrypto.so.0.9.7 => /usr/lib/i686/cmov/libcrypto.so.0.9.7
    (0xb7b74000)
    libdl.so.2 => /lib/tls/libdl.so.2 (0xb7b70000)
    libgtkmm-2.4.so.1 => /opt/livesupport/lib/libgtkmm-2.4.so.1
    (0xb78c3000)
    libgdkmm-2.4.so.1 => /opt/livesupport/lib/libgdkmm-2.4.so.1
    (0xb7881000)
    libatkmm-1.6.so.1 => /opt/livesupport/lib/libatkmm-1.6.so.1
    (0xb783f000)
    libgtk-x11-2.0.so.0 => /opt/livesupport/lib/libgtk-x11-2.0.so.0
    (0xb7571000)
    libpangomm-1.4.so.1 => /opt/livesupport/lib/libpangomm-1.4.so.1
    (0xb754b000)
    libgdk-x11-2.0.so.0 => /opt/livesupport/lib/libgdk-x11-2.0.so.0
    (0xb74df000)
    libatk-1.0.so.0 => /opt/livesupport/lib/libatk-1.0.so.0 (0xb74c6000)
    libgdk_pixbuf-2.0.so.0 =>
    /opt/livesupport/lib/libgdk_pixbuf-2.0.so.0 (0xb74b1000)
    libm.so.6 => /lib/tls/libm.so.6 (0xb748f000)
    libpangoxft-1.0.so.0 =>
    /opt/livesupport/lib/libpangoxft-1.0.so.0 (0xb7488000)
    libpangox-1.0.so.0 => /opt/livesupport/lib/libpangox-1.0.so.0
    (0xb747d000)
    libpango-1.0.so.0 => /opt/livesupport/lib/libpango-1.0.so.0
    (0xb7443000)
    libgmodule-2.0.so.0 => /opt/livesupport/lib/libgmodule-2.0.so.0
    (0xb743f000)
    libgstreamer-0.8.so.1 =>
    /opt/livesupport/lib/libgstreamer-0.8.so.1 (0xb731a000)
    libgthread-2.0.so.0 => /opt/livesupport/lib/libgthread-2.0.so.0
    (0xb7315000)
    libtag.so.1 => /opt/livesupport/lib/libtag.so.1 (0xb72cb000)
    libboost_date_time-gcc-1_31.so.1.31.0 =>
    /opt/livesupport/lib/libboost_date_time-gcc-1_31.so.1.31.0 (0xb72c6000)
    libxmlrpc++.so.0 => /opt/livesupport/lib/libxmlrpc++.so.0
    (0xb72a4000)
    libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xb71ea000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb71df000)
    libc.so.6 => /lib/tls/libc.so.6 (0xb70aa000)
    libicuuc.so.30 => /opt/livesupport/lib/libicuuc.so.30 (0xb6fe0000)
    libicui18n.so.30 => /opt/livesupport/lib/libicui18n.so.30
    (0xb6ee0000)
    libicudata.so.30 => /opt/livesupport/lib/libicudata.so.30
    (0xb66b4000)
    /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7f49000)
    libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xb65e9000)
    libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0xb65e5000)
    libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0xb65d6000)
    libXft.so.2 => /usr/lib/libXft.so.2 (0xb65c3000)
    libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb6556000)
    libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb654e000)
    libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb651f000)
    libpangoft2-1.0.so.0 =>
    /opt/livesupport/lib/libpangoft2-1.0.so.0 (0xb64f8000)
    libpopt.so.0 => /lib/libpopt.so.0 (0xb64f0000)
    libnsl.so.1 => /lib/tls/libnsl.so.1 (0xb64dc000)
    libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb64bc000)


    So it finds all needed libraries. My only guess is that for some maybe
    it is using my local library when it should use the package library?

    And finally, here is my gLiveSupport.sh
    reldir=`dirname $0`/..
    basedir=`cd $reldir; pwd;`
    bindir=$basedir/bin
    etcdir=$basedir/etc
    libdir=$basedir/lib
    tmpdir=$basedir/tmp


    #-------------------------------------------------------------------------------
    # Set up the environment
    #-------------------------------------------------------------------------------
    gstreamer_dir=`find $libdir -type d -name "gstreamer-*"`

    export LD_LIBRARY_PATH=$libdir:$LD_LIBRARY_PATH
    export GDK_PIXBUF_MODULE_FILE=$etcdir/gtk-2.0/gdk-pixbuf.loaders
    export PANGO_RC_FILE=$etcdir/pango/pango.rc
    export GST_REGISTRY=$etcdir/gst-registry.xml
    export GST_PLUGIN_PATH=$gstreamer_dir
    gLiveSupport_exe=$bindir/gLiveSupport
    config_file=$etcdir/gLiveSupport.xml

    echo "using configuration file: $config_file"
    echo "EXE: $gLiveSupport_exe"
    echo "Libdir: $LD_LIBRARY_PATH"

    #ldd $gLiveSupport_exe

    $gLiveSupport_exe -c $config_file

    #/opt/livesupport/bin/gLiveSupport -c /opt/livesupport/etc/gLiveSupport.xml


    Ok, last questions Smile
    Do you have an IRC channel for this? open project has a great
    network...i'm dmz or dmzwk usually.

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • 6 Comments sorted by
  • David M. Zendzian wrote:
    > Initializing database...
    > DB Error: connect failed

    > Database connection problem.
    > Check if database 'LiveSupport' exists with corresponding permissions.
    > Database access is defined by 'dsn' values in var/conf.php.
    > DB Error: connect failed

    well, do you have your postgresql server running? can you connect to it
    yourself?

    > Now for the studio side, it installed OK, but when I try to run here is
    > what I get (this is on the dev box where I got the station installed and
    > i think running:
    > sudo /opt/livesupport/bin/gLiveSupport.sh
    > using configuration file: /opt/livesupport/etc/gLiveSupport.xml
    > EXE: /opt/livesupport/bin/gLiveSupport
    > Libdir: /opt/livesupport/lib:
    > using config file '/opt/livesupport/etc/gLiveSupport.xml'
    > /opt/livesupport/bin/gLiveSupport.sh: line 63: 6749
    > Aborted $gLiveSupport_exe -c $config_file
    >
    >
    > I just can't figure out for the life of me why the script is aborting!

    it's because the gLiveSupport executable crashed.

    > It executes everything fine up to there. In fact I replaced the
    > $gLiveSupport_exe... with the actual full path & config file and it
    > still aborted.

    see above.

    if you could provide a backtrace of the segfault, we could take a look
    at it...

    but, the very reason packing is being overhauled is that it's quite
    broken as it is now, for example with the debian packages.


    Akos

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • This is a multi-part message in MIME format.
    --------------030100020906070007080006
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit

    Your right, it was a pgsql config issue. I had forgotten to set the
    logon as md5 instead of localuser.

    And I've attached the strace of the execution. What other traces would
    you like? Should I download the latest cvs and build?

    And since I have the station running, and have been able to get to the
    web interface (Yeah!Smile. What is the default user account created? I
    found the script that calls scheduler with "install", but guess I'd have
    to browse teh source to find what is actually created.

    Thanks!
    david

    PS if I can get this running, it will control defconradio.org this
    weekend! Smile

    Ákos Maróy wrote:

    >David M. Zendzian wrote:
    >
    >
    >>Initializing database...
    >>DB Error: connect failed

    >>Database connection problem.
    >>Check if database 'LiveSupport' exists with corresponding permissions.
    >>Database access is defined by 'dsn' values in var/conf.php.
    >>DB Error: connect failed
    >>
    >>
    >
    >well, do you have your postgresql server running? can you connect to it
    >yourself?
    >
    >
    >
    >>Now for the studio side, it installed OK, but when I try to run here is
    >>what I get (this is on the dev box where I got the station installed and
    >>i think running:
    >>sudo /opt/livesupport/bin/gLiveSupport.sh
    >>using configuration file: /opt/livesupport/etc/gLiveSupport.xml
    >>EXE: /opt/livesupport/bin/gLiveSupport
    >>Libdir: /opt/livesupport/lib:
    >>using config file '/opt/livesupport/etc/gLiveSupport.xml'
    >>/opt/livesupport/bin/gLiveSupport.sh: line 63: 6749
    >>Aborted $gLiveSupport_exe -c $config_file
    >>
    >>
    >>I just can't figure out for the life of me why the script is aborting!
    >>
    >>
    >
    >it's because the gLiveSupport executable crashed.
    >
    >
    >
    >>It executes everything fine up to there. In fact I replaced the
    >>$gLiveSupport_exe... with the actual full path & config file and it
    >>still aborted.
    >>
    >>
    >
    >see above.
    >
    >if you could provide a backtrace of the segfault, we could take a look
    >at it...
    >
    >but, the very reason packing is being overhauled is that it's quite
    >broken as it is now, for example with the debian packages.
    >
    >
    >Akos
    >
    >
    >
    >
    >


    --------------030100020906070007080006
    Content-Type: text/plain; name="livestudio_out"
    Content-Disposition: inline; filename="livestudio_out"
    Content-Transfer-Encoding: 8bit

    The livestudio_out file that was initially attached to this message has been stored of the mailing lists server :
    http://sympa.mdlf.org/wws/attach/livesupport-dev/42E542FD.7000301@dmzs.com/livestudio.out

    --------------030100020906070007080006--

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • Ok, I found the root password. Interesting choice for a default..

    However now that I'm using the web interface (until I get the gui:(, I
    am trying to change the password and get the following error:

    BasicStor::[subjects]: access denied

    And I get that when trying to change any users password.

    I haven't looked at the php yet. I'm still so happy that I got it running!!

    Now I just need to figure out how to get a schedule started and where
    output queues so I can connect to a transmitter (and to external stream
    relays)

    dmz

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • One more question for anyone who knows it. Is it possible to divide up
    my schedule into preset time blocks that I give ownership to specific
    accounts? Then those people can logon and create playlists to fill those
    timeslots?

    Also, what about rolling commercials/news/other interruptions to playlists?

    Thanks to everyone who's made this possible! It looks awsome!

    david

    David M. Zendzian wrote:

    >Ok, I found the root password. Interesting choice for a default..
    >
    >However now that I'm using the web interface (until I get the gui:(, I
    >am trying to change the password and get the following error:
    >
    >BasicStor::[subjects]: access denied
    >
    >And I get that when trying to change any users password.
    >
    >I haven't looked at the php yet. I'm still so happy that I got it running!!
    >
    >Now I just need to figure out how to get a schedule started and where
    >output queues so I can connect to a transmitter (and to external stream
    >relays)
    >
    >dmz
    >
    >
    >
    >
    >

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • At 00:43 26.07.2005, you wrote:
    >Also, what about rolling commercials/news/other interruptions to playlists?

    this is being discussed at the moment for the next release. we are
    interested in work flow suggestions and use scenarios.

    so far the idea is that advertisments will be a playlist on its own. this
    will then be scheduled in the scheduler or live mode (ls studio). however,
    there should be an admin interface for the ad people to manage
    advertisments and campaigns.

    i will leave this vague: if you want to give input on the use and logic of
    this feature: shoot!

    thanks,

    Micz Flor - micz@mi.cz

    content and media development http://mi.cz
    ------------------------------------------------------------------
    http://www.campware.org -- http://www.redall.de -- http://suemi.de
    ------------------------------------------------------------------

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • David M. Zendzian wrote:
    > One more question for anyone who knows it. Is it possible to divide up
    > my schedule into preset time blocks that I give ownership to specific
    > accounts? Then those people can logon and create playlists to fill those
    > timeslots?

    not at the moment...

    >
    > Also, what about rolling commercials/news/other interruptions to playlists?

    not at the moment...


    but all these features are planned for in the future..


    Akos

    ------------------------------------------
    Posted to Phorum via PhorumMail