Re: .dput.cf WAS: Upload failed: 301 Moved Permanently

2018-03-22 Thread Georg Faerber
On 18-03-22 12:29:34, Hugh McMaster wrote:
> On Wednesday, 21 March 2018 10:58 PM, Mattia Rizzolo wrote:
> > As an admin of mentors.d.n (and as a chronically lazy person) I'm
> > curious as to why anybody would go to the extra length of using a
> > local configuration when both dput and dput-ng ship with good enough
> > default one.
> 
> Well, another reason is that https://mentors.debian.net/qa says FTP
> uploads can take up to 30 minutes to be processed, compared to 2
> minutes for HTTP.
> 
> Some people don't want to wait that long.

There is a proposed patch to clarify the situation [1].

Cheers,
Georg


[1] https://salsa.debian.org/mentors.debian.net-team/debexpo/merge_requests/1


signature.asc
Description: Digital signature


Re: .dput.cf WAS: Upload failed: 301 Moved Permanently

2018-03-22 Thread Hugh McMaster
On Wednesday, 21 March 2018 10:58 PM, Mattia Rizzolo wrote:
> As an admin of mentors.d.n (and as a chronically lazy person) I'm
> curious as to why anybody would go to the extra length of using a local
> configuration when both dput and dput-ng ship with good enough default
> one.

Well, another reason is that https://mentors.debian.net/qa says FTP uploads 
can take up to 30 minutes to be processed, compared to 2 minutes for HTTP.

Some people don't want to wait that long.

--
Hugh McMaster


Re: .dput.cf WAS: Upload failed: 301 Moved Permanently

2018-03-22 Thread Etienne Dysli Metref
On 21/03/18 12:58, Mattia Rizzolo wrote:
> Like I said in my first post¹, just to fulfil my curiosity.
> As an admin of mentors.d.n (and as a chronically lazy person) I'm
> curious as to why anybody would go to the extra length of using a local
> configuration when both dput and dput-ng ship with good enough default
> one.

I vaguely remember creating my ~/.dput.cf when I began packaging and
using mentors.d.n following some instructions somewhere...

Maybe people do it because https://mentors.debian.net/intro-maintainers
shows example dput configurations? This suggests that some configuration
is needed in order to upload to mentors after installing dput. The
phrasing of section "How to upload packages to mentors.debian.net?"
could be changed to say that dput's default configuration is enough.

Cheers,
  Etienne



signature.asc
Description: OpenPGP digital signature


Re: .dput.cf WAS: Upload failed: 301 Moved Permanently

2018-03-21 Thread Georg Faerber
On 18-03-21 12:58:39, Mattia Rizzolo wrote:
> On Wed, Mar 21, 2018 at 12:31:39AM +0100, Georg Faerber wrote:
> > I've to admit: I'm not really getting your point, Mattia.
> 
> Like I said in my first post¹, just to fulfil my curiosity.
> As an admin of mentors.d.n (and as a chronically lazy person) I'm
> curious as to why anybody would go to the extra length of using a local
> configuration when both dput and dput-ng ship with good enough default
> one.
> Nothing more, really.

Alright - we're on the same page, because I'm using the default config
now, again. :)

Thanks for your work on m.d.n!

Cheers,
Georg


signature.asc
Description: Digital signature


Re: .dput.cf WAS: Upload failed: 301 Moved Permanently

2018-03-21 Thread Mattia Rizzolo
On Wed, Mar 21, 2018 at 12:31:39AM +0100, Georg Faerber wrote:
> I've to admit: I'm not really getting your point, Mattia.

Like I said in my first post¹, just to fulfil my curiosity.
As an admin of mentors.d.n (and as a chronically lazy person) I'm
curious as to why anybody would go to the extra length of using a local
configuration when both dput and dput-ng ship with good enough default
one.
Nothing more, really.

¹ https://lists.debian.org/debian-mentors/2018/03/msg00268.html

-- 
regards,
Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540  .''`.
more about me:  https://mapreri.org : :'  :
Launchpad user: https://launchpad.net/~mapreri  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-


signature.asc
Description: PGP signature


Re: .dput.cf WAS: Upload failed: 301 Moved Permanently

2018-03-20 Thread Georg Faerber
On 18-03-20 20:33:14, Mattia Rizzolo wrote:
> On Tue, Mar 20, 2018 at 06:50:27PM +0100, Georg Faerber wrote:
> > > Questions, just to fulfil my curiosity:
> > > 1) why do you prefer https over ftp?
> > 
> > That's not a sign of my preference. I've just changed this ~ one
> > week ago, because uploads weren't possible anymore. I've read the
> > announcement regarding the change of the incoming directory, but
> > changing 'ftp' to 'https' just worked. I didn't dig to find [1], but
> > now I did.. :)
> 
> "one week ago" doesn't match anything that happened on mentors.  The
> change we made about the *recommended* ftp upload path (i.e., the old
> one should work just fine) have nothing to do with the http upload
> method.

There was a "~" in front, and yes, you're right, "one week" is different
from "four weeks". But: I don't track this file in git or somewhere
else, so I can't tell for sure, because I've just relied on the provided
config, up until recently. I did so much Debian stuff the last time that
I actually don't remember the exact date. The only thing I'm sure about:
I needed to alter the config recently (within February or March 2018)
because the old config didn't work anymore. Back then I hadn't time to
debug this further, so I've just tried to make the config work.

> What changed, back the 2018-02-23, is that before there was a redirect
> from http to https for everything except /upload, whereas now we
> accidentally moved to redirect everything *including* /upload.
> Apparently there was a reason for that exception that was accidentally
> dropped, but I believe moving to https is fine, and things seem to
> work just fine after s/http/https/ so I'd rather not add that
> exception anymore.

Therefore, nowadays: What's the recommend method to use? Still ftp?

> > > 2) are you aware that both dput and dput-ng ships with a default
> > >'mentors' profile to upload through ftp?
> > 
> > Yes, thanks.
> 
> Then, especially after you switched your local user configuration to
> use ftp so it's basically the same as the one shipped by dput, why
> aren't you using it?

I'm doing this now, again, after reading the initial mails of this
thread, see above.

I've to admit: I'm not really getting your point, Mattia.

Cheers,
Georg


signature.asc
Description: Digital signature


Re: .dput.cf WAS: Upload failed: 301 Moved Permanently

2018-03-20 Thread Mattia Rizzolo
On Tue, Mar 20, 2018 at 06:50:27PM +0100, Georg Faerber wrote:
> > Questions, just to fulfil my curiosity:
> > 1) why do you prefer https over ftp?
> 
> That's not a sign of my preference. I've just changed this ~ one
> week ago, because uploads weren't possible anymore. I've read the
> announcement regarding the change of the incoming directory, but
> changing 'ftp' to 'https' just worked. I didn't dig to find [1], but now
> I did.. :)

"one week ago" doesn't match anything that happened on mentors.
The change we made about the *recommended* ftp upload path (i.e., the
old one should work just fine) have nothing to do with the http upload
method.

What changed, back the 2018-02-23, is that before there was a redirect
from http to https for everything except /upload, whereas now we
accidentally moved to redirect everything *including* /upload.
Apparently there was a reason for that exception that was accidentally
dropped, but I believe moving to https is fine, and things seem to work
just fine after s/http/https/ so I'd rather not add that exception
anymore.

FWIW:
https://salsa.debian.org/mentors.debian.net-team/debexpo/compare/168425582bd76f23ad5f0763d55a24ef50f6c0d2...dd753d68f1a7adb72268dfc2b9b0fbcf57df64a6

> > 2) are you aware that both dput and dput-ng ships with a default
> >'mentors' profile to upload through ftp?
> 
> Yes, thanks.

Then, especially after you switched your local user configuration to use
ftp so it's basically the same as the one shipped by dput, why aren't
you using it?

-- 
regards,
Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540  .''`.
more about me:  https://mapreri.org : :'  :
Launchpad user: https://launchpad.net/~mapreri  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-


signature.asc
Description: PGP signature


Re: .dput.cf WAS: Upload failed: 301 Moved Permanently

2018-03-20 Thread Elimar Riesebieter
* Geert Stappers  [2018-03-20 18:12 +0100]:

> On Mon, Mar 19, 2018 at 01:12:20PM +0100, Elimar Riesebieter wrote:
> > * Hugh McMaster  [2018-03-19 11:20 +]:
> > 
> > > Hi Elimar,
> > > 
> > > On Monday, 19 March 2018 9:23 PM, Elimar Riesebieter wrote:
> > > > I tried to upload via dput a modified package and get:
> > > > [...]
> > > >  Uploading mailfilter_0.8.6-3.dsc: Upload failed: 301 Moved Permanently
> > > 
> > > I also encountered this issue today. On #debian-mentors, Ansgar Burchardt 
> > > said
> > > uploads now required use of https, which worked for me.
> > > 
> > > So try modifying the 'method' line in your .dput.cf file to use https.
> > 
> > That works. Thank you.
> > Elimar
> 
> And what is now the content of you .dput.cf  ?

Read 'How to upload packages to mentors.debian.net?' at [0].

[0] https://mentors.debian.net/intro-maintainers

Elimar
-- 
  >what IMHO then?
  IMHO - Inhalation of a Multi-leafed Herbal Opiate ;)
  --posting from alex in debian-user--



Re: .dput.cf WAS: Upload failed: 301 Moved Permanently

2018-03-20 Thread Georg Faerber
On 18-03-20 18:39:21, Mattia Rizzolo wrote:
> On Tue, Mar 20, 2018 at 06:23:36PM +0100, Georg Faerber wrote:
> > On 18-03-20 18:12:36, Geert Stappers wrote:
> > > And what is now the content of you .dput.cf  ?
> > > 
> > > Yes, I'm looking for working  .dput.cf
> > 
> > [mentors]
> > fqdn = mentors.debian.net
> > incoming = /upload
> > method = https
> 
> Questions, just to fulfil my curiosity:
> 1) why do you prefer https over ftp?

That's not a sign of my preference. I've just changed this ~ one
week ago, because uploads weren't possible anymore. I've read the
announcement regarding the change of the incoming directory, but
changing 'ftp' to 'https' just worked. I didn't dig to find [1], but now
I did.. :)

Therefore, the configuration should read:

[mentors]
fqdn = mentors.debian.net
incoming = /pub/UploadQueue
method = ftp
allow_unsigned_uploads = 0
progress_indicator = 2
# Allow uploads for UNRELEASED packages
allowed_distributions = .*

> 2) are you aware that both dput and dput-ng ships with a default
>'mentors' profile to upload through ftp?

Yes, thanks.


[1]
https://salsa.debian.org/debian/dput/commit/31185d192d6fb6700363aed5787242e7aaeb4cf0


signature.asc
Description: Digital signature


Re: .dput.cf WAS: Upload failed: 301 Moved Permanently

2018-03-20 Thread Mattia Rizzolo
On Tue, Mar 20, 2018 at 06:42:40PM +0100, Geert Stappers wrote:
> Why the ".ini format"? 
> At http://dput.readthedocs.io/en/latest/reference/configs.html#practice is 
> JSON ...

That's docs for dput-ng, not dput.
If you have dput-ng installed, like I think you do, read dput(5) for
more information on the configuration formats supported by dput-ng.

-- 
regards,
Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540  .''`.
more about me:  https://mapreri.org : :'  :
Launchpad user: https://launchpad.net/~mapreri  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-


signature.asc
Description: PGP signature


Re: .dput.cf WAS: Upload failed: 301 Moved Permanently

2018-03-20 Thread Geert Stappers
On Tue, Mar 20, 2018 at 06:39:21PM +0100, Mattia Rizzolo wrote:
> On Tue, Mar 20, 2018 at 06:23:36PM +0100, Georg Faerber wrote:
> > On 18-03-20 18:12:36, Geert Stappers wrote:
> > > And what is now the content of you .dput.cf  ?
> > > 
> > > Yes, I'm looking for working  .dput.cf
> > 
> > [mentors]
> > fqdn = mentors.debian.net
> > incoming = /upload
> > method = https
> 
> Questions, just to fulfil my curiosity:
> 1) why do you prefer https over ftp?
> 2) are you aware that both dput and dput-ng ships with a default
>'mentors' profile to upload through ftp?
> 

Why the ".ini format"? 
At http://dput.readthedocs.io/en/latest/reference/configs.html#practice is JSON 
...


Groeten
Geert Stappers
-- 
Leven en laten leven



Re: .dput.cf WAS: Upload failed: 301 Moved Permanently

2018-03-20 Thread Mattia Rizzolo
On Tue, Mar 20, 2018 at 06:23:36PM +0100, Georg Faerber wrote:
> On 18-03-20 18:12:36, Geert Stappers wrote:
> > And what is now the content of you .dput.cf  ?
> > 
> > Yes, I'm looking for working  .dput.cf
> 
> [mentors]
> fqdn = mentors.debian.net
> incoming = /upload
> method = https

Questions, just to fulfil my curiosity:
1) why do you prefer https over ftp?
2) are you aware that both dput and dput-ng ships with a default
   'mentors' profile to upload through ftp?

-- 
regards,
Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540  .''`.
more about me:  https://mapreri.org : :'  :
Launchpad user: https://launchpad.net/~mapreri  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-


signature.asc
Description: PGP signature


Re: .dput.cf WAS: Upload failed: 301 Moved Permanently

2018-03-20 Thread Georg Faerber
On 18-03-20 18:12:36, Geert Stappers wrote:
> And what is now the content of you .dput.cf  ?
> 
> Yes, I'm looking for working  .dput.cf

[mentors]
fqdn = mentors.debian.net
incoming = /upload
method = https
allow_unsigned_uploads = 0
progress_indicator = 2
# Allow uploads for UNRELEASED packages
allowed_distributions = .*


signature.asc
Description: Digital signature