pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: php-nextcloud 33.0.6!



Not sure if useful or if this applies to NetBSD as well, but let me
post my two cents anyway.
I think it is useful and thanks for posting.
Happy to share my findings!
I have been running a so-called lipkg zone on Illumos/OmniOS for years
with nginx, php and php-nextcloud from pkgsrc. A while ago I bumped
into one php-nextcloud release that was purged from the pkgsrc repo,
which got me stuck, preventing me from upgrading any further.
The general rule in pkgsrc for nextcloud is that we never jump more than
one major version across quarterly branches.  There have been older
nextcloud versions like "nextcloud30" at times when there was such a
jump (would have been 29 last branch, 31 now), but 99% we just avoid it.

pkgsrc history is available in CVS, so if you're willing to build your
own packages, you can check out whatever version and build.  I did that
when I got behind several years ago.

With binary packages, you'd have to find them and upgrade to them, in
sequence.

Long story short, I removed the php-nextcloud as used from pkgsrc and
installed Nextcloud manually from the official tarball from
https://download.nextcloud.com/server/releases/ - starting with the
version I was stuck at - while keeping al dependent php packages from
pkgsrc.
That way I can:

- update all packages used from pkgsrc the usual way,
- update Nextcloud itself using the built-in update mechanism, one
   major version at a time.

It also requires upgrading PHP and the dependent MariaDB database
releases, since the dependencies from Nextcloud evolve over time, but
that is a separate matter.
That's an interesting datapoint that deps from pkgsrc and tarballs from
nextcloud work together.
I cooked that up myself when I found my NC-release being years out of sync; I was stuck at NC 20 where 21 was unavailable at the pkgsrc repo and 22 was. So I tried it in a test environment first, with a copy of production data imported. Was a bit surprised that it .. just worked. Then reproduced it on two production systems and have been able to upgrade the whole shebang to NC 33 now, including PHP (7.4 ... 8.4) and MariaDB (10.4 ... 11.4) upgrades in between where needed.
In the past I have also seen things break when using php-nextcloud
from pkgsrc and updating using the built-in update mechanism once,
which screwed up the pkgsrc update cycle with all sorts of errors. So
don't mix update mechanisms...
As I understand it, by the time nextcloud runs, it can't tell whether
the bits in /usr/pkg/share/nextcloud were just unpacked from upstream,
or unpacked from upstream in a package build and installed via a
package.

Perhaps it was just that you didn't remove the unpacked tarball contents
before installing a package?   pkgsrc thinks it owns /usr/pkg ($PREFIX
really), and putting other stuff there needs manual attention.

It is too risky to grab php-nextcloud from pkgsrc IMHO. Grabbing
Nextcloud itself from the official archives while using pkgsrc for all
dependencies works much better.
Do you mean that just because of the 1-version-only update bug in
nextcloud?
Well, yes. With all due respect for you pkgsrc maintainers, of course, since I'm thankfully using your hard work. I do find that in this particular case, since Nextcloud provides all that release history in tarballs, and it turns out to integrate nicely together, I prefer to go for that original source.

I do find that updating by clicking in the web ui is flaky and I end up
doing it with occ.  That I think avoids all the resource limits that
php_fpm (reasonably) imposes.
I indeed have seen some funky error messages happening, but up until now these have not been fatal in my experience. Usually a refresh of the webpage in such case was all that was needed. But your suggestion to do it from the CLI using occ is a solid one, I suppose.

I am on the verge of updating the package to 34.
I avoid that when it's newly released, but it seems baked enough.

That's a step I have to make shortly too, but since 33 is still in support, my focus is elsewhere at the moment :-)

Cheers!



Home | Main Index | Thread Index | Old Index