When I am trying to run fedpkg module-build but its giving me 500 Internal Server Error
fedpkg module-build
500 Internal Server Error
$ fedpkg module-build Submitting the module build... Could not execute module_build: The build failed with an unexpected error: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <title>500 Internal Server Error</title> <h1>Internal Server Error</h1> <p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>
Could you run this in verbose mode? Which repo and branch are you running this from?
@lucarval I am running it on golang-ecosystem module and on stream 2017.0
golang-ecosystem
2017.0
Here's the verbose:
fedpkg --verbose module-build Creating repo object from /home/mboddu/fedpkg_modules/golang-ecosystem Submitting the module build... Could not execute module_build: The build failed with an unexpected error: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <title>500 Internal Server Error</title> <h1>Internal Server Error</h1> <p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p> Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/pyrpkg/__init__.py", line 3561, in module_submit_build data = resp.json() File "/usr/lib/python3.7/site-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib64/python3.7/site-packages/simplejson/__init__.py", line 518, in loads return _default_decoder.decode(s) File "/usr/lib64/python3.7/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/lib64/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/fedpkg", line 11, in <module> load_entry_point('fedpkg==1.36', 'console_scripts', 'fedpkg')() File "/usr/lib/python3.7/site-packages/fedpkg/__main__.py", line 86, in main sys.exit(client.args.command()) File "/usr/lib/python3.7/site-packages/pyrpkg/cli.py", line 2026, in module_build oidc_client_secret, oidc_scopes) File "/usr/lib/python3.7/site-packages/pyrpkg/__init__.py", line 3564, in module_submit_build 'The build failed with an unexpected error: %s' % resp.text pyrpkg.errors.rpkgError: The build failed with an unexpected error: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <title>500 Internal Server Error</title> <h1>Internal Server Error</h1> <p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>
The corresponding server-side log of frontend WSGi is:
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): id.fedoraproject.org DEBUG:requests.packages.urllib3.connectionpool:"POST /openidc/TokenInfo HTTP/1.1" 200 342 INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): id.fedoraproject.org DEBUG:requests.packages.urllib3.connectionpool:"GET /openidc/UserInfo HTTP/1.1" 200 192 DEBUG:module_build_service:Verifying modulemd DEBUG:module_build_service:Looking for golang:1.10 buildrequiring platform:f31:1:00000000 DEBUG:module_build_service:Found: [] DEBUG:module_build_service:Looking for golang:1.10 buildrequiring platform:f30:6:00000000 DEBUG:module_build_service:Found: [] DEBUG:module_build_service:Looking for golang:1.10 buildrequiring platform:f29:5:00000000 DEBUG:module_build_service:Found: ['golang:1.10:20180816140129:6c81f848'] DEBUG:module_build_service:Looking for golang:1.10 buildrequiring platform:f28:4:00000000 DEBUG:module_build_service:Found: ['golang:1.10:20180816140129:9c690d0e'] DEBUG:module_build_service:Adding module platform:f30:6:00000000 with requires: None DEBUG:module_build_service:Adding module platform:f31:1:00000000 with requires: None DEBUG:module_build_service:Adding module platform:f29:5:00000000 with requires: None DEBUG:module_build_service:Adding module platform:f28:4:00000000 with requires: None DEBUG:module_build_service:Adding module golang:1.10:20180816140129:6c81f848 with requires: <Id #-2147483642 (module(platform) with module(platform:f29))> DEBUG:module_build_service:Adding module golang:1.10:20180816140129:9c690d0e with requires: <Id #-2147483641 (module(platform) with module(platform:f28))> INFO:module_build_service:Starting resolving with following input modules: ['platform:f30:6:00000000', 'platform:f31:1:00000000', 'platform:f29:5:00000000', 'platform:f28:4:00000000', 'golang:1.10:20180816140129:6c81f848', 'golang:1.10:20180816140129:9c690d0e'] DEBUG:module_build_service:Adding module golang-ecosystem:2017.0:20180816154241:0 with requires: <Id #-2147483635 ((module(golang) with module(golang:1.10)) and (module(platform) with (module(platform:f28) or module(platform:f29) or module(platform:f30) or module(platform:f31))))> DEBUG:module_build_service:Testing golang-ecosystem:2017.0:20180816154241:0-20180816154241.src with combination: (<Solvable #6 golang:1.10:20180816140129:6c81f848-20180816140129.x86_64>, <Solvable #2 platform:f30:6:00000000-6.x86_64>) DEBUG:module_build_service:Jobs: DEBUG:module_build_service: - favor golang:1.10:20180816140129:6c81f848-20180816140129.x86_64 DEBUG:module_build_service: - favor platform:f30:6:00000000-6.x86_64 DEBUG:module_build_service: - install golang-ecosystem:2017.0:20180816154241:0-20180816154241.src DEBUG:module_build_service:Transaction: DEBUG:module_build_service: - golang-ecosystem:2017.0:20180816154241:0-20180816154241.src DEBUG:module_build_service: - golang:1.10:20180816140129:6c81f848-20180816140129.x86_64 DEBUG:module_build_service: - platform:f29:5:00000000-5.x86_64 DEBUG:module_build_service: - ^ Not all favored solvables found in the result, skipping. DEBUG:module_build_service:Testing golang-ecosystem:2017.0:20180816154241:0-20180816154241.src with combination: (<Solvable #6 golang:1.10:20180816140129:6c81f848-20180816140129.x86_64>, <Solvable #3 platform:f31:1:00000000-1.x86_64>) DEBUG:module_build_service:Jobs: DEBUG:module_build_service: - favor golang:1.10:20180816140129:6c81f848-20180816140129.x86_64 DEBUG:module_build_service: - favor platform:f31:1:00000000-1.x86_64 DEBUG:module_build_service: - install golang-ecosystem:2017.0:20180816154241:0-20180816154241.src DEBUG:module_build_service:Transaction: DEBUG:module_build_service: - golang-ecosystem:2017.0:20180816154241:0-20180816154241.src DEBUG:module_build_service: - golang:1.10:20180816140129:6c81f848-20180816140129.x86_64 DEBUG:module_build_service: - platform:f29:5:00000000-5.x86_64 DEBUG:module_build_service: - ^ Not all favored solvables found in the result, skipping. DEBUG:module_build_service:Testing golang-ecosystem:2017.0:20180816154241:0-20180816154241.src with combination: (<Solvable #6 golang:1.10:20180816140129:6c81f848-20180816140129.x86_64>, <Solvable #4 platform:f29:5:00000000-5.x86_64>) DEBUG:module_build_service:Jobs: DEBUG:module_build_service: - favor golang:1.10:20180816140129:6c81f848-20180816140129.x86_64 DEBUG:module_build_service: - favor platform:f29:5:00000000-5.x86_64 DEBUG:module_build_service: - install golang-ecosystem:2017.0:20180816154241:0-20180816154241.src DEBUG:module_build_service:Transaction: DEBUG:module_build_service: - golang-ecosystem:2017.0:20180816154241:0-20180816154241.src DEBUG:module_build_service: - platform:f29:5:00000000-5.x86_64 DEBUG:module_build_service: - golang:1.10:20180816140129:6c81f848-20180816140129.x86_64 DEBUG:module_build_service:Testing golang-ecosystem:2017.0:20180816154241:0-20180816154241.src with combination: (<Solvable #6 golang:1.10:20180816140129:6c81f848-20180816140129.x86_64>, <Solvable #5 platform:f28:4:00000000-4.x86_64>) DEBUG:module_build_service:Jobs: DEBUG:module_build_service: - favor golang:1.10:20180816140129:6c81f848-20180816140129.x86_64 DEBUG:module_build_service: - favor platform:f28:4:00000000-4.x86_64 DEBUG:module_build_service: - install golang-ecosystem:2017.0:20180816154241:0-20180816154241.src DEBUG:module_build_service:Transaction: DEBUG:module_build_service: - golang-ecosystem:2017.0:20180816154241:0-20180816154241.src DEBUG:module_build_service: - platform:f28:4:00000000-4.x86_64 DEBUG:module_build_service: - golang:1.10:20180816140129:9c690d0e-20180816140129.x86_64 DEBUG:module_build_service: - ^ Not all favored solvables found in the result, skipping. DEBUG:module_build_service:Testing golang-ecosystem:2017.0:20180816154241:0-20180816154241.src with combination: (<Solvable #7 golang:1.10:20180816140129:9c690d0e-20180816140129.x86_64>, <Solvable #2 platform:f30:6:00000000-6.x86_64>) DEBUG:module_build_service:Jobs: DEBUG:module_build_service: - favor golang:1.10:20180816140129:9c690d0e-20180816140129.x86_64 DEBUG:module_build_service: - favor platform:f30:6:00000000-6.x86_64 DEBUG:module_build_service: - install golang-ecosystem:2017.0:20180816154241:0-20180816154241.src DEBUG:module_build_service:Transaction: DEBUG:module_build_service: - golang-ecosystem:2017.0:20180816154241:0-20180816154241.src DEBUG:module_build_service: - golang:1.10:20180816140129:9c690d0e-20180816140129.x86_64 DEBUG:module_build_service: - platform:f28:4:00000000-4.x86_64 DEBUG:module_build_service: - ^ Not all favored solvables found in the result, skipping. DEBUG:module_build_service:Testing golang-ecosystem:2017.0:20180816154241:0-20180816154241.src with combination: (<Solvable #7 golang:1.10:20180816140129:9c690d0e-20180816140129.x86_64>, <Solvable #3 platform:f31:1:00000000-1.x86_64>) DEBUG:module_build_service:Jobs: DEBUG:module_build_service: - favor golang:1.10:20180816140129:9c690d0e-20180816140129.x86_64 DEBUG:module_build_service: - favor platform:f31:1:00000000-1.x86_64 DEBUG:module_build_service: - install golang-ecosystem:2017.0:20180816154241:0-20180816154241.src DEBUG:module_build_service:Transaction: DEBUG:module_build_service: - golang-ecosystem:2017.0:20180816154241:0-20180816154241.src DEBUG:module_build_service: - golang:1.10:20180816140129:9c690d0e-20180816140129.x86_64 DEBUG:module_build_service: - platform:f28:4:00000000-4.x86_64 DEBUG:module_build_service: - ^ Not all favored solvables found in the result, skipping. DEBUG:module_build_service:Testing golang-ecosystem:2017.0:20180816154241:0-20180816154241.src with combination: (<Solvable #7 golang:1.10:20180816140129:9c690d0e-20180816140129.x86_64>, <Solvable #4 platform:f29:5:00000000-5.x86_64>) DEBUG:module_build_service:Jobs: DEBUG:module_build_service: - favor golang:1.10:20180816140129:9c690d0e-20180816140129.x86_64 DEBUG:module_build_service: - favor platform:f29:5:00000000-5.x86_64 DEBUG:module_build_service: - install golang-ecosystem:2017.0:20180816154241:0-20180816154241.src DEBUG:module_build_service:Transaction: DEBUG:module_build_service: - golang-ecosystem:2017.0:20180816154241:0-20180816154241.src DEBUG:module_build_service: - platform:f29:5:00000000-5.x86_64 DEBUG:module_build_service: - golang:1.10:20180816140129:6c81f848-20180816140129.x86_64 DEBUG:module_build_service: - ^ Not all favored solvables found in the result, skipping. DEBUG:module_build_service:Testing golang-ecosystem:2017.0:20180816154241:0-20180816154241.src with combination: (<Solvable #7 golang:1.10:20180816140129:9c690d0e-20180816140129.x86_64>, <Solvable #5 platform:f28:4:00000000-4.x86_64>) DEBUG:module_build_service:Jobs: DEBUG:module_build_service: - favor golang:1.10:20180816140129:9c690d0e-20180816140129.x86_64 DEBUG:module_build_service: - favor platform:f28:4:00000000-4.x86_64 DEBUG:module_build_service: - install golang-ecosystem:2017.0:20180816154241:0-20180816154241.src DEBUG:module_build_service:Transaction: DEBUG:module_build_service: - golang-ecosystem:2017.0:20180816154241:0-20180816154241.src DEBUG:module_build_service: - platform:f28:4:00000000-4.x86_64 DEBUG:module_build_service: - golang:1.10:20180816140129:9c690d0e-20180816140129.x86_64 ERROR:module_build_service:Exception on /module-build-service/2/module-builds/ [POST] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "/usr/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request rv = self.dispatch_request() File "/usr/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/usr/lib/python2.7/site-packages/flask/views.py", line 84, in view return self.dispatch_request(*args, **kwargs) File "/usr/lib/python2.7/site-packages/flask/views.py", line 149, in dispatch_request return meth(*args, **kwargs) File "/usr/lib/python2.7/site-packages/module_build_service/utils/views.py", line 359, in wrapper return func(*args, **kwargs) File "/usr/lib/python2.7/site-packages/module_build_service/views.py", line 182, in post modules = handler.post() File "/usr/lib/python2.7/site-packages/module_build_service/views.py", line 410, in post optional_params=self.optional_params) File "/usr/lib/python2.7/site-packages/module_build_service/utils/submit.py", line 402, in submit_module_build_from_scm return submit_module_build(username, url, mmd, optional_params) File "/usr/lib/python2.7/site-packages/module_build_service/utils/submit.py", line 486, in submit_module_build mmds = generate_expanded_mmds(db.session, mmd, raise_if_stream_ambigous, default_streams) File "/usr/lib/python2.7/site-packages/module_build_service/utils/mse.py", line 357, in generate_expanded_mmds requires_combinations = mmd_resolver.solve(current_mmd) File "/usr/lib/python2.7/site-packages/module_build_service/mmd_resolver.py", line 603, in solve for src_alternatives in alternatives.values() File "/usr/lib/python2.7/site-packages/module_build_service/mmd_resolver.py", line 604, in <genexpr> for transactions in src_alternatives.values()) IndexError: list index out of range
The - ^ Not all favored solvables found in the result, skipping. is the key info here. In this case, the src_alternatives value is an empty list and therefore transactions[0] does not exist.
- ^ Not all favored solvables found in the result, skipping.
src_alternatives
transactions[0]
We should del src_alternatives[key] right before the - ^ Not all favored solvables found in the result, skipping.
del src_alternatives[key]
This should be fixed asap. So, since we are in freeze please make a FBR with necessary changes.
Thanks.
FWIW, I was able to submit a module build for reviewboard module 2.5 stream
reviewboard
2.5
$ fedpkg module-build Submitting the module build... The builds 3759, 3760, 3761 and 3762 were submitted to the MBS
@mohanboddu, yeah, this error should not happen to frequently right now. It is definitely an issue I'm going to fix today, but it is not happening for all the module builds. But I presume with more complex modules, it might appear more frequently.
https://pagure.io/fm-orchestrator/pull-request/1185
Asked for FBR: https://lists.fedoraproject.org/archives/list/infrastructure@lists.fedoraproject.org/thread/C5YBAQ6EFNXQLE7NGCLDKBADQ5TT44DT/
Metadata Update from @jkaluza: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.