-
Notifications
You must be signed in to change notification settings - Fork 228
[cetic/nifi] web UI not loading #192
Comments
Same thing for me. I have a similar setup where I use ingress to expose Nifi Web UI and it shows exactly the same error you have. It used to work when we had HTTP endpoints though. |
right i have the same errors , do we have the option to add white listed hosts to nifi? any other ideas ? |
Does this comment help? |
Same here, System Error |
After adding the following, I was able to get the UI working with |
the web UI works for me after adding this: nginx.ingress.kubernetes.io/upstream-vhost: "localhost:8443"
|
Can you output the Nifi ingress rule in YAML here?: Note: You may hide the Nifi URL if it's confidential. |
apiVersion: networking.k8s.io/v1
|
the ui works now but every time that I try to click on something on the UI, it send me away to the login page with the error:
|
@yossisht9876 this workaround first actually routes to https://nifi.example.com/nifi.example.com and then automatically redirects to https://nifi.example.com/nifi. I don't think this is the right workaround. Can some look at this issue on priority? |
Hi @banzo, I am installing the Nifi cluster using the latest release as a LoadBalancer service (by changing the type as LoadBalancer in values.yml) , but I am getting the same error as above when trying to access the UI. Can you please help what need to be done. I have also added the properties as mentioned in the comments in safetyValve properties. Is it possible to run as load balancer and is http still supported? Also I am not sure what need to be set in webproxyhost. Any advise to make this working is appreciated. Thanks. |
@leshibily |
That did not work as well. I got the error.
|
Hi, I was facing the same errors and couldn't tell if they were on the helm chart or at NiFi. I've deployed a simple nifi using the base docker image from dockerhub, https://hub.docker.com/r/apache/nifi/ . Then, I've setup a minimal ingress for testing and faced the first problem:
I fixed this first problem, with the following
This happens, because the NiFi is running with HTTPS inside the cluster, so, the reverse proxy must be aware of this, and this annotation tell him this. After this setup, I was able to load the web UI and login normally. After login, I faced the second problem: Whenever I click on something on the UI I was redirected to a page with the following message:
With some research, I found how to fix this in the oficial NiFi documentation for systems administrators: https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#proxy_configuration So, I updated the ingress definition to the following:
I hope this can help! |
@murilolobato hi, because i got the same issue |
@murilolobato the nifi URL is redirecting to https://localhost:8443. Do you have any idea? Any help would be appreciated. |
Hi @leshibily , I think you are facing the second problem I mentioned. You should check the annotations section of your ingress definition, and ensure you set-up the correct settings according to my example and most important, according to the NiFi System Administrators guide. If you have already set the same annotations, ensure that the ingress controller you are using does support the annotations. In my example, I'm using the https://kubernetes.github.io/ingress-nginx/ controller, and the example annotations I have provided are compatible with it. M |
Please find my nifi ingress rule configuration below.
The login page loads but once I login to Nifi, it redirects to https://localhost:8443. Did you try logging in? |
@leshibily hi, were you able to fix this? |
The main problem is that Nifi did not support the NIFI_WEB_PROXY_HOST (webProxyHost in values.yaml file) environement variable in 1.14.0 version. Could you please try by using this pull request: #206 . The ingress has also been updated. |
@zakaria2905 I tried adding the NIFI_WEB_PROXY_HOST using the following but I am still getting the
error: |
@leshibily , after pulling PR #206 , I only modify the following lines in
In addition, I enable the minikube ingress addon And it works |
HI ALL, I am installing the Nifi cluster as a LoadBalancer service but getting below error. Any update on the issue. System Error |
HI All,
|
@arunbabumm NIFI_WEB_PROXY_HOST is ignored in 1.14.0 , what we did instead is to change it directly in the properties section and we added also some annotation in ingress, the final values.yaml will be: ...
properties:
webProxyHost: xxx.net
....
ingress:
enabled: true
annotations:
nginx.ingress.kubernetes.io/backend-protocol: HTTPS
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
... k8s version: v1.20.13 |
no not working. |
This ticket helped me lot to solved. Here you go my working igress
key Observation |
I got this to work with nifi-deployment.yml looks like this:
Nodeport service yaml:
ingress service YAML:
|
I solved the problem by adding the following annotations:
|
I have this issue with nifi UI which just actions through PUT methods (like changing a processor properties) facing error "Unable to communicate with NiFi". This is my ingress config:
|
Describe the bug
trying to run nifi on eks version 1.19 all the pods are running and i can see in the logs that the server is up and running.
im using NGINX with aws internal load balancer.
web UI is under HTTPS so the url will be https://nifi.xxx.xx.com
Version of Helm and Kubernetes:
helm 3
eks version 1.19
What happened:
the web UI is not loading and i cant override the nifi.properteis file via the values.yaml file
on the web UI we get :
System Error
The request contained an invalid host header [nifixxx.xxx.xx.co] in the request [/]. Check for request manipulation or third-party intercept.
Valid host headers are [empty] or:
What you expected to happen:
im expecting to load the web UI
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know:
my value.yaml
The text was updated successfully, but these errors were encountered: