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

Installation is complete and does not open properly. #226

Open
vicnoah opened this issue Apr 9, 2022 · 5 comments
Open

Installation is complete and does not open properly. #226

vicnoah opened this issue Apr 9, 2022 · 5 comments
Assignees
Labels
bug 🐛 Something isn't working

Comments

@vicnoah
Copy link

vicnoah commented Apr 9, 2022

Describe the bug
Installation is complete and does not open properly.

To Reproduce
Steps to reproduce the behavior:

Expected behavior
A clear and concise description of what you expected to happen.

Environment
A concise description of your environment: OpenShift or Kubernetes version, Nexus Operator version.

Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.14", GitCommit:"89182bdd065fbcaffefec691908a739d161efc03", GitTreeState:"clean", BuildDate:"2020-12-18T12:11:25Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.15", GitCommit:"8f1e5bf0b9729a899b8df86249b56e2c74aebc55", GitTreeState:"clean", BuildDate:"2022-01-19T17:23:01Z", GoVersion:"go1.15.15", Compiler:"gc", Platform:"linux/amd64"}

Additional context
Error Stack:
` 2022-04-09T13:01:55.208Z INFO setup The operator is running as cluster scoped. It will watch and manage resources in all namespaces {"Env Var lookup": "WATCH_NAMESPACE"}

I0409 13:01:56.258949 1 request.go:645] Throttling request took 1.022870646s, request: GET:https://10.43.0.1:443/apis/apiextensions.k8s.io/v1beta1?timeout=32s

2022-04-09T13:01:57.836Z INFO controller-runtime.metrics metrics server is starting to listen {"addr": "127.0.0.1:8080"}

2022-04-09T13:01:57.843Z INFO setup starting manager

I0409 13:01:57.843811 1 leaderelection.go:243] attempting to acquire leader lease nexus-operator-system/363e6adb.m88i.io...

2022-04-09T13:01:57.845Z INFO controller-runtime.manager starting metrics server {"path": "/metrics"}

I0409 13:02:15.304955 1 leaderelection.go:253] successfully acquired lease nexus-operator-system/363e6adb.m88i.io

2022-04-09T13:02:15.305Z DEBUG controller-runtime.manager.events Normal {"object": {"kind":"ConfigMap","namespace":"nexus-operator-system","name":"363e6adb.m88i.io","uid":"832b343a-3278-431c-a690-c8ffa509b5ca","apiVersion":"v1","resourceVersion":"198657242"}, "reason": "LeaderElection", "message": "nexus-operator-controller-manager-6989b4747f-kc254_a8c5ba91-21be-49ff-ae2a-e76a50d49ea2 became leader"}

2022-04-09T13:02:15.305Z INFO controller Starting EventSource {"reconcilerGroup": "apps.m88i.io", "reconcilerKind": "Nexus", "controller": "nexus", "source": "kind source: /, Kind="}

2022-04-09T13:02:15.406Z INFO controller Starting EventSource {"reconcilerGroup": "apps.m88i.io", "reconcilerKind": "Nexus", "controller": "nexus", "source": "kind source: /, Kind="}

2022-04-09T13:02:15.508Z INFO controller Starting EventSource {"reconcilerGroup": "apps.m88i.io", "reconcilerKind": "Nexus", "controller": "nexus", "source": "kind source: /, Kind="}

2022-04-09T13:02:15.609Z INFO controller Starting EventSource {"reconcilerGroup": "apps.m88i.io", "reconcilerKind": "Nexus", "controller": "nexus", "source": "kind source: /, Kind="}

2022-04-09T13:02:15.710Z INFO controller Starting EventSource {"reconcilerGroup": "apps.m88i.io", "reconcilerKind": "Nexus", "controller": "nexus", "source": "kind source: /, Kind="}

2022-04-09T13:02:15.811Z INFO controller Starting EventSource {"reconcilerGroup": "apps.m88i.io", "reconcilerKind": "Nexus", "controller": "nexus", "source": "kind source: /, Kind="}

2022-04-09T13:02:15.912Z INFO controller Starting EventSource {"reconcilerGroup": "apps.m88i.io", "reconcilerKind": "Nexus", "controller": "nexus", "source": "kind source: /, Kind="}

I0409 13:02:16.962870 1 request.go:645] Throttling request took 1.044678154s, request: GET:https://10.43.0.1:443/apis/networking.k8s.io/v1?timeout=32s

2022-04-09T13:02:18.521Z ERROR controller-runtime.source if kind is a CRD, it should be installed before calling Start {"kind": "Route.route.openshift.io", "error": "no matches for kind "Route" in version "route.openshift.io/v1""}

github.com/go-logr/zapr.(*zapLogger).Error

/opt/app-root/src/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:128

sigs.k8s.io/controller-runtime/pkg/source.(*Kind).Start

/opt/app-root/src/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/source/source.go:117

sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1

/opt/app-root/src/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:143

sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start

/opt/app-root/src/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:184

sigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).startRunnable.func1

/opt/app-root/src/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/manager/internal.go:661

2022-04-09T13:02:18.521Z ERROR setup problem running manager {"error": "no matches for kind "Route" in version "route.openshift.io/v1""}

github.com/go-logr/zapr.(*zapLogger).Error

/opt/app-root/src/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:128

main.main

/workspace/main.go:104

runtime.main

/usr/lib/golang/src/runtime/proc.go:204`
@vicnoah vicnoah added the bug 🐛 Something isn't working label Apr 9, 2022
@ricardozanini ricardozanini self-assigned this Apr 11, 2022
@ricardozanini
Copy link
Member

Looking at your stack trace, you're trying to expose the Nexus server in Kubernetes using OpenShift approach. Can you try modifying the CR to use ingress instead?

https://github.com/m88i/nexus-operator/#network-on-kubernetes-114

@vicnoah
Copy link
Author

vicnoah commented Apr 12, 2022

Looking at your stack trace, you're trying to expose the Nexus server in Kubernetes using OpenShift approach. Can you try modifying the CR to use ingress instead?

https://github.com/m88i/nexus-operator/#network-on-kubernetes-114

Thanks, I will try

@vicnoah
Copy link
Author

vicnoah commented Apr 18, 2022

Looking at your stack trace, you're trying to expose the Nexus server in Kubernetes using OpenShift approach. Can you try modifying the CR to use ingress instead?

https://github.com/m88i/nexus-operator/#network-on-kubernetes-114
I still have this problem and I don't know how to solve it, I got this error when I installed operator。
image

@vicnoah
Copy link
Author

vicnoah commented Apr 19, 2022

Looking at your stack trace, you're trying to expose the Nexus server in Kubernetes using OpenShift approach. Can you try modifying the CR to use ingress instead?

https://github.com/m88i/nexus-operator/#network-on-kubernetes-114
I still have this problem and I don't know how to solve it, I got this error when I installed operator。
image

I tried this configuration after installing operator but it didn't work.
I don't know how to do it.
I will try again.

apiVersion: apps.m88i.io/v1alpha1
kind: Nexus
metadata:
name: nexus3
spec:
(...)
networking:
expose: true
exposeAs: "Ingress"
host: "nexus.example.com"

@ricardozanini
Copy link
Member

Hi!

MinimumReplicasUnavailable means that you don't have the resources to start the pod: https://github.com/kubernetes/kubernetes/blob/3615291/pkg/controller/deployment/util/deployment_util.go#L98-L100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants