You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2022/07/12 06:42:49 UTC
[GitHub] [dolphinscheduler] liguotian opened a new issue, #10895: [Bug] [standalone] view log with empty content
liguotian opened a new issue, #10895:
URL: https://github.com/apache/dolphinscheduler/issues/10895
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
start a dolphinscheduler in standalone mode, then execute shell or http task 。
task execute success,
but I can view any effective log in LogViewWindow .

And I see an error in sever console
```
2022-07-12 14:10:38.522 WARN 66317 --- [tp1360125564-23] o.a.d.remote.NettyRemotingClient : connect to Host{address='172.16.0.63:50051', ip='172.16.0.63', port=50051} error
io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /172.16.0.63:50051
Caused by: java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0_181]
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[na:1.8.0_181]
at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330) ~[netty-all-4.1.53.Final.jar:4.1.53.Final]
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334) ~[netty-all-4.1.53.Final.jar:4.1.53.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:702) ~[netty-all-4.1.53.Final.jar:4.1.53.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650) ~[netty-all-4.1.53.Final.jar:4.1.53.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576) ~[netty-all-4.1.53.Final.jar:4.1.53.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) ~[netty-all-4.1.53.Final.jar:4.1.53.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) ~[netty-all-4.1.53.Final.jar:4.1.53.Final]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-all-4.1.53.Final.jar:4.1.53.Final]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_181]
```
172.16.0.63 is my local host .
### What you expected to happen
Task Log View Window should show right task log
### How to reproduce
1. sh ./bin/dolphinscheduler-daemon.sh start standalone-server
2. add a workflow and a http Task or shell task
3. run this worlflow
4. view task log
### Anything else
I try to read code ,i find No LoggerServer started in StandaloneServer .
```
public class StandaloneServer {
public static void main(String[] args) throws Exception {
final TestingServer server = new TestingServer(true);
System.setProperty("registry.servers", server.getConnectString());
new SpringApplicationBuilder(
ApiApplicationServer.class,
MasterServer.class,
WorkerServer.class,
AlertServer.class,
PythonGatewayServer.class,
).profiles("master", "worker", "api", "alert", "python-gateway", "h2", "standalone").run(args);
}
}
```
Then I try to add code like this
```
new SpringApplicationBuilder(
ApiApplicationServer.class,
MasterServer.class,
WorkerServer.class,
AlertServer.class,
PythonGatewayServer.class,
LoggerServerAdapter.class
).profiles("master", "worker", "api", "alert", "python-gateway", "h2", "standalone").run(args);
```
class LoggerServerAdapter user for adapting LoggerServer .it code like
```
public class LoggerServerAdapter implements IStoppable {
private final LoggerServer loggerServer;
public LoggerServerAdapter() {
this.loggerServer = new LoggerServer();
}
@PostConstruct
public void start() {
this.loggerServer.start();
}
@Override
public void stop(String cause) {
this.loggerServer.stop();
}
}
```
And There exist another problem: StandaloneServer have no logback.xml , add a new logback.xml for standalone mode and config in dolphinscheduler-daemon.sh .
does this problem fix in official feature Or Bugfix or should I to submit any PR
### Version
2.0.5
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [standalone] view log with empty content [dolphinscheduler]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #10895: [Bug] [standalone] view log with empty content
URL: https://github.com/apache/dolphinscheduler/issues/10895
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #10895: [Bug] [standalone] view log with empty content
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #10895:
URL: https://github.com/apache/dolphinscheduler/issues/10895#issuecomment-1181378383
Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
* In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
* If you haven't received a reply for a long time, you can [join our slack](https://s.apache.org/dolphinscheduler-slack) and send your question to channel `#troubleshooting`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [standalone] view log with empty content [dolphinscheduler]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #10895:
URL: https://github.com/apache/dolphinscheduler/issues/10895#issuecomment-1804879461
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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #10895: [Bug] [standalone] view log with empty content
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #10895:
URL: https://github.com/apache/dolphinscheduler/issues/10895#issuecomment-1213610752
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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] liguotian commented on issue #10895: [Bug] [standalone] view log with empty content
Posted by GitBox <gi...@apache.org>.
liguotian commented on issue #10895:
URL: https://github.com/apache/dolphinscheduler/issues/10895#issuecomment-1181831967
> LoggerServer has been optimized and embedded into masterServer and workerServer in version 3.0.0.
>
> I'm not sure if we should add this feature in version 2.0.7. PTAL @caishunfeng @zhongjiajie @ruanwenjun
>
> Dupliated with #10906
#10906 maybe different problem with this。it need manual startup every severs include loggerServer Or start all server when DS start not by standalone mode , but when start by standalone。 i think it is unnessary to additional start logger server 。and standaloneServer also need a logback xml ,If not, no log will be generated。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] SbloodyS commented on issue #10895: [Bug] [standalone] view log with empty content
Posted by GitBox <gi...@apache.org>.
SbloodyS commented on issue #10895:
URL: https://github.com/apache/dolphinscheduler/issues/10895#issuecomment-1181765751
LoggerServer has been optimized and embedded into masterServer and workerServer in version 3.0.0.
I'm not sure if we should add this feature in version 2.0.7. PTAL @caishunfeng @zhongjiajie @ruanwenjun
Dupliated with #10906
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] SbloodyS commented on issue #10895: [Bug] [standalone] view log with empty content
Posted by GitBox <gi...@apache.org>.
SbloodyS commented on issue #10895:
URL: https://github.com/apache/dolphinscheduler/issues/10895#issuecomment-1182657974
> > LoggerServer has been optimized and embedded into masterServer and workerServer in version 3.0.0.
> > I'm not sure if we should add this feature in version 2.0.7. PTAL @caishunfeng @zhongjiajie @ruanwenjun
> > Dupliated with #10906
>
> #10906 maybe different problem with this。it need manual startup every severs include loggerServer Or start all server when DS start not by standalone mode , but when start by standalone。 i think it is unnessary to additional start logger server 。and standaloneServer also need a logback xml ,If not, no log will be generated。
Sorry. My mistake. I have remove duplicated label.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] caishunfeng commented on issue #10895: [Bug] [standalone] view log with empty content
Posted by GitBox <gi...@apache.org>.
caishunfeng commented on issue #10895:
URL: https://github.com/apache/dolphinscheduler/issues/10895#issuecomment-1182656071
> LoggerServer has been optimized and embedded into masterServer and workerServer in version 3.0.0.
>
> I'm not sure if we should add this feature in version 2.0.7. PTAL @caishunfeng @zhongjiajie @ruanwenjun
>
> Dupliated with #10906
In general, 2.0.x version will only do bugfixs, and will not add feature prs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] liguotian commented on issue #10895: [Bug] [standalone] view log with empty content
Posted by GitBox <gi...@apache.org>.
liguotian commented on issue #10895:
URL: https://github.com/apache/dolphinscheduler/issues/10895#issuecomment-1181755787
@SbloodyS I have fix this bug ,and request a PR #10912 。but this is my fisrt time to commit ,and need a maintainer to approve running workflows ,Please Help it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org