Project

General

Profile

Bug #43000

Avatar?id=25780&size=50x50

Fix migration error that prevented upgrade from 11.1-U6 to 11.2-BETA2

Added by Ned Devine over 1 year ago. Updated over 1 year ago.

Status:
Done
Priority:
No priority
Assignee:
William Grzybowski
Category:
Middleware
Target version:
Seen in:
Severity:
Med High
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

After upgrading from 11.1-U6 to 11.2-BETA2, there is no longer a functional login screen.

Accessing the web UI shows a "Connecting to NAS" screen forever, and the browser console shows that it is trying and failing to open a WebSocket (502 Bad Gateway).

Accessing the old UI shows a python exception:

Traceback

Environment: Software Version: FreeNAS-11.2-BETA2 (f14b2ed0e) Request Method: GET Request URL: http://192.168.1.xxx/legacy/

Traceback: File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner 42.            
response = get_response(request) File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response 249.            
response = self._get_response(request) File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response 178.            
response = middleware_method(request, callback, callback_args, callback_kwargs) File "./freenasUI/freeadmin/middleware.py" in process_view 163.        
return login_required(view_func)(request, *view_args, **view_kwargs) File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view 23.                return view_func(request, *args, **kwargs) File "/usr/local/lib/python3.6/site-packages/django/views/decorators/cache.py" in _wrapped_view_func 57.        
response = view_func(request, *args, **kwargs) File "./freenasUI/freeadmin/site.py" in adminInterface 236.            
'menu_hook': appPool.get_top_menu(request), File "./freenasUI/freeadmin/apppool.py" in get_top_menu 45.        
arr = self._get_array("top_menu", None, request) File "./freenasUI/freeadmin/apppool.py" in _get_array 35.                    
method(arr, func(*args, **kwargs)) File "./freenasUI/vcp/hook.py" in top_menu 38.        
if vcp_enabled(): File "./freenasUI/vcp/utils.py" in vcp_enabled 33.    with client as c: File "./freenasUI/middleware/client.py" in __enter__ 20.        
local.client = Client() File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py" in __init__ 314.            
raise e File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py" in __init__ 307.            
self._ws.connect() File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py" in connect 169.                
rv = super(WSClient, self).connect() File "/usr/local/lib/python3.6/site-packages/ws4py/client/__init__.py" in connect 208.        
self.sock.connect(self.bind_addr) Exception Type: FileNotFoundError at /legacy/ Exception Value: [Errno 2] No such file or directory

Request information
GET

No GET data

POST

No POST data

FILES

No FILES data

COOKIES

          Variable        Value        

            csrftoken              '**************'            

            sessionid              'XXX'            

META

        Variable        Value    

Request Method:      GET    

    Request URL:    http://192.168.1.xxx/legacy/    

    Software Version:      FreeNAS-11.2-BETA2 (f14b2ed0e)    

    Exception Type:      FileNotFoundError    

    Exception Value:    
[Errno 2] No such file or directory

    Exception Location:      /usr/local/lib/python3.6/site-packages/ws4py/client/__init__.py in connect, line 208    

    Server time:      Sat, 25 Aug 2018 22:10:00 -0700 

Have tried both Firefox and Chrome. I don't have any firewalls in place that would be blocking the WebSocket.

Apparently others have experienced this or a similar bug in 11.2-BETA1.

See: https://forums.freenas.org/index.php?threads/11-2-beta-1-login-issues.68448/

Thanks.

freenas-bad-gateway.jpg (53.4 KB) freenas-bad-gateway.jpg Ned Devine, 08/26/2018 10:02 AM
freenas-connecting.png (290 KB) freenas-connecting.png Ned Devine, 08/26/2018 10:02 AM
update.failed (1.2 KB) update.failed Ned Devine, 08/27/2018 05:31 PM
25766
25773

Related issues

Has duplicate FreeNAS - Bug #43028: After upgrade to 11.2-BETA2: no web login possibleClosed
Has duplicate FreeNAS - Bug #44207: HP N40L - Fails to Upgrade to 11.2-Beta2Closed
Has duplicate FreeNAS - Bug #45160: upgraded from 11 to 11.2, UI will not load on any browser ro machineClosed

History

#1 Updated by Dru Lavigne over 1 year ago

  • Private changed from No to Yes
  • Reason for Blocked set to Need additional information from Author

Ned: please attach a debug (System -> Advanced -> Save debug) to this ticket.

#2 Avatar?id=25780&size=24x24 Updated by Ned Devine over 1 year ago

  • File debug-nas1-20180826145946.tgz added

Dru Lavigne wrote:

Ned: please attach a debug (System -> Advanced -> Save debug) to this ticket.

Done.

#3 Updated by Dru Lavigne over 1 year ago

  • Category changed from GUI (new) to Middleware
  • Assignee changed from Release Council to William Grzybowski

#4 Updated by William Grzybowski over 1 year ago

  • Status changed from Unscreened to Blocked

We are gonna need a debug from the running 11.2-BETA2.

Can you SSH in while its presenting the problem?

  1. ixdiagnose -d /root -s -F

That should generate the debug file in /root

#5 Avatar?id=25780&size=24x24 Updated by Ned Devine over 1 year ago

  • File ixdiagnose.tgz added

William Grzybowski wrote:

We are gonna need a debug from the running 11.2-BETA2.

Here it is.

#6 Updated by William Grzybowski over 1 year ago

Ned Devine wrote:

William Grzybowski wrote:

We are gonna need a debug from the running 11.2-BETA2.

Here it is.

There is some database migration issue. Do you have a /data/update.failed file? If so, can you attach us?
Unfortunately debug does not have it.

#7 Updated by William Grzybowski over 1 year ago

  • Has duplicate Bug #43028: After upgrade to 11.2-BETA2: no web login possible added

#8 Updated by William Grzybowski over 1 year ago

  • File deleted (debug-nas1-20180826145946.tgz)

#9 Updated by William Grzybowski over 1 year ago

  • File deleted (ixdiagnose.tgz)

#10 Updated by William Grzybowski over 1 year ago

  • Private changed from Yes to No

#11 Avatar?id=25780&size=24x24 Updated by Ned Devine over 1 year ago

William Grzybowski wrote:

Ned Devine wrote:

William Grzybowski wrote:

We are gonna need a debug from the running 11.2-BETA2.

Here it is.

There is some database migration issue. Do you have a /data/update.failed file? If so, can you attach us?
Unfortunately debug does not have it.

Attached.

#12 Updated by William Grzybowski over 1 year ago

Ned Devine wrote:

William Grzybowski wrote:

Ned Devine wrote:

William Grzybowski wrote:

We are gonna need a debug from the running 11.2-BETA2.

Here it is.

There is some database migration issue. Do you have a /data/update.failed file? If so, can you attach us?
Unfortunately debug does not have it.

Attached.

Thanks for the file.

Database migration changes required for U6 made the upgrade impossible to BETA2.
It should be OK to upgrade once BETA3 is released though.

8d81af70c02c18

#13 Updated by Dru Lavigne over 1 year ago

  • Target version changed from Backlog to 11.2-BETA3

#14 Updated by William Grzybowski over 1 year ago

  • Status changed from Blocked to Ready for Testing
  • Severity changed from New to Med High
  • Reason for Blocked deleted (Need additional information from Author)
  • Needs Merging changed from Yes to No

#15 Updated by Dru Lavigne over 1 year ago

  • Subject changed from No login screen to Fix migration that prevented upgrade from 11.1-U6 to 11.2-BETA2
  • Needs Doc changed from Yes to No

#19 Updated by Bonnie Follweiler over 1 year ago

  • Status changed from Ready for Testing to Passed Testing
  • Needs QA changed from Yes to No

Passed Test in FreeNAS 11.2 Master 201808290900

#20 Updated by Dru Lavigne over 1 year ago

  • Subject changed from Fix migration that prevented upgrade from 11.1-U6 to 11.2-BETA2 to Fix migration error that prevented upgrade from 11.1-U6 to 11.2-BETA2
  • Status changed from Passed Testing to Done

#21 Updated by Dru Lavigne over 1 year ago

  • Has duplicate Bug #44207: HP N40L - Fails to Upgrade to 11.2-Beta2 added

#22 Updated by Dru Lavigne over 1 year ago

  • Has duplicate Bug #45160: upgraded from 11 to 11.2, UI will not load on any browser ro machine added

Also available in: Atom PDF