Skip to content

Conversation

@szaimen
Copy link
Contributor

@szaimen szaimen commented Nov 1, 2022

Signed-off-by: szaimen szaimen@e.mail.de

Signed-off-by: szaimen <szaimen@e.mail.de>
@szaimen szaimen added the 2. developing Work in progress label Nov 1, 2022
@szaimen szaimen added this to the Nextcloud 26 milestone Nov 1, 2022
@szaimen
Copy link
Contributor Author

szaimen commented Nov 1, 2022

/backport to stable25

@szaimen szaimen marked this pull request as ready for review November 1, 2022 14:13
@szaimen szaimen added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Nov 1, 2022
@szaimen szaimen requested review from a team, ArtificialOwl, PVince81 and skjnldsv and removed request for a team November 1, 2022 14:14
@skjnldsv skjnldsv added the pending documentation This pull request needs an associated documentation update label Nov 2, 2022
@szaimen
Copy link
Contributor Author

szaimen commented Nov 2, 2022

Documentation update is already there: nextcloud/documentation#9274

@szaimen szaimen enabled auto-merge November 2, 2022 10:33
@szaimen szaimen disabled auto-merge November 2, 2022 10:33
@szaimen szaimen merged commit 8655297 into master Nov 2, 2022
@szaimen szaimen deleted the enh/noid/disable-26-updates-32bit branch November 2, 2022 10:33
@szaimen szaimen removed the pending documentation This pull request needs an associated documentation update label Nov 2, 2022
@nickvergessen
Copy link
Member

This does not block the updater (updater/updater.phar from release bundle).
I think we should have implemented it similarly to the PHP version check directly on the updater server (or should do that additionally)

@szaimen
Copy link
Contributor Author

szaimen commented Nov 3, 2022

You mean something like this?
nextcloud/updater#446

@szaimen
Copy link
Contributor Author

szaimen commented Nov 3, 2022

Reviews are welcome :)

@nickvergessen
Copy link
Member

nickvergessen commented Nov 4, 2022

No, more like https://github.com/nextcloud/updater_server/blob/master/config/config.php#L159-L190 (note the minPHPVersion)
So that in 32 bit you get back the last working version instead of a newer one together with a "please replace your hardware" message which comes with a lot of effort.

$success = true;
try {
if (PHP_INT_SIZE < 8 && Semver::satisfies($currentVersion, '> 25')) {
throw new HintException('You are running a 32-bit PHP version. Cannot upgrade to Nextcloud 26 and higher. Please switch to 64-bit PHP.');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this is not really "32-bit PHP"
In https://github.com/nextcloud/updater/pull/446/files#diff-7413d6453f901e939bbd840c8f0d1c7b20c2ca0e7f71741e4e07c6cf036f16c0R171 the wording is a bit better with "32-bit system"

@szaimen
Copy link
Contributor Author

szaimen commented Nov 30, 2022

No, more like https://github.com/nextcloud/updater_server/blob/master/config/config.php#L159-L190 (note the minPHPVersion) So that in 32 bit you get back the last working version instead of a newer one together with a "please replace your hardware" message which comes with a lot of effort.

Could you give me some more hints what would need to be done to implement this? I am honestly a bit scared of the updater_server code...

blizzz added a commit that referenced this pull request Feb 7, 2023
Revert #34908 to allow 32bit setups to upgrade to 26
come-nc added a commit that referenced this pull request Feb 9, 2023
[stable25] Revert #34908 to allow 32bit setups to upgrade to 26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants