Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating from 25.0.0 beta5 to beta6 shows no update #436

Closed
PVince81 opened this issue Sep 19, 2022 · 11 comments · Fixed by nextcloud/server#34136
Closed

Updating from 25.0.0 beta5 to beta6 shows no update #436

PVince81 opened this issue Sep 19, 2022 · 11 comments · Fixed by nextcloud/server#34136

Comments

@PVince81
Copy link
Member

Steps

  1. Install 25.0.0 beta5 locally (in my case I also installed the recommended apps)
  2. Go to the settings page in admin/overview
  3. See that 25.0.0 beta6 is available
  4. Click on "Open updater"
  5. Expect an update but nothing happens

Expected

Update available both on settings page and inside the updater

Actual

image

image

@blizzz

@blizzz
Copy link
Member

blizzz commented Sep 19, 2022

@PVince81 can you reproduce with php updater/updater.phar?

@PVince81
Copy link
Member Author

# sudo -uwwwrun php updater/updater.phar 
Nextcloud Updater - version: v25.0.0beta3-17-gef6cf2d

Current version is 25.0.0 beta 5.

No update available.

Nothing to do.

@PVince81
Copy link
Member Author

oh, updater version beta3 ??

from the beta5 tarball:

~/temp/nextcloud-25.0.0beta5/updater
  % php updater.phar --version
update v25.0.0beta3-17-gef6cf2d

beta6 tarball:

% php updater/updater.phar --version
update v25.0.0beta3-17-gef6cf2d

@blizzz
Copy link
Member

blizzz commented Sep 19, 2022

It works for me when i switch to stable channel and switch back to beta channel.

@jospoortvliet
Copy link
Member

jospoortvliet commented Sep 19, 2022

This is what I get on the command line, but let me try this channel switching Blizzz talks about...

sudo -u wwwrun php -d memory_limit=4G ./updater.phar
Nextcloud Updater - version: v25.0.0beta3-17-gef6cf2d

Current version is 25.0.0 beta 6.

No update available.

Steps that will be executed:
[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[✔] Extracting
[✔] Enable maintenance mode
[✔] Replace entry points
[✔] Delete old files
[✔] Move new files in place
[✔] Done

Continue update? [y/N] y

Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.

[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[✔] Extracting
[✔] Enable maintenance mode
[✔] Replace entry points
[✔] Delete old files
[✔] Move new files in place
[✔] Done

Update of code successful.

Should the "occ upgrade" command be executed? [Y/n] y
Nextcloud is already latest version

Keep maintenance mode active? [y/N] N
Maintenance mode already disabled

Maintenance mode is disabled

To be clear, the "upgrade process" takes 0.1 sec to run and doesn't actually do anything, am still on beta 6 of course….

@blizzz
Copy link
Member

blizzz commented Sep 19, 2022

Current version is 25.0.0 beta 6.

is already latest

@blizzz
Copy link
Member

blizzz commented Sep 19, 2022

oh, updater version beta3 ??

from the beta5 tarball:

~/temp/nextcloud-25.0.0beta5/updater
  % php updater.phar --version
update v25.0.0beta3-17-gef6cf2d

beta6 tarball:

% php updater/updater.phar --version
update v25.0.0beta3-17-gef6cf2d

that refers only to the last time the updater was build. But it is confusing, yes.

@blizzz
Copy link
Member

blizzz commented Sep 19, 2022

I think originally the updater was not intended to be tagged like the server repo and bundled apps, for it is not build each time.

@blizzz
Copy link
Member

blizzz commented Sep 19, 2022

I could reproduce it only in one of four attempts. I want to blame browser cache… It should not bug you for more then 30minutes though, for that is how long the result from the updater server is cached. During installation, the timestamp is saved, with an empty result, i.e. in that case nothing should be offered you in the 30minutes after installation.

To reset the timestamp, run php occ config:app:set --value="0" core lastupdatedat and visit admin settings again.

@blizzz
Copy link
Member

blizzz commented Sep 19, 2022

Ah, one another thing is: if the release channel is not set in config.php, the updater defaults to stable, therefore the empty result. Nextcloud server itself defaults to whatever is set in version.php, and that's beta. This is why toggling stable and beta works is the workable workaround.

It was always ™️ like it, thanks for finally filing :D

@PVince81
Copy link
Member Author

in my local dev setup switching the channel to stable then back to beta, and then running
php occ config:app:set --value="0" core lastupdatedat

this made the updater go through!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants