Playground is broken

Post

Posted
Rating:
#1 (In Topic #1217)
Avatar
Trainee
 Hi,

I'll post this here rather than in the programming sub-forums. It appears the Playground is broken. Any attempt to execute code shows a container start failure message in the output window.

ATB,
Neil Darlow
Online now: No Back to the top

Post

Posted
Rating:
#2
Guru
BruceSteers is in the usergroup ‘Guru’
It links to the Playground from the main gambas website.
https://gambas.sourceforge.net/en/main.html#

The error is there.

I have reported it to the development team.
Online now: No Back to the top

Post

Posted
Rating:
#3
Avatar
Guru
cogier is in the usergroup ‘Guru’
It's not the Development Team that needs to look at this, it's me. I will sort it as.soon as I can.

10:10am 30/03/2024
<COLOR color="#FF0000">Now fixed</COLOR>

https://gambas.one/playground/
Online now: No Back to the top

Post

Posted
Rating:
#4
Guru
BruceSteers is in the usergroup ‘Guru’

cogier said

It's not the Development Team that needs to look at this, it's me. I will sort it as.soon as I can.

10:10am 30/03/2024
<COLOR color="#FF0000">Now fixed</COLOR>

https://gambas.one/playground/

Aaaah , so does the gambas website playground link to you than?
Online now: No Back to the top

Post

Posted
Rating:
#5
Avatar
Guru
cogier is in the usergroup ‘Guru’
The playground is in a Digital Ocean Droplet. This is basically a headless Ubuntu distro with Gambas installed via the ppa. So yes, they link to Gambas One. The main page does have a link to the Playground and the Farm. https://wordpress.gambas.one/
Online now: No Back to the top

Post

Posted
Rating:
#6
Avatar
Trainee
 Thank you for fixing this. It's very useful for trying little things.

ATB,
Neil Darlow
Online now: No Back to the top

Post

Posted
Rating:
#7
Guru
BruceSteers is in the usergroup ‘Guru’
 I think it's broken again.

Do the Run/Play buttons on the gambas wiki also use the same system as that's showing the same message…

"docker start" requires at least 1 argument.
See 'docker start –help'.

Usage:  docker start [OPTIONS] CONTAINER [CONTAINER…]

Start one or more stopped containers
Online now: No Back to the top

Post

Posted
Rating:
#8
Guru
BruceSteers is in the usergroup ‘Guru’
How complex is the playground code?

does it need a docker to be secure?

I made something similar 38.68.116.47/cgi-bin/Scripter.gambas

It can use gbs3 or Eval and forbids use of Shell and Exec with only this much code..

Code (gambas)

  1. ' Gambas class file
  2.  
  3.  
  4.  
  5. Public Sub WebButton1_Click()
  6.  
  7.   Dim sName As String = File.SetExt(Temp(), "gbs")
  8.   Dim sTxt As String = taCode.Text
  9.  
  10.   If InStr(sTxt, "Shell ", 0, gb.Like) Or If InStr(sTxt, "Exec ", 0, gb.Like) Then
  11.     Message("Shell and Exec are not allowed.")
  12.     Return
  13.  
  14.   If WebComboBox1.Index = 0 Then
  15.     File.Save(sName, taCode.Text)
  16.     taResult.Text = ""
  17.     p = Exec ["gbs3", sName] For Read As "PROC"
  18.     While p.State = Process.Running
  19.       Wait 0.1
  20.       If Not Object.IsValid(p) Then Break
  21.     Wend
  22.     Kill sName
  23.  
  24.   Else
  25.     Try taResult.Text = Eval(taCode.Text)
  26.     If Error Then taResult.Text = "Error:\n" & Error.Text
  27.  
  28.  
  29. Public Sub PROC_Read()
  30.  
  31.   Dim sText As String
  32.   sText = Read #p, -256
  33.   taResult.Text &= sText
  34.  
  35.  
  36.  
Online now: No Back to the top

Post

Posted
Rating:
#9
Avatar
Guru
cogier is in the usergroup ‘Guru’
 OK. I have fixed it again. I'm going to have to do something with it to stop it breaking all the time.
Online now: No Back to the top
1 guest and 0 members have just viewed this.