Red Hat Subscription Manager (RHSM) 登録のシステムで、「JSON parsing error: No JSON object could be decoded」エラーまたは「Lock wait timeout exceeded」エラーが表示される

Solution Unverified - Updated -

Issue

  • 「Lock wait timeout exceeded」エラー
  • コード 502 によるトレースバックエラー

abrt_version: 2.1.11 cmdline: /usr/bin/python /usr/libexec/rhsmd -s comment: dso_list: python-rhsm-1.10.12-2.el7.x86_64 executable: /usr/libexec/rhsmd kernel: 3.10.0-123.el7.x86_64 last_occurrence: 1403133267 pid: 30710 pkg_arch: x86_64 pkg_epoch: 0 pkg_name: subscription-manager pkg_release: 7.el7 pkg_version: 1.10.14 runlevel: N 3 time: Wed 18 Jun 2014 07:14:27 PM EDT uid: 0 username: root sosreport.tar.xz: Binary file, 4725944 bytes backtrace: :connection.py:530:validateResponse:RemoteServerException: Server error attempting a GET to /subscription/consumers/9decaece-a2eb-42e6-8d2c-0fd541a38499/compliance returned status 502 : :Traceback (most recent call last): : File "/usr/libexec/rhsmd", line 264, in <module> : main() : File "/usr/libexec/rhsmd", line 225, in main : status = check_status(force_signal) : File "/usr/libexec/rhsmd", line 87, in check_status : sorter = require(CERT_SORTER) : File "/usr/share/rhsm/subscription_manager/injection.py", line 98, in require : return FEATURES.require(feature, *args, **kwargs) : File "/usr/share/rhsm/subscription_manager/injection.py", line 72, in require : self.providers[feature] = provider() : File "/usr/share/rhsm/subscription_manager/cert_sorter.py", line 320, in __init__ : super(CertSorter, self).__init__() : File "/usr/share/rhsm/subscription_manager/cert_sorter.py", line 65, in __init__ : self.load() : File "/usr/share/rhsm/subscription_manager/cert_sorter.py", line 115, in load : self._parse_server_status() : File "/usr/share/rhsm/subscription_manager/cert_sorter.py", line 134, in _parse_server_status : status = self.get_compliance_status() : File "/usr/share/rhsm/subscription_manager/cert_sorter.py", line 328, in get_compliance_status : return status_cache.load_status(self.cp_provider.get_consumer_auth_cp(), self.identity.uuid) : File "/usr/share/rhsm/subscription_manager/cache.py", line 212, in load_status : self._sync_with_server(uep, uuid) : File "/usr/share/rhsm/subscription_manager/cache.py", line 306, in _sync_with_server : self.server_status = uep.getCompliance(uuid) : File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 849, in getCompliance : return self.conn.request_get(method) : File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 554, in request_get : return self._request("GET", method) : File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 482, in _request : self.validateResponse(result, request_type, handler) : File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 530, in validateResponse : handler=handler) :RemoteServerException: Server error attempting a GET to /subscription/consumers/9decaece-a2eb-42e6-8d2c-0fd541a38499/compliance returned status 502 : :Local variables in innermost frame: :e: ValueError('No JSON object could be decoded',) :self: <rhsm.connection.Restlib object at 0x220b910> :response: {'content': '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>502 Proxy Error</title>\n</head><body>\n<h1>Proxy Error</h1>\n<p>The proxy server received an invalid\r\nresponse from an upstream server.<br />\r\nThe proxy server could not handle the request <em><a href="/subscription/consumers/9decaece-a2eb-42e6-8d2c-0fd541a38499/compliance">GET&nbsp;/subscription/consumers/9decaece-a2eb-42e6-8d2c-0fd541a38499/compliance</a></em>.<p>\nReason: <strong>Error reading from remote server</strong></p></p>\n<hr>\n<address>Apache Server at subscription.rhn.redhat.com Port 443</address>\n</body></html>\n', 'status': 502} :request_type: 'GET' :handler: '/subscription/consumers/9decaece-a2eb-42e6-8d2c-0fd541a38499/compliance' :parsed: {} environ: :MAILTO=root :LANG=en_US.UTF-8 :SHELL=/bin/sh :XDG_RUNTIME_DIR=/run/user/0 :SHLVL=6 :START_HOURS_RANGE=3 :RANDOM_DELAY=45 :PWD=/ :LOGNAME=root :USER=root :HOME=/root :PATH=/sbin:/bin:/usr/sbin:/usr/bin :XDG_SESSION_ID=6 :_=/usr/libexec/rhsmd
  • ログでは、以下のようになります。

    /var/log/rhsm/rhsm.log

2014-06-23 20:15:05,200 [DEBUG] rhsmd @connection.py:450 - Making request: GET /subscription/consumers/42a757a1-3b4c-4d15-a9d6-f22c27cad539/compliance
2014-06-23 20:15:11,191 [DEBUG] rhsmd @connection.py:473 - Response: status=502
2014-06-23 20:15:11,192 [ERROR] rhsmd @connection.py:502 - Response: 502
2014-06-23 20:15:11,192 [ERROR] rhsmd @connection.py:503 - JSON parsing error: No JSON object could be decoded

/var/log/messages

Jun 23 20:15:11 localhost python: detected unhandled Python exception in '/usr/libexec/rhsmd'

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 6
  • Red Hat カスタマーポータルでのサブスクリプション管理

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content