RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1258619 - Ruby traceback on pcsd startup - /webrick.rb:48:in `shutdown': undefined method `shutdown'
Summary: Ruby traceback on pcsd startup - /webrick.rb:48:in `shutdown': undefined met...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pcs
Version: 7.2
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Chris Feist
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-31 19:20 UTC by Jaroslav Kortus
Modified: 2015-11-19 09:38 UTC (History)
4 users (show)

Fixed In Version: pcs-0.9.143-4.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 09:38:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1252050 0 medium CLOSED Rewrite pcsd launch script 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHSA-2015:2290 0 normal SHIPPED_LIVE Moderate: pcs security, bug fix, and enhancement update 2015-11-19 09:43:53 UTC

Internal Links: 1252050

Description Jaroslav Kortus 2015-08-31 19:20:17 UTC
Description of problem:
Traceback produced at startup:

/usr/lib/pcsd/vendor/bundle/ruby/gems/rack-1.6.4/lib/rack/handler/webrick.rb:48:in `shutdown': undefined method `shutdown' for
 nil:NilClass (NoMethodError)
        from /usr/lib/pcsd/ssl.rb:56:in `block in <main>'
        from /usr/lib/pcsd/ssl.rb:1:in `call'


Version-Release number of selected component (if applicable):
pcs-0.9.143-2.el7

How reproducible:
100%

Steps to Reproduce:
1. service pcsd start
2.
3.

Actual results:
ruby traceback (triggers abrt)

Expected results:
no traceback


Additional info:

Comment 4 Chris Feist 2015-08-31 20:14:21 UTC
Fixes upstream here:

https://github.com/feist/pcs/commit/4d4ad9fc870998f4e70256ef62371f38da3a4855

Comment 5 Chris Feist 2015-08-31 21:32:11 UTC
Before Fix:
[root@virt-028 abrt]# rpm -q pcs
pcs-0.9.143-2.el7.x86_64
[root@virt-028 abrt]# service pcsd start ; sleep 5 ; service pcsd stop
Redirecting to /bin/systemctl start  pcsd.service
Redirecting to /bin/systemctl stop  pcsd.service


abrt is generated, this is at the end of /var/lib/pcsd.log:
[root@virt-028 abrt]# tail -n15 /var/log/pcsd/pcsd.log 
- -> /remote/get_configs
Shutting down (TERM)
[2015-08-31 23:29:18] INFO  going to shutdown ...
Shutting down (TERM)
/usr/lib/pcsd/vendor/bundle/ruby/gems/rack-1.6.4/lib/rack/handler/webrick.rb:48:in `shutdown': undefined method `shutdown' for nil:NilClass (NoMethodError)
	from /usr/lib/pcsd/ssl.rb:56:in `block in <main>'
	from /usr/share/ruby/webrick/server.rb:198:in `call'
	from /usr/share/ruby/webrick/server.rb:198:in `join'
	from /usr/share/ruby/webrick/server.rb:198:in `block (2 levels) in start'
	from /usr/share/ruby/webrick/server.rb:198:in `each'
	from /usr/share/ruby/webrick/server.rb:198:in `block in start'
	from /usr/share/ruby/webrick/server.rb:32:in `start'
	from /usr/share/ruby/webrick/server.rb:160:in `start'
	from /usr/lib/pcsd/vendor/bundle/ruby/gems/rack-1.6.4/lib/rack/handler/webrick.rb:34:in `run'
	from /usr/lib/pcsd/ssl.rb:62:in `<main>'



After fix:
[root@virt-028 abrt]# rpm -q pcs
pcs-0.9.143-4.el7.x86_64
[root@virt-028 abrt]# service pcsd start ; sleep 5 ; service pcsd stop
Redirecting to /bin/systemctl start  pcsd.service
Redirecting to /bin/systemctl stop  pcsd.service
[root@virt-028 abrt]# tail -n5 /var/log/pcsd/pcsd.log 
virt-028.cluster-qe.lab.eng.brq.redhat.com - - [31/Aug/2015:23:31:15 CEST] "GET /remote/get_configs HTTP/1.1" 200 538
- -> /remote/get_configs
Shutting down (TERM)
[2015-08-31 23:31:15] INFO  going to shutdown ...
Shutting down (TERM)


No abrt generated

Comment 7 Radek Steiger 2015-09-08 11:51:54 UTC
BEFORE FIX:

[root@virt-142 ~]# rpm -q pcs
pcs-0.9.143-3.el7.x86_64

[root@virt-142 ~]# systemctl stop pcsd
You have new mail in /var/spool/mail/root

[root@virt-142 ~]# tail -n14 /var/log/pcsd/pcsd.log 
Shutting down (TERM)
[2015-09-08 13:45:14] INFO  going to shutdown ...
Shutting down (TERM)
/usr/lib/pcsd/vendor/bundle/ruby/gems/rack-1.6.4/lib/rack/handler/webrick.rb:48:in `shutdown': undefined method `shutdown' for nil:NilClass (NoMethodError)
	from /usr/lib/pcsd/ssl.rb:56:in `block in <main>'
	from /usr/share/ruby/webrick/server.rb:198:in `call'
	from /usr/share/ruby/webrick/server.rb:198:in `join'
	from /usr/share/ruby/webrick/server.rb:198:in `block (2 levels) in start'
	from /usr/share/ruby/webrick/server.rb:198:in `each'
	from /usr/share/ruby/webrick/server.rb:198:in `block in start'
	from /usr/share/ruby/webrick/server.rb:32:in `start'
	from /usr/share/ruby/webrick/server.rb:160:in `start'
	from /usr/lib/pcsd/vendor/bundle/ruby/gems/rack-1.6.4/lib/rack/handler/webrick.rb:34:in `run'
	from /usr/lib/pcsd/ssl.rb:62:in `<main>'

An abrt report is generated and a traceback appears in logs.



AFTER FIX:

[root@virt-142 pcsd]# rpm -q pcs
pcs-0.9.143-8.el7.x86_64

[root@virt-142 pcsd]# systemctl stop pcsd

[root@virt-142 pcsd]# tail -n3 /var/log/pcsd/pcsd.log 
Shutting down (TERM)
[2015-09-08 13:42:51] INFO  going to shutdown ...
Shutting down (TERM)

No abrt and no traceback in logs.



VERIFIED in pcs-0.9.143-8.el7

Comment 9 errata-xmlrpc 2015-11-19 09:38:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-2290.html


Note You need to log in before you can comment on or make changes to this bug.