Python errors on mirroring boot

Status
Not open for further replies.

rpsip

Cadet
Joined
Jul 4, 2018
Messages
6
After over 3 uninterrupted years of running 9.3 without problems (and no downtime!) I upgraded from 9.3 to 9.10 using the GUI and then encountered the mountroot problem after a reboot. (USB 2 drive; tried USB 3 and USB 2 ports.) I was unable to go back to 9.3 with the same USB hardware and ports. After losing some sleep and hair, I updated to 11.1 (manual install from ISO), uploaded the config file (which I had thankfully downloaded just before updating to 9.10) and everything worked. To avoid this problem from recurring, I decided to mirror the boot volume to a second identical USB I had lying around. During the mirroring process, I encountered these Python errors:

Code:
Jul  6 20:50:44 freenas ugen0.2: <JetFlash Mass Storage Device> at usbus0
Jul  6 20:50:44 freenas umass1 on uhub1
Jul  6 20:50:44 freenas umass1: <JetFlash Mass Storage Device, class 0/0, rev 2.00/1.00, addr 1> on usbus0
Jul  6 20:50:44 freenas umass1:  SCSI over Bulk-Only; quirks = 0xc100
Jul  6 20:50:44 freenas umass1:8:1: Attached to scbus8
Jul  6 20:50:44 freenas da1 at umass-sim1 bus 1 scbus8 target 0 lun 0
Jul  6 20:50:44 freenas da1: <JetFlash Transcend 8GB 8.07> Removable Direct Access SPC-2 SCSI device
Jul  6 20:50:44 freenas da1: Serial Number D4OCTRQ1
Jul  6 20:50:44 freenas da1: 40.000MB/s transfers
Jul  6 20:50:44 freenas da1: 7656MB (15679488 512 byte sectors)
Jul  6 20:50:44 freenas da1: quirks=0x12<NO_6_BYTE,NO_RC16>
Jul  6 20:50:44 freenas GEOM: da1: the secondary GPT header is not in the last LBA.
Jul  6 20:50:44 freenas GEOM: iso9660/FreeNAS: the secondary GPT header is not in the last LBA.
Jul  6 20:56:02 freenas smartd[4343]: Unable to register device /dev/da1 (no Directive -d removable). Exiting.
Jul  6 20:58:16 freenas GEOM: iso9660/FreeNAS: the secondary GPT header is not in the last LBA.
Jul  6 20:58:22 freenas GEOM: iso9660/FreeNAS: the secondary GPT header is not in the last LBA.
Jul  6 20:58:22 freenas GEOM: iso9660/FreeNAS: the primary GPT table is corrupt or invalid.
Jul  6 20:58:22 freenas GEOM: iso9660/FreeNAS: using the secondary instead -- recovery strongly advised.
Jul  6 20:58:36 freenas ZFS: vdev state changed, pool_guid=14178281285816877136 vdev_guid=17501068207157516320
Jul  6 20:58:44 freenas uwsgi: [sentry.errors:648] Sentry responded with an error: HTTP Error 502: Bad Gateway (url: https://sentry.ixsystems.com/api/2/store/)
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/raven/transport/threaded.py", line 174, in send_sync
   super(ThreadedHTTPTransport, self).send(data, headers)
  File "/usr/local/lib/python3.6/site-packages/raven/transport/http.py", line 47, in send
   ca_certs=self.ca_certs,
  File "/usr/local/lib/python3.6/site-packages/raven/utils/http.py", line 66, in urlopen
   return opener.open(url, data, timeout)
  File "/usr/local/lib/python3.6/urllib/request.py", line 532, in open
   response = meth(req, response)
  File "/usr/local/lib/python3.6/urllib/request.py", line 642, in http_response
   'http', request, response, code, msg, hdrs)
  File "/usr/local/lib/python3.6/urllib/request.py", line 570, in error
   return self._call_chain(*args)
  File "/usr/local/lib/python3.6/url
Jul  6 20:58:44 freenas uwsgi: lib/request.py", line 504, in _call_chain
   result = func(*args)
  File "/usr/local/lib/python3.6/urllib/request.py", line 650, in http_error_default
   raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 502: Bad Gateway
Jul  6 20:58:44 freenas uwsgi: [sentry.errors.uncaught:670] ['timeout: timed out', '  File "django/core/handlers/exception.py", line 42, in inner', '  File "django/core/handlers/base.py", line 249, in _legacy_get_response', '  File "django/core/handlers/base.py", line 178, in _get_response', '  File "freenasUI/freeadmin/middleware.py", line 162, in process_view', '  File "django/contrib/auth/decorators.py", line 23, in _wrapped_view', '  File "freenasUI/system/views.py", line 514, in bootenv_pool_attach_progress', '  File "freenasUI/middleware/client.py", line 20, in __enter__', '  File "middlewared/client/client.py", line 311, in __init__', '  File "middlewared/client/client.py", line 304, in __init__', '  File "middlewared/client/client.py", line 169, in connect', '  File "ws4py/client/__init__.py", line 215, in connect']
Jul  6 20:58:55 freenas uwsgi: [sentry.errors:648] Sentry responded with an error: HTTP Error 502: Bad Gateway (url: https://sentry.ixsystems.com/api/2/store/)
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/raven/transport/threaded.py", line 174, in send_sync
   super(ThreadedHTTPTransport, self).send(data, headers)
  File "/usr/local/lib/python3.6/site-packages/raven/transport/http.py", line 47, in send
   ca_certs=self.ca_certs,
  File "/usr/local/lib/python3.6/site-packages/raven/utils/http.py", line 66, in urlopen
   return opener.open(url, data, timeout)
  File "/usr/local/lib/python3.6/urllib/request.py", line 532, in open
   response = meth(req, response)
  File "/usr/local/lib/python3.6/urllib/request.py", line 642, in http_response
   'http', request, response, code, msg, hdrs)
  File "/usr/local/lib/python3.6/urllib/request.py", line 570, in error
   return self._call_chain(*args)
  File "/usr/local/lib/python3.6/url
Jul  6 20:58:55 freenas uwsgi: lib/request.py", line 504, in _call_chain
   result = func(*args)
  File "/usr/local/lib/python3.6/urllib/request.py", line 650, in http_error_default
   raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 502: Bad Gateway
Jul  6 20:58:55 freenas uwsgi: [sentry.errors.uncaught:670] ['timeout: timed out', '  File "django/core/handlers/exception.py", line 42, in inner', '  File "django/core/handlers/base.py", line 249, in _legacy_get_response', '  File "django/core/handlers/base.py", line 178, in _get_response', '  File "freenasUI/freeadmin/middleware.py", line 162, in process_view', '  File "django/contrib/auth/decorators.py", line 23, in _wrapped_view', '  File "freenasUI/system/views.py", line 514, in bootenv_pool_attach_progress', '  File "freenasUI/middleware/client.py", line 20, in __enter__', '  File "middlewared/client/client.py", line 311, in __init__', '  File "middlewared/client/client.py", line 304, in __init__', '  File "middlewared/client/client.py", line 169, in connect', '  File "ws4py/client/__init__.py", line 215, in connect']
Jul  6 20:59:06 freenas uwsgi: [sentry.errors:648] Sentry responded with an error: HTTP Error 502: Bad Gateway (url: https://sentry.ixsystems.com/api/2/store/)
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/raven/transport/threaded.py", line 174, in send_sync
   super(ThreadedHTTPTransport, self).send(data, headers)
  File "/usr/local/lib/python3.6/site-packages/raven/transport/http.py", line 47, in send
   ca_certs=self.ca_certs,
  File "/usr/local/lib/python3.6/site-packages/raven/utils/http.py", line 66, in urlopen
   return opener.open(url, data, timeout)
  File "/usr/local/lib/python3.6/urllib/request.py", line 532, in open
   response = meth(req, response)
  File "/usr/local/lib/python3.6/urllib/request.py", line 642, in http_response
   'http', request, response, code, msg, hdrs)
  File "/usr/local/lib/python3.6/urllib/request.py", line 570, in error
   return self._call_chain(*args)
  File "/usr/local/lib/python3.6/url
Jul  6 20:59:06 freenas uwsgi: lib/request.py", line 504, in _call_chain
   result = func(*args)
  File "/usr/local/lib/python3.6/urllib/request.py", line 650, in http_error_default
   raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 502: Bad Gateway
Jul  6 20:59:06 freenas uwsgi: [sentry.errors.uncaught:670] ['timeout: timed out', '  File "django/core/handlers/exception.py", line 42, in inner', '  File "django/core/handlers/base.py", line 249, in _legacy_get_response', '  File "django/core/handlers/base.py", line 178, in _get_response', '  File "freenasUI/freeadmin/middleware.py", line 162, in process_view', '  File "django/contrib/auth/decorators.py", line 23, in _wrapped_view', '  File "freenasUI/system/views.py", line 514, in bootenv_pool_attach_progress', '  File "freenasUI/middleware/client.py", line 20, in __enter__', '  File "middlewared/client/client.py", line 311, in __init__', '  File "middlewared/client/client.py", line 304, in __init__', '  File "middlewared/client/client.py", line 169, in connect', '  File "ws4py/client/__init__.py", line 215, in connect']
Jul  6 20:59:18 freenas uwsgi: [sentry.errors:648] Sentry responded with an error: HTTP Error 502: Bad Gateway (url: https://sentry.ixsystems.com/api/2/store/)
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/raven/transport/threaded.py", line 174, in send_sync
   super(ThreadedHTTPTransport, self).send(data, headers)
  File "/usr/local/lib/python3.6/site-packages/raven/transport/http.py", line 47, in send
   ca_certs=self.ca_certs,
  File "/usr/local/lib/python3.6/site-packages/raven/utils/http.py", line 66, in urlopen
   return opener.open(url, data, timeout)
  File "/usr/local/lib/python3.6/urllib/request.py", line 532, in open
   response = meth(req, response)
  File "/usr/local/lib/python3.6/urllib/request.py", line 642, in http_response
   'http', request, response, code, msg, hdrs)
  File "/usr/local/lib/python3.6/urllib/request.py", line 570, in error
   return self._call_chain(*args)
  File "/usr/local/lib/python3.6/url
Jul  6 20:59:18 freenas uwsgi: lib/request.py", line 504, in _call_chain
   result = func(*args)
  File "/usr/local/lib/python3.6/urllib/request.py", line 650, in http_error_default
   raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 502: Bad Gateway
Jul  6 20:59:18 freenas uwsgi: [sentry.errors.uncaught:670] ['timeout: timed out', '  File "django/core/handlers/exception.py", line 42, in inner', '  File "django/core/handlers/base.py", line 249, in _legacy_get_response', '  File "django/core/handlers/base.py", line 178, in _get_response', '  File "freenasUI/freeadmin/middleware.py", line 162, in process_view', '  File "django/contrib/auth/decorators.py", line 23, in _wrapped_view', '  File "freenasUI/system/views.py", line 514, in bootenv_pool_attach_progress', '  File "freenasUI/middleware/client.py", line 20, in __enter__', '  File "middlewared/client/client.py", line 311, in __init__', '  File "middlewared/client/client.py", line 304, in __init__', '  File "middlewared/client/client.py", line 169, in connect', '  File "ws4py/client/__init__.py", line 215, in connect']
Jul  6 20:59:29 freenas uwsgi: [sentry.errors:648] Sentry responded with an error: HTTP Error 502: Bad Gateway (url: https://sentry.ixsystems.com/api/2/store/)
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/raven/transport/threaded.py", line 174, in send_sync
   super(ThreadedHTTPTransport, self).send(data, headers)
  File "/usr/local/lib/python3.6/site-packages/raven/transport/http.py", line 47, in send
   ca_certs=self.ca_certs,
  File "/usr/local/lib/python3.6/site-packages/raven/utils/http.py", line 66, in urlopen
   return opener.open(url, data, timeout)
  File "/usr/local/lib/python3.6/urllib/request.py", line 532, in open
   response = meth(req, response)
  File "/usr/local/lib/python3.6/urllib/request.py", line 642, in http_response
   'http', request, response, code, msg, hdrs)
  File "/usr/local/lib/python3.6/urllib/request.py", line 570, in error
   return self._call_chain(*args)
  File "/usr/local/lib/python3.6/url
Jul  6 20:59:29 freenas uwsgi: lib/request.py", line 504, in _call_chain
   result = func(*args)
  File "/usr/local/lib/python3.6/urllib/request.py", line 650, in http_error_default
   raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 502: Bad Gateway
Jul  6 20:59:29 freenas uwsgi: [sentry.errors.uncaught:670] ['timeout: timed out', '  File "django/core/handlers/exception.py", line 42, in inner', '  File "django/core/handlers/base.py", line 249, in _legacy_get_response', '  File "django/core/handlers/base.py", line 178, in _get_response', '  File "freenasUI/freeadmin/middleware.py", line 162, in process_view', '  File "django/contrib/auth/decorators.py", line 23, in _wrapped_view', '  File "freenasUI/system/views.py", line 514, in bootenv_pool_attach_progress', '  File "freenasUI/middleware/client.py", line 20, in __enter__', '  File "middlewared/client/client.py", line 311, in __init__', '  File "middlewared/client/client.py", line 304, in __init__', '  File "middlewared/client/client.py", line 169, in connect', '  File "ws4py/client/__init__.py", line 215, in connect']
Jul  6 20:59:53 freenas kernel: arp: 192.168.1.23 moved from f8:7b:8c:20:ab:7f to f8:7b:8c:20:ab:7a on igb0


After a few aggravating minutes, the flashing red alert turned green. Is there anything else I should check or be concerned about? FWIW, both USB 2 drives are connected to USB 3 ports.
 

rpsip

Cadet
Joined
Jul 4, 2018
Messages
6
It seems it's trying to get out to the Internet. Is your default gateway and DNS servers correctly set?

Yes, I think everything is set up properly. Looks like one of the URLs it is trying to get to is https://sentry.ixsystems.com/api/2/store/, which also returns an error in my desktop browser (connected via same local topology). That leaves me wondering why it needs to get to that URL at all during a boot mirroring process. o_O

My FreeNAS server is connected to my LAN using two of its four gigabit ports. Would that be an issue??

Also, when uploading my 9.3 config file to my 11.1 setup, there were several Python errors, mostly having to do with what looked to be like a regex interpretation issue. Perhaps because the 9.3 config file was written with an earlier version of Python (Python 2.x?) than what the Python version FreeNAS 11.1 operates with (Python 3.x?)?
 
Last edited:
Status
Not open for further replies.
Top