Bug 1049460 - [abrt] copr-cli: decoder.py:383:raw_decode:ValueError: No JSON object could be decoded
Summary: [abrt] copr-cli: decoder.py:383:raw_decode:ValueError: No JSON object could b...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: copr
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:a9f727365f840bdf43162af4ce2...
: 1044592 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-07 15:20 UTC by Vít Ondruch
Modified: 2014-01-17 05:51 UTC (History)
2 users (show)

Fixed In Version: copr-1.21-1.fc19
Clone Of:
Environment:
Last Closed: 2014-01-10 07:46:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (2.36 KB, text/plain)
2014-01-07 15:20 UTC, Vít Ondruch
no flags Details
File: environ (2.88 KB, text/plain)
2014-01-07 15:20 UTC, Vít Ondruch
no flags Details

Description Vít Ondruch 2014-01-07 15:20:49 UTC
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

Comment 1 Vít Ondruch 2014-01-07 15:20:57 UTC
Created attachment 846729 [details]
File: backtrace

Comment 2 Vít Ondruch 2014-01-07 15:20:59 UTC
Created attachment 846730 [details]
File: environ

Comment 3 Miroslav Suchý 2014-01-07 23:11:59 UTC
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.

Comment 4 Vít Ondruch 2014-01-08 09:08:25 UTC
(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.

Comment 5 Fedora Update System 2014-01-08 14:20:25 UTC
copr-1.20-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/copr-1.20-1.fc19

Comment 6 Fedora Update System 2014-01-08 14:21:31 UTC
copr-1.20-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/copr-1.20-1.fc20

Comment 7 Vít Ondruch 2014-01-08 14:33:36 UTC
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.

Comment 8 Miroslav Suchý 2014-01-08 15:28:43 UTC
Fixed in edbd89a.

Comment 9 Miroslav Suchý 2014-01-08 15:32:21 UTC
*** Bug 1044592 has been marked as a duplicate of this bug. ***

Comment 10 Fedora Update System 2014-01-10 07:46:07 UTC
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.

Comment 11 Fedora Update System 2014-01-17 05:51:36 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.