Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2170445

Summary: postgresql:12 FTBFS: postgresql-12.14-US.pdf: Server returned status code 404
Product: [Fedora] Fedora Modules Reporter: Petr Pisar <ppisar>
Component: postgresqlAssignee: Filip Januš <fjanus>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: asamalik, fjanus, hhorak, karsten, langdon, mkulik, nphilipp, phracek, pkubat, praiskup, rbean
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://mbs.fedoraproject.org/module-build-service/2/module-builds/16036
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-02-16 12:55:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2168842    

Description Petr Pisar 2023-02-16 11:41:52 UTC
postgresql:12 fails to build in Fedora 39 <https://mbs.fedoraproject.org/module-build-service/2/module-builds/16036> because a postgresql fails to build <https://koji.fedoraproject.org/koji/taskinfo?taskID=97532630>:

DEBUG util.py:540:  Executing command: ['fedpkg', 'sources'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
DEBUG util.py:443:    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
DEBUG util.py:443:                                   Dload  Upload   Total   Spent    Left  Speed
DEBUG util.py:443:  
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 19.5M  100 19.5M    0     0  62.8M      0 --:--:-- --:--:-- --:--:-- 62.9M
DEBUG util.py:443:    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
DEBUG util.py:443:                                   Dload  Upload   Total   Spent    Left  Speed
DEBUG util.py:443:  
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100    91  100    91    0     0   2079      0 --:--:-- --:--:-- --:--:--  2116
DEBUG util.py:443:    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
DEBUG util.py:443:                                   Dload  Upload   Total   Spent    Left  Speed
DEBUG util.py:443:  
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 20.1M  100 20.1M    0     0  78.2M      0 --:--:-- --:--:-- --:--:-- 78.3M
DEBUG util.py:443:    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
DEBUG util.py:443:                                   Dload  Upload   Total   Spent    Left  Speed
DEBUG util.py:443:  
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100    91  100    91    0     0   2214      0 --:--:-- --:--:-- --:--:--  2275
DEBUG util.py:443:    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
DEBUG util.py:443:                                   Dload  Upload   Total   Spent    Left  Speed
DEBUG util.py:443:  
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  151k  100  151k    0     0  2831k      0 --:--:-- --:--:-- --:--:-- 2850k
DEBUG util.py:443:    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
DEBUG util.py:443:                                   Dload  Upload   Total   Spent    Left  Speed
DEBUG util.py:443:  
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0   196    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
DEBUG util.py:443:  curl: (22) The requested URL returned error: 404
DEBUG util.py:596:  Child return code was: 22

The reason is that "postgresql-12.14-US.pdf" file is missing from a dist-git lookaside cache:

$ fedpkg --verbose sources
Creating repo object from /home/petr/fedora/postgresql
Not downloading already downloaded postgresql-11.19.tar.bz2
Not downloading already downloaded postgresql-11.19.tar.bz2.sha256
Not downloading already downloaded postgresql-12.14.tar.bz2
Not downloading already downloaded postgresql-12.14.tar.bz2.sha256
Not downloading already downloaded postgresql-setup-8.8.tar.gz
Downloading postgresql-12.14-US.pdf
Full url: b'https://src.fedoraproject.org/repo/pkgs/rpms/postgresql/postgresql-12.14-US.pdf/sha512/efa5c63831a6aef222c25708d1f16058f67953a9d0a5c4aeeb7817b7f7de06d320c42b1ff8c5a9a828b25ddabd9aee5ea8f26f9fa6d162eb6f0fe2d1deb3f87d/postgresql-12.14-US.pdf'
######################################################################## 100.0%
Remove downloaded invalid file /home/petr/fedora/postgresql/postgresql-12.14-US.pdf
Could not execute sources: Server returned status code 404
Traceback (most recent call last):
  File "/usr/bin/fedpkg", line 33, in <module>
    sys.exit(load_entry_point('fedpkg==1.43', 'console_scripts', 'fedpkg')())
  File "/usr/lib/python3.10/site-packages/fedpkg/__main__.py", line 89, in main
    sys.exit(client.args.command())
  File "/usr/lib/python3.10/site-packages/pyrpkg/cli.py", line 2821, in sources
    self.cmd.sources(outdir)
  File "/usr/lib/python3.10/site-packages/pyrpkg/__init__.py", line 2206, in sources
    self.lookasidecache.download(
  File "/usr/lib/python3.10/site-packages/pyrpkg/lookaside.py", line 196, in download
    raise DownloadError('Server returned status code %d' % status)
pyrpkg.errors.DownloadError: Server returned status code 404

Comment 1 Filip Januš 2023-02-16 12:55:28 UTC
Thanks for your report. 
Now it should be fixed by: https://src.fedoraproject.org/rpms/postgresql/c/82b12a3c808648b383609be7bfd32af9712d3893?branch=stream-postgresql-12