Convertirse en un robot de proveedor de servicios con el Bot Libre en la Nube Bot Plataforma
Help

Using botlibre's web API

por polarorbit publicado Mar 27 2023, 9:31

Following the instructions at docker hub, I build the container on my local desktop. However, when I run the container, the botlibre-app-db-1 runs fine, while the botlibre-app-web-1 keeps crashing. Which of the two do I need to talk to botlibre with http requests (using curl or postman)?

 


by admin posted Mar 28 2023, 9:26
What error is occurring when it crashes? Check the Tomcat or docker log. Ensure you have enough memory.

You should be able to connect to the web docker using a web browser.

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 602, today: 0, week: 2, month: 7

by polarorbit posted Mar 31 2023, 8:42

This is what I find in the logs

botlibre-app-web-1  | #
botlibre-app-web-1  | # A fatal error has been detected by the Java Runtime Environment:
botlibre-app-web-1  | #
botlibre-app-web-1  | #  SIGSEGV (0xb) at pc=0x00007efe5ec88bc7, pid=1, tid=0x00007efe5f86d700
botlibre-app-web-1  | #
botlibre-app-db-1   | LOG:  aborting any active transactions
botlibre-app-web-1  | # JRE version: Java(TM) SE Runtime Environment (8.0_131-b11) (build 1.8.0_131-b11)
botlibre-app-web-1  | # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.131-b11 mixed mode linux-amd64 compressed oops)
botlibre-app-web-1  | # Problematic frame:
botlibre-app-web-1  | # C  [libc.so.6+0x37bc7]  abort+0x297
botlibre-app-db-1   | LOG:  autovacuum launcher shutting down
botlibre-app-db-1   | LOG:  shutting down
botlibre-app-db-1   | LOG:  database system is shut down
botlibre-app-web-1  | #
botlibre-app-web-1  | # Core dump written. Default location: /usr/local/tomcat8/bin/core or core.1
botlibre-app-web-1  | #
botlibre-app-web-1  | # An error report file with more information is saved as:
botlibre-app-web-1  | # /usr/local/tomcat8/bin/hs_err_pid1.log
botlibre-app-web-1  | #
botlibre-app-web-1  | # If you would like to submit a bug report, please visit:
botlibre-app-web-1  | #   http://bugreport.java.com/bugreport/crash.jsp
botlibre-app-web-1  | # The crash happened outside the Java Virtual Machine in native code.
botlibre-app-web-1  | # See problematic frame for where to report the bug.
botlibre-app-web-1  | #
botlibre-app-web-1  |  
botlibre-app-web-1  | [error occurred during error reporting , id 0xb]
botlibre-app-web-1  |  
botlibre-app-web-1  |  
botlibre-app-web-1  | [error occurred during error reporting , id 0xb]
botlibre-app-web-1  |  
botlibre-app-web-1  |  
botlibre-app-web-1  | [error occurred during error reporting , id 0xb]
botlibre-app-web-1  |  
botlibre-app-web-1  |  
botlibre-app-web-1  | [error occurred during error reporting , id 0xb]


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 647, today: 0, week: 1, month: 9

by admin posted Mar 31 2023, 9:34
Seems to be a JVM issue.
When does this error occur, does it always occur and at the same point?
What OS and Docker version are you using?

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 558, today: 0, week: 2, month: 7

by polarorbit posted Mar 31 2023, 9:38

It always occurs immediately when I start the container using docker-compose start.

$ uname -a
Linux archbox 6.2.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 22 Mar 2023 22:52:35 +0000 x86_64 GNU/Linux 

$ docker -v
Docker version 23.0.1, build a5ee5b1dfc


Updated: Mar 31 2023, 9:39
Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 573, today: 0, week: 1, month: 8

by admin posted Apr 5 2023, 9:31
I would recommend trying it on another computer, maybe a Windows or Mac.

If you have a Bot Libre for Business account, you can also contact [email protected]

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 572, today: 0, week: 1, month: 6

by polarorbit posted Apr 5 2023, 9:41

You know that docker containerization is actually a Linux feature right? So you advice me to use Windows or a Mac to use Docker desktop to in turn emulate Linux containerization, instead of using Linux directly.

Can you explain in detail how this would help?


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 567, today: 0, week: 2, month: 5

by admin posted Apr 10 2023, 13:00
The crash seems to be OS related. So my suggestion is to try another computer/VM or OS to determine if the issue is specific to your machine.

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 661, today: 0, week: 7, month: 12

Id: 46860045
Publicado: Mar 27 2023, 9:31
Respuestas: 7
Vistas: 682, hoy: 1, la semana: 6, mes: 19
0 0 0.0/5