Re: Can't fedpkg new-sources (403)

2022-03-16 Thread Neal Becker
On Wed, Mar 16, 2022 at 2:40 PM Kevin Fenzi  wrote:

> On Wed, Mar 16, 2022 at 01:55:03PM -0400, Neal Becker wrote:
> > On Wed, Mar 16, 2022 at 1:45 PM Neal Becker  wrote:
> >
> > >
> > >
> > > On Wed, Mar 16, 2022 at 1:38 PM Neal Becker 
> wrote:
> > >
> > >> I believe it is failing on the line:
> > >>   File "/usr/lib/python3.10/site-packages/pyrpkg/lookaside.py", line
> 298,
> > >> in upload
> > >> if self.remote_file_exists(name, filename, hash):
> > >>   File "/usr/lib/python3.10/site-packages/pyrpkg/lookaside.py", line
> 259,
> > >> in remote_file_exists
> > >> self.raise_upload_error(status)
> > >>
> > >> So maybe the file already exists in the cache?  But then, sources has
> not
> > >> been updated, and if I try
> > >> fedpkg local it will attempt to build the old version 1.8.1, not the
> new
> > >> 1.9.0.
> > >>
> > >>
> > 
> > > OK, so unuran-1.9.0.tar.gz already exists in the cache.  So I had to
> > > manually update sources by running
> > > md5sum unuran-1.9.0.tar.gz, which luckily I just guessed.  Now
> everything
> > > seems to be working fine.
> > >
> >
> > Ooops, spoke too soon.
> > fedpkg local
> > Downloading unuran-1.9.0.tar.gz
> > 
> > 100.0%
> > Remove downloaded invalid file
> > /home/nbecker/fedora.git/unuran/unuran-1.9.0.tar.gz
> > Could not execute local: Server returned status code 404
> >
> > No idea what's going on here.
>
> You seem to have gotten a kerberos ticket for:
>
> nbec...@fedoraproject.org
>
> which I guess ipa is fine with giving you.
> However, our upload script checking your username sees "NBECKER" and not
> 'nbecker' and denys you.
>
> Can you do:
>
> kdestroy -A
>
> then
>
> kinit nbec...@fedoraproject.org
>
> and see if it works?
>
> kevin
>

Yes, that was the problem and the solution.  The error messages I saw were
not very helpful.  Thanks!
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: Can't fedpkg new-sources (403)

2022-03-16 Thread Pierre-Yves Chibon
On Wed, Mar 16, 2022 at 01:45:52PM -0400, Neal Becker wrote:
>On Wed, Mar 16, 2022 at 1:38 PM Neal Becker <[1]ndbeck...@gmail.com>
>wrote:
> 
>  I believe it is failing on the line:
>    File "/usr/lib/python3.10/site-packages/pyrpkg/lookaside.py", line
>  298, in upload
>      if self.remote_file_exists(name, filename, hash):
>    File "/usr/lib/python3.10/site-packages/pyrpkg/lookaside.py", line
>  259, in remote_file_exists
>      self.raise_upload_error(status)
>  So maybe the file already exists in the cache?  But then, sources has
>  not been updated, and if I try 
>  fedpkg local it will attempt to build the old version 1.8.1, not the new
>  1.9.0.
> 
>OK, so unuran-1.9.0.tar.gz already exists in the cache.  So I had to
>manually update sources by running
>md5sum unuran-1.9.0.tar.gz, which luckily I just guessed.  Now everything
>seems to be working fine.

Also, we no longer use md5sum in our lookaside cache by default, but sha512, so
you may have more chances using that algorithm :)


Pierre
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: Can't fedpkg new-sources (403)

2022-03-16 Thread Kevin Fenzi
On Wed, Mar 16, 2022 at 01:55:03PM -0400, Neal Becker wrote:
> On Wed, Mar 16, 2022 at 1:45 PM Neal Becker  wrote:
> 
> >
> >
> > On Wed, Mar 16, 2022 at 1:38 PM Neal Becker  wrote:
> >
> >> I believe it is failing on the line:
> >>   File "/usr/lib/python3.10/site-packages/pyrpkg/lookaside.py", line 298,
> >> in upload
> >> if self.remote_file_exists(name, filename, hash):
> >>   File "/usr/lib/python3.10/site-packages/pyrpkg/lookaside.py", line 259,
> >> in remote_file_exists
> >> self.raise_upload_error(status)
> >>
> >> So maybe the file already exists in the cache?  But then, sources has not
> >> been updated, and if I try
> >> fedpkg local it will attempt to build the old version 1.8.1, not the new
> >> 1.9.0.
> >>
> >>
> 
> > OK, so unuran-1.9.0.tar.gz already exists in the cache.  So I had to
> > manually update sources by running
> > md5sum unuran-1.9.0.tar.gz, which luckily I just guessed.  Now everything
> > seems to be working fine.
> >
> 
> Ooops, spoke too soon.
> fedpkg local
> Downloading unuran-1.9.0.tar.gz
> 
> 100.0%
> Remove downloaded invalid file
> /home/nbecker/fedora.git/unuran/unuran-1.9.0.tar.gz
> Could not execute local: Server returned status code 404
> 
> No idea what's going on here.

You seem to have gotten a kerberos ticket for: 

nbec...@fedoraproject.org

which I guess ipa is fine with giving you. 
However, our upload script checking your username sees "NBECKER" and not
'nbecker' and denys you. 

Can you do: 

kdestroy -A

then

kinit nbec...@fedoraproject.org

and see if it works?

kevin


signature.asc
Description: PGP signature
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: Can't fedpkg new-sources (403)

2022-03-16 Thread Neal Becker
On Wed, Mar 16, 2022 at 1:45 PM Neal Becker  wrote:

>
>
> On Wed, Mar 16, 2022 at 1:38 PM Neal Becker  wrote:
>
>> I believe it is failing on the line:
>>   File "/usr/lib/python3.10/site-packages/pyrpkg/lookaside.py", line 298,
>> in upload
>> if self.remote_file_exists(name, filename, hash):
>>   File "/usr/lib/python3.10/site-packages/pyrpkg/lookaside.py", line 259,
>> in remote_file_exists
>> self.raise_upload_error(status)
>>
>> So maybe the file already exists in the cache?  But then, sources has not
>> been updated, and if I try
>> fedpkg local it will attempt to build the old version 1.8.1, not the new
>> 1.9.0.
>>
>>

> OK, so unuran-1.9.0.tar.gz already exists in the cache.  So I had to
> manually update sources by running
> md5sum unuran-1.9.0.tar.gz, which luckily I just guessed.  Now everything
> seems to be working fine.
>

Ooops, spoke too soon.
fedpkg local
Downloading unuran-1.9.0.tar.gz

100.0%
Remove downloaded invalid file
/home/nbecker/fedora.git/unuran/unuran-1.9.0.tar.gz
Could not execute local: Server returned status code 404

No idea what's going on here.
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: Can't fedpkg new-sources (403)

2022-03-16 Thread Neal Becker
On Wed, Mar 16, 2022 at 1:38 PM Neal Becker  wrote:

> I believe it is failing on the line:
>   File "/usr/lib/python3.10/site-packages/pyrpkg/lookaside.py", line 298,
> in upload
> if self.remote_file_exists(name, filename, hash):
>   File "/usr/lib/python3.10/site-packages/pyrpkg/lookaside.py", line 259,
> in remote_file_exists
> self.raise_upload_error(status)
>
> So maybe the file already exists in the cache?  But then, sources has not
> been updated, and if I try
> fedpkg local it will attempt to build the old version 1.8.1, not the new
> 1.9.0.
>
>
>>>
OK, so unuran-1.9.0.tar.gz already exists in the cache.  So I had to
manually update sources by running
md5sum unuran-1.9.0.tar.gz, which luckily I just guessed.  Now everything
seems to be working fine.
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: Can't fedpkg new-sources (403)

2022-03-16 Thread Neal Becker
I believe it is failing on the line:
  File "/usr/lib/python3.10/site-packages/pyrpkg/lookaside.py", line 298,
in upload
if self.remote_file_exists(name, filename, hash):
  File "/usr/lib/python3.10/site-packages/pyrpkg/lookaside.py", line 259,
in remote_file_exists
self.raise_upload_error(status)

So maybe the file already exists in the cache?  But then, sources has not
been updated, and if I try
fedpkg local it will attempt to build the old version 1.8.1, not the new
1.9.0.

On Wed, Mar 16, 2022 at 11:44 AM Neal Becker  wrote:

>
>
> On Wed, Mar 16, 2022 at 11:28 AM Ankur Sinha 
> wrote:
>
>> On Wed, Mar 16, 2022 10:46:43 -0400, Neal Becker wrote:
>> > Sorry if this is a duplicate message, previous one was held for
>> moderation.
>> >
>> > $ fedpkg new-sources ~/Downloads/unuran-1.9.0.tar.gz
>> > Could not execute new_sources: Fail to upload files. Server returns
>> status 403
>> >
>> > I haven't been active in packaging for some time, did I miss something?
>>
>> Another thing to check: did you run the kinit bit before trying the
>> `new-sources`?
>>
>> ```
>> kinit @FEDORAPROJECT.ORG
>> ```
>>
>
> Yes, without running kinit I got "not authorized"
>


-- 
*Those who don't understand recursion are doomed to repeat it*
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: Can't fedpkg new-sources (403)

2022-03-16 Thread Neal Becker
On Wed, Mar 16, 2022 at 11:28 AM Ankur Sinha  wrote:

> On Wed, Mar 16, 2022 10:46:43 -0400, Neal Becker wrote:
> > Sorry if this is a duplicate message, previous one was held for
> moderation.
> >
> > $ fedpkg new-sources ~/Downloads/unuran-1.9.0.tar.gz
> > Could not execute new_sources: Fail to upload files. Server returns
> status 403
> >
> > I haven't been active in packaging for some time, did I miss something?
>
> Another thing to check: did you run the kinit bit before trying the
> `new-sources`?
>
> ```
> kinit @FEDORAPROJECT.ORG
> ```
>

Yes, without running kinit I got "not authorized"
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: Can't fedpkg new-sources (403)

2022-03-16 Thread Ankur Sinha
On Wed, Mar 16, 2022 10:46:43 -0400, Neal Becker wrote:
> Sorry if this is a duplicate message, previous one was held for moderation.
> 
> $ fedpkg new-sources ~/Downloads/unuran-1.9.0.tar.gz
> Could not execute new_sources: Fail to upload files. Server returns status 403
> 
> I haven't been active in packaging for some time, did I miss something?

Another thing to check: did you run the kinit bit before trying the
`new-sources`?

```
kinit @FEDORAPROJECT.ORG
```


-- 
Thanks,
Regards,
Ankur Sinha "FranciscoD" (He / Him / His) | 
https://fedoraproject.org/wiki/User:Ankursinha
Time zone: Europe/London


signature.asc
Description: PGP signature
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: Can't fedpkg new-sources (403)

2022-03-16 Thread Neal Becker
 On Wed, Mar 16, 2022 at 10:57 AM Alexander Sosedkin 
wrote:

> On Wed, Mar 16, 2022 at 3:47 PM Neal Becker  wrote:
> >
> > Sorry if this is a duplicate message, previous one was held for
> moderation.
> >
> > $ fedpkg new-sources ~/Downloads/unuran-1.9.0.tar.gz
> > Could not execute new_sources: Fail to upload files. Server returns
> status 403
> >
> > I haven't been active in packaging for some time, did I miss something?
>
> Just a guess, but given how new-sources also updates at least .gitignore,
> I think it expects maintainers to have the file in the checkout.
> Does it fail the same if you place it there and pass a relative filepath?
> fedpkg new-sources unuran-1.9.0.tar.gz


fedpkg --verbose new-sources unuran-1.9.0.tar.gz
Creating repo object from /home/nbecker/fedora.git/unuran
Could not execute new_sources: Fail to upload files. Server returns status
403
Traceback (most recent call last):
  File "/usr/bin/fedpkg", line 33, in 
sys.exit(load_entry_point('fedpkg==1.42', '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 2688, in
new_sources
self.cmd.upload(
  File "/usr/lib/python3.10/site-packages/pyrpkg/__init__.py", line 3078,
in upload
self.lookasidecache.upload(
  File "/usr/lib/python3.10/site-packages/pyrpkg/lookaside.py", line 298,
in upload
if self.remote_file_exists(name, filename, hash):
  File "/usr/lib/python3.10/site-packages/pyrpkg/lookaside.py", line 259,
in remote_file_exists
self.raise_upload_error(status)
  File "/usr/lib/python3.10/site-packages/pyrpkg/lookaside.py", line 128,
in raise_upload_error
raise UploadError(message, http_status=http_status)
pyrpkg.errors.UploadError: Fail to upload files. Server returns status 403


>
> --
*Those who don't understand recursion are doomed to repeat it*
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: Can't fedpkg new-sources (403)

2022-03-16 Thread Alexander Sosedkin
On Wed, Mar 16, 2022 at 3:47 PM Neal Becker  wrote:
>
> Sorry if this is a duplicate message, previous one was held for moderation.
>
> $ fedpkg new-sources ~/Downloads/unuran-1.9.0.tar.gz
> Could not execute new_sources: Fail to upload files. Server returns status 403
>
> I haven't been active in packaging for some time, did I miss something?

Just a guess, but given how new-sources also updates at least .gitignore,
I think it expects maintainers to have the file in the checkout.
Does it fail the same if you place it there and pass a relative filepath?
fedpkg new-sources unuran-1.9.0.tar.gz
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Can't fedpkg new-sources (403)

2022-03-16 Thread Neal Becker
Sorry if this is a duplicate message, previous one was held for moderation.

$ fedpkg new-sources ~/Downloads/unuran-1.9.0.tar.gz
Could not execute new_sources: Fail to upload files. Server returns status
403

I haven't been active in packaging for some time, did I miss something?

-- 
*Those who don't understand recursion are doomed to repeat it*
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure