Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: It seems that copr does cope well error response. Version-Release number of selected component: copr-cli-1.15-1.fc20 Additional info: reporter: libreport-2.1.10 cmdline: /usr/bin/python2 /usr/bin/copr-cli build vondruch/ruby-2.1.0 http://vondruch.fedorapeople.org/ruby-2.1.0-17.fc21.src.rpm dso_list: python-libs-2.7.5-9.fc20.x86_64 executable: /usr/bin/copr-cli kernel: 3.12.5-302.fc20.x86_64 runlevel: N 5 type: Python uid: 16025 Truncated backtrace: decoder.py:383:raw_decode:ValueError: No JSON object could be decoded Traceback (most recent call last): File "/usr/bin/copr-cli", line 9, in <module> load_entry_point('copr-cli==0.1.0', 'console_scripts', 'copr-cli')() File "/usr/lib/python2.7/site-packages/copr_cli/main.py", line 125, in main arg.func(arg) File "/usr/lib/python2.7/site-packages/copr_cli/main.py", line 21, in action_build args.memory, args.timeout, not args.nowait) File "/usr/lib/python2.7/site-packages/copr_cli/subcommands.py", line 217, in build output = json.loads(req.text) File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads return _default_decoder.decode(s) File "/usr/lib64/python2.7/json/decoder.py", line 365, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib64/python2.7/json/decoder.py", line 383, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded Local variables in innermost frame: s: u'<!doctype html>\n<html>\n<head>\n <title>Not Found</title>\n <link rel=stylesheet type=text/css href="/static/copr.css">\n <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>\n <link rel="shortcut icon" href="/static/favicon.ico" type="image/vnd.microsoft.icon">\n <link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon">\n <script src="/static/copr.js"></script>\n</head>\n<body>\n<div class="menu">\n <div class="menu-inner">\n <a href="/coprs/"><img id="logo" src="/static/copr_logo.png" alt="Copr Build System"></a>\n <div class="login">\n \n <div><a href="/login/">log in</a> | <a href="https://admin.fedoraproject.org/accounts/user/new">sign up</a></div>\n \n <form method="get" action="/coprs/fulltext/">\n <input class="rounded" type="text" name="fulltext">\n\t<input class="fulltext-submit" type="submit" value="search">\n </form>\n </div>\n </div>\n</div>\n<div class="page">\n \n <div class="page-inner">\n \n \n 404: Not Found\n \n\n </div>\n</div>\n<div class="footer">\n<p>\n <a href="/coprs/">Home</a>\n <a href="https://fedorahosted.org/copr/">Copr Project</a>\n <a href="https://fedorahosted.org/copr/wiki/UserDocs#FAQ">FAQ</a>\n <a class="last" href="/api/">API</a>\n</p>\n</div>\n</body>\n</html>' self: <json.decoder.JSONDecoder object at 0x7f8252433450> idx: 0
Created attachment 846729 [details] File: backtrace
Created attachment 846730 [details] File: environ
The main problem was that you should execute only: copr-cli build ruby-2.1.0 http://vondruch.fedorapeople.org/ruby-2.1.0-17.fc21.src.rpm But yeah, it should not traceback. Fixed in upstream in commit c9ee7c2. Now it should give error that project vondruch/vondruch/ruby-2.1.0 does exist, which should be nice hint.
(In reply to Miroslav Suchý from comment #3) > But yeah, it should not traceback. Yes, that was the point. The real reason why I tried this parameter was, that copr-cli had nod worked without created project, which I forgot to confirm in my web browser. I suppose other may try something like this as well. > Fixed in upstream in commit c9ee7c2. Thanks.
copr-1.20-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/copr-1.20-1.fc19
copr-1.20-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/copr-1.20-1.fc20
I am testing the package, but the error message does not corresponds with comment 3: $ copr-cli build vondruch/ruby-2.1.0 http://vondruch.fedorapeople.org/ruby-2.1.0-17.fc21.src.rpm User vondruch is unknown.
Fixed in edbd89a.
*** Bug 1044592 has been marked as a duplicate of this bug. ***
copr-1.21-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
copr-1.21-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.