SOLVED upgrade problem.

Status
Not open for further replies.

frouty

Dabbler
Joined
May 24, 2017
Messages
26
Hi,
I just upgrade my freenas from 9.x to 11.2. (not sure exact version number)
When I try the webgui I got the shark logo.
And a few seconds after i got this message :
'Connecting to NAS... Make sure the NAS system is powered on and connected to the network.'

I tried with firefox and chrome.

I rebooted the freenas

I can ping the IP of the freenas.

I can't ssh the freenas (but may be the service isn't on for security reason)

and nmap -A ip_freenas say

Starting Nmap 7.40 ( https://nmap.org ) at 2018-08-02 21:40 +11
Nmap scan report for freenas.lan (ip_freenas)
Host is up (0.00016s latency).
Not shown: 999 closed ports
PORT STATE SERVICE VERSION
80/tcp open http nginx
|_http-server-header: nginx
|_http-title: FreeNAS | Material UI
blabla

What can I try?

Thanks for all.
L.FRANCOIS
 

frouty

Dabbler
Joined
May 24, 2017
Messages
26
9.2
updated to
cat /etc/version
FreeNAS-11.2-BETA1 (c8ef82608)

I plug a video cable, a keyboard in the freenas server.
Freenas is booting. Get into a shell. service sshd onestart
Then connect in ssh from a client it's nicer than the server local console.
I made a rm -rf /var/log
mkdir /var/log/
service nginx restart
because I read that could solve the problem in an old forum post.
tail -f /var/log/nginx

Aug 2 23:15:10 freenas nginx: 2018/08/02 23:15:10 [error] 62712#100656: *21 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: 192.168.1.209, server: localhost, request: "GET /websocket HTTP/1.1", upstream: "http://127.0.0.1:6000/websocket", host: "192.168.1.105"
 

frouty

Dabbler
Joined
May 24, 2017
Messages
26
some other log :
tail -f /var/log/middlewared.log
File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/usr/local/www/freenasUI/freeadmin/sqlite3_ha/base.py", line 412, in execute
execute = self.locked_retry(Database.Cursor.execute, query, params)
File "/usr/local/www/freenasUI/freeadmin/sqlite3_ha/base.py", line 389, in locked_retry
rv = method(self, *args, **kwargs)
django.db.utils.OperationalError: no such column: system_alert.source

If it can help
 
D

dlavigne

Guest
We still need to know the hardware specs to make sure the system is capable of running 11.2.

Updating from 9.2 directly to 11.2 is too far, it is nearly 3 years worth of updates. This is why you are missing columns in your config db.

Assuming your hardware supports 11.2, you have 2 choices:

1. if you don't mind recreating your config, do a fresh install of 11.2.

2. if you really want your config, reboot into your original install, update to 9.3 and ensure everything works OK. Then update to 9.10 and ensure everything works OK. Then update to 11.2.
 
D

dlavigne

Guest
OK
If I've backup my config I can do a fresh 11.2 install and get back my config is that it?

No. You need to migrate the config db from 9.2 to 9.3 to 9.10 to 11.2. Otherwise you will get failures like you're seeing.

Altnerately, install from scratch and recreate your config.
 

frouty

Dabbler
Joined
May 24, 2017
Messages
26
2. if you really want your config, reboot into your original install, update to 9.3 and ensure everything works OK. Then update to 9.10 and ensure everything works OK. Then update to 11.2.
I didn't have a menu at boot start with version choice.
Just 'boot freenas' , 'memtest' blabla
 

frouty

Dabbler
Joined
May 24, 2017
Messages
26
No. You need to migrate the config db from 9.2 to 9.3 to 9.10 to 11.2. Otherwise you will get failures like you're seeing.

Altnerately, install from scratch and recreate your config.
So how can I boot back to 9.2?
 
D

dlavigne

Guest
You're right, that version is so old it was before boot environments. That is a very long time to wait to upgrade :-(
 

frouty

Dabbler
Joined
May 24, 2017
Messages
26
I find the way it's in "select boot environnement"
So I went back to 9.10.2.U6 and everything fine now.
And I was not in 9.2 but in 9.10 before upgrading to 11.2
Do you have any suggestion with this information?
 
D

dlavigne

Guest
That is better (and yes, exact versions and exact hardware make things much easier to figure out).

Do you have the same issue if you now try to update to 11.1 from 9.10.2-U6?
 

frouty

Dabbler
Joined
May 24, 2017
Messages
26
Do you have the same issue if you now try to update to 11.1 from 9.10.2-U6?
Yes !!!
So I update to freeNAS-11-STABLE. And now I am on :
FreeNAS-11.1-U5
And everythink seem to be fine.
Am not going to try the 11.2-STABLE ;)
I love freenas.
And many thanks.
 

TAC

Contributor
Joined
Feb 16, 2014
Messages
152
@frouty, do all your apps run just fine?
 

frouty

Dabbler
Joined
May 24, 2017
Messages
26
@frouty, do all your apps run just fine?
I can't say if everything is OK because I'm not 'fluent' in Freenas to make releable tests.
But samba share and plugin in jail for minidnla, nextcloud are OK
The new web gui doesn't work. Missing quite all the icons. I fall back to the legacy one.
And I got a warning New feature flags are available for volume mnemosys. Refer to the "Upgrading a ZFS Pool" section of the User Guide for instructions.
I saw somewhere how to solve that.
 
Status
Not open for further replies.
Top