jonatansalemes / nginx-admin Goto Github PK
View Code? Open in Web Editor NEWNginx admin is an open source multiplatform manager for nginx software to easy administration
License: Other
Nginx admin is an open source multiplatform manager for nginx software to easy administration
License: Other
On trying to start teh install.sh script un Ubuntu 20.04
./install.sh: /bin/sh^M: invalid interpreter: File or folder does not exist
i am root every time when i run ./install.sh it gives that error i ran chmod +x on booth .sh scripts
but install gives back this same error
i have the debian based scripts
After installing nginx-agent and nginx-admin (on different machines) I'm unable to start an agent.
I've added a new agent and the "Test Setting" button verifies that everything is OK, however, when I go back to the main screen all I see is a blank screen with two messages:
Where do I select a session?
Where do I choose an nginx agent to start?
When I click the button to manage agent I get this message: "None nginx agent was configured yet, please configure one to start"
But I did configure an agent and the setting are OK.
Looking at the logs there is nothing useful.
I tried restarting the nginx-admin service and then I can't start it again (the only way I found was to restart the machine), looking at the logs I see:
Caused by: java.lang.IllegalStateException: The file is locked: nio:/opt/nginx-admin/database/migrate.mv.db [1.4.196/7]
...
Caused by: java.nio.channels.OverlappingFileLockException
I didn't change anything, followed the guide from README but it seems nothing really works.
Is there a way to install it on cPanel?
how do you actually do an uninstall?
you have the install scripts but not uninstall
For better user experience documentation , tutorial , etc can be done in hot site of gh-pages hosted github pages. Move all content from readme.md to this site and just link readme
I am new to this, I did follow the instruction and update the configuration with Mysql details but after restart, the application is not working.
How to manage user details with email address. In the UI there is no place to map a user with email address for password reset.
Error details
Request URI :
/WEB-INF/jsp/sslCertificate/list.jsp
Status code :
500
**Stack trace** :
javax.servlet.ServletException: /WEB-INF/jsp/sslCertificate/list.jsp raised an exception
at br.com.caelum.vraptor.VRaptor.doFilter(VRaptor.java:127)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at org.wildfly.swarm.generated.FaviconErrorHandler.handleRequest(FaviconErrorHandler.java:62)
at io.undertow.server.handlers.PathHandler.handleRequest(PathHandler.java:94)
at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)
at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:805)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.servlet.jsp.JspException: javax.servlet.jsp.JspException: javax.servlet.jsp.JspException: javax.el.PropertyNotFoundException: The class 'com.jslsolucoes.nginx.admin.model.SslCertificate' does not have the property 'certificate'.
at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:886)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:818)
at org.apache.jsp.WEB_002dINF.jsp.sslCertificate.list_jsp._jspService(list_jsp.java:121)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:433)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:402)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:346)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
at br.com.caelum.vraptor.core.DefaultStaticContentHandler.deferProcessingToContainer(DefaultStaticContentHandler.java:87)
at br.com.caelum.vraptor.core.DefaultStaticContentHandler$Proxy$_$$_WeldClientProxy.deferProcessingToContainer(Unknown Source)
at br.com.caelum.vraptor.VRaptor.doFilter(VRaptor.java:114)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
at io.undertow.jsp.JspFileHandler.handleRequest(JspFileHandler.java:32)
at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at org.wildfly.swarm.generated.FaviconErrorHandler.handleRequest(FaviconErrorHandler.java:62)
at io.undertow.server.handlers.PathHandler.handleRequest(PathHandler.java:94)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:274)
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchToPath(ServletInitialHandler.java:209)
at io.undertow.servlet.spec.RequestDispatcherImpl.forwardImpl(RequestDispatcherImpl.java:221)
at io.undertow.servlet.spec.RequestDispatcherImpl.forwardImplSetup(RequestDispatcherImpl.java:147)
at io.undertow.servlet.spec.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:111)
at br.com.caelum.vraptor.view.DefaultPageResult.defaultView(DefaultPageResult.java:81)
at br.com.caelum.vraptor.observer.ForwardToDefaultView.forward(ForwardToDefaultView.java:67)
at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88)
at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:78)
at org.jboss.weld.injection.MethodInvocationStrategy$SimpleMethodInvocationStrategy.invoke(MethodInvocationStrategy.java:129)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:313)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:291)
at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:269)
at org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:302)
at org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:291)
at org.jboss.weld.event.EventImpl.fire(EventImpl.java:89)
at br.com.caelum.vraptor.observer.RequestHandlerObserver.handle(RequestHandlerObserver.java:94)
at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88)
at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:78)
at org.jboss.weld.injection.MethodInvocationStrategy$SimpleMethodInvocationStrategy.invoke(MethodInvocationStrategy.java:129)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:313)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:291)
at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:269)
at org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:302)
at org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:291)
at org.jboss.weld.event.EventImpl.fire(EventImpl.java:89)
at br.com.caelum.vraptor.VRaptor.doFilter(VRaptor.java:123)
... 41 more
Caused by: javax.servlet.jsp.JspException: javax.servlet.jsp.JspException: javax.servlet.jsp.JspException: javax.el.PropertyNotFoundException: The class 'com.jslsolucoes.nginx.admin.model.SslCertificate' does not have the property 'certificate'.
at org.apache.jsp.WEB_002dINF.jsp.sslCertificate.list_jsp$Helper.invoke(list_jsp.java:713)
at com.jslsolucoes.tagria.lib.util.TagUtil.getBody(TagUtil.java:174)
at com.jslsolucoes.tagria.lib.tag.html.BlockTag.doTag(BlockTag.java:42)
at org.apache.jsp.WEB_002dINF.jsp.sslCertificate.list_jsp._jspx_meth_html_005fblock_005f1(list_jsp.java:190)
at org.apache.jsp.WEB_002dINF.jsp.sslCertificate.list_jsp.access$1(list_jsp.java:180)
at org.apache.jsp.WEB_002dINF.jsp.sslCertificate.list_jsp$Helper.invoke0(list_jsp.java:518)
at org.apache.jsp.WEB_002dINF.jsp.sslCertificate.list_jsp$Helper.invoke(list_jsp.java:675)
at com.jslsolucoes.tagria.lib.util.TagUtil.getBody(TagUtil.java:174)
at com.jslsolucoes.tagria.lib.tag.html.ViewTag.doTag(ViewTag.java:112)
at org.apache.jsp.WEB_002dINF.jsp.sslCertificate.list_jsp._jspx_meth_html_005fview_005f0(list_jsp.java:140)
at org.apache.jsp.WEB_002dINF.jsp.sslCertificate.list_jsp._jspService(list_jsp.java:108)
... 96 more
Caused by: javax.servlet.jsp.JspException: javax.servlet.jsp.JspException: javax.el.PropertyNotFoundException: The class 'com.jslsolucoes.nginx.admin.model.SslCertificate' does not have the property 'certificate'.
at org.apache.jsp.WEB_002dINF.jsp.sslCertificate.list_jsp$Helper.invoke(list_jsp.java:713)
at com.jslsolucoes.tagria.lib.util.TagUtil.getBody(TagUtil.java:174)
at com.jslsolucoes.tagria.lib.tag.html.GridTag.doTag(GridTag.java:208)
at org.apache.jsp.WEB_002dINF.jsp.sslCertificate.list_jsp._jspx_meth_html_005fgrid_005f0(list_jsp.java:213)
at org.apache.jsp.WEB_002dINF.jsp.sslCertificate.list_jsp.access$3(list_jsp.java:195)
at org.apache.jsp.WEB_002dINF.jsp.sslCertificate.list_jsp$Helper.invoke2(list_jsp.java:542)
at org.apache.jsp.WEB_002dINF.jsp.sslCertificate.list_jsp$Helper.invoke(list_jsp.java:681)
... 106 more
Caused by: javax.servlet.jsp.JspException: javax.el.PropertyNotFoundException: The class 'com.jslsolucoes.nginx.admin.model.SslCertificate' does not have the property 'certificate'.
at org.apache.jsp.WEB_002dINF.jsp.sslCertificate.list_jsp$Helper.invoke(list_jsp.java:713)
at com.jslsolucoes.tagria.lib.util.TagUtil.getBody(TagUtil.java:174)
at com.jslsolucoes.tagria.lib.tag.html.GridColumnTag.doTag(GridColumnTag.java:48)
at org.apache.jsp.WEB_002dINF.jsp.sslCertificate.list_jsp._jspx_meth_html_005fgridColumn_005f1(list_jsp.java:249)
at org.apache.jsp.WEB_002dINF.jsp.sslCertificate.list_jsp.access$5(list_jsp.java:237)
at org.apache.jsp.WEB_002dINF.jsp.sslCertificate.list_jsp$Helper.invoke3(list_jsp.java:557)
at org.apache.jsp.WEB_002dINF.jsp.sslCertificate.list_jsp$Helper.invoke(list_jsp.java:684)
... 112 more
Caused by: javax.el.PropertyNotFoundException: The class 'com.jslsolucoes.nginx.admin.model.SslCertificate' does not have the property 'certificate'.
at javax.el.BeanELResolver.getBeanProperty(BeanELResolver.java:568)
at javax.el.BeanELResolver.getValue(BeanELResolver.java:229)
at org.apache.jasper.el.JasperELResolver.getValue(JasperELResolver.java:110)
at com.sun.el.parser.AstValue.getValue(AstValue.java:139)
at com.sun.el.parser.AstValue.getValue(AstValue.java:203)
at com.sun.el.parser.AstDynamicExpression.getValue(AstDynamicExpression.java:63)
at com.sun.el.parser.AstCompositeExpression.getValue(AstCompositeExpression.java:68)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:226)
at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:50)
at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:917)
at org.apache.jsp.WEB_002dINF.jsp.sslCertificate.list_jsp._jspx_meth_html_005flink_005f0(list_jsp.java:266)
at org.apache.jsp.WEB_002dINF.jsp.sslCertificate.list_jsp.access$9(list_jsp.java:254)
at org.apache.jsp.WEB_002dINF.jsp.sslCertificate.list_jsp$Helper.invoke5(list_jsp.java:592)
at org.apache.jsp.WEB_002dINF.jsp.sslCertificate.list_jsp$Helper.invoke(list_jsp.java:690)
... 118 more
Please check your email, The SSL cert i'm using will be sent in there.
By the way ,i like this software !
Ngnix server has stoped after reboot. Everytime need to start manualy from nginx admin manager web UI. When try systemctl enable nginx-admin
have message: nginx-admin.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig nginx-admin on
upstreams config is not latest when I change the servers config.
i've pulled the image and run a container but i can't access via configured ports. i tried mapping ports to accessible ports from my host (working for default nginx container) but still not working. is there a log or something i can look at?
also: is this a container for a UI only? i.e. do i need to configure this to run with another nginx container? or is it nginx+UI? some more documentation would be really useful.
thanks.
I already added user nginx-agent in sudoers file.
nginx-agent ALL=(ALL) NOPASSWD:/usr/sbin/nginx,/usr/bin/pgrep nginx,/usr/bin/killall nginx
Last login: Mon Feb 26 14:30:45 CST 2018 on pts/3
su: warning: cannot change directory to /home/nginx-agent: No such file or directory
-bash-4.2$ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
-bash-4.2$ exit
Hello,
i had error 500 after import ssl certificate. Please take a look error log bellow :
Stack trace :
javax.servlet.ServletException: /WEB-INF/jsp/sslCertificate/list.jsp raised an exception
at br.com.caelum.vraptor.VRaptor.doFilter(VRaptor.java:127)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
Thank you
Hello,
When will the new update be available, could we see a sneak-peek? very excited for it.
do you publish a docker image on dockerhub?
if so, have you a link?
thanks
My nginx version compiled from tar. therefore it is different from package nginx.
So,I changed NGINX_BIN=/usr/local/nginx/sbin/nginx from below config
/opt/nginx-admin-agent-2.0.3/conf/nginx-admin-agent.conf
if I want put custom nginx config, it can be modified /opt/nginx-admin-agent-2.0.3/settings/nginx.conf ?
my understanding is correct?
Hey love what your doing and looking forward to using this, I noticed there are some english grammer errors that I would like to help resolve but unsure of the best means to go about doing this (not much of a java dev)
Was just wondering if you had some pointers to help try and resolve some of the issues.
It returns 500 when I click Reports -> Export.I found the errors:
Para o correto funcionamento dessa aplicação você deve ativar o suporte a javascript em seu navegador!!
Your request had a problem. Please open an issue on https://github.com/jslsolucoes/nginx-admin/issues with stack trace and details
Error details
Request URI :
/report/validate
Status code :
500
Stack trace :
br.com.caelum.vraptor.InterceptionException: br.com.caelum.vraptor.http.InvalidParameterException: Exception when trying to instantiate Target(name=from, type=class org.joda.time.LocalDate)
at br.com.caelum.vraptor.interceptor.StepInvoker.invokeMethod(StepInvoker.java:69)
at br.com.caelum.vraptor.interceptor.StepInvoker.tryToInvoke(StepInvoker.java:55)
at br.com.caelum.vraptor.interceptor.StepInvoker$Proxy$_$$WeldClientProxy.tryToInvoke(Unknown Source)
at br.com.caelum.vraptor.interceptor.InterceptorExecutor.executeAround(InterceptorExecutor.java:75)
at br.com.caelum.vraptor.interceptor.InterceptorExecutor$Proxy$$$WeldClientProxy.executeAround(Unknown Source)
at br.com.caelum.vraptor.interceptor.AspectStyleInterceptorHandler.execute(AspectStyleInterceptorHandler.java:85)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:83)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.start(DefaultInterceptorStack.java:93)
at br.com.caelum.vraptor.core.DefaultInterceptorStack$Proxy$$$WeldClientProxy.start(Unknown Source)
at br.com.caelum.vraptor.observer.RequestHandlerObserver.handle(RequestHandlerObserver.java:93)
at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88)
at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:78)
at org.jboss.weld.injection.MethodInvocationStrategy$SimpleMethodInvocationStrategy.invoke(MethodInvocationStrategy.java:129)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:313)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:291)
at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:269)
at org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:302)
at org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:291)
at org.jboss.weld.event.EventImpl.fire(EventImpl.java:89)
at br.com.caelum.vraptor.VRaptor.doFilter(VRaptor.java:123)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at org.wildfly.swarm.generated.FaviconErrorHandler.handleRequest(FaviconErrorHandler.java:62)
at io.undertow.server.handlers.PathHandler.handleRequest(PathHandler.java:94)
at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)
at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:211)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:809)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: br.com.caelum.vraptor.http.InvalidParameterException: Exception when trying to instantiate Target(name=from, type=class org.joda.time.LocalDate)
at br.com.caelum.vraptor.http.iogi.VRaptorInstantiator.handleException(VRaptorInstantiator.java:129)
at br.com.caelum.vraptor.http.iogi.VRaptorInstantiator.instantiate(VRaptorInstantiator.java:123)
at br.com.caelum.vraptor.http.iogi.VRaptorInstantiator.instantiate(VRaptorInstantiator.java:115)
at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:38)
at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:100)
at br.com.caelum.vraptor.http.iogi.Instantiator$InstantiatorWithErrors$2133278585$Proxy$$$WeldClientProxy.instantiate(Unknown Source)
at br.com.caelum.vraptor.http.iogi.IogiParametersProvider.instantiateOrAddError(IogiParametersProvider.java:87)
at br.com.caelum.vraptor.http.iogi.IogiParametersProvider.instantiateParameters(IogiParametersProvider.java:80)
at br.com.caelum.vraptor.http.iogi.IogiParametersProvider.getParametersFor(IogiParametersProvider.java:72)
at br.com.caelum.vraptor.http.iogi.IogiParametersProvider$Proxy$$$WeldClientProxy.getParametersFor(Unknown Source)
at com.jslsolucoes.vaptor4.misc.interceptor.NotNullInterceptor.intercept(NotNullInterceptor.java:35)
at com.jslsolucoes.vaptor4.misc.interceptor.NotNullInterceptor$Proxy$$$WeldClientProxy.intercept(Unknown Source)
at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.vidageek.mirror.provider.java.PureJavaMethodReflectionProvider.invoke(PureJavaMethodReflectionProvider.java:38)
at net.vidageek.mirror.invoke.MethodHandlerByMethod.withArgs(MethodHandlerByMethod.java:54)
at br.com.caelum.vraptor.core.DefaultReflectionProvider.invoke(DefaultReflectionProvider.java:42)
at br.com.caelum.vraptor.core.DefaultReflectionProvider$Proxy$$$_WeldClientProxy.invoke(Unknown Source)
at br.com.caelum.vraptor.interceptor.StepInvoker.invokeMethod(StepInvoker.java:64)
... 64 more
Caused by: java.lang.NullPointerException
at br.com.caelum.vraptor.http.iogi.VRaptorInstantiator$VRaptorTypeConverter.instantiate(VRaptorInstantiator.java:173)
at br.com.caelum.iogi.MultiInstantiator.instantiate(MultiInstantiator.java:20)
at br.com.caelum.vraptor.http.iogi.VRaptorInstantiator.instantiate(VRaptorInstantiator.java:121)
... 85 more
Then I execute "$('#par_from').mask('9999-99-99', {placeholder: '--' , reverse : false });$('#par_to').mask('9999-99-99', {placeholder: '--' , reverse : false });" in the console of chrome, it works.But the pdf is empty.
When I install agent and ui according to the script in the official website, execute "wget https://bintray.com/jslsolucoes/nginx-admin/download_file?file_path=nginx-admin-agent-2.0.3.zip -O /opt/ downloads/nginx-admin-agent-2.0.3.zip" This command will report 404. Can you provide me with a new link?
Anybody has a copy of the zip files for the installation? Maybe @jslsolucoes you have a copy stashed away somewhere? Thanks!
hi,
Currently I'm using 2 nginx (active/passive) to perform reverse proxy, currently it will failed over using Heartbeat. Previously we use csync to syncronize configuration, however it is troublesome cause we need to swap server and reload server 2.
Im curious whether we can use nginx-admin to configure server 1 and it auto replicate to server 2 + reload the configuration?
Split architecture app in 2 main components (manager / agent) to be able to manager multiple remote nginx in same interface .
Hi.
I followed the instructions closely, and the admin-pages connect to the agent fine, but I'm unable to get it to work with MariaDB. I'm not sure if it matters but I noticed that the local database (so not mariadb) was created at this location: /opt/nginx-admin-2.0.3/opt/nginx-admin-2.0.3/database/nginx_admin.mv.db. So, while troubleshooting I duplicated the database folder so it's also located at /opt/database/nginx_admin.mv.db. I use this java version on a fresh installed Ubuntu 18.04 server:
java version "10.0.2" 2018-07-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)
The full console.log is below.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by __redirected.__SAXParserFactory (file:/opt/nginx-admin-2.0.3/bin/nginx-admin-ui-standalone-2.0.3-swarm.jar) to constructor com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl()
WARNING: Please consider reporting this to the maintainers of __redirected.__SAXParserFactory
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
�[0m2018-10-08 21:29:13,347 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: Logging - STABLE org.wildfly.swarm:logging:2017.11.0
�[0m�[0m2018-10-08 21:29:13,431 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: Bean Validation - STABLE org.wildfly.swarm:bean-validation:2017.11.0
�[0m�[0m2018-10-08 21:29:13,432 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: Management - STABLE org.wildfly.swarm:management:2017.11.0
�[0m�[0m2018-10-08 21:29:13,433 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: CDI Configuration - STABLE org.wildfly.swarm:cdi-config:2017.11.0
�[0m�[0m2018-10-08 21:29:13,433 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: Datasources - STABLE org.wildfly.swarm:datasources:2017.11.0
�[0m�[0m2018-10-08 21:29:13,434 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: Transactions - STABLE org.wildfly.swarm:transactions:2017.11.0
�[0m�[0m2018-10-08 21:29:13,435 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: JCA - STABLE org.wildfly.swarm:jca:2017.11.0
�[0m�[0m2018-10-08 21:29:13,435 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: CDI - STABLE org.wildfly.swarm:cdi:2017.11.0
�[0m�[0m2018-10-08 21:29:13,435 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: JAX-RS - STABLE org.wildfly.swarm:jaxrs:2017.11.0
�[0m�[0m2018-10-08 21:29:13,436 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: JPA - STABLE org.wildfly.swarm:jpa:2017.11.0
�[0m�[0m2018-10-08 21:29:13,436 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: Undertow - STABLE org.wildfly.swarm:undertow:2017.11.0
�[0m�[0m2018-10-08 21:29:15,924 INFO [org.wildfly.swarm.datasources] (main) WFSWARM1003: Auto-detected JDBC driver for mysql
�[0m�[0m2018-10-08 21:29:15,936 INFO [org.wildfly.swarm.datasources] (main) WFSWARM1003: Auto-detected JDBC driver for mariadb
�[0m�[0m2018-10-08 21:29:15,948 INFO [org.wildfly.swarm.datasources] (main) WFSWARM1003: Auto-detected JDBC driver for sqlserver
�[0m�[0m2018-10-08 21:29:15,973 INFO [org.wildfly.swarm.datasources] (main) WFSWARM1003: Auto-detected JDBC driver for postgresql
�[0m�[0m2018-10-08 21:29:15,983 INFO [org.wildfly.swarm.datasources] (main) WFSWARM1003: Auto-detected JDBC driver for h2
�[0m�[0m2018-10-08 21:29:15,998 INFO [org.wildfly.swarm.datasources] (main) WFSWARM1003: Auto-detected JDBC driver for oracle
�[0m�[0m2018-10-08 21:29:16,850 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
�[0m�[0m2018-10-08 21:29:16,940 INFO [org.jboss.as] (MSC service thread 1-1) WFLYSRV0049: WildFly Swarm 2017.11.0 (WildFly Core 2.2.1.Final) starting
�[0m�[0m2018-10-08 21:29:17,025 INFO [org.wildfly.swarm] (MSC service thread 1-1) WFSWARM0019: Install MSC service for command line args: [-Dswarm.http.port=4000, -Dswarm.https.port=4443, -Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel, -Dapplication.properties=/opt/nginx-admin-2.0.3/conf/nginx-admin.conf, -Durl.base=http://localhost:4000, -Dmail.server=localhost, -Dmail.port=25, -Dmail.tls=false, [email protected], [email protected], -Dmail.authenticate=false, -Dmail.username=xxxx, -Dmail.password=xxxx, -Dmail.charset=utf-8]
�[0m21:29:20,071 INFO [com.jslsolucoes.nginx.admin.database.DatabaseMigrationBuilder] (main) url connection: jdbc:mariadb://localhost:3306/nginx_admin, username: nginx_admin
21:29:20,263 INFO [com.jslsolucoes.nginx.admin.database.DatabaseMigrationBuilder] (main) Table db_migrate_history already exists in database nginx_admin. Nothing to do.
21:29:20,266 INFO [com.jslsolucoes.nginx.admin.database.DatabaseMigrationBuilder] (main) Current version is v.0.0.0
21:29:20,293 ERROR [stderr] (main) java.lang.reflect.InvocationTargetException
21:29:20,293 ERROR [stderr] (main) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
21:29:20,293 ERROR [stderr] (main) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
21:29:20,293 ERROR [stderr] (main) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
21:29:20,293 ERROR [stderr] (main) at java.base/java.lang.reflect.Method.invoke(Method.java:564)
21:29:20,293 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:54)
21:29:20,294 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.Main.run(Main.java:133)
21:29:20,294 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.Main.main(Main.java:86)
21:29:20,294 ERROR [stderr] (main) Caused by: java.lang.RuntimeException: java.sql.SQLSyntaxErrorException: (conn=199008) Table 'user_sq' already exists
21:29:20,294 ERROR [stderr] (main) at com.jslsolucoes.nginx.admin.database.DatabaseMigrationBuilder.migrate(DatabaseMigrationBuilder.java:157)
21:29:20,294 ERROR [stderr] (main) at com.jslsolucoes.nginx.admin.ui.standalone.Main.migrateDatabase(Main.java:147)
21:29:20,294 ERROR [stderr] (main) at com.jslsolucoes.nginx.admin.ui.standalone.Main.main(Main.java:120)
21:29:20,295 ERROR [stderr] (main) ... 7 more
21:29:20,297 ERROR [stderr] (main) Caused by: java.sql.SQLSyntaxErrorException: (conn=199008) Table 'user_sq' already exists
21:29:20,298 ERROR [stderr] (main) at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.get(ExceptionMapper.java:177)
21:29:20,298 ERROR [stderr] (main) at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.getException(ExceptionMapper.java:110)
21:29:20,298 ERROR [stderr] (main) at org.mariadb.jdbc.MariaDbStatement.executeExceptionEpilogue(MariaDbStatement.java:228)
21:29:20,299 ERROR [stderr] (main) at org.mariadb.jdbc.MariaDbPreparedStatementClient.executeInternal(MariaDbPreparedStatementClient.java:216)
21:29:20,299 ERROR [stderr] (main) at org.mariadb.jdbc.MariaDbPreparedStatementClient.execute(MariaDbPreparedStatementClient.java:150)
21:29:20,299 ERROR [stderr] (main) at com.jslsolucoes.nginx.admin.database.DatabaseMigrationBuilder.migrate(DatabaseMigrationBuilder.java:146)
21:29:20,300 ERROR [stderr] (main) ... 9 more
21:29:20,300 ERROR [stderr] (main) Caused by: java.sql.SQLException: Table 'user_sq' already exists
21:29:20,300 ERROR [stderr] (main) Query is:
21:29:20,300 ERROR [stderr] (main) create table user_sq (
21:29:20,300 ERROR [stderr] (main) next_val bigint(10) not null,
21:29:20,305 ERROR [stderr] (main) primary key (next_val)
21:29:20,305 ERROR [stderr] (main) )
21:29:20,305 ERROR [stderr] (main) at org.mariadb.jdbc.internal.util.LogQueryTool.exceptionWithQuery(LogQueryTool.java:153)
21:29:20,305 ERROR [stderr] (main) at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.executeQuery(AbstractQueryProtocol.java:253)
21:29:20,305 ERROR [stderr] (main) at org.mariadb.jdbc.MariaDbPreparedStatementClient.executeInternal(MariaDbPreparedStatementClient.java:209)
21:29:20,305 ERROR [stderr] (main) ... 11 more
21:29:20,306 ERROR [stderr] (main) Exception in thread "main" java.lang.reflect.InvocationTargetException
21:29:20,306 ERROR [stderr] (main) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
21:29:20,307 ERROR [stderr] (main) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
21:29:20,307 ERROR [stderr] (main) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
21:29:20,307 ERROR [stderr] (main) at java.base/java.lang.reflect.Method.invoke(Method.java:564)
21:29:20,307 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:54)
21:29:20,308 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.Main.run(Main.java:133)
21:29:20,308 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.Main.main(Main.java:86)
21:29:20,308 ERROR [stderr] (main) Caused by: java.lang.RuntimeException: java.sql.SQLSyntaxErrorException: (conn=199008) Table 'user_sq' already exists
21:29:20,308 ERROR [stderr] (main) at com.jslsolucoes.nginx.admin.database.DatabaseMigrationBuilder.migrate(DatabaseMigrationBuilder.java:157)
21:29:20,309 ERROR [stderr] (main) at com.jslsolucoes.nginx.admin.ui.standalone.Main.migrateDatabase(Main.java:147)
21:29:20,309 ERROR [stderr] (main) at com.jslsolucoes.nginx.admin.ui.standalone.Main.main(Main.java:120)
21:29:20,309 ERROR [stderr] (main) ... 7 more
21:29:20,310 ERROR [stderr] (main) Caused by: java.sql.SQLSyntaxErrorException: (conn=199008) Table 'user_sq' already exists
21:29:20,310 ERROR [stderr] (main) at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.get(ExceptionMapper.java:177)
21:29:20,310 ERROR [stderr] (main) at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.getException(ExceptionMapper.java:110)
21:29:20,310 ERROR [stderr] (main) at org.mariadb.jdbc.MariaDbStatement.executeExceptionEpilogue(MariaDbStatement.java:228)
21:29:20,310 ERROR [stderr] (main) at org.mariadb.jdbc.MariaDbPreparedStatementClient.executeInternal(MariaDbPreparedStatementClient.java:216)
21:29:20,310 ERROR [stderr] (main) at org.mariadb.jdbc.MariaDbPreparedStatementClient.execute(MariaDbPreparedStatementClient.java:150)
21:29:20,311 ERROR [stderr] (main) at com.jslsolucoes.nginx.admin.database.DatabaseMigrationBuilder.migrate(DatabaseMigrationBuilder.java:146)
21:29:20,311 ERROR [stderr] (main) ... 9 more
21:29:20,312 ERROR [stderr] (main) Caused by: java.sql.SQLException: Table 'user_sq' already exists
21:29:20,312 ERROR [stderr] (main) Query is:
21:29:20,312 ERROR [stderr] (main) create table user_sq (
21:29:20,312 ERROR [stderr] (main) next_val bigint(10) not null,
21:29:20,312 ERROR [stderr] (main) primary key (next_val)
21:29:20,312 ERROR [stderr] (main) )
21:29:20,312 ERROR [stderr] (main) at org.mariadb.jdbc.internal.util.LogQueryTool.exceptionWithQuery(LogQueryTool.java:153)
21:29:20,312 ERROR [stderr] (main) at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.executeQuery(AbstractQueryProtocol.java:253)
21:29:20,312 ERROR [stderr] (main) at org.mariadb.jdbc.MariaDbPreparedStatementClient.executeInternal(MariaDbPreparedStatementClient.java:209)
21:29:20,313 ERROR [stderr] (main) ... 11 more
I checked the database and noticed it has been filled with several tables. I installed java 8 (openjdk-8-jdk) and changed the default version of java to 8 (update-alternatives --config java) and tried to run it but the error log shows the exact same errors as posted above.
Any idea how I can resolve this?
Thanks!
Error when generate report stats for virtual host using h2 database. Scripts not removing lock db when fails startup
In this script(
https://raw.githubusercontent.com/jslsolucoes/nginx-admin/master/nginx-admin-script/src/main/resources/scripts/debian/install.sh), at line 78,
the file path(
https://raw.githubusercontent.com/jslsolucoes/nginx-admin/master/nginx-admin-script/src/main/resources/install/debian/nginx-admin.sh)
need to change to (
https://raw.githubusercontent.com/jslsolucoes/nginx-admin/master/nginx-admin-script/src/main/resources/scripts/debian/nginx-admin.sh)
Thanks a lot .
The download file path seems to be incorrect.
After save node agent create automatic initial configuration and select tab connected to this configurations (that can be changed without problems).
Hi,
Do you have any configuration example on how to setup reverse proxy using Nginx admin with Exchange server?
When deploying both the agent and the admin on the same machine both attempt to write to /tmp/application.properties.
After manually touching the file and giving it to the nginx-admin the agent will throw an error:
06:11:12,880 INFO [org.wildfly.swarm] (main) WFSWARM99999: WildFly Swarm is Ready 06:11:48,111 ERROR [io.undertow.request] (default task-3) UT005023: Exception handling request to /ping: org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: java.io.IOException: File '/tmp/application.properties' cannot be written to
I used the following command to touch the file touch /tmp/application.properties && chmod 755 /tmp/application.properties && chown nginx-admin:nginx-admin /tmp/application.properties
Either these need to be changed for their respective applications IE:
nginx-agent.properties
(And this needs to be done at the script level)nginx-admin.properties
(And this needs to be done at the script level){
"errors": [
{
"status": 429,
"message": "You have reached your monthly quota for Data Transfer. To continue and start enjoying unlimited transfer, upgrade your subscription"
}
]
}
I think the binaries are corrupt :/
fluffy@fluffy-nginx:~/nginx-admin/nginx-admin-bin$ unzip nginx-admin-2.0.3.zip
Archive: nginx-admin-2.0.3.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of nginx-admin-2.0.3.zip or
nginx-admin-2.0.3.zip.zip, and cannot find nginx-admin-2.0.3.zip.ZIP, period.
Create an interface thats reads application logs and nginx admin logs for easy debug purposes
Hey, tried to run the script as per your site.....seems that the zip file offered is incomplete.......
Following Errors occure:
/opt/downloads/nginx-admin-agent-2.0.3.zip End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of /opt/downloads/nginx-admin-agent-2.0.3.zip or /opt/downloads/nginx-admin-agent-2.0.3.zip.zip, and cannot find /opt/downloads/nginx-admin-agent-2.0.3.zip.ZIP, period.
Thanks for checking repo.......
RGds
sunny
Yesterday, I could not access nginx-admin anymore after click on Access Log. I tried to restart many times and found that the h2 DB was corrupted. The db file is also too big (6GB), so how do I setup log rotation or maintain these access log?
I installed the agent and the UI, they answer to a wget to their port on localhost from the command line on the local machine. That's good. But the UI application appears to have self-signed certificates and they are in conflict with with my domain, I can't reach it from the external internet.
Add an option to define location on system where SSL Certificates are stored such as:
/etc/nginx/ssl/
The reason for this suggestion is in many cases users may be using Let's Encrypt or some other SSL Cert automation (In my case I have a completely separate server that handles all LE requests and rsyncs the files to each Nginx host)
The same can also be said for existing Nginx virtual host files (Again in my case, nginx config files stored in /etc/nginx/sites-available/
and /etc/nginx/sites-enabled/
are rsync'ed between the hosts.)
Just as an example using the LE Automation Script: https://github.com/Neilpang/acme.sh
In my example:
SSL certs are stored in /etc/nginx/acme/example.com/fullchain.cer
Keys are stored in /etc/nginx/acme/example.com/example.com.key
Alternatively it would be a great idea to possibly include additional Let's Encrypt support into Nginx-Admin
When use round robin on upstream conf nginx refuse reload and test configuration withou message why
Whether to support blacklist and whitelist filtering interception.
thanks.
Add official support to mariadb database
It is not too clear how to do this via webGUI, and using letsencrypt, or even generating the ssl certificate from https://zerossl.com still has files that I cannot select on the uploader button of nginxadmin to create an ssl certificate.
Any quick guide on how to do this on ubuntu + nginx-admin?
Improv docs how to install and use nginx-admin , record short videos too for better experience.
VM hit memory issues and system crashed, After tail-ing logs and seeing this, upgraded VPN to give it extra memory. Gets to Login page then hits a 500 stack.
Request URI : /user/login Status code : 500 Stack trace : br.com.caelum.vraptor.InterceptionException: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection at br.com.caelum.vraptor.interceptor.StepInvoker.invokeMethod(StepInvoker.java:69) at br.com.caelum.vraptor.interceptor.StepInvoker.tryToInvoke(StepInvoker.java:55) at br.com.caelum.vraptor.interceptor.StepInvoker$Proxy$_$$_WeldClientProxy.tryToInvoke(Unknown Source) at br.com.caelum.vraptor.interceptor.InterceptorExecutor.executeAround(InterceptorExecutor.java:75) at br.com.caelum.vraptor.interceptor.InterceptorExecutor$Proxy$_$$_WeldClientProxy.executeAround(Unknown Source) at br.com.caelum.vraptor.interceptor.AspectStyleInterceptorHandler.execute(AspectStyleInterceptorHandler.java:85) at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:83) at br.com.caelum.vraptor.interceptor.FlashInterceptor.intercept(FlashInterceptor.java:98) at br.com.caelum.vraptor.interceptor.FlashInterceptor$Proxy$_$$_WeldClientProxy.intercept(Unknown Source) at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler$1.call(ToInstantiateInterceptorHandler.java:71) at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler$1.call(ToInstantiateInterceptorHandler.java:68) at br.com.caelum.vraptor.core.Try.run(Try.java:18) at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.executeSafely(ToInstantiateInterceptorHandler.java:68) at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:61) at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:83) at br.com.caelum.vraptor.core.DefaultInterceptorStack.start(DefaultInterceptorStack.java:93) at br.com.caelum.vraptor.core.DefaultInterceptorStack$Proxy$_$$_WeldClientProxy.start(Unknown Source) at br.com.caelum.vraptor.observer.RequestHandlerObserver.handle(RequestHandlerObserver.java:93) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88) at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:78) at org.jboss.weld.injection.MethodInvocationStrategy$SimpleMethodInvocationStrategy.invoke(MethodInvocationStrategy.java:129) at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:313) at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:291) at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:269) at org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:302) at org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:291) at org.jboss.weld.event.EventImpl.fire(EventImpl.java:89) at br.com.caelum.vraptor.VRaptor.doFilter(VRaptor.java:123) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at org.wildfly.swarm.generated.FaviconErrorHandler.handleRequest(FaviconErrorHandler.java:62) at io.undertow.server.handlers.PathHandler.handleRequest(PathHandler.java:94) at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131) at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46) at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64) at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60) at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77) at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50) at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292) at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81) at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138) at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135) at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48) at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272) at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81) at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104) at io.undertow.server.Connectors.executeRootHandler(Connectors.java:211) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:809) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1692) at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1602) at org.hibernate.jpa.spi.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:1700) at org.hibernate.jpa.internal.TransactionImpl.begin(TransactionImpl.java:48) at br.com.caelum.vraptor.jpa.JPATransactionInterceptor.intercept(JPATransactionInterceptor.java:71) at br.com.caelum.vraptor.jpa.JPATransactionInterceptor$Proxy$_$$_WeldClientProxy.intercept(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.vidageek.mirror.provider.java.PureJavaMethodReflectionProvider.invoke(PureJavaMethodReflectionProvider.java:38) at net.vidageek.mirror.invoke.MethodHandlerByMethod.withArgs(MethodHandlerByMethod.java:54) at br.com.caelum.vraptor.core.DefaultReflectionProvider.invoke(DefaultReflectionProvider.java:42) at br.com.caelum.vraptor.core.DefaultReflectionProvider$Proxy$_$$_WeldClientProxy.invoke(Unknown Source) at br.com.caelum.vraptor.interceptor.StepInvoker.invokeMethod(StepInvoker.java:64) ... 73 more Caused by: org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:47) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:109) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:95) at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:90) at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.getPhysicalConnection(LogicalConnectionManagedImpl.java:112) at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.getConnectionForTransactionManagement(LogicalConnectionManagedImpl.java:230) at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.begin(LogicalConnectionManagedImpl.java:237) at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl$TransactionDriverControlImpl.begin(JdbcResourceLocalTransactionCoordinatorImpl.java:214) at org.hibernate.engine.transaction.internal.TransactionImpl.begin(TransactionImpl.java:52) at org.hibernate.internal.SessionImpl.beginTransaction(SessionImpl.java:1512) at org.hibernate.jpa.internal.TransactionImpl.begin(TransactionImpl.java:45) ... 84 more Caused by: java.sql.SQLException: javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:jboss/datasources/nginx-admin at org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:146) at org.jboss.as.connector.subsystems.datasources.WildFlyDataSource.getConnection(WildFlyDataSource.java:66) at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) at org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:386) at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:87) ... 91 more Caused by: javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:jboss/datasources/nginx-admin at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:656) at org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.getManagedConnection(TxConnectionManagerImpl.java:429) at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:747) at org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:138) ... 95 more Caused by: javax.resource.ResourceException: IJ000655: No managed connections available within configured blocking timeout (30000 [ms]) at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.getConnection(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:565) at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getSimpleConnection(AbstractPool.java:617) at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getConnection(AbstractPool.java:589) at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:590) ... 98 more
create and distribute official docker image for agent and admin
version
nginx-admin 2.0.3
detail
I have two website: a.com ; b.com;
When add above site to "List of the virtuals host",using https;
I can only visit https://a.com ,this site's webcontent;
When i input the url https://b.com; The web content is the same as A!
i look for the log in Directory,but there is no error display.The obvious abnormal condition is that I want to see the site B when i browse https://b.com but nginx-admin looks like doesn't recognize the domain with HTTPS
Trying
I'm trying to restart the software .but doesn't work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.