fullStackComposeBuild error

515 views
Skip to first unread message

wenq...@gmail.com

unread,
Oct 20, 2021, 11:02:43 PM10/20/21
to xnat_discussion
Hi,

I reinstalled Ubuntu and JDK, but got errors, could you please help!

 ./gradlew fullStackComposeBuild fullStackComposeUp

FAILURE: Build failed with an exception.

* Where:
Settings file '/home/fullerlab/xnat-docker-compose/settings.gradle'

* What went wrong:
Could not compile settings file '/home/fullerlab/xnat-docker-compose/settings.gradle'.
> startup failed:
  General error during semantic analysis: Unsupported class file major version 61



Thank you,
Renjie

Herrick, Rick

unread,
Oct 21, 2021, 12:24:43 AM10/21/21
to xnat_di...@googlegroups.com

You have Java 17 (that’s the “Unsupported class file major version 61”) installed. Gradle is trying to build the project defined in settings.gradle and build.gradle (which are really just Groovy files), but Gradle isn’t compatible with Java 17. Uninstall Java 17 and try Java 8 or Java 11, which are the LTS versions of Java before 17.

 

-- 

Rick Herrick

Sr. Programmer/Analyst

Neuroinformatics Research Group

Washington University School of Medicine

Phone: +1 (314) 273-1645

 

From: xnat_di...@googlegroups.com <xnat_di...@googlegroups.com> on behalf of wenq...@gmail.com <wenq...@gmail.com>
Date: Wednesday, October 20, 2021 at 10:02 PM
To: xnat_discussion <xnat_di...@googlegroups.com>
Subject: [XNAT Discussion] fullStackComposeBuild error

* External Email - Caution *

--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/1eff25b5-2b6f-40da-bdca-cff732f39be2n%40googlegroups.com.

 


The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.

wenq...@gmail.com

unread,
Oct 21, 2021, 11:54:28 AM10/21/21
to xnat_discussion
Hi Rick ,

Thanks a lot!

Renjie

wenq...@gmail.com

unread,
Oct 21, 2021, 3:30:53 PM10/21/21
to xnat_discussion
Hi Rick,

While installed java 11, I got errors as:

fullerlab@W10D-4KM8KD3:~/xnat-docker-compose$ ./gradlew fullStackComposeBuild fullStackComposeUp

> Task :fullStackComposeBuild FAILED
--no-ansi option is deprecated and will be removed in future versions. Use `--ansi never` instead.
[2374] Failed to execute script docker-compose
Traceback (most recent call last):
  File "urllib3/connectionpool.py", line 677, in urlopen
  File "urllib3/connectionpool.py", line 392, in _make_request
  File "http/client.py", line 1277, in request
  File "http/client.py", line 1323, in _send_request
  File "http/client.py", line 1272, in endheaders
  File "http/client.py", line 1032, in _send_output
  File "http/client.py", line 972, in send
  File "docker/transport/unixconn.py", line 43, in connect
PermissionError: [Errno 13] Permission denied

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "requests/adapters.py", line 449, in send
  File "urllib3/connectionpool.py", line 727, in urlopen
  File "urllib3/util/retry.py", line 410, in increment
  File "urllib3/packages/six.py", line 734, in reraise
  File "urllib3/connectionpool.py", line 677, in urlopen
  File "urllib3/connectionpool.py", line 392, in _make_request
  File "http/client.py", line 1277, in request
  File "http/client.py", line 1323, in _send_request
  File "http/client.py", line 1272, in endheaders
  File "http/client.py", line 1032, in _send_output
  File "http/client.py", line 972, in send
  File "docker/transport/unixconn.py", line 43, in connect
urllib3.exceptions.ProtocolError: ('Connection aborted.', PermissionError(13, 'Permission denied'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "docker/api/client.py", line 214, in _retrieve_server_version
  File "docker/api/daemon.py", line 181, in version
  File "docker/utils/decorators.py", line 46, in inner
  File "docker/api/client.py", line 237, in _get
  File "requests/sessions.py", line 543, in get
  File "requests/sessions.py", line 530, in request
  File "requests/sessions.py", line 643, in send
  File "requests/adapters.py", line 498, in send
requests.exceptions.ConnectionError: ('Connection aborted.', PermissionError(13, 'Permission denied'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "docker-compose", line 3, in <module>
  File "compose/cli/main.py", line 81, in main
  File "compose/cli/main.py", line 200, in perform_command
  File "compose/cli/command.py", line 70, in project_from_options
  File "compose/cli/command.py", line 153, in get_project
  File "compose/cli/docker_client.py", line 43, in get_client
  File "compose/cli/docker_client.py", line 170, in docker_client
  File "docker/api/client.py", line 197, in __init__
  File "docker/api/client.py", line 222, in _retrieve_server_version
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':fullStackComposeBuild'.
> Exit-code 255 when calling docker-compose, stdout:

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
3 actionable tasks: 1 executed, 2 up-to-date
fullerlab@W10D-4KM8KD3:~/xnat-docker-compose$

On Wednesday, October 20, 2021 at 11:24:43 PM UTC-5 Rick Herrick wrote:

wenq...@gmail.com

unread,
Oct 25, 2021, 11:53:17 AM10/25/21
to xnat_discussion
Hi Rick,

I got the errors as below:

fullerlab@W10D-4KM8KD3:~/xnat-docker-compose$ sudo ./gradlew fullStackComposeBuild fullStackComposeUp
[sudo] password for fullerlab:
Starting a Gradle Daemon (subsequent builds will be faster)

> Task :fullStackComposeBuild

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them

> Task :fullStackComposeUp

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
xnat-traefik Pulling
xnat-smtp Pulling
xnat-activemq Pulling
7dcf5a444392 Pulling fs layer
9eebba75a87f Pulling fs layer
1f0440d87cc7 Pulling fs layer
dacd0555c1b4 Pulling fs layer
b0f19aa05a94 Pulling fs layer
9fa6897f5432 Pulling fs layer
0f986ed9e7e7 Pulling fs layer
75a8f61a71ca Pulling fs layer
50db804f83a0 Pulling fs layer
e3d0ff839c33 Pulling fs layer
8e3cb309021f Pulling fs layer
9a1585ec1312 Pulling fs layer
a242633f1554 Pulling fs layer
8e3cb309021f Waiting
0f986ed9e7e7 Waiting
75a8f61a71ca Waiting
50db804f83a0 Waiting
e3d0ff839c33 Waiting
a242633f1554 Waiting
9a1585ec1312 Waiting
b0f19aa05a94 Waiting
9fa6897f5432 Waiting
dacd0555c1b4 Waiting
a0d0a0d46f8b Pulling fs layer
d5295d3cd66d Pulling fs layer
709a291a928e Pulling fs layer
2367d83d5091 Pulling fs layer
a0d0a0d46f8b Waiting
2367d83d5091 Waiting
d5295d3cd66d Waiting
709a291a928e Waiting
1f0440d87cc7 Downloading [==================================================>]     511B/511B
1f0440d87cc7 Verifying Checksum
1f0440d87cc7 Download complete
9eebba75a87f Downloading [=>                                                 ]     658B/21.66kB
9eebba75a87f Downloading [==================================================>]  21.66kB/21.66kB
9eebba75a87f Download complete
7dcf5a444392 Downloading [>                                                  ]  519.4kB/51.07MB
7dcf5a444392 Downloading [====>                                              ]  4.664MB/51.07MB
7dcf5a444392 Downloading [=========>                                         ]  9.325MB/51.07MB
7dcf5a444392 Downloading [==============>                                    ]  14.53MB/51.07MB
dacd0555c1b4 Downloading [================================================>  ]     660B/681B
dacd0555c1b4 Downloading [==================================================>]     681B/681B
dacd0555c1b4 Download complete
7dcf5a444392 Downloading [==================>                                ]   19.2MB/51.07MB
b0f19aa05a94 Downloading [>                                                  ]    539kB/55.76MB
7dcf5a444392 Downloading [=====================>                             ]  22.33MB/51.07MB
b0f19aa05a94 Downloading [==>                                                ]  2.669MB/55.76MB
7dcf5a444392 Downloading [=======================>                           ]  24.41MB/51.07MB
b0f19aa05a94 Downloading [====>                                              ]  4.811MB/55.76MB
b0f19aa05a94 Downloading [======>                                            ]  6.962MB/55.76MB
7dcf5a444392 Downloading [==========================>                        ]  26.98MB/51.07MB
b0f19aa05a94 Downloading [========>                                          ]  9.644MB/55.76MB
7dcf5a444392 Downloading [============================>                      ]  29.55MB/51.07MB
b0f19aa05a94 Downloading [==========>                                        ]  11.78MB/55.76MB
7dcf5a444392 Downloading [==============================>                    ]  31.64MB/51.07MB
b0f19aa05a94 Downloading [============>                                      ]  13.91MB/55.76MB
7dcf5a444392 Downloading [================================>                  ]   33.7MB/51.07MB
9fa6897f5432 Downloading [>                                                  ]  253.1kB/24.05MB
7dcf5a444392 Downloading [===================================>               ]  35.78MB/51.07MB
b0f19aa05a94 Downloading [==============>                                    ]  16.08MB/55.76MB
9fa6897f5432 Downloading [==>                                                ]  1.244MB/24.05MB
7dcf5a444392 Downloading [====================================>              ]  37.35MB/51.07MB
b0f19aa05a94 Downloading [===============>                                   ]  17.67MB/55.76MB
9fa6897f5432 Downloading [=====>                                             ]   2.71MB/24.05MB
7dcf5a444392 Downloading [======================================>            ]  38.91MB/51.07MB
b0f19aa05a94 Downloading [=================>                                 ]  19.28MB/55.76MB
9fa6897f5432 Downloading [=========>                                         ]  4.447MB/24.05MB
b0f19aa05a94 Downloading [==================>                                ]  20.88MB/55.76MB
9fa6897f5432 Downloading [============>                                      ]  5.921MB/24.05MB
7dcf5a444392 Downloading [========================================>          ]  40.98MB/51.07MB
b0f19aa05a94 Downloading [====================>                              ]  22.49MB/55.76MB
9fa6897f5432 Downloading [===============>                                   ]  7.408MB/24.05MB
7dcf5a444392 Downloading [=========================================>         ]  42.53MB/51.07MB
b0f19aa05a94 Downloading [=====================>                             ]   24.1MB/55.76MB
9fa6897f5432 Downloading [==================>                                ]  8.895MB/24.05MB
7dcf5a444392 Downloading [===========================================>       ]  44.09MB/51.07MB
9fa6897f5432 Downloading [=====================>                             ]  10.37MB/24.05MB
b0f19aa05a94 Downloading [=======================>                           ]  25.72MB/55.76MB
7dcf5a444392 Downloading [============================================>      ]  45.65MB/51.07MB
9fa6897f5432 Downloading [=========================>                         ]  12.08MB/24.05MB
b0f19aa05a94 Downloading [========================>                          ]  27.86MB/55.76MB
7dcf5a444392 Downloading [==============================================>    ]  47.74MB/51.07MB
9fa6897f5432 Downloading [============================>                      ]  13.79MB/24.05MB
b0f19aa05a94 Downloading [==========================>                        ]     30MB/55.76MB
7dcf5a444392 Downloading [================================================>  ]  49.83MB/51.07MB
9fa6897f5432 Downloading [===============================>                   ]  15.28MB/24.05MB
7dcf5a444392 Download complete
b0f19aa05a94 Downloading [============================>                      ]   31.6MB/55.76MB
0f986ed9e7e7 Downloading
0f986ed9e7e7 Retrying in 5 seconds
9fa6897f5432 Downloading [===================================>               ]  17.26MB/24.05MB
b0f19aa05a94 Downloading [==============================>                    ]  34.28MB/55.76MB
7dcf5a444392 Extracting [>                                                  ]  524.3kB/51.07MB
9fa6897f5432 Downloading [========================================>          ]  19.48MB/24.05MB
9fa6897f5432 Downloading [=============================================>     ]  21.71MB/24.05MB
b0f19aa05a94 Downloading [=================================>                 ]  36.96MB/55.76MB
7dcf5a444392 Extracting [===>                                               ]   3.67MB/51.07MB
xnat-smtp Error
Error response from daemon: Head "https://registry-1.docker.io/v2/freinet/postfix-relay/manifests/latest": dial tcp: lookup registry-1.docker.io on 192.168.65.5:53: no such host

> Task :fullStackComposeUp FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':fullStackComposeUp'.
> Exit-code 18 when calling docker-compose, stdout: N/A

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 17s
4 actionable tasks: 2 executed, 2 up-to-date
fullerlab@W10D-4KM8KD3:~/xnat-docker-compose$

Thank you,
Renjie



On Wednesday, October 20, 2021 at 11:24:43 PM UTC-5 Rick Herrick wrote:

Herrick, Rick

unread,
Oct 26, 2021, 6:01:44 PM10/26/21
to xnat_di...@googlegroups.com

That’s a network error. I have no idea what it indicates because it’s something local:

 

dial tcp: lookup registry-1.docker.io on 192.168.65.5:53: no such host

 

All IP addresses that start with “192.168” are on private networks, so for some reason registry-1.docker.io is resolving to a local IP. By default, Docker uses the subnets 172.17.0.0/16 and 172.18.0.0/16 (maybe others, but they’re all 172.something; I think they might vary based on the network mode, e.g. bridge vs host, but I’m not sure).

 

It’s strange that it worked for those other containers but not for the postfix container, so I’d guess it was just a transient networking issue, but I’m not really sure.

 

-- 

Rick Herrick

XNAT Architect/Developer

Computational Imaging Laboratory

Washington University School of Medicine

wenq...@gmail.com

unread,
Nov 2, 2021, 10:22:16 AM11/2/21
to xnat_discussion
Hi Rick,

Many thanks!
Renjie
Reply all
Reply to author
Forward
0 new messages