Closed maneetgoyal closed 6 months ago
cc @sruehl
ok seems like the error output is being eaten up. @maneetgoyal Try again please with: 320c7095c180c90e2c17caf033d124273d9b3846 (latest develop)
I think the error is that with-dotnet is specified and it is not found isn't it?
yes, but I want to see the exact output of it (I assume you are on AMD64)
@chrisdutz can you try a build on your MBP AMD64?
Trying this too now:
# Build everything with all tests
# RUN ./mvnw -P with-c,with-dotnet,with-go,with-sandbox install
RUN ./mvnw install
Here's my machine details:
Software:
System Software Overview:
System Version: macOS 13.2.1 (22D68)
Kernel Version: Darwin 22.3.0
Boot Volume: Macintosh HD
Hardware:
Hardware Overview:
Model Name: MacBook Pro
Processor Name: 8-Core Intel Core i9
Oh ... I already did and it worked right up to the step where the example it wants to mount, doesn't exist anymore (So we need to fix this), but not seeing any problems with .Net.
try following:
go into the docker bash with docker run -it azul/zulu-openjdk:11 /bin/bash
then within execute those commands:
apt update -y
apt install -y wget
wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
apt install -y software-properties-common
add-apt-repository universe -y
apt install -y apt-transport-https
apt update -y
apt install -y dotnet-sdk-6.0
dotnet --version
Is there possibly anything related to export restictions or "firewalls"?
Trying this too now:
# Build everything with all tests # RUN ./mvnw -P with-c,with-dotnet,with-go,with-sandbox install RUN ./mvnw install
Here's my machine details:
Software: System Software Overview: System Version: macOS 13.2.1 (22D68) Kernel Version: Darwin 22.3.0 Boot Volume: Macintosh HD Hardware: Hardware Overview: Model Name: MacBook Pro Processor Name: 8-Core Intel Core i9
Output:
maneet@Maneets-MBP plc4x % docker build -t plc4x .
[+] Building 950.3s (34/35)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 4.95kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 35B 0.0s
=> [internal] load metadata for docker.io/azul/zulu-openjdk:11 2.8s
=> [internal] load metadata for docker.io/library/alpine:3.10 2.8s
=> [build 1/24] FROM docker.io/azul/zulu-openjdk:11@sha256:ae1836a7956a7 0.0s
=> [packager 1/4] FROM docker.io/library/alpine:3.10@sha256:451eee8bedcb2 0.0s
=> [internal] load build context 0.7s
=> => transferring context: 1.12MB 0.6s
=> CACHED [packager 2/4] RUN apk update 0.0s
=> CACHED [packager 3/4] RUN apk --no-cache add openjdk11-jdk openjdk11-j 0.0s
=> CACHED [packager 4/4] RUN /usr/lib/jvm/java-11-openjdk/bin/jlink - 0.0s
=> CACHED [stage-2 2/3] COPY --from=packager /opt/java-minimal /opt/java- 0.0s
=> CACHED [build 2/24] RUN apt update -y 0.0s
=> CACHED [build 3/24] RUN apt install -y make libpcap-dev libc-dev git 0.0s
=> CACHED [build 4/24] RUN apt install -y build-essential 0.0s
=> CACHED [build 5/24] RUN apt install -y wget 0.0s
=> CACHED [build 6/24] RUN wget -q https://packages.microsoft.com/config 0.0s
=> CACHED [build 7/24] RUN dpkg -i packages-microsoft-prod.deb 0.0s
=> CACHED [build 8/24] RUN apt install -y software-properties-common 0.0s
=> CACHED [build 9/24] RUN add-apt-repository universe -y 0.0s
=> CACHED [build 10/24] RUN apt install -y apt-transport-https 0.0s
=> CACHED [build 11/24] RUN apt update -y 0.0s
=> CACHED [build 12/24] RUN apt install -y dotnet-sdk-6.0 0.0s
=> CACHED [build 13/24] RUN apt install -y python3 python3-venv python3-p 0.0s
=> CACHED [build 14/24] RUN pip3 install wheel 0.0s
=> CACHED [build 15/24] RUN apt install -y dos2unix 0.0s
=> CACHED [build 16/24] COPY . /ws/ 0.0s
=> CACHED [build 17/24] WORKDIR /ws 0.0s
=> CACHED [build 18/24] RUN chmod +x ./mvnw 0.0s
=> CACHED [build 19/24] RUN dos2unix ./mvnw 0.0s
=> CACHED [build 20/24] RUN dos2unix .mvn/wrapper/maven-wrapper.propertie 0.0s
=> CACHED [build 21/24] RUN ./mvnw -P with-c,with-dotnet,with-go,with-san 0.0s
=> [build 22/24] RUN ./mvnw install 928.5s
=> [build 23/24] RUN ./mvnw org.apache.maven.plugins:maven-help-plugin:3 17.9s
=> ERROR [build 24/24] RUN PROJECT_VERSION=`cat project_version`; mv plc4 0.3s
------
> [build 24/24] RUN PROJECT_VERSION=`cat project_version`; mv plc4j/examples/hello-integration-iotdb/target/plc4j-examples-hello-integration-iotdb-${PROJECT_VERSION}-uber-jar.jar plc4xdemo.jar:
#34 0.224 mv: cannot stat 'plc4j/examples/hello-integration-iotdb/target/plc4j-examples-hello-integration-iotdb-0.11.0-SNAPSHOT-uber-jar.jar': No such file or directory
------
executor failed running [/bin/sh -c PROJECT_VERSION=`cat project_version`; mv plc4j/examples/hello-integration-iotdb/target/plc4j-examples-hello-integration-iotdb-${PROJECT_VERSION}-uber-jar.jar plc4xdemo.jar]: exit code: 1
@maneetgoyal what does this output for you?
Checking it shortly, got pulled onto something
this one doesn't build dotnet, so yes while you get another issue @chrisdutz is mentioning I still want to try to find out why dotnet --version
is not outputting something :)
edit: quoting failed
@sruehl Getting:
root@1c6855b4f5ca:/# apt install -y dotnet-sdk-6.0
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
dotnet-sdk-6.0 is already the newest version (6.0.408-1).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
root@1c6855b4f5ca:/# dotnet --version
A fatal error occurred. The folder [/usr/share/dotnet/host/fxr] does not exist
Ran all the commands but shared the output of final 2
hmmm might be related to this https://stackoverflow.com/a/73899341
Strange that this doesn't happen for @chrisdutz
Is he using Intel or M1/2? maybe that is a difference? The user is using intel.
I told him to check on AMD64 but maybe he missed that...
Output of docker build -t plc4x
from an Apple M2 Machine:
#0 1059.6 [INFO] PLC4J: Transports: PCAP Replay ..................... SUCCESS [ 0.404 s]
#0 1059.6 [INFO] PLC4J: Driver: S7 (Step7) .......................... SUCCESS [ 6.893 s]
#0 1059.6 [INFO] PLC4J: Utils: Test-Generator ....................... SUCCESS [ 3.998 s]
#0 1059.6 [INFO] PLC4J: Driver: BACNet/IP Driver .................... SUCCESS [ 30.717 s]
#0 1059.6 [INFO] PLC4J: Driver: C-Bus ............................... SUCCESS [ 8.986 s]
#0 1059.6 [INFO] PLC4J: Transports: CAN ............................. SUCCESS [ 0.283 s]
#0 1059.6 [INFO] PLC4J: Transports: SocketCAN ....................... SUCCESS [ 0.819 s]
#0 1059.6 [INFO] PLC4J: Transports: VirtualCAN ...................... SUCCESS [ 0.287 s]
#0 1059.6 [INFO] PLC4J: Driver: CAN ................................. SUCCESS [ 1.926 s]
#0 1059.6 [INFO] PLC4J: Driver: CANopen ............................. SUCCESS [ 3.562 s]
#0 1059.6 [INFO] PLC4J: Driver: Ethernet IP ......................... SUCCESS [ 5.103 s]
#0 1059.6 [INFO] PLC4J: Driver: Firmata ............................. SUCCESS [ 2.652 s]
#0 1059.6 [INFO] PLC4J: Driver: KNXNet/IP ........................... SUCCESS [ 7.259 s]
#0 1059.6 [INFO] PLC4J: Driver: Mock ................................ SUCCESS [ 0.373 s]
#0 1059.6 [INFO] PLC4J: Driver: Open-Protocol ....................... SUCCESS [ 5.677 s]
#0 1059.6 [INFO] PLC4J: Driver: Modbus .............................. SUCCESS [ 4.973 s]
#0 1059.6 [INFO] PLC4J: Driver: OPC UA .............................. SUCCESS [ 43.720 s]
#0 1059.6 [INFO] PLC4J: Driver: PLC4X (Proxy-Protocol) .............. SUCCESS [ 2.419 s]
#0 1059.6 [INFO] PLC4J: Driver: Profinet ............................ SUCCESS [ 5.628 s]
#0 1059.6 [INFO] PLC4J: Driver: Simulated ........................... SUCCESS [ 7.297 s]
#0 1059.6 [INFO] PLC4J: Examples .................................... SUCCESS [ 1.862 s]
#0 1059.6 [INFO] PLC4J: Examples: Hello-ADS telemetry ............... SUCCESS [ 1.916 s]
#0 1059.6 [INFO] PLC4J: Examples: Cloud: Azure IoT Hub .............. SUCCESS [ 15.997 s]
#0 1059.6 [INFO] PLC4J: Examples: Cloud: Google Cloud IoT Core ...... SUCCESS [ 7.914 s]
#0 1059.6 [INFO] PLC4J: Examples: Hello Discovery ................... SUCCESS [ 1.871 s]
#0 1059.6 [INFO] PLC4J: Examples: Connectivity: MQTT ................ SUCCESS [ 2.449 s]
#0 1059.6 [INFO] PLC4J: Examples: Hello InfluxDB Data Collection .... SUCCESS [ 2.414 s]
#0 1059.6 [INFO] PLC4J: Tools ....................................... SUCCESS [ 0.025 s]
#0 1059.6 [INFO] PLC4J: Tools: Object PLC Mapping ................... SUCCESS [ 5.930 s]
#0 1059.6 [INFO] PLC4J: Tools: Connection Cache ..................... SUCCESS [ 1.914 s]
#0 1059.6 [INFO] PLC4J: Examples: Hello OPM ......................... SUCCESS [ 2.134 s]
#0 1059.6 [INFO] PLC4J: Examples: Hello-Webservice .................. SUCCESS [ 1.953 s]
#0 1059.6 [INFO] PLC4J: Examples: Hello-World: Kotlin ............... SUCCESS [ 7.143 s]
#0 1059.6 [INFO] PLC4J: Examples: Hello-World PLC4X (Discover And Browse) SUCCESS [ 1.836 s]
#0 1059.6 [INFO] PLC4J: Examples: Hello-World PLC4X (Read) .......... SUCCESS [ 1.869 s]
#0 1059.6 [INFO] PLC4J: Examples: Hello-World PLC4X (Subscribe) ..... SUCCESS [ 1.864 s]
#0 1059.6 [INFO] PLC4J: Examples: Hello-World PLC4X (Write) ......... SUCCESS [ 1.856 s]
#0 1059.6 [INFO] PLC4J: Examples: Poll Loop Example ................. SUCCESS [ 1.839 s]
#0 1059.6 [INFO] PLC4J: Examples: S7Event example ................... SUCCESS [ 1.850 s]
#0 1059.6 [INFO] PLC4J: Tools: Scraper .............................. SUCCESS [ 4.090 s]
#0 1059.6 [INFO] PLC4J: Integrations ................................ SUCCESS [ 0.026 s]
#0 1059.6 [INFO] PLC4J: Integrations: Apache Calcite ................ SUCCESS [ 5.186 s]
#0 1059.6 [INFO] PLC4J: Integrations: Apache Kafka .................. SUCCESS [01:54 min]
#0 1059.6 [INFO] PLC4J: Integrations: Apache Nifi ................... SUCCESS [ 0.849 s]
#0 1059.6 [INFO] PLC4J: Integrations: Apache Nifi: Processors ....... SUCCESS [ 4.310 s]
#0 1059.6 [INFO] PLC4J: Integrations: Apache Nifi: NAR .............. SUCCESS [01:22 min]
#0 1059.6 [INFO] PLC4J: Integrations: Eclipse Milo OPC UA Server .... SUCCESS [ 3.638 s]
#0 1059.6 [INFO] PLC4J: Tools: Capture Replay ....................... SUCCESS [ 0.445 s]
#0 1059.6 [INFO] PLC4J: Tools: Plc4x Server ......................... SUCCESS [ 1.261 s]
#0 1059.6 [INFO] PLC4J: Tools: Scraper (NG) ......................... SUCCESS [ 0.050 s]
#0 1059.6 [INFO] PLC4J: Tools: UI ................................... SUCCESS [ 0.391 s]
#0 1059.6 [INFO] PLC4J: Utils: PLC-Simulator ........................ SUCCESS [ 2.012 s]
#0 1059.6 [INFO] PLC4J: OSGi ........................................ SUCCESS [ 0.286 s]
#0 1059.6 [INFO] PLC4C .............................................. SUCCESS [ 15.683 s]
#0 1059.6 [INFO] PLC4Go ............................................. FAILURE [03:42 min]
#0 1059.6 [INFO] PLC4Net ............................................ SKIPPED
#0 1059.6 [INFO] Sandbox ............................................ SKIPPED
#0 1059.6 [INFO] Sandbox: PLC4J: Driver: Discovery .................. SKIPPED
#0 1059.6 [INFO] Sandbox: Test Df1 Driver ........................... SKIPPED
#0 1059.6 [INFO] ------------------------------------------------------------------------
#0 1059.6 [INFO] BUILD FAILURE
#0 1059.6 [INFO] ------------------------------------------------------------------------
#0 1059.6 [INFO] Total time: 17:38 min
#0 1059.6 [INFO] Finished at: 2023-05-17T16:37:39Z
#0 1059.6 [INFO] ------------------------------------------------------------------------
#0 1059.6 [ERROR] Failed to execute goal com.igormaznitsa:mvn-golang-wrapper:2.3.10:custom (readable-test) on project plc4go: Process exit code : 1 -> [Help 1]
#0 1059.6 [ERROR]
#0 1059.6 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
#0 1059.6 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
#0 1059.6 [ERROR]
#0 1059.6 [ERROR] For more information about the errors and possible solutions, please read the following articles:
#0 1059.6 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
#0 1059.6 [ERROR]
#0 1059.6 [ERROR] After correcting the problems, you can resume the build with the command
#0 1059.6 [ERROR] mvn <args> -rf :plc4go
------
Dockerfile:69
--------------------
67 |
68 | # Build everything with all tests
69 | >>> RUN ./mvnw -P with-c,with-dotnet,with-go,with-sandbox install
70 |
71 | # Get the version of the project and save it in a local file on the container
--------------------
ERROR: failed to solve: process "/bin/sh -c ./mvnw -P with-c,with-dotnet,with-go,with-sandbox install" did not complete successfully: exit code: 1
So I just added a bit of a tiny update that the example at the end actually outputs something ... but on my M2 Mac it works just fine.
[+] Building 3188.3s (36/36) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 5.03kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 35B 0.0s
=> [internal] load metadata for docker.io/azul/zulu-openjdk:11 0.0s
=> [internal] load metadata for docker.io/library/alpine:3.10 2.6s
=> [build 1/24] FROM docker.io/azul/zulu-openjdk:11 0.0s
=> [packager 1/4] FROM docker.io/library/alpine:3.10@sha256:451eee8bedcb2f0 0.0s
=> [internal] load build context 2.5s
=> => transferring context: 1.31MB 2.4s
=> CACHED [packager 2/4] RUN apk update 0.0s
=> CACHED [packager 3/4] RUN apk --no-cache add openjdk11-jdk openjdk11-jmo 0.0s
=> CACHED [packager 4/4] RUN /usr/lib/jvm/java-11-openjdk/bin/jlink --v 0.0s
=> CACHED [stage-2 2/3] COPY --from=packager /opt/java-minimal /opt/java-mi 0.0s
=> CACHED [build 2/24] RUN apt update -y 0.0s
=> CACHED [build 3/24] RUN apt install -y make libpcap-dev libc-dev git 0.0s
=> CACHED [build 4/24] RUN apt install -y build-essential 0.0s
=> CACHED [build 5/24] RUN apt install -y wget 0.0s
=> CACHED [build 6/24] RUN wget -q https://packages.microsoft.com/config/u 0.0s
=> CACHED [build 7/24] RUN dpkg -i packages-microsoft-prod.deb 0.0s
=> CACHED [build 8/24] RUN apt install -y software-properties-common 0.0s
=> CACHED [build 9/24] RUN add-apt-repository universe -y 0.0s
=> CACHED [build 10/24] RUN apt install -y apt-transport-https 0.0s
=> CACHED [build 11/24] RUN apt update -y 0.0s
=> CACHED [build 12/24] RUN apt install -y dotnet-sdk-6.0 0.0s
=> CACHED [build 13/24] RUN apt install -y python3 python3-venv python3-pip 0.0s
=> CACHED [build 14/24] RUN pip3 install wheel 0.0s
=> CACHED [build 15/24] RUN apt install -y dos2unix 0.0s
=> [build 16/24] COPY . /ws/ 3.7s
=> [build 17/24] WORKDIR /ws 0.0s
=> [build 18/24] RUN chmod +x ./mvnw 0.3s
=> [build 19/24] RUN dos2unix ./mvnw 0.2s
=> [build 20/24] RUN dos2unix .mvn/wrapper/maven-wrapper.properties 0.2s
=> [build 21/24] RUN ./mvnw -P with-c,with-dotnet,with-go,with-sandbox c 1428.6s
=> [build 22/24] RUN ./mvnw install 1730.3s
=> [build 23/24] RUN ./mvnw org.apache.maven.plugins:maven-help-plugin:3.2 18.2s
=> [build 24/24] RUN PROJECT_VERSION=`cat project_version`; mv plc4j/exampl 0.4s
=> [stage-2 3/3] COPY --from=build /ws/plc4xdemo.jar /plc4xdemo.jar 0.1s
=> exporting to image 0.2s
=> => exporting layers 0.2s
=> => writing image sha256:738b7024f65ba4af9af8358ddf46797435dfa12bf94b34d2 0.0s
=> => naming to docker.io/library/plc4x
@chrisdutz Works okay after puling in the latest updates. Modified the dockerfile too:
# Build everything with all tests
# RUN ./mvnw -P with-c,with-dotnet,with-go,with-sandbox install
RUN ./mvnw install
Running a test without this change shortly.
(Intel Chip)
The dotnet issue is still there:
#32 6.493
#32 6.500 Detecting Java version: 11.0.19 OK
#32 6.551 Detecting Dotnet version: missing
#32 6.585 --- output of version `dotnet --version` command ---
#32 6.586
#32 6.587 A fatal error occurred. The folder [/usr/share/dotnet/host/fxr] does not exist
#32 6.587
I guess for my usecase, it's okay as long as RUN ./mvnw install
works (which is the case right now).
So I've spent a lot of time fine-tuning the Docker setup with docker-compose.
Could you give the "docker compose up" now a try?
Is this issue still an issue, or was it fixed by my cleanup?
Sorry, was occupied. Will try to test today.
Running docker compose up
on M2/16GB. Taking a looong time. Will post updates once it completes.
Is it still booting up? :D
Well on my device it failed because of a problem in the OPC-UA testsuite, but it didn't take unreasonably long .... of course, if you start with an empy "out/" directoy (Like I just did), it will have to download the internet first, but once that's done it doesn't take much longer ...
Will try again once the OPC-UA fix is in. Apologies for not being able to share the test results. It kept running for long and then I had to give away the machine for some other task.
I did notice that there seem to be issues with OPC-UA tests in Docker ... locally the build runs fine, but it seems in Docker they fail. We have had numerous problems with running Milo (which is used as a test-server) in the past. The thing is, that we have an integration-testsuite system configured, that would be able to run tests without neding a server, but it seems noone is using it. Perhaps I should convert the tests into using that instead.
So can I close this issue? I have built PLC4X using Docker many times now and no longer encountered any issues with it. Obviously when running for the first time, this takes quite a while as it has to download the internet first, but the second time you run it, it should be a lot quicker.
@chrisdutz Sounds good, sure can be closed.
Error Log
### Error Log ``` maneet@Maneets-MBP plc4x % docker build -t plc4x . [+] Building 721.5s (30/35) => [build 12/24] RUN apt install -y dotnet-sdk-6.0 66.4s => [build 13/24] RUN apt install -y python3 python3-venv python3-pip 31.1s => [build 14/24] RUN pip3 install wheel 0.9s => [build 15/24] RUN apt install -y dos2unix 3.9s => [build 16/24] COPY . /ws/ 2.3s => [build 17/24] WORKDIR /ws 0.0s => [build 18/24] RUN chmod +x ./mvnw 0.2s => [build 19/24] RUN dos2unix ./mvnw [+] Building 721.6s (30/35) RUN dos2unix .mvn/wrapper/maven-wrapper.properties => [build 12/24] RUN apt install -y dotnet-sdk-6.0 66.4s] RUN ./mvnw -P with-c,with-dotnet,with-go,with-sandbox com.offby => [build 13/24] RUN apt install -y python3 python3-venv python3-pip 31.1srg/apache/maven/maven-compat/3.9.0/maven-compat-3.9.0.jar => [build 14/24] RUN pip3 install wheel 0.9sded from apache-releases: https://repository.apache.org/content/r => [build 15/24] RUN apt install -y dos2unix 3.9sg/apache/maven/maven-artifact/3.9.0/maven-artifact-3.9.0.jar (59 => [build 16/24] COPY . /ws/ 2.3sding from apache-releases: https://repository.apache.org/content/ => [build 17/24] WORKDIR /ws 0.0srg/apache/maven/maven-model-builder/3.9.0/maven-model-builder-3.9 => [build 18/24] RUN chmod +x ./mvnw 0.2ss (5): 0.3/1.0 MB | 208/217 kB | 463/502 kB | 179/290 kB | 172/19 => [build 19/24] RUN dos2unix ./mvnw [+] Building 721.8s (30/35) RUN dos2unix .mvn/wrapper/maven-wrapper.properties => [build 12/24] RUN apt install -y dotnet-sdk-6.0 66.4s] RUN ./mvnw -P with-c,with-dotnet,with-go,with-sandbox com.offby => [build 13/24] RUN apt install -y python3 python3-venv python3-pip 31.1srg/apache/maven/maven-compat/3.9.0/maven-compat-3.9.0.jar => [build 14/24] RUN pip3 install wheel 0.9sded from apache-releases: https://repository.apache.org/content/r => [build 15/24] RUN apt install -y dos2unix 3.9sg/apache/maven/maven-artifact/3.9.0/maven-artifact-3.9.0.jar (59 => [build 16/24] COPY . /ws/ 2.3sding from apache-releases: https://repository.apache.org/content/ => [build 17/24] WORKDIR /ws 0.0srg/apache/maven/maven-model-builder/3.9.0/maven-model-builder-3.9 => [build 18/24] RUN chmod +x ./mvnw 0.2ss (5): 0.3/1.0 MB | 212/217 kB | 467/502 kB | 187/290 kB | 172/19 => [build 19/24] RUN dos2unix ./mvnw [+] Building 4927.8s (32/35) => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 37B 0.0s => [internal] load .dockerignore 0.0sy => => transferring context: 35B 0.0s => [internal] load metadata for docker.io/azul/zulu-openjdk:11 5.2s => [internal] load metadata for docker.io/library/alpine:3.10 3.4s => [build 1/24] FROM docker.io/azul/zulu-openjdk:11@sha256:ae1836a7956a 18.4sr => => resolve docker.io/azul/zulu-openjdk:11@sha256:ae1836a7956a730892bb3 0.0s => => sha256:ae1836a7956a730892bb377ccbe864036c3c072d678e78da 770B / 770B 0.0s => => sha256:7841b96d5fc54ddfdde57241cdf7dc95dfd0481cc76584a9 742B / 742B 0.0s => => sha256:4889516a6986fcea417446fba73337f899322b87859a 4.24kB / 4.24kB 0.0s/ => => sha256:a7016d2db01f67f2c18746e387008a1bb55b8b07 153.55MB / 153.55MB 7.1s => => extracting sha256:a7016d2db01f67f2c18746e387008a1bb55b8b076e2341e4 10.6s9 => [stage-2 1/3] FROM docker.io/library/alpine:3.10@sha256:451eee8bedcb2f 0.0s => [internal] load build context 2.7s9 => => transferring context: 5.01MB 2.4s => CACHED [packager 2/4] RUN apk update 0.0s => CACHED [packager 3/4] RUN apk --no-cache add openjdk11-jdk openjdk11-j 0.0s => CACHED [packager 4/4] RUN /usr/lib/jvm/java-11-openjdk/bin/jlink - 0.0s => CACHED [stage-2 2/3] COPY --from=packager /opt/java-minimal /opt/java- 0.0s => [build 2/24] RUN apt update -y 71.8s => [build 3/24] RUN apt install -y make libpcap-dev libc-dev git 77.5s => [build 4/24] RUN apt install -y build-essential 112.3s => [build 5/24] RUN apt install -y wget 4.9s => [build 6/24] RUN wget -q https://packages.microsoft.com/config/ubuntu 0.8s => [build 7/24] RUN dpkg -i packages-microsoft-prod.deb 0.5s => [build 8/24] RUN apt install -y software-properties-common 52.8s => [build 9/24] RUN add-apt-repository universe -y 5.3s => [build 10/24] RUN apt install -y apt-transport-https 9.1s => [build 11/24] RUN apt update -y 10.6s => [build 12/24] RUN apt install -y dotnet-sdk-6.0 66.4s => [build 13/24] RUN apt install -y python3 python3-venv python3-pip 31.1s => [build 14/24] RUN pip3 install wheel 0.9s => [build 15/24] RUN apt install -y dos2unix 3.9s => [build 16/24] COPY . /ws/ 2.3s => [build 17/24] WORKDIR /ws 0.0s => [build 18/24] RUN chmod +x ./mvnw 0.2s => [build 19/24] RUN dos2unix ./mvnw 0.2s => [build 20/24] RUN dos2unix .mvn/wrapper/maven-wrapper.properties 0.2s => [build 21/24] RUN ./mvnw -P with-c,with-dotnet,with-go,with-sandbox 4445.4s => ERROR [build 22/24] RUN ./mvnw -P with-c,with-dotnet,with-go,with-sand 7.6s ------ > [build 22/24] RUN ./mvnw -P with-c,with-dotnet,with-go,with-sandbox install: #32 1.440 [INFO] Scanning for projects... #32 3.184 [INFO] ------------------------------------------------------------------------ #32 3.185 [INFO] Reactor Build Order: #32 3.186 [INFO] #32 3.188 [INFO] PLC4X [pom] #32 3.191 [INFO] Code-Generation [pom] #32 3.193 [INFO] Code-Generation: Protocol Base: MSpec [jar] #32 3.196 [INFO] Code-Generation: Language Base: Freemarker [jar] #32 3.197 [INFO] PLC4J [pom] #32 3.199 [INFO] PLC4J: API [jar] #32 3.200 [INFO] PLC4J: SPI [jar] #32 3.201 [INFO] PLC4J: Transports [pom] #32 3.202 [INFO] PLC4J: Transports: TCP [jar] #32 3.203 [INFO] PLC4J: Transports: Test [jar] #32 3.204 [INFO] PLC4J: Utils [pom] #32 3.204 [INFO] PLC4J: Utils: Test Utils [jar] #32 3.205 [INFO] Code-Generation: Protocol Test: Test Mspec [jar] #32 3.205 [INFO] Code-Generation: Language: Java [jar] #32 3.206 [INFO] Code-Generation: Language: C [jar] #32 3.206 [INFO] Code-Generation: Language: C# [jar] #32 3.207 [INFO] Code-Generation: Language: Go [jar] #32 3.207 [INFO] Protocols [pom] #32 3.208 [INFO] Protocols: AB-ETH [jar] #32 3.208 [INFO] Protocols: ADS [jar] #32 3.209 [INFO] Protocols: C-Bus [jar] #32 3.209 [INFO] Protocols: BACNet/IP [jar] #32 3.210 [INFO] Protocols: CANopen [jar] #32 3.210 [INFO] Protocols: Df1 [jar] #32 3.211 [INFO] Protocols: EtherNet/IP [jar] #32 3.211 [INFO] Protocols: Firmata [jar] #32 3.212 [INFO] Protocols: Generic CAN [jar] #32 3.212 [INFO] Protocols: KNXNet/IP [jar] #32 3.212 [INFO] Protocols: Modbus [jar] #32 3.213 [INFO] Protocols: MQTT [jar] #32 3.213 [INFO] Protocols: OPC UA [jar] #32 3.214 [INFO] Protocols: Open-Protocol [jar] #32 3.214 [INFO] Protocols: PLC4X (Proxy) [jar] #32 3.215 [INFO] Protocols: PLC4X (API) [jar] #32 3.215 [INFO] Protocols: Profinet [jar] #32 3.216 [INFO] Protocols: S7 [jar] #32 3.216 [INFO] Protocols: Simulated [jar] #32 3.216 [INFO] Protocols: SocketCAN [jar] #32 3.217 [INFO] PLC4J: Drivers [pom] #32 3.217 [INFO] PLC4J: Driver: AB-ETH [jar] #32 3.218 [INFO] PLC4J: Transports: Serial [jar] #32 3.218 [INFO] PLC4J: Driver: Beckhoff TwinCat ADS Driver [jar] #32 3.219 [INFO] PLC4J: Transports: UDP [jar] #32 3.220 [INFO] PLC4J: Utils: Pcap (Shared) [jar] #32 3.220 [INFO] PLC4J: Transports: PCAP (shared) [jar] #32 3.221 [INFO] PLC4J: Utils: Raw-Sockets [jar] #32 3.222 [INFO] PLC4J: Transports: Raw Socket [jar] #32 3.223 [INFO] PLC4J: Utils: Pcap-Replay [jar] #32 3.223 [INFO] PLC4J: Transports: PCAP Replay [jar] #32 3.223 [INFO] PLC4J: Driver: S7 (Step7) [jar] #32 3.224 [INFO] PLC4J: Utils: Test-Generator [jar] #32 3.224 [INFO] PLC4J: Driver: BACNet/IP Driver [jar] #32 3.225 [INFO] PLC4J: Driver: C-Bus [jar] #32 3.225 [INFO] PLC4J: Transports: CAN [jar] #32 3.226 [INFO] PLC4J: Transports: SocketCAN [jar] #32 3.226 [INFO] PLC4J: Transports: VirtualCAN [jar] #32 3.227 [INFO] PLC4J: Driver: CAN [bundle] #32 3.228 [INFO] PLC4J: Driver: CANopen [bundle] #32 3.228 [INFO] PLC4J: Driver: Ethernet IP [jar] #32 3.228 [INFO] PLC4J: Driver: Firmata [jar] #32 3.229 [INFO] PLC4J: Driver: KNXNet/IP [jar] #32 3.230 [INFO] PLC4J: Driver: Mock [jar] #32 3.230 [INFO] PLC4J: Driver: Open-Protocol [jar] #32 3.230 [INFO] PLC4J: Driver: Modbus [jar] #32 3.231 [INFO] PLC4J: Driver: OPC UA [jar] #32 3.232 [INFO] PLC4J: Driver: PLC4X (Proxy-Protocol) [jar] #32 3.232 [INFO] PLC4J: Driver: Profinet [jar] #32 3.232 [INFO] PLC4J: Driver: Simulated [jar] #32 3.232 [INFO] PLC4J: Examples [pom] #32 3.232 [INFO] PLC4J: Examples: Hello-ADS telemetry [jar] #32 3.233 [INFO] PLC4J: Examples: Cloud: Azure IoT Hub [jar] #32 3.233 [INFO] PLC4J: Examples: Cloud: Google Cloud IoT Core [jar] #32 3.233 [INFO] PLC4J: Examples: Hello Discovery [jar] #32 3.233 [INFO] PLC4J: Examples: Connectivity: MQTT [jar] #32 3.233 [INFO] PLC4J: Examples: Hello InfluxDB Data Collection [jar] #32 3.233 [INFO] PLC4J: Tools [pom] #32 3.233 [INFO] PLC4J: Tools: Object PLC Mapping [jar] #32 3.233 [INFO] PLC4J: Tools: Connection Cache [jar] #32 3.234 [INFO] PLC4J: Examples: Hello OPM [jar] #32 3.234 [INFO] PLC4J: Examples: Hello-Webservice [jar] #32 3.234 [INFO] PLC4J: Examples: Hello-World: Kotlin [jar] #32 3.234 [INFO] PLC4J: Examples: Hello-World PLC4X (Discover And Browse) [jar] #32 3.234 [INFO] PLC4J: Examples: Hello-World PLC4X (Read) [jar] #32 3.235 [INFO] PLC4J: Examples: Hello-World PLC4X (Subscribe) [jar] #32 3.236 [INFO] PLC4J: Examples: Hello-World PLC4X (Write) [jar] #32 3.236 [INFO] PLC4J: Examples: Poll Loop Example [jar] #32 3.236 [INFO] PLC4J: Examples: S7Event example [jar] #32 3.236 [INFO] PLC4J: Tools: Scraper [jar] #32 3.236 [INFO] PLC4J: Integrations [pom] #32 3.236 [INFO] PLC4J: Integrations: Apache Calcite [jar] #32 3.237 [INFO] PLC4J: Integrations: Apache Kafka [jar] #32 3.237 [INFO] PLC4J: Integrations: Apache Nifi [pom] #32 3.237 [INFO] PLC4J: Integrations: Apache Nifi: Processors [jar] #32 3.237 [INFO] PLC4J: Integrations: Apache Nifi: NAR [nar] #32 3.237 [INFO] PLC4J: Integrations: Eclipse Milo OPC UA Server [jar] #32 3.237 [INFO] PLC4J: Tools: Capture Replay [jar] #32 3.238 [INFO] PLC4J: Tools: Plc4x Server [jar] #32 3.238 [INFO] PLC4J: Tools: Scraper (NG) [jar] #32 3.238 [INFO] PLC4J: Tools: UI [jar] #32 3.238 [INFO] PLC4J: Utils: PLC-Simulator [jar] #32 3.239 [INFO] PLC4J: OSGi [jar] #32 3.239 [INFO] PLC4C [pom] #32 3.239 [INFO] PLC4Go [mvn-golang] #32 3.239 [INFO] PLC4Net [pom] #32 3.239 [INFO] Sandbox [pom] #32 3.239 [INFO] Sandbox: PLC4J: Driver: Discovery [jar] #32 3.240 [INFO] Sandbox: Test Df1 Driver [jar] #32 3.258 [INFO] #32 3.258 [INFO] -------------------< org.apache.plc4x:plc4x-parent >-------------------- #32 3.259 [INFO] Building PLC4X 0.11.0-SNAPSHOT [1/107] #32 3.259 [INFO] --------------------------------[ pom ]--------------------------------- #32 3.325 [INFO] #32 3.325 [INFO] --- groovy-maven-plugin:2.1.1:execute (prerequisite-check) @ plc4x-parent --- #32 3.566 Downloading from apache-releases: https://repository.apache.org/content/repositories/releases/net/java/dev/jna/jna/5.3.1/jna-5.3.1.pom #32 4.616 Downloading from central: https://repo.maven.apache.org/maven2/net/java/dev/jna/jna/5.3.1/jna-5.3.1.pom Downloaded from central: https://repo.maven.apache.org/maven2/net/java/dev/jna/jna/5.3.1/jna-5.3.1.pom (1.6 kB at 8.1 kB/s) #32 4.845 Downloading from apache-releases: https://repository.apache.org/content/repositories/releases/net/java/dev/jna/jna/5.3.1/jna-5.3.1.jar #32 4.846 Downloading from apache-releases: https://repository.apache.org/content/repositories/releases/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar #32 5.725 Downloading from central: https://repo.maven.apache.org/maven2/net/java/dev/jna/jna/5.3.1/jna-5.3.1.jar #32 5.727 Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar (169 kB at 2.0 MB/s) Downloaded from central: https://repo.maven.apache.org/maven2/net/java/dev/jna/jna/5.3.1/jna-5.3.1.jar (1.5 MB at 8.4 MB/s) #32 7.319 Os name: Linux #32 7.320 Os arch: amd64 #32 7.321 Os version: 5.10.104-linuxkit #32 7.346 Detected OS: linux #32 7.347 Detected Arch: x86_64 #32 7.358 #32 7.363 Detecting Java version: 11.0.19 OK #32 7.411 Detecting Dotnet version: missing #32 7.429 --- output of version `dotnet --version` command --- #32 7.430 #32 7.431 ---------------------------------------------------- #32 7.432 Detecting Git version: 2.34.1 OK #32 7.443 Detecting Gcc version: 11.3.0 OK #32 7.460 Detecting Maven version: 3.6.3 OK #32 7.472 [INFO] ------------------------------------------------------------------------ #32 7.472 [INFO] Reactor Summary for PLC4X 0.11.0-SNAPSHOT: #32 7.472 [INFO] #32 7.472 [INFO] PLC4X .............................................. FAILURE [ 4.215 s] #32 7.472 [INFO] Code-Generation .................................... SKIPPED #32 7.473 [INFO] Code-Generation: Protocol Base: MSpec .............. SKIPPED #32 7.473 [INFO] Code-Generation: Language Base: Freemarker ......... SKIPPED #32 7.473 [INFO] PLC4J .............................................. SKIPPED #32 7.473 [INFO] PLC4J: API ......................................... SKIPPED #32 7.473 [INFO] PLC4J: SPI ......................................... SKIPPED #32 7.473 [INFO] PLC4J: Transports .................................. SKIPPED #32 7.473 [INFO] PLC4J: Transports: TCP ............................. SKIPPED #32 7.474 [INFO] PLC4J: Transports: Test ............................ SKIPPED #32 7.474 [INFO] PLC4J: Utils ....................................... SKIPPED #32 7.474 [INFO] PLC4J: Utils: Test Utils ........................... SKIPPED #32 7.474 [INFO] Code-Generation: Protocol Test: Test Mspec ......... SKIPPED #32 7.474 [INFO] Code-Generation: Language: Java .................... SKIPPED #32 7.474 [INFO] Code-Generation: Language: C ....................... SKIPPED #32 7.474 [INFO] Code-Generation: Language: C# ...................... SKIPPED #32 7.474 [INFO] Code-Generation: Language: Go ...................... SKIPPED #32 7.474 [INFO] Protocols .......................................... SKIPPED #32 7.474 [INFO] Protocols: AB-ETH .................................. SKIPPED #32 7.475 [INFO] Protocols: ADS ..................................... SKIPPED #32 7.475 [INFO] Protocols: C-Bus ................................... SKIPPED #32 7.475 [INFO] Protocols: BACNet/IP ............................... SKIPPED #32 7.475 [INFO] Protocols: CANopen ................................. SKIPPED #32 7.475 [INFO] Protocols: Df1 ..................................... SKIPPED #32 7.476 [INFO] Protocols: EtherNet/IP ............................. SKIPPED #32 7.476 [INFO] Protocols: Firmata ................................. SKIPPED #32 7.476 [INFO] Protocols: Generic CAN ............................. SKIPPED #32 7.476 [INFO] Protocols: KNXNet/IP ............................... SKIPPED #32 7.476 [INFO] Protocols: Modbus .................................. SKIPPED #32 7.476 [INFO] Protocols: MQTT .................................... SKIPPED #32 7.477 [INFO] Protocols: OPC UA .................................. SKIPPED #32 7.477 [INFO] Protocols: Open-Protocol ........................... SKIPPED #32 7.477 [INFO] Protocols: PLC4X (Proxy) ........................... SKIPPED #32 7.477 [INFO] Protocols: PLC4X (API) ............................. SKIPPED #32 7.477 [INFO] Protocols: Profinet ................................ SKIPPED #32 7.477 [INFO] Protocols: S7 ...................................... SKIPPED #32 7.477 [INFO] Protocols: Simulated ............................... SKIPPED #32 7.478 [INFO] Protocols: SocketCAN ............................... SKIPPED #32 7.478 [INFO] PLC4J: Drivers ..................................... SKIPPED #32 7.478 [INFO] PLC4J: Driver: AB-ETH .............................. SKIPPED #32 7.479 [INFO] PLC4J: Transports: Serial .......................... SKIPPED #32 7.479 [INFO] PLC4J: Driver: Beckhoff TwinCat ADS Driver ......... SKIPPED #32 7.479 [INFO] PLC4J: Transports: UDP ............................. SKIPPED #32 7.480 [INFO] PLC4J: Utils: Pcap (Shared) ........................ SKIPPED #32 7.480 [INFO] PLC4J: Transports: PCAP (shared) ................... SKIPPED #32 7.480 [INFO] PLC4J: Utils: Raw-Sockets .......................... SKIPPED #32 7.480 [INFO] PLC4J: Transports: Raw Socket ...................... SKIPPED #32 7.480 [INFO] PLC4J: Utils: Pcap-Replay .......................... SKIPPED #32 7.480 [INFO] PLC4J: Transports: PCAP Replay ..................... SKIPPED #32 7.480 [INFO] PLC4J: Driver: S7 (Step7) .......................... SKIPPED #32 7.481 [INFO] PLC4J: Utils: Test-Generator ....................... SKIPPED #32 7.481 [INFO] PLC4J: Driver: BACNet/IP Driver .................... SKIPPED #32 7.481 [INFO] PLC4J: Driver: C-Bus ............................... SKIPPED #32 7.481 [INFO] PLC4J: Transports: CAN ............................. SKIPPED #32 7.481 [INFO] PLC4J: Transports: SocketCAN ....................... SKIPPED #32 7.481 [INFO] PLC4J: Transports: VirtualCAN ...................... SKIPPED #32 7.481 [INFO] PLC4J: Driver: CAN ................................. SKIPPED #32 7.482 [INFO] PLC4J: Driver: CANopen ............................. SKIPPED #32 7.482 [INFO] PLC4J: Driver: Ethernet IP ......................... SKIPPED #32 7.482 [INFO] PLC4J: Driver: Firmata ............................. SKIPPED #32 7.482 [INFO] PLC4J: Driver: KNXNet/IP ........................... SKIPPED #32 7.482 [INFO] PLC4J: Driver: Mock ................................ SKIPPED #32 7.482 [INFO] PLC4J: Driver: Open-Protocol ....................... SKIPPED #32 7.483 [INFO] PLC4J: Driver: Modbus .............................. SKIPPED #32 7.483 [INFO] PLC4J: Driver: OPC UA .............................. SKIPPED #32 7.483 [INFO] PLC4J: Driver: PLC4X (Proxy-Protocol) .............. SKIPPED #32 7.484 [INFO] PLC4J: Driver: Profinet ............................ SKIPPED #32 7.484 [INFO] PLC4J: Driver: Simulated ........................... SKIPPED #32 7.484 [INFO] PLC4J: Examples .................................... SKIPPED #32 7.484 [INFO] PLC4J: Examples: Hello-ADS telemetry ............... SKIPPED #32 7.484 [INFO] PLC4J: Examples: Cloud: Azure IoT Hub .............. SKIPPED #32 7.484 [INFO] PLC4J: Examples: Cloud: Google Cloud IoT Core ...... SKIPPED #32 7.484 [INFO] PLC4J: Examples: Hello Discovery ................... SKIPPED #32 7.484 [INFO] PLC4J: Examples: Connectivity: MQTT ................ SKIPPED #32 7.484 [INFO] PLC4J: Examples: Hello InfluxDB Data Collection .... SKIPPED #32 7.484 [INFO] PLC4J: Tools ....................................... SKIPPED #32 7.484 [INFO] PLC4J: Tools: Object PLC Mapping ................... SKIPPED #32 7.484 [INFO] PLC4J: Tools: Connection Cache ..................... SKIPPED #32 7.485 [INFO] PLC4J: Examples: Hello OPM ......................... SKIPPED #32 7.485 [INFO] PLC4J: Examples: Hello-Webservice .................. SKIPPED #32 7.485 [INFO] PLC4J: Examples: Hello-World: Kotlin ............... SKIPPED #32 7.485 [INFO] PLC4J: Examples: Hello-World PLC4X (Discover And Browse) SKIPPED #32 7.486 [INFO] PLC4J: Examples: Hello-World PLC4X (Read) .......... SKIPPED #32 7.486 [INFO] PLC4J: Examples: Hello-World PLC4X (Subscribe) ..... SKIPPED #32 7.486 [INFO] PLC4J: Examples: Hello-World PLC4X (Write) ......... SKIPPED #32 7.486 [INFO] PLC4J: Examples: Poll Loop Example ................. SKIPPED #32 7.486 [INFO] PLC4J: Examples: S7Event example ................... SKIPPED #32 7.486 [INFO] PLC4J: Tools: Scraper .............................. SKIPPED #32 7.486 [INFO] PLC4J: Integrations ................................ SKIPPED #32 7.487 [INFO] PLC4J: Integrations: Apache Calcite ................ SKIPPED #32 7.487 [INFO] PLC4J: Integrations: Apache Kafka .................. SKIPPED #32 7.487 [INFO] PLC4J: Integrations: Apache Nifi ................... SKIPPED #32 7.487 [INFO] PLC4J: Integrations: Apache Nifi: Processors ....... SKIPPED #32 7.487 [INFO] PLC4J: Integrations: Apache Nifi: NAR .............. SKIPPED #32 7.487 [INFO] PLC4J: Integrations: Eclipse Milo OPC UA Server .... SKIPPED #32 7.487 [INFO] PLC4J: Tools: Capture Replay ....................... SKIPPED #32 7.487 [INFO] PLC4J: Tools: Plc4x Server ......................... SKIPPED #32 7.487 [INFO] PLC4J: Tools: Scraper (NG) ......................... SKIPPED #32 7.487 [INFO] PLC4J: Tools: UI ................................... SKIPPED #32 7.487 [INFO] PLC4J: Utils: PLC-Simulator ........................ SKIPPED #32 7.488 [INFO] PLC4J: OSGi ........................................ SKIPPED #32 7.488 [INFO] PLC4C .............................................. SKIPPED #32 7.488 [INFO] PLC4Go ............................................. SKIPPED #32 7.488 [INFO] PLC4Net ............................................ SKIPPED #32 7.488 [INFO] Sandbox ............................................ SKIPPED #32 7.488 [INFO] Sandbox: PLC4J: Driver: Discovery .................. SKIPPED #32 7.488 [INFO] Sandbox: Test Df1 Driver ........................... SKIPPED #32 7.488 [INFO] ------------------------------------------------------------------------ #32 7.489 [INFO] BUILD FAILURE #32 7.489 [INFO] ------------------------------------------------------------------------ #32 7.489 [INFO] Total time: 6.068 s #32 7.489 [INFO] Finished at: 2023-05-17T09:43:44Z #32 7.490 [INFO] ------------------------------------------------------------------------ #32 7.491 [ERROR] Failed to execute goal org.codehaus.gmaven:groovy-maven-plugin:2.1.1:execute (prerequisite-check) on project plc4x-parent: Execution prerequisite-check of goal org.codehaus.gmaven:groovy-maven-plugin:2.1.1:execute failed: Not all conditions met, see log for details. -> [Help 1] #32 7.491 [ERROR] #32 7.491 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. #32 7.492 [ERROR] Re-run Maven using the -X switch to enable full debug logging. #32 7.492 [ERROR] #32 7.492 [ERROR] For more information about the errors and possible solutions, please read the following articles: #32 7.492 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException ------ executor failed running [/bin/sh -c ./mvnw -P with-c,with-dotnet,with-go,with-sandbox install]: exit code: 1 ```