11.2 Beta 1 Login Issues

Status
Not open for further replies.
Joined
Jul 29, 2018
Messages
8
I had the same issue after going 11.2 Beta2.. "you know.. the one we though was STABLE". Had to re-enter my IP address in the loader config "connect monitor to box, wait for command line, select network config". I'm still waiting for next update.. the fix for the plugins to work.. nightmare!
 

HAJFAJV

Dabbler
Joined
Aug 8, 2018
Messages
30
If you want to use the new UI I don't know but you can login xxx.xxx.x.x/legacy with windows browsers just fine.
 

Robert Rico

Cadet
Joined
Feb 18, 2016
Messages
2
Having the same issue, updated last night from 9.10 to 11.2 and getting same error. I cant access UI via Safari, Chrome, Edge, Firefox. Tried clearing all browser cookies and cache etc. Tried going to xxx.xxx.x.x/legacy on all browsers. Still nothing.

I did notice that when inspecting and pulling up the console, Gateway is getting 502 bad gateway error.
 

Attachments

  • Screen Shot 2018-08-14 at 9.37.17 AM.jpg
    Screen Shot 2018-08-14 at 9.37.17 AM.jpg
    53.4 KB · Views: 669

HAJFAJV

Dabbler
Joined
Aug 8, 2018
Messages
30
Having the same issue, updated last night from 9.10 to 11.2 and getting same error. I can't access UI via Safari, Chrome, Edge, Firefox. Tried clearing all browser cookies and cache etc. Tried going to xxx.xxx.x.x/legacy on all browsers. Still nothing.

I did notice that when inspecting and pulling up the console, Gateway is getting 502 bad gateway error.

to be clear I did use ip/legacy/account/login?/next=/legacy/ ... this was the exact address my android went through and it worked just fine on fox and chrome. I have no idea if it makes a difference but just in case :)
 

Robert Rico

Cadet
Joined
Feb 18, 2016
Messages
2
to be clear I did use IP/legacy/account/login?/next=/legacy/ ... this was the exact address my android went through and it worked just fine on fox and chrome. I have no idea if it makes a difference but just in case :)
Thank you ! This helped get me passed the blue screen, but am now seeing this.
 

Attachments

  • Screen Shot 2018-08-14 at 1.05.20 PM.jpg
    Screen Shot 2018-08-14 at 1.05.20 PM.jpg
    39.9 KB · Views: 701

csjjpm

Contributor
Joined
Feb 16, 2015
Messages
126
Just changed train from 11.1-U6 to 11.2 and have this problem.
I've tried
192.x.x.x/legacy
and
192.x.x.x/legacy/account/login?/next=/legacy/

and neither give me a logon page
they both redirect me to the new UI.

Can someone please advise.
thanks
 

csjjpm

Contributor
Joined
Feb 16, 2015
Messages
126
Just read that 11.2-Stable is not Freenas stable. Is this true? Should I revert back to 11.1?
 

csjjpm

Contributor
Joined
Feb 16, 2015
Messages
126
I got in on another laptop and Firefox using legacy and get this error.

Code:
Request Method: GET
Request URL: http://192.168.0.49/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: Wed, 22 Aug 2018 08:53:12 +0100
Traceback
 
Code:
Environment:

Software Version: FreeNAS-11.2-BETA2 (f14b2ed0e)
Request Method: GET
Request URL: http://192.168.0.49/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 'jbophrg30gqu8ffqqrnqar23u9pj684d' META Variable Value
 
Joined
Jul 29, 2018
Messages
8
Just read that 11.2-Stable is not Freenas stable. Is this true? Should I revert back to 11.1?

Welcome to the world of Beta! You can try re-entering your IP address in the 11.2 Beta loader config "connect monitor to box, wait for command line, select network config". That's been happening.. the install looses your IP "192.168.0.49". But even when you get into the UI you'll find other issues we're all waiting for to be fixed, and defo NOT worth the hastle of upgrading to what is a Beta. My production system is down while I wait for a Stable, so I have no access to previous work and backups! Rediculous!
 

csjjpm

Contributor
Joined
Feb 16, 2015
Messages
126
I hooked up a screen and selected the boot env from keyboard and have got back in and changed back my Active boot env in the GUI. All fine for the time being.
 

BeatTheFreak

Dabbler
Joined
Aug 6, 2015
Messages
24
I hooked up a screen and selected the boot env from keyboard and have got back in and changed back my Active boot env in the GUI. All fine for the time being.

I'm getting the exact same errors as you when I try to go to the legacy page. Could you explain again what you did? I would really appreciate it
 

createcsoft

Cadet
Joined
Aug 22, 2018
Messages
2
Same problem, in the console of my browser I has this
  1. Request URL:
    ws://192.168.186.18/websocket
  2. Request Method:
    GET
  3. Status Code:
    502 Bad Gateway
  4. upload_2018-8-24_21-24-53.png
 

Paulfromsurrey

Dabbler
Joined
Nov 15, 2013
Messages
15
Have the same issue anyone have the solution for this


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 '5rspc1c2wi4654fsdsdsdfsdffs6daouxzpea'

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
 

csjjpm

Contributor
Joined
Feb 16, 2015
Messages
126
I'm getting the exact same errors as you when I try to go to the legacy page. Could you explain again what you did? I would really appreciate it

I rebooted my computer with a LCD screen attached and keyboard and interupted the boot so I could change the version of Freenas that booted. I changed it back to 11.1-u6 and then once I was back to the old version and GUI I went into 'System'/'Boot' and change the active OS.

I'll see if I can find a screenshot
 

hexley

Dabbler
Joined
Sep 8, 2017
Messages
11
Tried 11.2-beta2 yesterday, and am having this issue. New UI screen has a websocket that keeps failing with a Bad Gateway, and the URL (/legacy/) that is apparently supposed to show the old UI throws python exceptions. I also noticed a lot of exceptions spew to the console when booting up.

Switched back to 11.1-U6 no problem. I'm really glad the "boot environment" feature works so well. Very cool.

Anyone know if there's a bug filed for this already?

Edit: Nevermind, I created a bug. If it's a dup they can sort it out.
 
Last edited:

sully

Explorer
Joined
Aug 23, 2012
Messages
60
Wow, I made the mistake of upgrading w/o reading this first... why the heck was it named 11.2 STABLE in the train? Same issues as everyone else. New UI doesn't load and the /legacy throws Python errors.
 

cipehr

Cadet
Joined
Aug 27, 2018
Messages
4
I was running into the same issues after upgrading from 11.1-U6 to 11.2-beta2.

Tried 11.2-beta2 yesterday, and am having this issue. New UI screen has a websocket that keeps failing with a Bad Gateway, and the URL (/legacy/) that is apparently supposed to show the old UI throws python exceptions. I also noticed a lot of exceptions spew to the console when booting up.

Switched back to 11.1-U6 no problem. I'm really glad the "boot environment" feature works so well. Very cool.

Anyone know if there's a bug filed for this already?

Edit: never mind, I created a bug. If it's a dup they can sort it out.

Thanks for the bug hexley, I was able to diagnose and fix the issue on my machine, which i'll document here...

Warning i have no idea if this is a good idea for anyone other than me to run... so know what you're doing.

Because of @hexley's post i was able to find that my website db migration had failed. I looked at this file.
cat /data/update.failed
and saw this line at the end
Code:
django.db.migrations.exceptions.InconsistentMigrationHistory: Migration system.0022_cert_serial is applied before its dependency system.0021_merge_20180507_1315 on database 'default'.


i then found the directory of the django site from the stack trace above and changed to it:
/usr/local/www/freenasUI

its a django site, so i ran

# ./manage.py showmigrations
.....
system
[X] 0001_initial
....
[X] 0010_syscons_to_vt
[X] 0011_auto_20180219_1615
[X] 0012_add_filesystem_model
[X] 0013_rename_consulalerts_to_alertservice
[X] 0014_alert_default_settings
[X] 0015_alert
[X] 0016_encrypt_cloud_credentials
[ ] 0021_merge_20180507_1315
[ ] 0024_rename_bes
[X] 0022_cert_serial
[ ] 0018_merge_20180409_1538
[ ] 0019_increase_motd
...


(note this isn't my real output but an example since i didn't save it)

You can see the migration status and that somehow a later migration had been ran before and earlier.

at this point i looked in settings.py to find where my database was stored
grep 'DATABASE_PATH' -A 2 settings.py

which happend to be in /data/freenas-v1.db for me
i then hopefully backed up my database using
cp /data/freenas-v1.db /root/backup.db

and then edited the failing migration to change its dependencies
vi system/migrations/0022_cert_serial.py

i changed this line

dependencies = [
('system', '0021_merge_20180507_1315'),
]


to depend on the last successful migration, which was '0016_encrypt_cloud_credentials'

i then tried to revert the migration to the last known good one
./manage.py migrate system 0016_encrypt_cloud_credentials

this complained (but succeeded i think) that i need to make a merged migration, so i ran
./manage.py makemigrations --merge

which made a new migration 0026_merge_20180827_1833

and then i ran that migration which included everything

./manage.py migrate system 0026_merge_20180827_1833

and the ui started working.
i ran all the remaining migration using:
./manage.py migrate

and my system seemed quite happy.

Good luck
 

sully

Explorer
Joined
Aug 23, 2012
Messages
60
I was running into the same issues after upgrading from 11.1-U6 to 11.2-beta2.



Thanks for the bug hexley, I was able to diagnose and fix the issue on my machine, which i'll document here...

Warning i have no idea if this is a good idea for anyone other than me to run... so know what you're doing.

Because of @hexley's post i was able to find that my website db migration had failed. I looked at this file.
cat /data/update.failed
and saw this line at the end
Code:
django.db.migrations.exceptions.InconsistentMigrationHistory: Migration system.0022_cert_serial is applied before its dependency system.0021_merge_20180507_1315 on database 'default'.


i then found the directory of the django site from the stack trace above and changed to it:
/usr/local/www/freenasUI

its a django site, so i ran

# ./manage.py showmigrations
.....
system
[X] 0001_initial
....
[X] 0010_syscons_to_vt
[X] 0011_auto_20180219_1615
[X] 0012_add_filesystem_model
[X] 0013_rename_consulalerts_to_alertservice
[X] 0014_alert_default_settings
[X] 0015_alert
[X] 0016_encrypt_cloud_credentials
[ ] 0021_merge_20180507_1315
[ ] 0024_rename_bes
[X] 0022_cert_serial
[ ] 0018_merge_20180409_1538
[ ] 0019_increase_motd
...


(note this isn't my real output but an example since i didn't save it)

You can see the migration status and that somehow a later migration had been ran before and earlier.

at this point i looked in settings.py to find where my database was stored
grep 'DATABASE_PATH' -A 2 settings.py

which happend to be in /data/freenas-v1.db for me
i then hopefully backed up my database using
cp /data/freenas-v1.db /root/backup.db

and then edited the failing migration to change its dependencies
vi system/migrations/0022_cert_serial.py

i changed this line

dependencies = [
('system', '0021_merge_20180507_1315'),
]


to depend on the last successful migration, which was '0016_encrypt_cloud_credentials'

i then tried to revert the migration to the last known good one
./manage.py migrate system 0016_encrypt_cloud_credentials

this complained (but succeeded i think) that i need to make a merged migration, so i ran
./manage.py makemigrations --merge

which made a new migration 0026_merge_20180827_1833

and then i ran that migration which included everything

./manage.py migrate system 0026_merge_20180827_1833

and the ui started working.
i ran all the remaining migration using:
./manage.py migrate

and my system seemed quite happy.

Good luck

Thanks for the output, I checked my update.failed and had the same failure.

Code:
% cat update.failed
Traceback (most recent call last):
  File "/usr/local/www/freenasUI/manage.py", line 42, in <module>
	execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
	utility.execute()
  File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 359, in execute
	self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 294, in run_from_argv
	self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 345, in execute
	output = self.handle(*args, **options)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 86, in handle
	executor.loader.check_consistent_history(connection)
  File "/usr/local/lib/python3.6/site-packages/django/db/migrations/loader.py", line 292, in check_consistent_history
	connection.alias,
django.db.migrations.exceptions.InconsistentMigrationHistory: Migration system.0022_cert_serial is applied before its dependency system.0021_merge_20180507_1315 on database 'default'.


but had differing results from the showmigrations

Code:
system
 [X] 0001_initial
 [X] 0002_auto_consulalerts
 [X] 0003_auto_20170411_1445
 [X] 0004_auto_20170503_0608
 [X] 0005_auto_20170712_1137
 [X] 0006_update_tun_var_size
 [X] 0007_auto_201708211858
 [X] 0008_auto_20170906_2335
 [X] 0009_auto_20171023_2159
 [X] 0017_auto_20180219_1615
 [X] 0020_auto_20180502_1200
 [X] 0016_encrypt_cloud_credentials
 [ ] 0018_merge_20180409_1538
 [ ] 0019_increase_motd
 [ ] 0021_merge_20180507_1315
 [X] 0022_cert_serial
 [ ] 0022_cloud_sync
 [X] 0021_merge_20180612_2332
 [ ] 0010_syscons_to_vt
 [ ] 0011_auto_20180219_1615
 [ ] 0012_add_filesystem_model
 [ ] 0013_rename_consulalerts_to_alertservice
 [ ] 0014_alert_default_settings
 [ ] 0015_alert
 [ ] 0023_merge_20180612_2359
 [ ] 0024_rename_bes
 [ ] 0025_remove_screensaver


May just submit a bug report and rollback rather then risk blowing something up...
 
Last edited:
Status
Not open for further replies.
Top