Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1346293

Summary: httpd failed during pushing package
Product: [Community] Spacewalk Reporter: Pavel Studeník <pstudeni>
Component: ServerAssignee: Tomáš Kašpárek <tkasparek>
Status: CLOSED DUPLICATE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.5   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-26 11:53:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1484117    

Description Pavel Studeník 2016-06-14 13:20:12 UTC
Description of problem:
Sometime I get Internal Server Error during pushing package. Behaviour is different with http and https.

Version-Release number of selected component (if applicable):
spacewalk-backend-sql-2.6.1-1.fc23.noarch
python-cryptography-1.2.1-1.fc23.x86_64

How reproducible:
sometimes on Fedora 23

Steps to Reproduce:
1. push packages to satellite

>> rhnpush  -c channel --nosig package.x86_64.rpm --server=http://..
Internal Server Error

>> rhnpush  -c channel --nosig package.x86_64.rpm --server=https ://..
Connecting to https://.../APP
Package /../package.x86_64.rpm Not Found on RHN Server -- Uploading
Uploading package /../package.x86_64.rpm
Using POST request
Waiting 3 seconds and trying again...
Uploading package /../package.x86_64.rpm
Using POST request
Waiting 4 seconds and trying again...
Uploading package /../package.x86_64.rpm
Using POST request
Waiting 5 seconds and trying again...
Giving up after 3 attempts

Additional info:
>> tail /var/log/httpd/error_log
 mod_wsgi (pid=31600): Exception occurred processing WSGI script '/usr/share/rhn/wsgi/package_push.py'.
 Traceback (most recent call last):
   File "/usr/share/rhn/wsgi/package_push.py", line 23, in application
     "spacewalk.server.apacheUploadServer")
   File "/usr/share/rhn/wsgi/wsgiHandler.py", line 35, in handle
     parseServ = get_handle(servertype, "HeaderParserHandler")
   File "/usr/share/rhn/wsgi/wsgiHandler.py", line 63, in get_handle
     handler_module = __import__(servertype, globals(), locals(), [servertype.split('.')[-1]])
   File "/usr/lib/python2.7/site-packages/spacewalk/server/apacheUploadServer.py", line 21, in <module>
     import rhnSession
   File "/usr/lib/python2.7/site-packages/spacewalk/server/rhnSession.py", line 28, in <module>
     import rhnSQL
   File "/usr/lib/python2.7/site-packages/spacewalk/server/rhnSQL/__init__.py", line 24, in <module>
     from spacewalk.common.rhnTB import add_to_seclist
   File "/usr/lib/python2.7/site-packages/spacewalk/common/rhnTB.py", line 27, in <module>
     from rhn.connections import idn_puny_to_unicode
   File "/usr/lib/python2.7/site-packages/rhn/connections.py", line 14, in <module>
     from rhn import SSL
   File "/usr/lib/python2.7/site-packages/rhn/SSL.py", line 26, in <module>
     from OpenSSL import SSL
   File "/usr/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
     from OpenSSL import rand, crypto, SSL
   File "/usr/lib/python2.7/site-packages/OpenSSL/rand.py", line 11, in <module>
     from OpenSSL._util import (
   File "/usr/lib/python2.7/site-packages/OpenSSL/_util.py", line 6, in <module>
     from cryptography.hazmat.bindings.openssl.binding import Binding
   File "/usr/lib64/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 205, in <module>
     Binding.init_static_locks()
   File "/usr/lib64/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 161, in init_static_locks
     cls._ensure_ffi_initialized()
   File "/usr/lib64/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 156, in _ensure_ffi_initialized
     cls._register_osrandom_engine()
   File "/usr/lib64/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 121, in _register_osrandom_engine
     _openssl_assert(cls.lib, cls.lib.ERR_peek_error() == 0)
   File "/usr/lib64/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 43, in _openssl_assert
     errors
 InternalError: Unknown OpenSSL error. Please file an issue at https://github.com/pyca/cryptography/issues with information on how to reproduce this. ([_OpenSSLError(code=151441516L, lib=9, func=109, reason=108), _OpenSSLError(code=151441516L, lib=9, func=109, reason=108)])
 mod_wsgi (pid=31612): Exception occurred processing WSGI script '/usr/share/rhn/wsgi/app.py'.
 Traceback (most recent call last):
   File "/usr/share/rhn/wsgi/app.py", line 21, in application
     return wsgiHandler.handle(environ, start_response, "app", "server.app")
   File "/usr/share/rhn/wsgi/wsgiHandler.py", line 35, in handle
     parseServ = get_handle(servertype, "HeaderParserHandler")
   File "/usr/share/rhn/wsgi/wsgiHandler.py", line 63, in get_handle
     handler_module = __import__(servertype, globals(), locals(), [servertype.split('.')[-1]])
   File "/usr/lib/python2.7/site-packages/spacewalk/server/apacheServer.py", line 17, in <module>
     from apacheHandler import apacheHandler
   File "/usr/lib/python2.7/site-packages/spacewalk/server/apacheHandler.py", line 21, in <module>
     from spacewalk.common import apache, rhnApache, rhnTB, rhnFlags
   File "/usr/lib/python2.7/site-packages/spacewalk/common/rhnTB.py", line 27, in <module>
     from rhn.connections import idn_puny_to_unicode
   File "/usr/lib/python2.7/site-packages/rhn/connections.py", line 14, in <module>
     from rhn import SSL
   File "/usr/lib/python2.7/site-packages/rhn/SSL.py", line 26, in <module>
     from OpenSSL import SSL
   File "/usr/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
     from OpenSSL import rand, crypto, SSL
   File "/usr/lib/python2.7/site-packages/OpenSSL/rand.py", line 11, in <module>
     from OpenSSL._util import (
   File "/usr/lib/python2.7/site-packages/OpenSSL/_util.py", line 6, in <module>
     from cryptography.hazmat.bindings.openssl.binding import Binding
   File "/usr/lib64/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 205, in <module>
     Binding.init_static_locks()
   File "/usr/lib64/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 161, in init_static_locks
     cls._ensure_ffi_initialized()
   File "/usr/lib64/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 156, in _ensure_ffi_initialized
     cls._register_osrandom_engine()
   File "/usr/lib64/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 121, in _register_osrandom_engine
     _openssl_assert(cls.lib, cls.lib.ERR_peek_error() == 0)
   File "/usr/lib64/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 43, in _openssl_assert
     errors
 InternalError: Unknown OpenSSL error. Please file an issue at https://github.com/pyca/cryptography/issues with information on how to reproduce this. ([_OpenSSLError(code=151441516L, lib=9, func=109, reason=108), _OpenSSLError(code=151441516L, lib=9, func=109, reason=108)])

Comment 1 Pavel Studeník 2017-07-26 11:53:20 UTC

*** This bug has been marked as a duplicate of bug 1382311 ***

Comment 2 Eric Herget 2017-09-28 18:06:48 UTC
This BZ closed some time during 2.5, 2.6 or 2.7.  Adding to 2.7 tracking bug.