Forum Discussion

GuillermoD's avatar
GuillermoD
Occasional Contributor
13 years ago

[Resolved]LoadUI Linux agent hangs on installation

I created a brand new installation with Ubuntu 12.04 64 bits and used your link location to wget

http://dl.eviware.com/loadui/pro/2.5.4/ ... 4_64bit.sh

Installed all the requirements as you mention on the documentation:

sudo apt-get install xvfb

and dependencies:

sudo apt-get install x11-xkb-utils xserver-xorg-core xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic libxrender-dev libxtst-dev libgtk2.0-0

then when running the shellscript "LoadUI-Agent-2.5.4_64bit.sh"

the installation hangs like this

root@LoadUI-1:~# ./LoadUI-Agent-2.5.4_64bit.sh
Unpacking JRE ...
Preparing JRE ...
Starting Installer ...

have you guys tested your installer no a fresh copy of Ubuntu? is the installer for a certain distro / version only?

5 Replies

  • GuillermoD's avatar
    GuillermoD
    Occasional Contributor
    nowhere in the install instruction says JVM is require.. I had to open the shellscript and notice that JVM is called

    so

    sudo apt-get install openjdk-7-jre

    now the installer runs..

    then instructions on how to run the agent are

    "Assuming you installed the agent in your home folder which is the install scripts default, you should now be able to run the agent binary."
    .~/SmartBear/LoadUI-Agent-2.5.*/LoadUI-Agent-2.5.*

    thats no instruction to run any program :S

    I am asuming that the program is loadUI-agent.sh

    but getting:

    root@LoadUI-1:/usr/local/SmartBear/LoadUI-Agent-2.5.4# ./loadUI-agent.sh
    -bash: ./loadUI-agent.sh: Permission denied
    root@LoadUI-1:/usr/local/SmartBear/LoadUI-Agent-2.5.4# chmod 755 loadUI-agent.shroot@LoadUI-1:/usr/local/SmartBear/LoadUI-Agent-2.5.4# ./loadUI-agent.sh
    Failed in XOpenDisplay

    (process:17808): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.

    (java:17808): Gtk-WARNING **: cannot open display:
    root@LoadUI-1:/usr/local/SmartBear/LoadUI-Agent-2.5.4#

    any ideas?

    Are there any real detailed instruction over how to install your software? because anyone following

    http://www.loadui.org/Installing-Agent/ ... linux.html

    would lead to nothing
  • GuillermoD's avatar
    GuillermoD
    Occasional Contributor
    I am guessing because of the errors,... but is this a GUI based linux agent? because I am installing this on a cloud linux (Ubuntu 12.04) server. Is there a command line only agent to install on amazon ws or any linux server with out a UI?
  • GuillermoD's avatar
    GuillermoD
    Occasional Contributor
    what I was guessing is just confirmed:

    there is no way to install the LOAD UI agent on Linux Server with out having the Graphical Interface

    is there a serious Linux / Unix administrator that would use the the graphical interfaces? I was totally mislead on purchasing LOAD UI PRO by thinking I could have 10 or 20 Linux servers in several clouds sending load to our cloud solution.

    The only option that you guys give is to use an amazon AMI that still gives errors when executing the agent: You guys sell software not SaaS that sell instances in Amazon WS.

    here is your ami at amazon.. when starting the agent

    (process:1314): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.
    Xlib: extension "RANDR" missing on display ":99.0".
    /home/ubuntu/SmartBear/LoadUI-Agent-2.5.1-SNAPSHOT/./res/loadui-splash.fxml (No such file or directory)
  • Hello there,

    I'm terribly sorry to hear about the problems you are having with LoadUI-Agent-2.5.4. Unfortunately the reason that you haven't gotten a fast reply is due to the fact that support is situated in Sweden and Swedes celebrated Ascension day from the 8th of May until 9th of May so nobody has been in the office for since then.

    If you are still interested then i would like to assist with this problem as you are most likely not the only one who will encounter them until Java8 is released. There is a workaround that is defined in the guide on this site, thanks for mentioning the typo in the guide by the way about how to launch it, it has been fixed now.

    As for that OpenJDK is appearantly needed for the installer that does sound odd and i will look into that one further to reproduce it and investigate how it can be avoided in the future.

    From the looks of it, your problems implicates that you either have not exported the DISPLAY=:99 variable or that Xvfb hasn't been started properly, and also the first setup of the agent might take some time depending on the system so it can interpreted as not working.

    Unfortunately i have not been able to recreate all of the problems you had on my Ubuntu Server 12.04 VM, nor RHEL6 or CentOS.
    The only problems i ran into were related to my own belief that i knew the steps, since i composed the guide, and evidently missed a few.
    Hopefully you and anyone else encountering these issues can learn from my mistakes and i will adapt the guide accordingly if it works out.

    My Workflow:


      downloaded the agent
      chmod +x to the install-script
      installed Xvfb
      installed the dependencies for Xvfb
      Tried to launch LoadUI-Agent, got Cannot Connect to X11 Window-error.
      Realized that i hadn't started Xvfb using xvfb -ac :99 &, so i started it.
      noticed that some dependencies hadn't really kicked in when Xvfb started.
      Realized that my entire apt-get install had failed miserably du to not having applied --fix-missing
      install dependencies again using apt-get install BIG-LIST-OF-DEPENDENCIES --fixmissing
      restarted Xvfb
      Tried to launch LoadUI-Agent again, got Gtk-WARNING **: cannot open display.
      exported virtual display properly using export DISPLAY=:99.0
      Started using binary: ./LoadUI-Agent-2.5.4 and the alternate bash-script ./loadUI-agent.sh, and reached the FrameWork Started.


    Collection of encountered errors:

    Can't connect to X11 window server using ':99' as the value of the DISPLAY variable-error:
    Received among other errors when i hadn't installed dependencies correctly for Xvfb and LoadUI.
    Tried --fix-missing to apt-get install

    RANDR-error:
    It is related to an extension that is not implemented by Xvfb, but it has not implications for LoadUI-Agent
    Read more here

    Splash.xml-error:
    It's not a fatal error and has been cleaned up during some code-housekeeping lately. It can be ignored.

    Gtk-WARNING **: cannot open display:
    I hadn't set the environment variable DISPLAY using
    export DISPLAY=:99.0


    Note:
    The environment variables are reset on restart of system,
    so put it in a startup-script like /etc/rc.local for example.


    No errormessages but agent has not started yet so i had to press CTRL+C and abort it:
    LoadUI-Agent evidently takes some time to start, give it atleast a few minutes depending on your system.
    My VM took 30s to get it right, my workstation 15s, a really slow machine could probably take more than a minute.
    The last line to be showing that the framework is started for the binary, and that the agent is listening on port 8443 for the binary.

    Locale not supported by C library:
    This one i have not encountered on my VM, i believe it has to do with your environment and found a possible workaround online, and it would be most interesting to know if it worked for you.

    loadui-splash.fxml (No such file or directory)
    Not fatal, the splash cannot be displayed and should not be displayed either. This does not break anything and has been cleaned by code-housekeeping recently, but has yet to be released.

    Check these things out and do get back should they not work,
    there are no holidays the upcoming weeks so answers should hopefully be more swift.

    Best Regards
    Mikael
    SmartBear Sweden
  • GuillermoD's avatar
    GuillermoD
    Occasional Contributor
    thanks for your reply Mikael. its good to know that you guys didn't answer because of holidays, I was really worried about the lack of support. Let me try your suggestions and I will write down the exact instructions in case it works.