openbmc / bmcweb

A do everything Redfish, KVM, GUI, and DBus webserver for OpenBMC
Apache License 2.0
165 stars 135 forks source link

InternalError on LogService.ClearLog #97

Closed gtmills closed 3 years ago

gtmills commented 5 years ago

On a Witherspoon system with latest master, e90c50528a87fd15a7ae3f6b49e0ab83b1873d0c

{
  "error": {
    "@Message.ExtendedInfo": [
      {
        "@odata.type": "/redfish/v1/$metadata#Message.v1_0_0.Message",
        "Message": "The request failed due to an internal service error.  The service is still operational.",
        "MessageArgs": [],
        "MessageId": "Base.1.4.0.InternalError",
        "Resolution": "Resubmit the request.  If the problem persists, consider resetting the service.",
        "Severity": "Critical"
      }
    ],
    "code": "Base.1.4.0.InternalError",
    "message": "The request failed due to an internal service error.  The service is still operational."
  }
(2019-07-09 15:16:44) [DEBUG   ] 0x2125350 Connection open, total 2
(2019-07-09 15:16:44) [DEBUG   ] 0x2144f40 timer cancelled: 0x20586f0 -1
(2019-07-09 15:16:44) [DEBUG   ] timer add inside: 0x20586f0 99
(2019-07-09 15:16:44) [DEBUG   ] 0x2144f40 timer added: 0x20586f0 99
(2019-07-09 15:16:44) [DEBUG   ] 0x2144f40 doReadHeaders
(2019-07-09 15:16:44) [ERROR   ] 0x2144f40 async_read_header 276 Bytes
(2019-07-09 15:16:44) [DEBUG   ] 0x2144f40 doRead
(2019-07-09 15:16:44) [ERROR   ] 0x2144f40 async_read 0 Bytes
(2019-07-09 15:16:44) [DEBUG   ] 0x2144f40 timer cancelled: 0x20586f0 99
(2019-07-09 15:16:44) [INFO    ] Request:  0x2144f40 HTTP/1.1 POST /redfish/v1/Systems/system/LogServices/EventLog/Actions/LogService.ClearLog
(2019-07-09 15:16:44) [DEBUG   ] [AuthMiddleware] X-Auth-Token authentication
(2019-07-09 15:16:44) [DEBUG   ] [AuthMiddleware] Cookie authentication
(2019-07-09 15:16:44) [DEBUG   ] [AuthMiddleware] Basic authentication
(2019-07-09 15:16:44) [DEBUG   ] [AuthMiddleware] Authenticating user: root
(2019-07-09 15:16:44) [DEBUG   ] Matched rule '/redfish/v1/Systems/system/LogServices/EventLog/Actions/LogService.ClearLog/' 4 / 16
(2019-07-09 15:16:44) [ERROR   ] Failed to reload rsyslog: generic:53
(2019-07-09 15:16:44) [DEBUG   ] calling completion handler
(2019-07-09 15:16:44) [DEBUG   ] completion handler was valid
(2019-07-09 15:16:44) [INFO    ] Response: 0x2144f40 /redfish/v1/Systems/system/LogServices/EventLog/Actions/LogService.ClearLog 500 keepalive=1
(2019-07-09 15:16:44) [DEBUG   ] Doing Write
(2019-07-09 15:16:44) [DEBUG   ] 0x2144f40 Wrote 1059 bytes
(2019-07-09 15:16:44) [DEBUG   ] 0x2144f40 Clearing response
(2019-07-09 15:16:44) [DEBUG   ] 0x2147120 Clearing response containers
(2019-07-09 15:16:44) [DEBUG   ] 0x2144f40 doReadHeaders
(2019-07-09 15:16:44) [ERROR   ] 0x2144f40 async_read_header 0 Bytes
(2019-07-09 15:16:44) [ERROR   ] 0x2144f40 Error while reading: end of stream
(2019-07-09 15:16:44) [DEBUG   ] 0x2144f40 timer cancelled: 0x20586f0 99
(2019-07-09 15:16:44) [DEBUG   ] 0x2144f40 from read(1)
(2019-07-09 15:16:44) [DEBUG   ] 0x2144f40 isReading 0 isWriting 0
(2019-07-09 15:16:44) [DEBUG   ] 0x2144f40 delete (idle) 
(2019-07-09 15:16:44) [DEBUG   ] 0x2144f40 timer cancelled: 0x20586f0 99
(2019-07-09 15:16:44) [DEBUG   ] 0x2144f40 Connection closed, total 1
(2019-07-09 15:16:44) [DEBUG   ] 0x2147120 Destroying response
gtmills commented 3 years ago

I believe this is fixed.