eclipse / steady

Analyses your Java applications for open-source dependencies with known vulnerabilities, using both static analysis and testing to determine code context and usage for greater accuracy. https://eclipse.github.io/steady/
Apache License 2.0
517 stars 124 forks source link

Issues in installing Eclipse steady #563

Closed spnzig closed 1 year ago

spnzig commented 2 years ago

I have cloned the steady project on Ubuntu 18.04 Virtual machine and would like to explore the functionalities. I have installed git, docker and docker compose on my machine and now when I try to run the script ./setup-steady.sh I get the below error.

`Installation skipped (the directory /home/sys/steady/docker/steady-3.2.4/ already contains necessary files)
Press <a> to start all of Steady's Docker Compose services (or any other key to skip execution): a
Executing Steady with ./steady-3.2.4/start-steady.sh -s all
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'))
[1851] Failed to execute script docker-compose
Error executing docker-compose`

I used the command sudo chmod 777 /var/run/docker.sock to resolve the permission error. Now when I re-run the ./setup-steady.sh i get the below error

`sys@ubuntu:~/steady/docker$ ./setup-steady.sh
Installation skipped (the directory /home/sys/steady/docker/steady-3.2.4/ already contains necessary files)
Press <a> to start all of Steady's Docker Compose services (or any other key to skip execution): a
Executing Steady with ./steady-3.2.4/start-steady.sh -s all
Creating network "steady-324_default" with the default driver
Creating volume "steady-324_steady-postgres-data" with default driver
Pulling postgresql (postgres:11-alpine)...
ERROR: Head "https://registry-1.docker.io/v2/library/postgres/manifests/11-alpine": Get "https://auth.docker.io/token?scope=repository%3Alibrary%2Fpostgres%3Apull&service=registry.docker.io": EOF
Error executing docker-compose

Is there any user manual to install Steady? Any help will be really useful.

henrikplate commented 2 years ago

Hello @spnzig, sounds like a problem related to your Docker/Docker Compose installation, and I remember that we had problems with Docker Compose as of version 2.x. Can you please share which versions you have installed? Cheers, Henrik

henrikplate commented 1 year ago

Closed due to lack of feedback from issue author