Update PHP for Nextcloud plugin in TrueNAS Jail

Foxtrot813

Cadet
Joined
Aug 1, 2023
Messages
1
Could anyone provide guidance on updating the PHP version for the Nextcloud plugin? Whenever I attempt to update it through the Jail by clicking the update button, Nextcloud rolls back to version 25. Consequently, I'm forced to go to the Nextcloud platform to update it again, but the PHP in the Jail still needs updating as well. Any help or suggestions would be appreciated. Thank you!Can someone please tell me how to update PHP for Nextcloud plugin? Every time I click update button in Jail, it rolls back Nextcloud to version 25 and I have to go to Nextcloud and update it again but I still have to update the PHP too in Jail.

Screenshot_2023-07-31_002953.png
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Did you install the plugin or is this a manual install?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
That does not answer my question ...
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
I know all of that. I need to know if he uses the plugin or if he did a manual install to help him for crying out loud.
 
Joined
Apr 2, 2022
Messages
1
I think it was installed the nextcloud through the plugin (jail). This is how I read the post "Could anyone provide guidance on updating the PHP version for the Nextcloud plugin?" above. I have the same challenge and am thinking about reinstalling in a VM.
 

victort

Guru
Joined
Dec 31, 2021
Messages
973
I think it was installed the nextcloud through the plugin (jail). This is how I read the post "Could anyone provide guidance on updating the PHP version for the Nextcloud plugin?" above. I have the same challenge and am thinking about reinstalling in a VM.
What you should do is have a look at my signature. I have links to many scripts that automatically install services in jails. Much much better than plugins. Oh, and Nextcloud is included:smile:
 

victort

Guru
Joined
Dec 31, 2021
Messages
973
And to the OP, if you installed using a plug-in, please back up your data, delete the plug-in, and install using the script I mentioned above.

IX Systems has said plugins are to be deprecated by 2025. More and more people are having issues with them.

Which makes me wonder, perhaps pinning that at the top of the forums would be a good idea.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Reinstall in a plain manually managed jail. Updates are much mich simpler, then. The plugins are unmaintained.
 

regs

Cadet
Joined
Feb 26, 2023
Messages
8
It's pretty sad to hear the Core is getting abandoned. Plugins are better that Apps in my opinion, as based plainly on packages. And there are far more of them.
 

victort

Guru
Joined
Dec 31, 2021
Messages
973
It's pretty sad to hear the Core is getting abandoned. Plugins are better that Apps in my opinion, as based plainly on packages. And there are far more of them.
Core is not being abandoned. Plugins are.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
It's pretty sad to hear the Core is getting abandoned.
That's not what's being said. Plugins on CORE are getting abandoned, and for all practical purposes have been abandoned for years.
And there are far more of them.
Um, no. There are fewer plugins even than official Apps, and vastly fewer than the third-party apps available under SCALE.
 

DD4711

Contributor
Joined
Nov 19, 2018
Messages
102
Actually, it is sad. Nextcloud was announced and advertised as an official plugin for TrueNAS. If you install it, it runs for a short while until something like this comes up. Obviously it is hardly known what should be done then. At least that is the case with me. The plugins are obviously not maintained either. Solution? Reinstallation. I have already had to do that several times for such reasons.

Well.

Much discussion around that. But is it not possible to update PHP to 8.1 or 8.2 so that Nextcloud can continue to run? In any case, I would also be grateful if someone who has done this can share the procedure.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Much discussion around that. But is it not possible to update PHP to 8.1 or 8.2 so that Nextcloud can continue to run? In any case, I would also be grateful if someone who has done this can share the procedure.
Using plugins is not a great idea anymore (actually since some years).

@danb35 has a great script that helps you install nextcloud in a jail of your own which can be updated properly and he's supporting it pretty well. I suggest switching to that (one last large effort) to get to a sustainable situation.

 

subnetspider

Dabbler
Joined
Aug 27, 2023
Messages
16
The reason is this iocage plugin file:

/mnt/<pool name>/iocage/.plugins/github_com_freenas_iocage-ix-plugins_git/nextcloud.json

Code:
"pkgs": [
        "ffmpeg",                                               "nextcloud-php80",
        "php80-pecl-imagick-3.7.0_2",
        "php80-bcmath",
        "php80-gmp",                                            "php80-pcntl",                                          "php80-pecl-redis",
        "nginx",
        "mysql80-server",
        "redis",
        "py39-fail2ban",                                        "py39-certbot"
    ],


The plugin still lists nextcloud-php80, so each time you update the Plugin jail from the GUI, iocage will remove whatever version of PHP packages you have installed and replace it with PHP 8.0.

As stated before, the Plugins on TrueNAS CORE are mostly unmaintained, which is why I migrated my Nextcloud Plugin jail to a standard jail. So unless someone takes over maintaining the official TrueNAS CORE iocage plugins, they are indeed dead.
 
Top