Nextcloud won't install

Sem-K

Cadet
Joined
Dec 29, 2021
Messages
4
I am trying to install nextcloud on my truenas but every time I try to install it it gives me an error. I can install all the other plugins on it just not nextcloud. I tried to fortmat the drives and reinstall truenas. I tried to install it on a pool made out of two 500gb ssd's that are mirrored.
Can someone explain to me what I am doing wrong?

1640779848657.png
 

Sem-K

Cadet
Joined
Dec 29, 2021
Messages
4
I can see that more people reported the issue in the past 24h. So can someone tell me if it is just a temp bug that will be fixed in a few days?
 

londreshomme

Cadet
Joined
Dec 30, 2021
Messages
2
I just installed TrueNAS yesterday and tried to install the Nextcloud plugin. I'm also getting the same install error.
 

giozera

Cadet
Joined
Dec 30, 2021
Messages
2
I have a same problem I opened the thread on nextcloud support also so far no solutions over there too.
 

WolfpactVI

Cadet
Joined
Dec 20, 2021
Messages
8
Hello everyone,

Brand new TrueNAS user here, version 12.0-U7. No trouble with any other plugins, but getting the same error as everyone else.

Error: NextCloud had a failure Exception: RuntimeError Message: pkg error: - nextcloud-php74 :,php74-pecl-imagick-im7 :,php74-bcmath :,php74-gmp :,php74-pcntl :,php74-pecl-redis : Refusing to fetch artifact and run post_install.sh! Partial plugin destroyed

I hate it when they refuse to fetch artifacts! Where is Indiana Jones when you need him?? I'm assuming the powers-that-be are working to fix whatever is broken. Anyone heard officially if a fix is forthcoming? Any idea if the break is on TrueNAS's end or NextCloud's?
 

cyborge.io

Cadet
Joined
Dec 30, 2021
Messages
3
Reporting the same issue here with regards to the failing to fetch artifact issue.
image

Another observation is that when the plugin index is refreshed (for iXsystems plugins) on the https://your.truenas.server.here/ui/plugins page, the Nextcloud plugin shows “Version: N/A” when it used to say “23.0.0”.
image
image2640×360 52.4 KB


I upgraded to Version: TrueNAS-12.0-U7 but I am almost certain I saw the same issue on the previous release build (U6).
Can anyone please confirm this issue exists on that release version?

(reposting from https://help.nextcloud.com/t/fails-to-install-on-truenas12/130111/17?u=jjmk6 to target the TrueNAS community directly :smile: )
 

zmettin

Cadet
Joined
Dec 29, 2021
Messages
3
I am having this same error. After solving my DDNS issue the other day as well as cloud credentials. (unrelated to this issue.)

Anyone have any update on whether or not this is a bug on Ixsystems side or Nextcloud?
 

daniel87655

Dabbler
Joined
Jul 19, 2021
Messages
11
Same issue here, anyone know a way to install previous version, or know when the issue will be fixed.

Thanks in advance
 

Sem-K

Cadet
Joined
Dec 29, 2021
Messages
4
Installing an older version doesnt work. The nextcloud plugin is damaged so we have to wait until it gets fixed.
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925

cyborge.io

Cadet
Joined
Dec 30, 2021
Messages
3
You folks might consider the well-tried-and-tested-by-forum-members @danb35 scripted installation of Nextcloud23 to be found in the Resources Section here at https://www.truenas.com/community/resources/scripted-installation-of-nextcloud-23-in-iocage-jail.90/

According to the notes, @danb35 tested and (re)verified the script 22 days ago on a Nextcloud23 install.
Hi Redcoat, thanks for sharing this script as a possible workaround. I've seen it and tried to use it before the Nextcloud23 release earlier in 2021 without much luck.

A few observations for you (and others) on this script,
Have you (or anyone else) use the official script from Nextcloud? It looks heavily oriented for Linux, I am not seeing where it's FreeBSD/TrueNAS ready out-of-the-box...that's the gap the iXsystems nextcloud plugin was supposed to fill...

official install script from Nextcloud directly: https://github.com/nextcloud/vm/blob/master/nextcloud_install_production.sh/
 

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
2,694
Not sure, why the NextCloud installation is failing, but the engineering team will review after they get back from New Year break.

I assume plugins that were previously installed... have been successfully updated to TrueNAS 12.0-U7?

P.S Apparently underlying FreeBSD changed its support for PHP 7.4
 
Last edited:

Adleruser

Cadet
Joined
Dec 29, 2021
Messages
7
In my case, though I can't see anyone else complaining, updating seems to have (first) slightly broken the existing Nextcloud installation.

After Updating the IP configuration was broken and thus Nextcloud landed outside my IP range.
Perhaps foolishly I decided it would be faster to just reinstall the Plug-in and deleted the cage.
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
Hi Redcoat, thanks for sharing this script as a possible workaround. I've seen it and tried to use it before the Nextcloud23 release earlier in 2021 without much luck.
Well, @jjmK6, be assured that I would not have shared the script if I had not had 100% success with it on the two times I used it.

I don't know how it differs from the official plug-in, not having had the incentive to delve into the minutiae because it worked for me and for others and @danb35 is active in supporting it. As a happy camper on this script's outcome I'll not be researching the virtues of the alternatives you highlighted.

A Happy New Year to you, and to all who read this.
 
Last edited:

cyborge.io

Cadet
Joined
Dec 30, 2021
Messages
3
Hello everyone,

Brand new TrueNAS user here, version 12.0-U7. No trouble with any other plugins, but getting the same error as everyone else.



I hate it when they refuse to fetch artifacts! Where is Indiana Jones when you need him?? I'm assuming the powers-that-be are working to fix whatever is broken. Anyone heard officially if a fix is forthcoming? Any idea if the break is on TrueNAS's end or NextCloud's?
Thanks for mentioning this @WolfpactVI. You were on the right track for sure.

Root cause
The FreeBSD package maintainers removed the *php74* dependencies...(I did not go further to figure out why...).
The iXsystems nextcloud plugin reference to the FreeBSD manifest is here: https://github.com/freenas/iocage-ix-plugins/blob/master/nextcloud.json#L25
Manifest contents are located here: https://pkg.freebsd.org/FreeBSD:12:amd64/latest/packagesite.txz

If you extract the packagesite.txz file, and search for the missing packages that came out in the dialog box (see screenshots earlier in this thread) then you'll notice they do not exist. But if you search for 'php73' or 'php80', they still do.

Short term workaround (tested working on my machine, check yours pls?)
  1. On your TrueNAS host,
    Code:
    # Search for where the plugin git repo default location is on your TrueNAS host
    find / -name "nextcloud.json" # i.e. /path/to/iocage/.plugins/github_com_freenas_iocage-ix-plugins_git/nextcloud.json
    
    # Go to that path...
    cd /path/to/iocage/.plugins/github_com_freenas_iocage-ix-plugins_git/
    
    # make a backup of the file just in case... :-)
    cp nextcloud.json nextcloud.json.bak
    
    # Using your editor, edit the file and change all the *php-74* packages to *php80*. Then save and exit the editor.
    vi nextcloud.json
    
    "nextcloud-php74" --> "nextcloud-php80"
    "php74-pecl..." --> "php80-pecl"
    "php74..." ---> "php80..."
    ... and so on...
    # ...
  2. Then, go to https://your.truenas.server.here/ui/plugins, click "Refresh Index". The "Version 23.0.0" shows up again as it should!
    1641099648169.png
  3. Done. Hope you learned a little bit too, I know I did.
    1641099966591.png
The good news about this workaround is that it's not permanent (nor should it be). It should technically be overwritten once this fix has been merged to the correct branch, which for "TrueNAS-12.0-U7" the plugin release branch is https://github.com/freenas/iocage-ix-plugins/blob/12.2-RELEASE/nextcloud.json

Long term fix

It looks like the engineers that maintain the plugin recently also noticed that FreeBSD pulled the *php74* repositories from the manifest and patched the nextcloud.json file to use *php80* instead, which is on the FreeBSD manifest.
Here is the diff of the fix: https://github.com/freenas/iocage-i...06905d849f98a410b2c693f485fe2b0d77?diff=split
( Thank you @sonicaj ! )

It's still in the 'Master' branch though, I am not sure when it will get merged into the '12.2-RELEASE' branch...

So, my last question is, how does this patch make it to all of our TrueNAS appliances from this point now? Does a TrueNAS os update force a 'git pull' on the host to pull the latest repo with this fix locally? Should we run a 'git pull' manually on the TrueNAS host shell once it's in the correct branch?

P.S. For those worried about *php80* being supported by nextcloud, it is. See https://docs.nextcloud.com/server/l...on.html#prerequisites-for-manual-installation.
 

WolfpactVI

Cadet
Joined
Dec 20, 2021
Messages
8
Just tried it this morning, it worked! No updates to the TrueNAS OS were available, so I just went to the plugin section and the NextCloud plugin showed up as version 23.0.0 so I thought I'd give it a whirl. Seems to have installed fine with no errors, though since I'm doing it remotely and don't have port forwarding set up for it yet, I can't actually access the web UI until I get home this evening.

Thanks to whoever worked on this, and Happy New Year!
 

Adleruser

Cadet
Joined
Dec 29, 2021
Messages
7
Thanks for the Update to the hero(es) who fixed it so quickly.
Can confirm 23.0.0 working as described by WolfpactVI.
 
Top