Jump to content

Issue running on Ubuntu - OSBot.jar hangs when starting


picakej209

Recommended Posts

Hi Everybody.

I've been having some issues trying to get OSBot to run with Ubuntu, and since I haven't been able to find a solution searching around the forums I'm posting here. I've had the same issue on both Ubuntu 19.10 (64-bit) and Ubuntu 20.04 (64-bit).

The issue I'm having is when starting the bot for the first time it hangs on "Created new proxies and boot files...", and then on subsequent tries the signin UI appears but after entering my signin details it hangs on "Successfully loaded OSBot!"

Steps to reproduce the issue:

  1. Starting with a fresh Ubuntu VM
  2. Download java (installs jdk and jre):
    sudo apt install openjdk-8-jdk
  3. Verify java version
    > java -version
    
    openjdk version "1.8.0_252"
    OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1ubuntu1-b09)
    OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)

     

  4. Download OSBot 2.5.80.jar from http://osbot.org/mvc/get and rename it to OSBot.jar

  5. Set the permissions of OSBot.jar
    chmod 777 OSBot.jar
  6. Run OSBot.jar with the -debug flag (running without -debug has the same issue, just without any feedback at all)
    java -jar OSBot.jar -debug

 

 

Performing these steps gives me the following output:

  • First time running OSBot.jar - 
    > java -jar OSBot.jar -debug
    
    Debug enabled on port 5005
    Created new proxies and boot files...
  • Subsequent runs - 
    > java -jar OSBot.jar -debug
    
    Debug enabled on port 5005
    
    (OSBOT - Boot UI APPEARS NOW (SEE SCREENSHOT BELOW), AFTER ENTERING USERNAME/PASSWORD AND CLICKING LAUNCH THE OUTPUT CONTINUES)
    
    [DEBUG][04/29 05:27:27 PM]: Injected 2 field list filters
    [DEBUG][04/29 05:27:27 PM]: Injected 2 field filters
    [DEBUG][04/29 05:27:27 PM]: Injected 2 method list filters
    [DEBUG][04/29 05:27:27 PM]: Injected 3 method filters
    In debug mode!
    OpenJDK 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
    Listening for transport dt_socket at address: 5005
    Stealth injection class-filter enabled!
    Successfully loaded OSBot!

    image.png.15f26ebf7f6e6638f7620b02dca96731.png

 

After this the process just hangs and nothing else happens.

 

The first time running OSBot.jar creates the OSBot folder with /Data, /Local, /Scripts, etc. as expected, and installing web walking successfully adds the files to /Data. However, comparing the contents of /Data to a Windows installation I have working I am missing the client.jar file.

Could this be part of the issue, or are there any installation steps specific to Linux which I am missing?

Thanks for your time.

Edited by picakej209
Link to comment
Share on other sites

9 hours ago, Protoprize said:

I've had this issue as well.

Works fine with the same OpenJDK 8 version but only on ubuntu 18 based systems. Ubuntu 19.10 + seems to have broken everything for me

Hey, thanks for the input. I've tried it with Ubuntu 18.04.4 and it's working as expected. I guess that'll have to do for now! Thanks again.

  • Boge 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...