При попытке запустить сервер WAS с IBM console выходит ошибка:
1 |
WASnode01/server1 server could not be started. View JMV logs for further details |
В файле “native_stdout.log”:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
[12/2/16 10:15:15:507 MSK] 00000001 SystemOut E TRAS0013E: An attempt to redirect the System.Out stream failed. The following exception was encountered. com.ibm.ejs.ras.RasException: Ras does not have necessary permission to write file SystemOut.log to directory /u01/IBM/WebSphere/AppServer/profiles/WAShost01/logs/server1/SystemOut.log at com.ibm.ejs.ras.RasHelper.validateFileName(RasHelper.java:1037) at com.ibm.ejs.ras.RasHelper.generateOutputFileName(RasHelper.java:977) at com.ibm.ejs.ras.SystemOutStream.replaceSystemOutStream(SystemOutStream.java:195) at com.ibm.ws.runtime.WsServerImpl.redirectStream(WsServerImpl.java:459) at com.ibm.ws.runtime.WsServerImpl.bootLoggingServices(WsServerImpl.java:402) at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:201) at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:697) at com.ibm.ws.runtime.WsServer.main(WsServer.java:59) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56) at java.lang.reflect.Method.invoke(Method.java:620) at com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:234) at com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:96) at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:77) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56) at java.lang.reflect.Method.invoke(Method.java:620) at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56) at java.lang.reflect.Method.invoke(Method.java:620) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:340) at org.eclipse.core.launcher.Main.basicRun(Main.java:282) at org.eclipse.core.launcher.Main.run(Main.java:981) at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:400) at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:163) |
Подобная ошибка возникает из-за нехватки прав доступа. Предыдущий старт или остановка сервера были выполнены другим пользователем (например, root), что изменило владельца каталога/файла.
В моём случае владельцем “SystemOut.log” был root.
Для избегания подобных проблем, всегда стартуйте/останавливайте компоненты от администратора WAS.
Если у вас уже произошла подобная ошибка, то для её решения измените владельца файлов обратно на администратора WAS. В моём случае:
1 2 3 |
sudo chown wsadmin SystemOut.log sudo chown wsadmin btrace.1 sudo chown wsadmin objects |