Problem:
I’m having some problems letting apt-mirror make a copy of the Debian repo, so that we can use it within our datacenter.
I noticed that the URLs at ://packages.graylog2.org/repo/debian/… all redirect to ://graylog2-package-repository.s3.amazonaws.com/debian/…
apt-mirror’s behaviour is to use wget’s --timestamping
option to check if the remote file is newer. This works, except that the S3 URL expires in the 1 second wget needs to first determine that the file is newer, and then starts downloading the file.
Potential solution:
Could packages.graylog2.org consider increasing the S3 URL expiry, even if it’s just a few seconds? Letting apt-mirror do its job would help us/you decrease the amount of S3 bandwidth consumed.
Here is the output from apt-mirror/wget:
--2017-09-07 04:10:04-- https://packages.graylog2.org/repo/debian/dists/stable/2.2/binary-amd64/Packages.gz
Connecting to web-proxy.abc (web-proxy.abc)|1.2.3.4|:80... connected.
Proxy request sent, awaiting response... 302 Found
Location: https://graylog2-package-repository.s3.amazonaws.com/debian/dists/stable/2.2/binary-amd64/Packages.gz?AWSAccessKeyId=AKIAIJSI6MCSPXFVDPIA&Expires=1504729205&Signature=L7fBApigxWBz6d0FIuDffd6AVpY%3D [following]
--2017-09-07 04:10:05-- https://graylog2-package-repository.s3.amazonaws.com/debian/dists/stable/2.2/binary-amd64/Packages.gz?AWSAccessKeyId=AKIAIJSI6MCSPXFVDPIA&Expires=1504729205&Signature=L7fBApigxWBz6d0FIuDffd6AVpY%3D
Connecting to web-proxy.abc (web-proxy.abc)|1.2.3.4|:80... connected.
Proxy request sent, awaiting response... 200 OK
Length: 3665 (3.6K) [application/gzip]
Remote file is newer, retrieving.
--2017-09-07 04:10:07-- https://graylog2-package-repository.s3.amazonaws.com/debian/dists/stable/2.2/binary-amd64/Packages.gz?AWSAccessKeyId=AKIAIJSI6MCSPXFVDPIA&Expires=1504729205&Signature=L7fBApigxWBz6d0FIuDffd6AVpY%3D
Connecting to web-proxy.abc (web-proxy.abc)|1.2.3.4|:80... connected.
Proxy request sent, awaiting response... 403 Forbidden
2017-09-07 04:10:08 ERROR 403: Forbidden.