Embarcadero / paserver-docker

Docker script for RAD Studio Linux deployment via PAServer
https://hub.docker.com/r/radstudio/pa-radserver
Other
34 stars 13 forks source link

Fix errors on Win10 + Ubuntu 22.04 in WSL #14

Closed lynxnake closed 3 months ago

lynxnake commented 7 months ago

Hi!

I found two errors if run this on Win 10 with Docker in the Ubuntu 22.04 in WSL:

  1. The image's PAServer is unresponsive until it has STDIN
  2. "''A' packet returned an error: 8'." while trying to debug in the container, which ran by run-production.sh

This pull request fixes both.

lmbelo commented 7 months ago

Can you share the steps to reproduce your issue, please?

lmbelo commented 7 months ago

@lynxnake I have tested on WSL but I can't reproduce this issue. Both run.sh and run-production.sh scripts run fine after building with build.sh.

lynxnake commented 7 months ago

Steps to reproduce:

  1. Run and wait until build.sh finish

  2. Start image with ./run-production.sh securepass

  3. Start RAD Studio, select File - New - Console Application

  4. Add Linux64 Target platform (right-click "Target Platforms" node in Projects, select "Add Platform...", select "Linux64" in dropdown and mark checkbox to make it active)

  5. Try to step over the project. If there's no Linux connection profile configured, RAD Studio will prompt to create one. I used localhost as Remote machine name, 64211 as port, securepass as password If there's no Linux SDK, RAD Studio will prompt to add a new. When downloading headers, there was a question about overwriting older ones. I selected No to all

  6. The error is shown. In any case I get Unable to create process: ''A' packet returned an error: 8'., and sometimes Access violation (see screenshots)

image image

lynxnake commented 7 months ago

And, yes, scripts run fine. That's RAD Studio which isn't able to work with their result.

lmbelo commented 7 months ago

Two more questions:

1) Did you create the SDK using the files provided by the PAServer Docker container? 2) Are you using an Intel or arm machine?

lynxnake commented 7 months ago
  1. Sure
  2. Intel
lynxnake commented 7 months ago

Also, if remove -d (which detaches tty from the container) switch from docker run command, then you'll see that paserver constantly outputs ">>>>>>>>>", and it's, in fact, hung up. So I am unsure it works fine when -d is specified. It may be in the same ">>>>>" state, only we don't see this