docs-site icon indicating copy to clipboard operation
docs-site copied to clipboard

[Troubleshooting tip] What to do when EACCES is seen in server logs

Open 1000TurquoisePogs opened this issue 3 years ago • 1 comments

When you see messages like this in the server logs:

Error: listen EACCES: permission denied 0.0.0.0:8548
     at Server.setupListenHandle [as _listen2] (net.js:1305:21)
     at listenInCluster (net.js:1370:12)
<ZWED:1234> ZWEUSER WARN (_zsf.network,webserver.js:233) ZWED0071W - Unexpected error on server 0.0.0.0:8544. E=bind EACCES 0.0.0.0:8544. Stack trace follows.
 Error: bind EACCES 0.0.0.0:8544
     at listenOnMasterHandle (net.js:1389:18)

It is a sign that a permission error is stopping Zowe servers from completing the action of binding to a TCP Port for listening for client connections. This can manifest in the servers being inaccessible. Network permissions control varies by OS, so I don't have a tip for users of containers, but for z/os, IBM has a guide on access control: https://www.ibm.com/docs/en/zos/2.4.0?topic=control-controlling-access-particular-ports https://www.ibm.com/docs/en/zos/2.4.0?topic=statements-port-statement

But there's a very important part troubleshooting step just for Zowe. When doing setting a PORT statement, you can assign rules by jobname. When FACILITY resource BPX.JOBNAME is granted for the zowe STC user (recommended!) then each server of zowe will have a different jobname. It will not be "ZWESVSTC" or "ZWESLSTC" as it would be when that resource is not granted. They'll instead be other names that start with "ZWE". So, for a troubleshooting tip on the server error EACCESS on z/os, note that not only should an administrator check their PORT statements, they should probably set their jobname in the port statements to ZWE* since it will catch all zowe components regardless of whether or not BPX.JOBNAME is granted.

1000TurquoisePogs avatar Jan 28 '22 22:01 1000TurquoisePogs

still an important tip to give people in all zowe versions.

1000TurquoisePogs avatar Nov 14 '22 13:11 1000TurquoisePogs

Hi Sean, is this still valid? @1000TurquoisePogs

nellietan avatar Aug 23 '23 10:08 nellietan

@nellietan This is still valid. Will you be taking this up?

DivergentEuropeans avatar Sep 05 '23 14:09 DivergentEuropeans

Thanks for confirming @DivergentEuropeans. Yes I have self assigned myself.

nellietan avatar Sep 05 '23 15:09 nellietan

Cool, thank you @nellietan

DivergentEuropeans avatar Sep 15 '23 14:09 DivergentEuropeans

As discussed with @nellietan, I am working on this.

lparadkar-rocket avatar Sep 18 '23 11:09 lparadkar-rocket