dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[Bug] [API] Docker deployment uses standalone-server image, and base-dir error is reported after logging in

Open ennun opened this issue 5 months ago • 8 comments
trafficstars

Search before asking

  • [x] I had searched in the issues and found no similar issues.

What happened

Image

login和userinfo问题,另一个接口报了空指针

Version

dev

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

ennun avatar May 20 '25 08:05 ennun

Search before asking

  • [x] I had searched in the issues and found no similar issues.

What happened

Image

Login and userinfo issues, another interface reported a null pointer

What you expected to happen

Image

Login and userinfo issues, another interface reported a null pointer

How to reproduce

Image

Login and userinfo issues, another interface reported a null pointer

Anything else

Image

Login and userinfo issues, another interface reported a null pointer

Version

dev

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

github-actions[bot] avatar May 20 '25 08:05 github-actions[bot]

I don't have your problem.

Image

You can check whether there are any users in the database t_ds_user table. If the table does not exist or has no data, confirm whether the sql initialization is successful.

det101 avatar May 21 '25 08:05 det101

[WI-0][TI-0] - 2025-06-13 15:36:43.381 INFO [qtp619120762-28] o.a.d.a.s.i.AbstractAuthenticator:[101] - Session is created, userName:admin. [WI-0][TI-0] - 2025-06-13 15:36:43.474 ERROR [qtp619120762-28] o.a.d.a.e.ApiExceptionHandler:[47] - Meet an unknown exception: java.lang.NullPointerException: null at org.apache.dolphinscheduler.api.service.impl.ResourcesServiceImpl.queryResourceBaseDir(ResourcesServiceImpl.java:402) at org.apache.dolphinscheduler.api.controller.ResourcesController.queryResourceBaseDir(ResourcesController.java:349) at org.apache.dolphinscheduler.api.controller.ResourcesController$$FastClassBySpringCGLIB$$2270281e.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708) at org.apache.dolphinscheduler.api.controller.ResourcesController$$EnhancerBySpringCGLIB$$f51dcfc6.queryResourceBaseDir() 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.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1070) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799) at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1656) at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:91) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1626) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1626) at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1626) at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1626) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1626) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:552) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:772) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.Server.handle(Server.java:516) at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131) at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034) at java.lang.Thread.run(Thread.java:750)

sudofeng avatar Jun 13 '25 07:06 sudofeng

have you solved?

lhadmin06 avatar Jun 16 '25 01:06 lhadmin06

have you solved?

No, not yet.

sudofeng avatar Jun 16 '25 02:06 sudofeng

have you solved?

No, not yet.

@linuxdevopscn

Check whether there is a plugin to download. https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/guide/installation/pseudo-cluster.md#download-plugins-dependencies

If the network is not accessible, you can package the plugin into the installation package when packaging. You can refer to https://github.com/apache/dolphinscheduler/issues/17249#issuecomment-2965370909

det101 avatar Jun 16 '25 02:06 det101

have you solved?

No, not yet.

@linuxdevopscn

Check whether there is a plugin to download. https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/guide/installation/pseudo-cluster.md#download-plugins-dependencies

If the network is not accessible, you can package the plugin into the installation package when packaging. You can refer to #17249 (comment)

Yes, the problem has been solved because the step of installing the plugin was missing

sudofeng avatar Jun 18 '25 09:06 sudofeng

have you solved?

No, not yet.

@linuxdevopscn Check whether there is a plugin to download. https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/guide/installation/pseudo-cluster.md#download-plugins-dependencies If the network is not accessible, you can package the plugin into the installation package when packaging. You can refer to #17249 (comment)

Yes, the problem has been solved because the step of installing the plugin was missing

ok

det101 avatar Jun 18 '25 09:06 det101

have you solved?

No, not yet.

@linuxdevopscn Check whether there is a plugin to download. https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/guide/installation/pseudo-cluster.md#download-plugins-dependencies If the network is not accessible, you can package the plugin into the installation package when packaging. You can refer to #17249 (comment)

Yes, the problem has been solved because the step of installing the plugin was missing

have you solved?

No, not yet.

Is it normal now? How was it done specifically

lhadmin06 avatar Jun 30 '25 02:06 lhadmin06

have you solved?

No, not yet.

@linuxdevopscn Check whether there is a plugin to download. https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/guide/installation/pseudo-cluster.md#download-plugins-dependencies If the network is not accessible, you can package the plugin into the installation package when packaging. You can refer to #17249 (comment)

Yes, the problem has been solved because the step of installing the plugin was missing

为什么我按照命令 mvn clean install -Pstaging 打包之后还是报这个错误,有没有人可以解决呀

lhadmin06 avatar Jul 24 '25 08:07 lhadmin06

This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.

github-actions[bot] avatar Aug 24 '25 00:08 github-actions[bot]

This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.

github-actions[bot] avatar Sep 01 '25 00:09 github-actions[bot]