No such file error

Hello, I am writing a bachelor thesis and IInterUSS software in it. My goal is to simulate and test some scenarios of InterUSS and use these results in my thesis. I intend to use only one local machine for this. I am running Win 10.

I am very new to using Docker and I am trying to run this (GitHub - interuss/monitoring: InterUSS Platform USS monitoring tools for federated UTM, including automated testing.). I download the repository using GitHub and go to build and dev folder where I use the run_locally shell script. The script runs and creates several images and a container with five sub-containers in it. However, at the end of the script I get the message that:

“scd_bootstrapper-1 exited with code 1
rid_bootstrapper-1 exited with code 1
dss-1 | exec /startup/core_service.sh: no such file or directory
dss-1 exited with code 1”

I checked the startup files and all files are present. When trying to run the container, only the oauth-1 and crdb-1 are running, the rest of them exit with code 1. I am unsure of how to resolve this problem. I tried following these instructions on how to run a local test but have been unsuccessful so far (monitoring/monitoring/uss_qualifier/local_testing.md at main · interuss/monitoring · GitHub). Can someone help me with this?

Thank you in advance.

We don’t write a thesis about this, so we don’t really want to do a deep dive into that huge piece of software.

It would be helpful to provide direct links to docker-compose.yml and potentially Dockerfiles, provide more debug output, not just the final error.

I would expect the bootstrap containers to exit, by name they probably need to be run once to initialize something.

Here is a link to docker compose : monitoring/build/dev at main · interuss/monitoring · GitHub

Dockerfile can be found here: monitoring/monitoring/Dockerfile at main · interuss/monitoring · GitHub

This is the debug from the terminal when i run the container:

2024-05-19 09:42:14 dss-1               | exec /startup/core_service.sh: no such file or directory
2024-05-19 09:42:13 rid_bootstrapper-1  | exec /startup/rid_bootstrapper.sh: no such file or directory
2024-05-19 09:42:12 scd_bootstrapper-1  | exec /startup/scd_bootstrapper.sh: no such file or directory
2024-05-19 09:42:12 crdb-1              | *
2024-05-19 09:42:12 crdb-1              | * WARNING: ALL SECURITY CONTROLS HAVE BEEN DISABLED!
2024-05-19 09:42:12 crdb-1              | * 
2024-05-19 09:42:12 crdb-1              | * This mode is intended for non-production testing only.
2024-05-19 09:42:12 crdb-1              | * 
2024-05-19 09:42:12 crdb-1              | * In this mode:
2024-05-19 09:42:12 crdb-1              | * - Your cluster is open to any client that can access any of your IP addresses.
2024-05-19 09:42:12 crdb-1              | * - Intruders with access to your machine or network can observe client-server traffic.
2024-05-19 09:42:12 crdb-1              | * - Intruders can log in without password and read or write any data in the cluster.
2024-05-19 09:42:12 crdb-1              | * - Intruders can consume all your server's resources and cause unavailability.
2024-05-19 09:42:12 crdb-1              | *
2024-05-19 09:42:12 crdb-1              | *
2024-05-19 09:42:12 crdb-1              | * INFO: To start a secure server without mandating TLS for clients,
2024-05-19 09:42:12 crdb-1              | * consider --accept-sql-without-tls instead. For other options, see:
2024-05-19 09:42:12 crdb-1              | * 
2024-05-19 09:42:12 crdb-1              | * - https://go.crdb.dev/issue-v/53404/v21.2
2024-05-19 09:42:12 crdb-1              | * - https://www.cockroachlabs.com/docs/v21.2/secure-a-cluster.html
2024-05-19 09:42:12 crdb-1              | *
2024-05-19 09:42:12 crdb-1              | *
2024-05-19 09:42:12 crdb-1              | * WARNING: neither --listen-addr nor --advertise-addr was specified.
2024-05-19 09:42:12 crdb-1              | * The server will advertise "crdb.uss1.localutm" to other nodes, is this routable?
2024-05-19 09:42:12 crdb-1              | * 
2024-05-19 09:42:12 crdb-1              | * Consider using:
2024-05-19 09:42:12 crdb-1              | * - for local-only servers:  --listen-addr=localhost
2024-05-19 09:42:12 crdb-1              | * - for multi-node clusters: --advertise-addr=<host/IP addr>
2024-05-19 09:42:12 crdb-1              | * 
2024-05-19 09:42:12 crdb-1              | *
2024-05-19 09:42:13 crdb-1              | CockroachDB node starting at 2024-05-19 07:42:13.04938417 +0000 UTC (took 0.4s)
2024-05-19 09:42:13 crdb-1              | build:               CCL v21.2.7 @ 2022/03/14 16:37:26 (go1.16.6)
2024-05-19 09:42:13 crdb-1              | webui:               http://crdb.uss1.localutm:8080
2024-05-19 09:42:13 crdb-1              | sql:                 postgresql://root@crdb.uss1.localutm:26257/defaultdb?sslmode=disable
2024-05-19 09:42:13 crdb-1              | sql (JDBC):          jdbc:postgresql://crdb.uss1.localutm:26257/defaultdb?sslmode=disable&user=root
2024-05-19 09:42:13 crdb-1              | RPC client flags:    /cockroach/cockroach <client cmd> --host=crdb.uss1.localutm:26257 --insecure
2024-05-19 09:42:13 crdb-1              | logs:                /cockroach/cockroach-data/logs
2024-05-19 09:42:13 crdb-1              | temp dir:            /cockroach/cockroach-data/cockroach-temp471512377
2024-05-19 09:42:13 crdb-1              | external I/O path:   /cockroach/cockroach-data/extern
2024-05-19 09:42:13 crdb-1              | store[0]:            path=/cockroach/cockroach-data
2024-05-19 09:42:13 crdb-1              | storage engine:      pebble
2024-05-19 09:42:13 crdb-1              | status:              restarted pre-existing node
2024-05-19 09:42:13 crdb-1              | clusterID:           b0630f01-008b-4d6e-b307-3bdc6f980d37
2024-05-19 09:42:13 crdb-1              | nodeID:              1

When i inspect scd bootstrapper, this is its code:

{
	"Id": "f1ed9fa17c90d0654fa3aaea5417f6b162e0835c32559c622945ecea108d1b64",
	"Created": "2024-05-18T16:52:57.637834415Z",
	"Path": "/startup/scd_bootstrapper.sh",
	"Args": [],
	"State": {
		"Status": "exited",
		"Running": false,
		"Paused": false,
		"Restarting": false,
		"OOMKilled": false,
		"Dead": false,
		"Pid": 0,
		"ExitCode": 1,
		"Error": "",
		"StartedAt": "2024-05-19T07:42:12.985235192Z",
		"FinishedAt": "2024-05-19T07:42:12.986673229Z",
		"Health": {
			"Status": "unhealthy",
			"FailingStreak": 0,
			"Log": []
		}
	},
	"Image": "sha256:b6d1ddcc5f5c6960e1fa151a96e261663a63525206712463cf88b6707130005b",
	"ResolvConfPath": "/var/lib/docker/containers/f1ed9fa17c90d0654fa3aaea5417f6b162e0835c32559c622945ecea108d1b64/resolv.conf",
	"HostnamePath": "/var/lib/docker/containers/f1ed9fa17c90d0654fa3aaea5417f6b162e0835c32559c622945ecea108d1b64/hostname",
	"HostsPath": "/var/lib/docker/containers/f1ed9fa17c90d0654fa3aaea5417f6b162e0835c32559c622945ecea108d1b64/hosts",
	"LogPath": "/var/lib/docker/containers/f1ed9fa17c90d0654fa3aaea5417f6b162e0835c32559c622945ecea108d1b64/f1ed9fa17c90d0654fa3aaea5417f6b162e0835c32559c622945ecea108d1b64-json.log",
	"Name": "/local_infra-scd_bootstrapper-1",
	"RestartCount": 0,
	"Driver": "overlay2",
	"Platform": "linux",
	"MountLabel": "",
	"ProcessLabel": "",
	"AppArmorProfile": "",
	"ExecIDs": null,
	"HostConfig": {
		"Binds": [
			"C:/Users/tomas/monitoring/build/dev/startup:/startup:ro"
		],
		"ContainerIDFile": "",
		"LogConfig": {
			"Type": "json-file",
			"Config": {}
		},
		"NetworkMode": "dss_internal_network",
		"PortBindings": {},
		"RestartPolicy": {
			"Name": "no",
			"MaximumRetryCount": 0
		},
		"AutoRemove": false,
		"VolumeDriver": "",
		"VolumesFrom": null,
		"ConsoleSize": [
			0,
			0
		],
		"CapAdd": null,
		"CapDrop": null,
		"CgroupnsMode": "host",
		"Dns": [],
		"DnsOptions": [],
		"DnsSearch": [],
		"ExtraHosts": [],
		"GroupAdd": null,
		"IpcMode": "private",
		"Cgroup": "",
		"Links": null,
		"OomScoreAdj": 0,
		"PidMode": "",
		"Privileged": false,
		"PublishAllPorts": false,
		"ReadonlyRootfs": false,
		"SecurityOpt": null,
		"UTSMode": "",
		"UsernsMode": "",
		"ShmSize": 67108864,
		"Runtime": "runc",
		"Isolation": "",
		"CpuShares": 0,
		"Memory": 0,
		"NanoCpus": 0,
		"CgroupParent": "",
		"BlkioWeight": 0,
		"BlkioWeightDevice": null,
		"BlkioDeviceReadBps": null,
		"BlkioDeviceWriteBps": null,
		"BlkioDeviceReadIOps": null,
		"BlkioDeviceWriteIOps": null,
		"CpuPeriod": 0,
		"CpuQuota": 0,
		"CpuRealtimePeriod": 0,
		"CpuRealtimeRuntime": 0,
		"CpusetCpus": "",
		"CpusetMems": "",
		"Devices": null,
		"DeviceCgroupRules": null,
		"DeviceRequests": null,
		"MemoryReservation": 0,
		"MemorySwap": 0,
		"MemorySwappiness": null,
		"OomKillDisable": false,
		"PidsLimit": null,
		"Ulimits": null,
		"CpuCount": 0,
		"CpuPercent": 0,
		"IOMaximumIOps": 0,
		"IOMaximumBandwidth": 0,
		"Mounts": [
			{
				"Type": "volume",
				"Source": "local_infra_dss_component_coordination",
				"Target": "/var/dss_component_coordination",
				"VolumeOptions": {}
			}
		],
		"MaskedPaths": [
			"/proc/asound",
			"/proc/acpi",
			"/proc/kcore",
			"/proc/keys",
			"/proc/latency_stats",
			"/proc/timer_list",
			"/proc/timer_stats",
			"/proc/sched_debug",
			"/proc/scsi",
			"/sys/firmware",
			"/sys/devices/virtual/powercap"
		],
		"ReadonlyPaths": [
			"/proc/bus",
			"/proc/fs",
			"/proc/irq",
			"/proc/sys",
			"/proc/sysrq-trigger"
		]
	},
	"GraphDriver": {
		"Data": {
			"LowerDir": "/var/lib/docker/overlay2/78023b11ec065e8ea0d6fa143eacecda66d938963274b9936557daefed580247-init/diff:/var/lib/docker/overlay2/5d56cf3e23468d006c00dd24a689e0c964bad36af62fd4a5c23e06d55f6c69c2/diff:/var/lib/docker/overlay2/310e8fce8e4461d1a1d0bc5816990dca014f54a12451845edc453c4f00223be3/diff:/var/lib/docker/overlay2/47b23b0f95f121dd0b8973f175f8a33b57fa8f42c18158ea837eeac368b09032/diff:/var/lib/docker/overlay2/7867c7c7b5c18891f4a739812543b8c07c864accb31560e181418c8109897329/diff:/var/lib/docker/overlay2/8a8851af35acd1d53292d48d5ee93a3a9d8ef21a253efc8ed63dad7168aeaf0f/diff:/var/lib/docker/overlay2/84f2b3704e8950b1f36f13b59ee7f9c6b8c748204d3671c08aeb25f7af8fd85a/diff:/var/lib/docker/overlay2/53ab6eefa004105b01f3ba30d053abf88e8126db17924bd17204186d97f80e33/diff:/var/lib/docker/overlay2/df464084e3c5854c0953f59c76bcf6de88d9facda5c6ea946cb3e968d2355d2c/diff",
			"MergedDir": "/var/lib/docker/overlay2/78023b11ec065e8ea0d6fa143eacecda66d938963274b9936557daefed580247/merged",
			"UpperDir": "/var/lib/docker/overlay2/78023b11ec065e8ea0d6fa143eacecda66d938963274b9936557daefed580247/diff",
			"WorkDir": "/var/lib/docker/overlay2/78023b11ec065e8ea0d6fa143eacecda66d938963274b9936557daefed580247/work"
		},
		"Name": "overlay2"
	},
	"Mounts": [
		{
			"Type": "bind",
			"Source": "C:/Users/tomas/monitoring/build/dev/startup",
			"Destination": "/startup",
			"Mode": "ro",
			"RW": false,
			"Propagation": "rprivate"
		},
		{
			"Type": "volume",
			"Name": "local_infra_dss_component_coordination",
			"Source": "/var/lib/docker/volumes/local_infra_dss_component_coordination/_data",
			"Destination": "/var/dss_component_coordination",
			"Driver": "local",
			"Mode": "z",
			"RW": true,
			"Propagation": ""
		}
	],
	"Config": {
		"Hostname": "f1ed9fa17c90",
		"Domainname": "",
		"User": "",
		"AttachStdin": false,
		"AttachStdout": true,
		"AttachStderr": true,
		"Tty": false,
		"OpenStdin": false,
		"StdinOnce": false,
		"Env": [
			"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
		],
		"Cmd": null,
		"Healthcheck": {
			"Test": [
				"CMD-SHELL",
				"cat service.ready || exit 1"
			]
		},
		"Image": "interuss/dss:v0.14.0",
		"Volumes": null,
		"WorkingDir": "",
		"Entrypoint": [
			"/startup/scd_bootstrapper.sh"
		],
		"OnBuild": null,
		"Labels": {
			"com.docker.compose.config-hash": "ff0d42e55147bc28dde92885d35fbb97ab2596b7ff409f103e9e0b73d53b61d7",
			"com.docker.compose.container-number": "1",
			"com.docker.compose.depends_on": "crdb:service_started:false",
			"com.docker.compose.image": "sha256:b6d1ddcc5f5c6960e1fa151a96e261663a63525206712463cf88b6707130005b",
			"com.docker.compose.oneoff": "False",
			"com.docker.compose.project": "local_infra",
			"com.docker.compose.project.config_files": "C:\\Users\\tomas\\monitoring\\build\\dev\\docker-compose.yaml",
			"com.docker.compose.project.working_dir": "C:\\Users\\tomas\\monitoring\\build\\dev",
			"com.docker.compose.service": "scd_bootstrapper",
			"com.docker.compose.version": "2.27.0"
		}
	},
	"NetworkSettings": {
		"Bridge": "",
		"SandboxID": "7a4b25221af4795fb1b4353d23960bd7f9531b990c02143076f8d634c9ed6e92",
		"SandboxKey": "/var/run/docker/netns/7a4b25221af4",
		"Ports": {},
		"HairpinMode": false,
		"LinkLocalIPv6Address": "",
		"LinkLocalIPv6PrefixLen": 0,
		"SecondaryIPAddresses": null,
		"SecondaryIPv6Addresses": null,
		"EndpointID": "",
		"Gateway": "",
		"GlobalIPv6Address": "",
		"GlobalIPv6PrefixLen": 0,
		"IPAddress": "",
		"IPPrefixLen": 0,
		"IPv6Gateway": "",
		"MacAddress": "",
		"Networks": {
			"dss_internal_network": {
				"IPAMConfig": null,
				"Links": null,
				"Aliases": [
					"local_infra-scd_bootstrapper-1",
					"scd_bootstrapper"
				],
				"MacAddress": "",
				"NetworkID": "59243fc0e9c427c872c9c540ce5eb218e18c50a5f8b647089e99c9d909beaf7f",
				"EndpointID": "",
				"Gateway": "",
				"IPAddress": "",
				"IPPrefixLen": 0,
				"IPv6Gateway": "",
				"GlobalIPv6Address": "",
				"GlobalIPv6PrefixLen": 0,
				"DriverOpts": null,
				"DNSNames": [
					"local_infra-scd_bootstrapper-1",
					"scd_bootstrapper",
					"f1ed9fa17c90"
				]
			}
		}
	}
}

The compose file uses $PWD, so you must ensure you run it in the correct folder, which containes a startup folder.

I am running it in a correct folder. To set it up locally, i run the run_locally.sh and that builds the container. The folder which contains run_locally.sh also contains the folder startup which contains the files needed for the subcontainers to run.

Link to folder here : monitoring/build/dev at main · interuss/monitoring · GitHub

Even in Docker, the container path is as follows : user\monitoring\build\dev

Works for me on Debian on x86, using Docker CE:

git clone https://github.com/interuss/monitoring/ --depth=1
cd monitoring/
cd build/dev/
bash run_locally.sh

Containers stay up:

  • local_infra-dss-1
  • local_infra-oauth-1
  • local_infra-crdb-1

Ok, so I installed Ubuntu, installed Git and Docker and successfully ran run_locally.sh. No errors and it works like it should. Thank you for your help!