我们在 centos 操作系统上运行 coldfusion 9。最近我们的服务器崩溃次数过多,并且出现 500 错误,例如 504 网关超时。
有时我会收到错误
内部服务器错误
The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done
这可能是导致错误的原因。
More information about this error may be available in the server error log. Apache/2.2.3 (CentOS) Server at www.mywebsite.com Port 80
我希望在浏览器出现 500 错误时收到通知,或者在问题未解决之前自动重启服务器
如果可能的话,我该如何进行?
问候,非常需要您的建议,因为我现在太多地面临这个问题。
还检查了日志,有时我会看到显示 [Broken Pipe] 错误,但不确定如何继续
这是我刚刚检查的日志中显示的更新,该日志显示在 cfserver.log 上
我没有发现任何不寻常的东西:
谁能给我指明方向
> 1.0 Starting Macromedia JRun 4.0 (Build 108858), coldfusion server
> 2.0 01/19 04:42:58 warning Unable to open /opt/coldfusion9/runtime/lib/license.properties
> 3.0 01/19 04:42:59 info JRun Naming Service listening on *:2932
> 4.0 01/19 04:42:59 info No JDBC data sources have been configured for this server (see jrun-resources.xml)
> 5.0 01/19 04:42:59 info JRun Web Server listening on *:8500
> 6.0 01/19 04:42:59 info JRun Proxy Server listening on *:51011
> 7.0 01/19 04:42:59 info Deploying enterprise application "Adobe_ColdFusion_9" from: file:/opt/coldfusion9/
> 8.0 01/19 04:43:00 info Deploying web application "Adobe ColdFusion 9" from: file:/opt/coldfusion9/
> 9.0 01/19 04:43:00 error There is no web application configured to service your request
> 10.0 01/19 04:43:00 user NoWebappServlet: init
> 11.0 01/19 04:43:00 user FusionReactor: FusionReactor Rev. 3.5.1, Build: FusionReactor.78.14986
> 12.0 01/19 04:43:00 user FusionReactor: Initializing configuration
> 13.0 01/19 04:43:00 user FusionReactor: Loading configuration from /opt/fusionreactor/instance/default/conf/reactor.conf...
> 14.0 Jan 19, 2014 4:43:00 AM com.intergral.fusionreactor.core.u mb
> 15.0 INFO: Initialization failed: /opt/fusionreactor/instance/default/conf/reactor.conf (No such file or
> directory)
> 16.0 01/19 04:43:00 user FusionReactor Exception: /opt/fusionreactor/instance/default/conf/reactor.conf (No such file or
> directory)
> 17.0 java.io.FileNotFoundException: /opt/fusionreactor/instance/default/conf/reactor.conf (No such file or
> directory)
> 18.0 at java.io.FileInputStream.open(Native Method)
> 19.0 at java.io.FileInputStream.<init>(Unknown Source)
> 20.0 at com.intergral.fusionreactor.config.d.d(ConfigurationHandler.java:44)
> 21.0 at com.intergral.fusionreactor.core.u.vc(FusionReactor.java:533)
> 22.0 at com.intergral.fusionreactor.filter.FusionReactorFilter.init(FusionReactorFilter.java:640)
> 23.0 at jrun.servlet.FilterObject.init(FilterObject.java:63)
> 24.0 at jrun.servlet.FilterManager.loadFilter(FilterManager.java:220)
> 25.0 at jrun.servlet.FilterManager.init(FilterManager.java:158)
> 26.0 at jrun.servlet.FilterManager.create(FilterManager.java:75)
> 27.0 at jrun.servlet.WebApplicationService.start(WebApplicationService.java:230)
> 28.0 at jrun.ea.EnterpriseApplication.start(EnterpriseApplication.java:194)
> 29.0 at jrun.deployment.DeployerService.initModules(DeployerService.java:708)
> 30.0 at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:243)
> 31.0 at jrun.deployment.DeployerService.deploy(DeployerService.java:428)
> 32.0 at jrun.deployment.DeployerService.handleEvent(DeployerService.java:382)
> 33.0 at jrunx.kernel.JRunServiceDeployer.fireEvent(JRunServiceDeployer.java:710)
> 34.0 at jrunx.kernel.JRunServiceDeployer.deployServices(JRunServiceDeployer.java:111)
> 35.0 at jrunx.kernel.DeploymentService.loadServices(DeploymentService.java:46)
> 36.0 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 37.0 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 38.0 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 39.0 at java.lang.reflect.Method.invoke(Unknown Source)
> 40.0 at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown
> Source)
答案1
500 错误只是 ColdFusion 在您的代码中出现运行时错误时发送的通用 HTTP 响应代码。我认为您发布的错误只是通用的 Apache 错误模板,它没有任何帮助。
您需要查看异常日志来了解错误原因。
您显示的日志只是您的启动日志,并不代表正在进行错误。看来 FusionReactor 配置有误,因此无法启动。但是 - 正如我所说 - 这与你在此处询问的问题不同。
老实说,如果你问的是这个基础层面的问题,你也许不应该尝试自己解决这个问题,而是应该找一个顾问花一天时间来整理。