File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
runner-core/src/main/java/org/apache/apisix/plugin/runner/server Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ Note: If you see some error logs like
6464phase_func(): failed to connect to the unix socket unix:/tmp/runner.sock: permission denied
6565` ` `
6666
67- in the `error.log` of APISIX, you can change the permissions of this file for debug, execute commands like
67+ in the `error.log` of APISIX, ensure the APISIX user is provided rights on the socket.
6868
6969` ` ` shell
7070chmod 766 /tmp/runner.sock
Original file line number Diff line number Diff line change 3232import org .springframework .beans .factory .annotation .Value ;
3333import org .springframework .boot .CommandLineRunner ;
3434import org .springframework .stereotype .Component ;
35+
3536import com .google .common .cache .Cache ;
3637import io .netty .bootstrap .ServerBootstrap ;
3738import io .netty .channel .ChannelFuture ;
@@ -114,7 +115,7 @@ public void start(String path) throws Exception {
114115 try {
115116 initServerBootstrap (bootstrap );
116117 ChannelFuture future = bootstrap .bind (new DomainSocketAddress (path )).sync ();
117- Runtime .getRuntime ().exec ("chmod 777 " + socketFile );
118+ Runtime .getRuntime ().exec ("chmod 700 " + socketFile );
118119 logger .warn ("java runner is listening on the socket file: {}" , socketFile );
119120
120121 future .channel ().closeFuture ().sync ();
You can’t perform that action at this time.
0 commit comments