Why do i not see the version of the Nextcloud plugin anymore in the plugin section?

ddaenen1

Patron
Joined
Nov 25, 2019
Messages
318
This seems to be working for all other "official" plugins but for Nextcloud it states "N/A". Why?

Screen Shot 2023-02-21 at 19.38.08.png
 

regs

Cadet
Joined
Feb 26, 2023
Messages
8
A also don't see a version of latest and installed Nextcloud. Both are N/A. I wonder if it can negatively impact update process?
 

ddaenen1

Patron
Joined
Nov 25, 2019
Messages
318
A also don't see a version of latest and installed Nextcloud. Both are N/A. I wonder if it can negatively impact update process?
Not sure but i want to know which the latest plugin version is before i update.
 

omid_1985

Dabbler
Joined
Aug 22, 2018
Messages
10
Not sure but i want to know which the latest plugin version is before i update.
Currently, on 2nd March 2023, it does update to version 25.0.4

You can always see the available version by running the following:
Code:
iocage exec nextcloud pkg search nextcloud-php

* change nextcloud to the name of your jail.
 

ddaenen1

Patron
Joined
Nov 25, 2019
Messages
318
Currently, on 2nd March 2023, it does update to version 25.0.4

You can always see the available version by running the following:
Code:
iocage exec nextcloud pkg search nextcloud-php

* change nextcloud to the name of your jail.
Do those commands even work if you have installed NC as a plugin?
 

regs

Cadet
Joined
Feb 26, 2023
Messages
8
But what about update itself? Is it working and safe to update? (NC 25.0.2 installed. TrueNAS 13.04)
 

omid_1985

Dabbler
Joined
Aug 22, 2018
Messages
10
But what about update itself? Is it working and safe to update? (NC 25.0.2 installed. TrueNAS 13.04)
When you do the update with the update button from the plugin page on TrueNAS Core (not from Nextcloud web GUI), TrueNAS automatically create an automatic snapshot of your plugin jail before the upgrade. The name of this snapshot is something like this:
ioc_update_xxxx-RELEASE-xx_date_time

So, do the upgrade from your plugin page and if it didn't work and your plugin breaks down, first restart the plugin and check it again, if it's still broken then you can use this automatically created snapshot to restore your plugin to the version before the update.
First, find the name of the automatically created snapshot name. Assuming your pool name is "tank" and your plugin name is "nextcloud", the command would be:
Code:
zfs list -r -t snapshot -o name,creation tank | grep nextcloud | grep ioc_update | grep -v root

You see a list of all automatically created snapshots before the update. Something like this:
1677930081168.png

Note: my pool name is "Storage" and my jail name is "nextcloud"

Now looking at my above sample, let's say I want to restore to the latest snapshot before the upgrade which would be the:
ioc_update_13.1-RELEASE-p7_2023-03-02_10-59-23

the restore procedure would be something like this:
Code:
iocage stop "name of your jail"
iocage rollback -f -n "name of the chosen snapshot" "name of your jail"
iocage start "name of your jail"

So back to my above sample, the command would be:
Code:
iocage stop nextcloud
iocage rollback -f -n ioc_update_13.1-RELEASE-p7_2023-03-02_10-59-23 nextcloud
iocage start nextcloud

Again, make sure you are using your jail name and your discovered snapshot name.
 

regs

Cadet
Joined
Feb 26, 2023
Messages
8
Is there any other way to see available version? It's still showing N/A. Wonder if there is NC 26 available?
 

ddaenen1

Patron
Joined
Nov 25, 2019
Messages
318
Is there any other way to see available version? It's still showing N/A. Wonder if there is NC 26 available?
Nope. The latest plugin update is still at 25.0.4
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Still, how and where to see current repository version?
Via Freshports.

E.g. nextcloud-php82 is at 26.0.0 for the quarterly ports/packages branch and 27.0.0 for the latest branch. You can easily upgrade via pkg if you run your own jail instead of the plugin, e.g. via @danb35's excellent script.
 
Top