fedora-silverblue / issue-tracker

Fedora Silverblue issue tracker
https://fedoraproject.org/atomic-desktops/silverblue/
126 stars 3 forks source link

Unable to upgrade fresh F37 installation #405

Closed oscfdezdz closed 1 year ago

oscfdezdz commented 1 year ago

To Reproduce Please describe the steps needed to reproduce the bug:

  1. Write Fedora Silverblue 37 image to a USB with Fedora Media Writer
  2. Install Fedora Silverblue 37
  3. Run rpm-ostree upgrade
  4. Get error: While pulling fedora/37/x86_64/silverblue: Server returned HTTP 404

Expected behavior Upgrade the system.

OS version:

$ rpm-ostree status -b
State: idle
BootedDeployment:
● fedora:fedora/37/x86_64/silverblue
                  Version: 37.1.7 (2022-11-05T06:01:00Z)
               BaseCommit: bfe9de223c9a4ba4a793d3e01f6b09024c919685ee73c896af767958725cac79
             GPGSignature: Valid signature by ACB5EE4E831C74BB7C168D27F55AD3FB5323552A
      RemovedBasePackages: firefox firefox-langpacks 106.0.1-1.fc37 gnome-terminal-nautilus gnome-terminal 3.45.90-1.fc37 gnome-tour 43.0-1.fc37
          LayeredPackages: ddcutil gnome-console langpacks-es
box-dev commented 1 year ago

Same for me on 37.20230127.0. Looks like the server has issues!

May be unrelated but when gnome-software fired up on login just now, it went crazy and wrote out like 40Gb of data, swamping I/O. Coincidence or a buggy reaction to a failure to check updates?

scottsweb commented 1 year ago

Also having this issue today with version 37.20221231.0. rpm-ostree upgrade is throwing:

error: While pulling fedora/37/x86_64/silverblue: Server returned HTTP 404
henriquepicanco commented 1 year ago

I tried to install Silverblue at 9:30 am (2023/01/29—GMT-03) and had the same issue!

mberlinger3 commented 1 year ago

Having the same issue here. Surprisingly rpm-ostree refresh-md -f works fine... Guess the server just is doing some maintenance

cgwalters commented 1 year ago

Exciting; I don't have admin privileges on the repo but I'm guessing this is related to recent pruner runs. I saw https://github.com/coreos/fedora-coreos-releng-automation/commit/9ef521ab9099a14773ce38d1fc6819932b7f67f5 go by and I suspect that the prod ref was aliased and got removed?

I think it should just be a matter of re-creating the alias to fedora/37/x86_64/updates/silverblue.

mmBesar commented 1 year ago

I have the same problem!

kpbaks commented 1 year ago

Same issue when trying to rebase from kinoite 36 to 37 error: While pulling fedora/37/x86_64/kinoite: Server returned HTTP 404

nullusionist commented 1 year ago

Same issue here trying to upgrade Silverblue (37) error: While pulling fedora/37/x86_64/silverblue: Server returned HTTP 404

dustymabe commented 1 year ago

hmm. I just ran an rpm-ostree upgrade and it didn't give me a 404. Are people still able to observe this problem?

dustymabe commented 1 year ago

Exciting; I don't have admin privileges on the repo but I'm guessing this is related to recent pruner runs. I saw coreos/fedora-coreos-releng-automation@9ef521a go by and I suspect that the prod ref was aliased and got removed?

At least the logs from the pruner for F37 SB would indicate otherwise:

2023-01-29 00:56:00,676 INFO fedora-ostree-pruner - Skipping ref fedora/37/x86_64/silverblue in repo /mnt/koji/ostree/repo. Policy is to keep all commits.
2023-01-29 00:56:00,677 INFO fedora-ostree-pruner - Skipping ref fedora/37/x86_64/updates/silverblue in repo /mnt/koji/ostree/repo. Policy is to keep all commits.
2023-01-29 00:56:00,679 INFO fedora-ostree-pruner - Pruning the fedora/37/x86_64/testing/silverblue ref in repo /mnt/koji/ostree/repo to time:90
2023-01-29 00:56:00,679 INFO fedora-ostree-pruner - Running command: ['ostree', 'prune', '--repo', '/mnt/koji/ostree/repo', '--commit-only', '--only-branch', 'fedora/37/x86_64/testing/silverblue', '--refs-only', '--keep-younger-than=90 days ago']
Total (commit only) objects: 26227
Deleted 181 objects, 13.2 MB freed

though there was a later error when running ostree summary -u, which have lead to some issues:

2023-01-29 01:11:02,625 INFO fedora-ostree-pruner - Deleting the fedora/30/x86_64/testing/silverblue ref in repo /mnt/koji/ostree/repo.
2023-01-29 01:11:02,625 INFO fedora-ostree-pruner - Running command: ['ostree', 'refs', '--repo', '/mnt/koji/ostree/repo', '--delete', 'fedora/30/x86_64/testing/silverblue']
2023-01-29 01:11:02,684 INFO fedora-ostree-pruner - Running command: ['ostree', 'summary', '--repo', '/mnt/koji/ostree/repo', '-u']
error: No such metadata object 619554b37ce12caccb9425779aca709a40fe0050d0a74fc692e34b0052a5c9f0.commit
2023-01-29 01:11:03,001 ERROR fedora-ostree-pruner - Running command returned bad exitcode: 1

We've seen this error before and @jlebon and I have been trying to understand what causes it.

Though, as mentioned in my previous comment I'm not observing any 404 errors now.

scottsweb commented 1 year ago

It is still 404ing for me. Perhaps it is an issue with a particular mirror?

dustymabe commented 1 year ago

I think maybe the reason I wasn't getting a 404 is because I actually updated my local system yesterday and it was completely up to date, so I didn't need to pull any content from the mirror.

I'm investigating further.

dustymabe commented 1 year ago

OK I think I've resolved the issue by re-importing the commits from the compose repo:

sh-5.2$ ostree --repo=/mnt/koji/ostree/repo rev-parse fedora/37/x86_64/silverblue
f3e6e1dff39f0c33b2a314a18051c7bf896addfe6ae3ecef1ad97672a6f12fdd
sh-5.2$ ostree --repo=/mnt/koji/compose/ostree/repo rev-parse fedora/37/x86_64/silverblue
f3e6e1dff39f0c33b2a314a18051c7bf896addfe6ae3ecef1ad97672a6f12fdd
sh-5.2$
sh-5.2$ ostree --repo=/mnt/koji/ostree/repo pull-local /mnt/koji/compose/ostree/repo f3e6e1dff39f0c33b2a314a18051c7bf896addfe6ae3ecef1ad97672a6f12fdd 
1 metadata, 0 content objects imported; 0 bytes content written
## Also needed to copy over the signature
sh-5.2$ ostree --repo=/mnt/koji/ostree/repo pull-local /mnt/koji/compose/ostree/repo 214dfba21c68bba96ba1e94d3d4a7ddb8bae658a7cc92b7313b4088caa5a816e
Scanning metadata: 7056

sh-5.2$ ostree --repo=/mnt/koji/ostree/repo rev-parse fedora/37/aarch64/silverblue
50fd6768f076e0bdd6e049b2c28d97432fbdd5026825754fbe7cb31fa227278f
sh-5.2$ ostree --repo=/mnt/koji/compose/ostree/repo rev-parse fedora/37/aarch64/silverblue
50fd6768f076e0bdd6e049b2c28d97432fbdd5026825754fbe7cb31fa227278f
sh-5.2$ 
sh-5.2$ ostree --repo=/mnt/koji/ostree/repo pull-local /mnt/koji/compose/ostree/repo fedora/37/aarch64/silverblue
1 metadata, 0 content objects imported; 0 bytes content written

the fedora/37/ppc64le/silverblue seemed fine.

Similarly for kinoite:

sh-5.2$ ostree --repo=/mnt/koji/ostree/repo rev-parse fedora/37/x86_64/kinoite    
3c16959fb552440f79c0ddc7e4f68587ef9111bb8c6df9d9502e69c55d4e9577
sh-5.2$ ostree --repo=/mnt/koji/compose/ostree/repo rev-parse fedora/37/x86_64/kinoite
3c16959fb552440f79c0ddc7e4f68587ef9111bb8c6df9d9502e69c55d4e9577
sh-5.2$ 
sh-5.2$ ostree --repo=/mnt/koji/ostree/repo pull-local /mnt/koji/compose/ostree/repo fedora/37/x86_64/kinoite    
Scanning metadata: 10988                                                                                                                     
# not sure what this was needed
sh-5.2$ ostree --repo=/mnt/koji/ostree/repo pull-local /mnt/koji/compose/ostree/repo 3cf1fe94e740bd5c4918268b12eca5e8adf93f5407cb222a5c4f4b464a7d75b8
1 metadata, 0 content objects imported; 0 bytes content written

sh-5.2$ ostree --repo=/mnt/koji/ostree/repo rev-parse fedora/37/aarch64/kinoite
619554b37ce12caccb9425779aca709a40fe0050d0a74fc692e34b0052a5c9f0
sh-5.2$ ostree --repo=/mnt/koji/compose/ostree/repo rev-parse fedora/37/aarch64/kinoite
619554b37ce12caccb9425779aca709a40fe0050d0a74fc692e34b0052a5c9f0

sh-5.2$ ostree --repo=/mnt/koji/ostree/repo pull-local /mnt/koji/compose/ostree/repo fedora/37/aarch64/kinoite
1 metadata, 0 content objects imported; 0 bytes content written                                                                             
# not sure why this was needed 
sh-5.2$ ostree --repo=/mnt/koji/ostree/repo pull-local /mnt/koji/compose/ostree/repo 6f6ad875fc14d19703a511d34f59c56e7a2a16e47457c0c386ca4a7c005ef3ce

the fedora/37/ppc64le/kinoite seemed fine.

mmBesar commented 1 year ago

It's working fine now, just updated my system without an issue. Thanks.

travier commented 1 year ago

Thanks @dustymabe for the Sunday fix!

nullusionist commented 1 year ago

Double thanks @dustymabe! Confirm upgrade is functional here.

scottsweb commented 1 year ago

Can confirm all is well for me too. Thanks @dustymabe! 🙇

jlebon commented 1 year ago

Just to close the loop on this, I think https://github.com/ostreedev/ostree/pull/2808 should fix the underlying issue so this doesn't happen again.