Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Kupo stopped working after updating Docker Desktop on macos to 4.29.0 (145265) #14

Open
ilap opened this issue Apr 18, 2024 · 1 comment

Comments

@ilap
Copy link

ilap commented Apr 18, 2024

I did not have time to dig deep on the docker config, but I observed after the update that kupo and ogmios has some cross-dependent connnection somehow after the update:

tcp        0      0 127.0.0.1:1337          127.0.0.1:39562         ESTABLISHED
tcp        0      0 127.0.0.1:39562         127.0.0.1:1337          ESTABLISHED


A quick dirty solution is to replace localhost to 0.0.0.0 in the yaci-cli's template file.

/app/kupo/bin/kupo \
  --ogmios-host localhost \
  --ogmios-port 1337 \
  --host 0.0.0.0 \
  --port 1442 \
  --since origin \
  --match "*" \
  --workdir /clusters/default/kupo_db

What I did to get it working again.
In the container:

cd /app
mkdir tmp && cd tmp
cp -pr ../yaci-cli.jar .

jar xf ../yaci-cli.jar BOOT-INF/classes/localcluster.zip
jar xf BOOT-INF/classes/localcluster.zip localcluster/templates/babbage/kupo.sh

sed -i 's/localhost/0.0.0.0/' localcluster/templates/babbage/kupo.sh

jar uf BOOT-INF/classes/localcluster.zip localcluster/templates/babbage/kupo.sh
jar uf ../yaci-cli.jar BOOT-INF/classes/localcluster.zip
cd .. && rm -rf ./tmp
@satran004
Copy link
Member

Thank you @ilap for highlighting this issue and the workaround.

Feel free to create a PR. Here's the file: https://github.com/bloxbean/yaci-cli/blob/main/src/main/resources/localcluster/templates/babbage/kupo.sh.

Alternatively, I will try to make the changes and create a release soon.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants