You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nifi.apache.org by Rimmi Anand <RA...@slb.com.INVALID> on 2024/11/30 02:38:57 UTC

Can't access NiFi Web UI with version 2.0.0

Hello there,

I am using latest Nifi 2.0.0 https://nifi.apache.org/download/. I am using it in Windows and to start by used 'nifi.cmd start' .

Facing issues to start in browser, from logs, issues with jetty server can be seen
Cannot invoke "jakarta.servlet.ServletContext.setAttribute(String, Object)" because "customUiServletContext" is null
      at org.apache.nifi.web.server.JettyServer.performInjectionForComponentUis(JettyServer.java:1023)
      at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:889)
      at org.apache.nifi.runtime.Application.startServer(Application.java:131)
      at org.apache.nifi.runtime.Application.run(Application.java:78)
      at org.apache.nifi.runtime.Application.run(Application.java:60)
      at org.apache.nifi.NiFi.main(NiFi.java:42)

Sometimes it stuck at

WARN [main] o.e.jetty.ee10.webapp.WebAppContext Failed startup of context oeje10w.WebAppContext@73c3cd09{/nifi-standard-content-viewer-2.0.0,/nifi-standard-content-viewer-2.0.0,b=null,a=STOPPED,h=oeje10s.SessionHandler@4a8a0099{STOPPED}}{.\work\nar\extensions\nifi-standard-content-viewer-nar-2.0.0.nar-unpacked\NAR-INF\bundled-dependencies\nifi-standard-content-viewer-2.0.0.war}
java.lang.IllegalArgumentException: Failed to delete temp dir: C:\NiFi\nifi-2.0.0\work\jetty\nifi-standard-content-viewer-2.0.0.war

It is automatically shut down.

It has started only once randomly after multiple restarts and reinstalling, still no clue how it started. As now I am unable to do so.

Would really appreciate if someone can guide steps to resolve above issues and use 2.0.0 version without hassle.

Thanks & Regards,
Rimmi




SLB-Private

Re: Can't access NiFi Web UI with version 2.0.0

Posted by Mark Bean <ma...@gmail.com>.
It looks like there may be a problem with the standard-content-viewer. Try
removing the work/ directory in its entirety from the NiFi installation
directory. It will get re-created on startup. If there was a problem
initially, hopefully a restart will put things straight.

Sanity check: check that the disk where NiFi is installed didn't reach 100%
capacity (or nearly 100% where expanding into that work/ directory may
reach 100%).

-Mark


On Fri, Nov 29, 2024 at 9:40 PM Rimmi Anand <RA...@slb.com.invalid> wrote:

> Hello there,
>
> I am using latest Nifi 2.0.0 https://nifi.apache.org/download/. I am
> using it in Windows and to start by used 'nifi.cmd start' .
>
> Facing issues to start in browser, from logs, issues with jetty server can
> be seen
> Cannot invoke "jakarta.servlet.ServletContext.setAttribute(String,
> Object)" because "customUiServletContext" is null
> at
> org.apache.nifi.web.server.JettyServer.performInjectionForComponentUis(JettyServer.java:1023)
> at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:889)
> at org.apache.nifi.runtime.Application.startServer(Application.java:131)
> at org.apache.nifi.runtime.Application.run(Application.java:78)
> at org.apache.nifi.runtime.Application.run(Application.java:60)
> at org.apache.nifi.NiFi.main(NiFi.java:42)
>
> Sometimes it stuck at
>
> WARN [main] o.e.jetty.ee10.webapp.WebAppContext Failed startup of context
> oeje10w.WebAppContext@73c3cd09
> {/nifi-standard-content-viewer-2.0.0,/nifi-standard-content-viewer-2.0.0,b=null,a=STOPPED,h=oeje10s.SessionHandler@4a8a0099
> {STOPPED}}{.\work\nar\extensions\nifi-standard-content-viewer-nar-2.0.0.nar-unpacked\NAR-INF\bundled-dependencies\nifi-standard-content-viewer-2.0.0.war}
> java.lang.IllegalArgumentException: Failed to delete temp dir:
> C:\NiFi\nifi-2.0.0\work\jetty\nifi-standard-content-viewer-2.0.0.war
>
> It is automatically shut down.
>
> It has started only once randomly after multiple restarts and
> reinstalling, still no clue how it started. As now I am unable to do so.
>
> Would really appreciate if someone can guide steps to resolve above issues
> and use 2.0.0 version without hassle.
>
> Thanks & Regards,
> Rimmi
>
>
>
>
> SLB-Private
>