Jump to content

Polisy version mismatch message


whywork

Recommended Posts

Hi,

I use and enjoy my ISY devices every day.

Get this message when trying to update/upgrade Polisy from ssh/command line - see below

 

Last login: Tue Nov  3 02:00:53 2020 from 192.168.1.66 FreeBSD 12.1-RELEASE-p1 r355229 POLISY 

Welcome to Polisy!
[admin@polisy ~]$ sudo pkg update
Password:
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
Updating udi repository catalogue...
Fetching meta.conf: 100%    163 B   0.2kB/s    00:01    
Fetching packagesite.txz: 100%   98 KiB  99.9kB/s    00:01    
Processing entries:   0%
Newer FreeBSD version for package p5-Locale-libintl:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1202000
- running kernel: 1201000
Ignore the mismatch and continue? [y/N]: 
 

Suggestions?

Thanks

Link to comment
Share on other sites

15 minutes ago, whywork said:

Hi,

I use and enjoy my ISY devices every day.

Get this message when trying to update/upgrade Polisy from ssh/command line - see below

 

Last login: Tue Nov  3 02:00:53 2020 from 192.168.1.66 FreeBSD 12.1-RELEASE-p1 r355229 POLISY 

Welcome to Polisy!
[admin@polisy ~]$ sudo pkg update
Password:
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
Updating udi repository catalogue...
Fetching meta.conf: 100%    163 B   0.2kB/s    00:01    
Fetching packagesite.txz: 100%   98 KiB  99.9kB/s    00:01    
Processing entries:   0%
Newer FreeBSD version for package p5-Locale-libintl:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1202000
- running kernel: 1201000
Ignore the mismatch and continue? [y/N]: 
 

Suggestions?

Thanks

I read somewhere on this forum that the Polisy will update itself upon boot.  I ran across this same issue recently (possibly with the same package, I don't recall) so I tested this by rebooting my Polisy.  The issue went away.  My guess is that it's probably fine to choose "y", but I stayed within the UDI web interface (by rebooting from the menu).

EDIT: I just checked, it was the same package.

Link to comment
Share on other sites

1 hour ago, whywork said:

Hi,

I use and enjoy my ISY devices every day.

Get this message when trying to update/upgrade Polisy from ssh/command line - see below

 

Last login: Tue Nov  3 02:00:53 2020 from 192.168.1.66 FreeBSD 12.1-RELEASE-p1 r355229 POLISY 

Welcome to Polisy!
[admin@polisy ~]$ sudo pkg update
Password:
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
Updating udi repository catalogue...
Fetching meta.conf: 100%    163 B   0.2kB/s    00:01    
Fetching packagesite.txz: 100%   98 KiB  99.9kB/s    00:01    
Processing entries:   0%
Newer FreeBSD version for package p5-Locale-libintl:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1202000
- running kernel: 1201000
Ignore the mismatch and continue? [y/N]: 
 

Suggestions?

Thanks

There are no updates for polisy at this time

Link to comment
Share on other sites

Hi @Michel KohanimThanks for looking into this. I tried sudo pkg upgrade. It did not appear to upgrade anything but I do not get the version mis-match error.

Should the freebsd version be:  12.1-RELEASE-p10 ?

[admin@polisy ~]$ sudo pkg upgrade
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
Updating udi repository catalogue...
udi repository is up to date.
All repositories are up to date.
Checking for upgrades (0 candidates): 100%
Processing candidates (0 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
[admin@polisy ~]$
[admin@polisy ~]$
[admin@polisy ~]$ freebsd-version
12.1-RELEASE-p10
 

Link to comment
Share on other sites

On 11/4/2020 at 11:38 AM, gviliunas said:

@Michel Kohanim

Ah ha...I rebooted Polisy and now get the proper "No updates available ...: message. 

Everything working great!  Thanks for your help

I reported this issue a week ago to Michel.  I have done testing since.  If I check for updates now it works but every morning when I get up I dont get the green bar.  But if I reboot polisy then I get the green NO UPDATES AVAILABLE bar.   Try again later in the day or at night its fine, but the next morning same thing.  No bar. 

This started after the last Polisy updates I ran about 1-2 weeks ago.

Link to comment
Share on other sites

Maybe I declared victory too early.... I am actually seeing the same behavior as @macjeff. After a Polyglot restart, you get the green "No updates available..."  bar  BUT, one day later, the bar no longer appears. Past history has been for updates to be released at least every week. I plan to wait a few weeks and see if any updates are received and successfully installed.

 

@Michel Kohanim, You mentioned optionally upgrading to freebsd 12.2. I started down that path using freebsd-update but received a warning that I would be overwriting the "polisy" kernel with a generic version. I stopped when I saw the warning. Do you have a procedure to safely perform FreeBSD upgrades?

Link to comment
Share on other sites

Something still funny.

sudo pkg upgrade yesterday. After a cold boot today:  - version mismatch remains

Last login: Thu Nov  5 05:17:39 2020 from 192.168.1.66
FreeBSD 12.1-RELEASE-p1 r355229 POLISY

Welcome to Polisy!
[admin@polisy ~]$ sudo pkg update
Password:
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
Updating udi repository catalogue...
Fetching meta.conf: 100%    163 B   0.2kB/s    00:01
Fetching packagesite.txz: 100%   97 KiB  99.5kB/s    00:01
Processing entries:   0%
Newer FreeBSD version for package p5-Locale-libintl:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1202000
- running kernel: 1201000
Ignore the mismatch and continue? [y/N]:
pkg: repository udi contains packages for wrong OS version: FreeBSD:12:amd64
Processing entries: 100%
Unable to update repository udi
Error updating repositories!
[admin@polisy ~]$ sudo pkg upgrade
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
Updating udi repository catalogue...
udi repository is up to date.
All repositories are up to date.
Checking for upgrades (0 candidates): 100%
Processing candidates (0 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
[admin@polisy ~]$ sudo pkg update
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
Updating udi repository catalogue...
udi repository is up to date.
All repositories are up to date.
[admin@polisy ~]$
 

Link to comment
Share on other sites

Sorry @Michel KohanimI think the url here:  https://pkg.isy.io/script/update121  is bad, I get a 404 error when trying this

 

[admin@polisy ~]$ curl -s https://pkg.isy.io/script/update121 | sudo bash
Password:
bash: line 1: html: No such file or directory
bash: line 2: syntax error near unexpected token `<'
'ash: line 2: `<head><title>404 Not Found</title></head>
 

Link to comment
Share on other sites

Thanks for your help @Michel KohanimThe upgrade was successful. 5 packages were upgraded successfully.

Installed packages to be UPGRADED:
        boost-libs: 1.72.0_2 -> 1.72.0_3 [udi]
        git: 2.28.0 -> 2.29.2 [udi]
        icu: 67.1,1 -> 68.1,1 [udi]
        node: 15.0.1 -> 15.0.1_1 [udi]
        sqlite3: 3.33.0,1 -> 3.33.0_1,1 [udi]

Number of packages to be upgraded: 5

After a reboot, Polisy is running version 2.2.9-5 normally.

Checking for updates does result in the "No updates available green banner..."
 

Link to comment
Share on other sites

@Michel Kohanim

[admin@polisy ~]$ uname -a
FreeBSD polisy 12.1-RELEASE-p10 FreeBSD 12.1-RELEASE-p10 r365882 POLISY  amd64
[admin@polisy ~]$
 

Hmmm Did this upgrade to 12.2?

Here is the full upgrade output:

[admin@polisy ~]$ curl -s https://pkg.isy.io/script/update121.sh | sudo bash
Installing FreeBSD-base updates
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
Updating udi repository catalogue...
Fetching meta.conf: 100%    163 B   0.2kB/s    00:01
Fetching packagesite.txz: 100%   97 KiB  99.5kB/s    00:01
Processing entries:   0%
Processing entries: 100%
udi repository update completed. 356 packages processed.
All repositories are up to date.
Checking for upgrades (5 candidates): 100%
Processing candidates (5 candidates): 100%
The following 5 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
        boost-libs: 1.72.0_2 -> 1.72.0_3 [udi]
        git: 2.28.0 -> 2.29.2 [udi]
        icu: 67.1,1 -> 68.1,1 [udi]
        node: 15.0.1 -> 15.0.1_1 [udi]
        sqlite3: 3.33.0,1 -> 3.33.0_1,1 [udi]

Number of packages to be upgraded: 5

The operation will free 11 MiB.
36 MiB to be downloaded.
[1/5] Fetching sqlite3-3.33.0_1,1.txz: 100%    1 MiB   1.5MB/s    00:01
[2/5] Fetching node-15.0.1_1.txz: 100%    7 MiB   7.4MB/s    00:01
[3/5] Fetching icu-68.1,1.txz: 100%   10 MiB  10.8MB/s    00:01
[4/5] Fetching git-2.29.2.txz: 100%    5 MiB   5.2MB/s    00:01
[5/5] Fetching boost-libs-1.72.0_3.txz: 100%   12 MiB  13.1MB/s    00:01
Checking integrity... done (0 conflicting)
[1/5] Upgrading sqlite3 from 3.33.0,1 to 3.33.0_1,1...
[1/5] Extracting sqlite3-3.33.0_1,1: 100%
[2/5] Upgrading icu from 67.1,1 to 68.1,1...
[2/5] Extracting icu-68.1,1: 100%
[3/5] Upgrading node from 15.0.1 to 15.0.1_1...
[3/5] Extracting node-15.0.1_1: 100%
[4/5] Upgrading git from 2.28.0 to 2.29.2...
===> Creating groups.
Using existing group 'git_daemon'.
===> Creating users
Using existing user 'git_daemon'.
[4/5] Extracting git-2.29.2: 100%
[5/5] Upgrading boost-libs from 1.72.0_2 to 1.72.0_3...
[5/5] Extracting boost-libs-1.72.0_3: 100%
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
All repositories are up to date.
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
Updating udi repository catalogue...
udi repository is up to date.
All repositories are up to date.
pkg: No packages available to install matching 'FreeBSD-*' have been found in the repositories
lookig for .pkgnew files...
Preserving files that are unique to Polisy
lookig for any left over .pkgnew files...
Upgrade complete, please reboot using: sudo shutdown -r now
[admin@polisy ~]$ sudo shutdown -r now
 

 

Link to comment
Share on other sites

@Michel Kohanim Command was successful but nothing was upgraded:

 

[admin@polisy /usr/local/etc/pkg/repos]$ sudo pkg upgrade
Password:
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
Updating udi repository catalogue...
udi repository is up to date.
All repositories are up to date.
Checking for upgrades (0 candidates): 100%
Processing candidates (0 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.


[admin@polisy /usr/local/etc/pkg/repos]$ uname -a
FreeBSD polisy 12.1-RELEASE-p10 FreeBSD 12.1-RELEASE-p10 r365882 POLISY  amd64
[admin@polisy /usr/local/etc/pkg/repos]$

 

IS it possible that the FreeBSD url in update121.sh is incorrect?  If I go to "https://pkg.isy.io/FreeBSD-base/\${ABI}/latest" I get a 404. 

I am guessing that the url needs to have    ".../FreeBSD:12:amd64/"   in the path

Link to comment
Share on other sites

  • 3 weeks later...

any update on this.  Now been a month and if I reboot polisy I can check for updates and get no response.  I used to get a banner that says Success- No Updates Available or maybe 1-5 minor updates available.   I even did an UPDATE polisy and no response there either.  I used to get a response there too.

Once I reboot it works and I can try again later and it works but the next day every time it wont work.   And I have confirmed I am not the only one seeing this problem.

So the workaround is just to reboot polisy.

I can confirm NodeServer updates are working as they should.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...