Handle connection errors in FTW gracefully

Bug #1390818 reported by Raoul Snyman
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenLP
Fix Released
Low
Tomas Groth

Bug Description

We have had quite a lot of reports with the following traceback. We should handle bad connectivity better.

See http://support.openlp.org/scp/tickets.php?id=2566

*OpenLP Bug Report*
Version: {u'full': u'2.0.5', u'version': u'2.0.5', u'build': None}

--- Details of the Exception. ---

running first time wizard

--- Exception Traceback ---
Traceback (most recent call last):
File "/Users/martin/Projects/openlp/OpenLP-2.0.5/build/pyi.darwin/OpenLP/out00-PYZ.pyz/openlp.core.ui.firsttimeform", line 271, in onCurrentIdChanged
File "/Users/martin/Projects/openlp/OpenLP-2.0.5/build/pyi.darwin/OpenLP/out00-PYZ.pyz/openlp.core.ui.firsttimeform", line 396, in _preWizard
File "/Users/martin/Projects/openlp/OpenLP-2.0.5/build/pyi.darwin/OpenLP/out00-PYZ.pyz/openlp.core.ui.firsttimeform", line 353, in _getFileSize
File "/Users/martin/Projects/openlp/OpenLP-2.0.5/build/pyi.darwin/OpenLP/out00-PYZ.pyz/urllib", line 86, in urlopen
File "/Users/martin/Projects/openlp/OpenLP-2.0.5/build/pyi.darwin/OpenLP/out00-PYZ.pyz/urllib", line 207, in open
File "/Users/martin/Projects/openlp/OpenLP-2.0.5/build/pyi.darwin/OpenLP/out00-PYZ.pyz/urllib", line 450, in open_https
File "/Users/martin/Projects/openlp/OpenLP-2.0.5/build/pyi.darwin/OpenLP/out00-PYZ.pyz/urllib", line 371, in http_error
File "/Users/martin/Projects/openlp/OpenLP-2.0.5/build/pyi.darwin/OpenLP/out00-PYZ.pyz/urllib", line 634, in http_error_302
File "/Users/martin/Projects/openlp/OpenLP-2.0.5/build/pyi.darwin/OpenLP/out00-PYZ.pyz/urllib", line 660, in redirect_internal
File "/Users/martin/Projects/openlp/OpenLP-2.0.5/build/pyi.darwin/OpenLP/out00-PYZ.pyz/urllib", line 207, in open
File "/Users/martin/Projects/openlp/OpenLP-2.0.5/build/pyi.darwin/OpenLP/out00-PYZ.pyz/urllib", line 437, in open_https
File "/Users/martin/Projects/openlp/OpenLP-2.0.5/build/pyi.darwin/OpenLP/out00-PYZ.pyz/httplib", line 1102, in getreply
File "/Users/martin/Projects/openlp/OpenLP-2.0.5/build/pyi.darwin/OpenLP/out00-PYZ.pyz/httplib", line 1030, in getresponse
File "/Users/martin/Projects/openlp/OpenLP-2.0.5/build/pyi.darwin/OpenLP/out00-PYZ.pyz/httplib", line 407, in begin
File "/Users/martin/Projects/openlp/OpenLP-2.0.5/build/pyi.darwin/OpenLP/out00-PYZ.pyz/httplib", line 365, in _read_status
File "/Users/martin/Projects/openlp/OpenLP-2.0.5/build/pyi.darwin/OpenLP/out00-PYZ.pyz/socket", line 430, in readline
File "/Users/martin/Projects/openlp/OpenLP-2.0.5/build/pyi.darwin/OpenLP/out00-PYZ.pyz/ssl", line 241, in recv
File "/Users/martin/Projects/openlp/OpenLP-2.0.5/build/pyi.darwin/OpenLP/out00-PYZ.pyz/ssl", line 160, in read
IOError: [Errno socket error] [Errno 54] Connection reset by peer

--- System information ---
Platform: Darwin-14.0.0-x86_64-i386-32bit

--- Library Versions ---
Python: 2.7.3
Qt4: 4.8.3
Phonon: 4.4.0
PyQt4: 4.9.4
QtWebkit: 534.34
SQLAlchemy: 0.7.9
SQLAlchemy Migrate: 0.7.2
BeautifulSoup: 3.2.1
lxml: 2.3.2
Chardet: 2.0.1
PyEnchant: -
PySQLite: -
Mako: 0.7.2
pyUNO bridge: -

Related branches

Revision history for this message
Raoul Snyman (raoul-snyman) wrote :

http://support.openlp.org/scp/tickets.php?id=2565

*OpenLP Bug Report*Version: {'version': '2.1.1', 'full': '2.1.1', 'build':
None}--- Details of the Exception. ---Right after the Auto Detect, the next
dialog box, popped up and then an error. This is running off a flash drive
in the portable configuration. I see a reference to C:\Python33 which is
not installed on my machine. --- Exception Traceback ---Traceback (most
recent call last): File
D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\ui\firsttimeform.py, line
72, in run File c:\Python33\lib\urllib\request.py, line 181, in
urlretrieve File c:\Python33\lib\urllib\request.py, line 156, in urlopen
File c:\Python33\lib\urllib\request.py, line 475, in open File
c:\Python33\lib\urllib\request.py, line 587, in http_response File
c:\Python33\lib\urllib\request.py, line 507, in error File
c:\Python33\lib\urllib\request.py, line 447, in _call_chain File
c:\Python33\lib\urllib\request.py, line 692, in http_error_302 File
c:\Python33\lib\urllib\request.py, line 469, in open File
c:\Python33\lib\urllib\request.py, line 487, in _open File
c:\Python33\lib\urllib\request.py, line 447, in _call_chain File
c:\Python33\lib\urllib\request.py, line 1283, in https_open File
c:\Python33\lib\urllib\request.py, line 1253, in do_open File
c:\Python33\lib\http\client.py, line 1143, in getresponse File
c:\Python33\lib\http\client.py, line 354, in begin File
c:\Python33\lib\http\client.py, line 316, in _read_status File
c:\Python33\lib\socket.py, line 297, in readinto File
c:\Python33\lib\ssl.py, line 453, in recv_into File
c:\Python33\lib\ssl.py, line 327, in readConnectionResetError: [WinError
10054] An existing connection was forcibly closed by the remote host---
System information ---Platform: Windows-7-6.1.7601-SP1--- Library Versions
---Python: 3.3.2Qt4: 4.8.5Phonon: 4.4.0PyQt4: 4.10.3QtWebkit:
534.34SQLAlchemy: 0.9.4SQLAlchemy Migrate: -BeautifulSoup: 4.3.2lxml:
3.2.3Chardet: 2.2.1PyEnchant: 1.6.6Mako: 1.0.0pyICU: 1.5pyUNO bridge: -VLC:
2.1.5 Rincewind

Revision history for this message
Raoul Snyman (raoul-snyman) wrote :
Revision history for this message
Raoul Snyman (raoul-snyman) wrote :
Revision history for this message
Raoul Snyman (raoul-snyman) wrote :
Revision history for this message
Raoul Snyman (raoul-snyman) wrote :
Revision history for this message
Raoul Snyman (raoul-snyman) wrote :
Tomas Groth (tomasgroth)
Changed in openlp:
assignee: nobody → Tomas Groth (tomasgroth)
status: New → In Progress
Phill (phill-ridout)
Changed in openlp:
importance: Undecided → Low
Revision history for this message
Phill (phill-ridout) wrote :
Revision history for this message
Phill (phill-ridout) wrote :
Tim Bentley (trb143)
Changed in openlp:
milestone: none → 2.1.2
status: In Progress → Fix Committed
Tim Bentley (trb143)
Changed in openlp:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.