Project

Profile

Help

Issue #4411

closed

500 error while getting published metadata

Added by ttereshc almost 6 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

To reproduce use any plugin with metadata, e.g. RPM plugin:

  1. https://pulp-rpm.readthedocs.io/en/latest/workflows/create_sync_publish.html
  2. Try to get any repodata: http://localhost:8080/pulp/content/foo/repodata/repomd.xml nad get 500 Internal Server Error
  3. For content with artifacts (packages), it works fine: http://localhost:8080/pulp/content/foo/bear-4.1-1.noarch.rpm

It should also be reproducible with pulp_file and attempt to get PULP_MANIFEST.

Feb 12 19:35:55 pulp3 gunicorn[12722]: [2019-02-12 19:35:55 +0000] [12739] [ERROR] Error handling request
Feb 12 19:35:55 pulp3 gunicorn[12722]: Traceback (most recent call last):
Feb 12 19:35:55 pulp3 gunicorn[12722]:   File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/aiohttp/web_protocol.py", line 418, in start
Feb 12 19:35:55 pulp3 gunicorn[12722]:     resp = await task
Feb 12 19:35:55 pulp3 gunicorn[12722]:   File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/aiohttp/web_app.py", line 458, in _handle
Feb 12 19:35:55 pulp3 gunicorn[12722]:     resp = await handler(request)
Feb 12 19:35:55 pulp3 gunicorn[12722]:   File "/home/vagrant/devel/pulp/pulpcore/content/handler.py", line 68, in stream_content
Feb 12 19:35:55 pulp3 gunicorn[12722]:     return await self._match_and_stream(path, request)
Feb 12 19:35:55 pulp3 gunicorn[12722]:   File "/home/vagrant/devel/pulp/pulpcore/content/handler.py", line 190, in _match_and_stream
Feb 12 19:35:55 pulp3 gunicorn[12722]:     return self.handle_file_response(pm.file)
Feb 12 19:35:55 pulp3 gunicorn[12722]: AttributeError: 'Handler' object has no attribute 'handle_file_response'
(pulp) [vagrant@pulp3 pulp]$ pip list | grep pulp
pulp-file                       0.0.1b8      /home/vagrant/devel/pulp_file      
pulp-rpm                        3.0.0b1     /home/vagrant/devel/pulp_rpm (master)
pulp-smash                      1!0.2.0      
pulpcore                        3.0.0b21     /home/vagrant/devel/pulp           
pulpcore-plugin                 0.1.0b20     /home/vagrant/devel/pulpcore-plugin

Related issues

Related to Pulp - Test #4519: Test 500 error while getting published metadataCLOSED - COMPLETEkersomActions
Has duplicate File Support - Issue #4453: Fetching PULP_MANIFEST throws 500 ISECLOSED - DUPLICATEActions

Also available in: Atom PDF