Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rebar3_cargo version Failed to fetch and copy dep #39

Open
Jack-laoniu opened this issue Apr 18, 2023 · 5 comments
Open

rebar3_cargo version Failed to fetch and copy dep #39

Jack-laoniu opened this issue Apr 18, 2023 · 5 comments

Comments

@Jack-laoniu
Copy link

func makeBundlerConfig(instance *vernemqv1alpha1.VerneMQ) string {
config := {plugins, [ {rebar3_cargo, {git, "https://github.com/benoitc/rebar3_cargo", {ref, "85353035"}}} ]}. {deps, [
for _, p := range instance.Spec.ExternalPlugins {
config = config + fmt.Sprintf("{%s, {git, "%s", {%s, "%s"}}},\n", p.ApplicationName, p.RepoURL, p.VersionType, p.Version)
}
config = config + {vmq_k8s, {git, "https://github.com/vernemq/vmq-operator", {branch, "master"}}} ]}.
return config
}

@Jack-laoniu
Copy link
Author

"https://github.com/vernemq/vmq-operator", {tag, "v2.0.0"} is true ,i know real version but how to use

@arashkaffamanesh
Copy link

I'm facing the same problem, is this operator functional?

k logs vernemq-k8s-deployment-6f689d8b6-cxdhf % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 8029 100 8029 0 0 130k 0 --:--:-- --:--:-- --:--:-- 132k TERMS [{plugins,[{rebar3_cargo,{git,"https://github.com/benoitc/rebar3_cargo", {ref,"85353035"}}}]}, {deps,[{vmq_k8s,{git,"https://github.com/vernemq/vmq-operator", {branch,"master"}}}]}] ===> Fetching rebar3_cargo (from {git,"https://github.com/benoitc/rebar3_cargo", {ref,"85353035"}}) ===> Compiling rebar3_cargo ===> Verifying dependencies... ===> Fetching vmq_k8s (from {git,"https://github.com/vernemq/vmq-operator", {branch,"master"}}) ===> Failed to fetch and copy dep: {git,"https://github.com/vernemq/vmq-operator", {branch,"master"}

@ioolkos
Copy link
Contributor

ioolkos commented Oct 5, 2023

@arashkaffamanesh This repo needs more attention, contributions welcome.
At which step exactly do you see this issue?

@arashkaffamanesh
Copy link

@ioolkos thanks for the prompt support!

This happens after deploying vernemq-vernemq.yaml under example (used the tagged version 1.0.0) running on k8s 1.25.

The operator itself is running fine, but the vernemq-k8s-deployment pod is getting CrashLoopBackOff:

❯ k get VerneMQ
NAME AGE
k8s 52m

❯ k get sts
NAME READY AGE
vernemq-k8s 0/2 58m

❯ k get pods
NAME READY STATUS RESTARTS AGE
new-vmq-operator2-controller-manager-5dfdd97875-sgzqm 2/2 Running 0 76m
vernemq-k8s-0 0/1 CrashLoopBackOff 15 (85s ago) 53m
vernemq-k8s-1 0/1 CrashLoopBackOff 15 (47s ago) 53m
vernemq-k8s-deployment-6f689d8b6-cxdhf 0/1 CrashLoopBackOff 14 (5m6s ago) 53m

❯ k get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
new-vmq-operator2-controller-manager-metrics-service ClusterIP 10.43.238.26 8443/TCP 135m
vernemq-k8s ClusterIP 10.43.230.215 1883/TCP,8883/TCP,8080/TCP,8888/TCP 135m
vernemq-k8s-service ClusterIP None 53m
vernemq-k8s-vmq-bundler-service ClusterIP 10.43.10.4 80/TCP 53m`

@ioolkos
Copy link
Contributor

ioolkos commented Oct 5, 2023

Failed to fetch and copy dep: {git,"https://github.com/vernemq/vmq-operator", {branch,"master"}
So it cannot download that repo (vmq-operator) but it can download rebar3_plugin from Github. I don't see why right now.

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

No branches or pull requests

3 participants