Bug#926631:

2019-04-16 Thread Eduard Bloch
Hallo,
* Dan Rozinsky [Tue, Apr 16 2019, 09:59:41AM]:
>Hi all,
>We were able to overcome the problem,
>We had to configure UserAgent as suggested here:
>
> [1]https://stackoverflow.com/questions/55570531/apt-cacher-ng-403-forbidden-on-specific-package
>The question that we had in mine is why the apt-cacher-ng doesn't use this
>parser as default?

I am sorry, this does not make sense. What do you mean with "parser"?

This recommendation there only fakes the identity of your client to
disguise it as APT's http client. Which means that the remote server is
influenced by user-agent information. Why? Does the remote need to apply
some extra workarounds for a buggy client?

Regards,
Eduard.



Bug#926631:

2019-04-16 Thread Dan Rozinsky
Hi all,
We were able to overcome the problem,
We had to configure UserAgent as suggested here:
https://stackoverflow.com/questions/55570531/apt-cacher-ng-403-forbidden-on-specific-package

The question that we had in mine is why the apt-cacher-ng doesn't use this
parser as default?


Bug#926631: Error HTTP 403 on several deb packages through apt-cacher-ng

2019-04-16 Thread Julian Andres Klode
Control: reassign -1 apt-cacher-ng

On Tue, Apr 16, 2019 at 07:30:56AM +0200, Eduard Bloch wrote:
> reassign 926631 apt
> thanks
> 
> Hallo,
> * Dan Rozinsky [Mon, Apr 08 2019, 12:22:53PM]:
> >Get:29 [29]http://archive.ubuntu.com/ubuntu bionic/main amd64 socat amd64
> 
> >1.7.3.2-2ubuntu2 [342 kB]
> >Fetched 20.2 MB in 9s (2357 kB/s)
> >E: Failed to fetch
> >
> > [30]http://dl.bintray.com/rabbitmq/debian/pool/rabbitmq-server/rabbitmq-server_3.6.16-1_all.deb
> >  
> >403  Forbidden [IP: apt-cacher-server 3142]
> >E: Unable to fetch some archives, maybe run apt-get update or try with
> >--fix-missing?
> >and in the /var/log/apt-cacher-ng/apt-cacher.log on the proxy server:
> >
> > 1554714723|I|7322905|apt-cacher-client|[31]archive.ubuntu.com/ubuntu/pool/main/e/erlang/erlang-base_20.2.2+dfsg-1ubuntu2_amd64.deb
> 
> What are those numbers? Why does your HTTP client send them as part of the 
> Host header?

Well, you inserted them there, they are not in the bug report.

> 
> This looks more like a bug report for your client, Ubuntu APT?
> 
> >
> > 1554714723|O|7322917|apt-cacher-client|[32]archive.ubuntu.com/ubuntu/pool/main/e/erlang/erlang-base_20.2.2+dfsg-1ubuntu2_amd64.deb
> >
> > 1554714724|I|724718|apt-cacher-client|[33]archive.ubuntu.com/ubuntu/pool/main/e/erlang/erlang-asn1_20.2.2+dfsg-1ubuntu2_amd64.deb
> 
> Yep, pretty sure that string was added to the hostname. Client bug!

Following above, and given that erlang-base was successfully fetched, I 
disagree with your
assessment.

-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer  i speak de, en



Bug#926631: Error HTTP 403 on several deb packages through apt-cacher-ng

2019-04-15 Thread Eduard Bloch
reassign 926631 apt
thanks

Hallo,
* Dan Rozinsky [Mon, Apr 08 2019, 12:22:53PM]:
>Get:29 [29]http://archive.ubuntu.com/ubuntu bionic/main amd64 socat amd64

>1.7.3.2-2ubuntu2 [342 kB]
>Fetched 20.2 MB in 9s (2357 kB/s)
>E: Failed to fetch
>
> [30]http://dl.bintray.com/rabbitmq/debian/pool/rabbitmq-server/rabbitmq-server_3.6.16-1_all.deb
>  
>403  Forbidden [IP: apt-cacher-server 3142]
>E: Unable to fetch some archives, maybe run apt-get update or try with
>--fix-missing?
>and in the /var/log/apt-cacher-ng/apt-cacher.log on the proxy server:
>
> 1554714723|I|7322905|apt-cacher-client|[31]archive.ubuntu.com/ubuntu/pool/main/e/erlang/erlang-base_20.2.2+dfsg-1ubuntu2_amd64.deb

What are those numbers? Why does your HTTP client send them as part of the Host 
header?

This looks more like a bug report for your client, Ubuntu APT?

>
> 1554714723|O|7322917|apt-cacher-client|[32]archive.ubuntu.com/ubuntu/pool/main/e/erlang/erlang-base_20.2.2+dfsg-1ubuntu2_amd64.deb
>
> 1554714724|I|724718|apt-cacher-client|[33]archive.ubuntu.com/ubuntu/pool/main/e/erlang/erlang-asn1_20.2.2+dfsg-1ubuntu2_amd64.deb

Yep, pretty sure that string was added to the hostname. Client bug!

Best regards,
Eduard.

--
 ihr seid doch alle doof
 TM
 youam: und stolz drauf



Bug#926631: Error HTTP 403 on several deb packages through apt-cacher-ng

2019-04-08 Thread Dan Rozinsky
Package: apt-cacher-ng
Version: 3.1-1

We've configured an apt proxy server with apt-cacher-ng, while it works for
most packages, when trying to install rabbitmq-server with mentioning a
specific version it fails with 403 error.
Any attempts to use regex in the V/PfilePatternEx ended up with the same
result.

We are using ubuntu 18.04.2 on both server and client

*on the client side it looks like this:*


ubuntu@apt-cacher-client:~$ sudo apt-get install rabbitmq-server=3.6.16-1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  grub-pc-bin
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  erlang-asn1 erlang-base erlang-corba erlang-crypto erlang-diameter
erlang-edoc erlang-eldap erlang-erl-docgen erlang-eunit erlang-ic
erlang-inets erlang-mnesia erlang-nox erlang-odbc
  erlang-os-mon erlang-parsetools erlang-public-key erlang-runtime-tools
erlang-snmp erlang-ssh erlang-ssl erlang-syntax-tools erlang-tools
erlang-xmerl libltdl7 libodbc1 libsctp1 socat
Suggested packages:
  erlang erlang-manpages erlang-doc xsltproc fop erlang-ic-java libmyodbc
odbc-postgresql tdsodbc unixodbc-bin lksctp-tools
The following NEW packages will be installed:
  erlang-asn1 erlang-base erlang-corba erlang-crypto erlang-diameter
erlang-edoc erlang-eldap erlang-erl-docgen erlang-eunit erlang-ic
erlang-inets erlang-mnesia erlang-nox erlang-odbc
  erlang-os-mon erlang-parsetools erlang-public-key erlang-runtime-tools
erlang-snmp erlang-ssh erlang-ssl erlang-syntax-tools erlang-tools
erlang-xmerl libltdl7 libodbc1 libsctp1
  rabbitmq-server socat
0 upgraded, 29 newly installed, 0 to remove and 197 not upgraded.
Need to get 25.2 MB of archives.
After this operation, 41.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 erlang-base amd64
1:20.2.2+dfsg-1ubuntu2 [7323 kB]
Err:2 http://dl.bintray.com/rabbitmq/debian bionic/main amd64
rabbitmq-server all 3.6.16-1
  403  Forbidden [IP: apt-cacher-server 3142]
Get:3 http://archive.ubuntu.com/ubuntu bionic/main amd64 erlang-asn1 amd64
1:20.2.2+dfsg-1ubuntu2 [724 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic/main amd64 erlang-mnesia
amd64 1:20.2.2+dfsg-1ubuntu2 [724 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic/main amd64
erlang-runtime-tools amd64 1:20.2.2+dfsg-1ubuntu2 [178 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 erlang-crypto
amd64 1:20.2.2+dfsg-1ubuntu2 [104 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic/main amd64 erlang-public-key
amd64 1:20.2.2+dfsg-1ubuntu2 [561 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic/main amd64 erlang-ssl amd64
1:20.2.2+dfsg-1ubuntu2 [814 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic/main amd64 erlang-inets amd64
1:20.2.2+dfsg-1ubuntu2 [711 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic/main amd64 erlang-corba
amd64 1:20.2.2+dfsg-1ubuntu2 [2251 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic/main amd64
erlang-syntax-tools amd64 1:20.2.2+dfsg-1ubuntu2 [345 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic/main amd64 erlang-diameter
amd64 1:20.2.2+dfsg-1ubuntu2 [647 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic/main amd64 erlang-xmerl
amd64 1:20.2.2+dfsg-1ubuntu2 [964 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic/main amd64 erlang-edoc amd64
1:20.2.2+dfsg-1ubuntu2 [283 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic/main amd64 erlang-eldap
amd64 1:20.2.2+dfsg-1ubuntu2 [101 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic/main amd64 erlang-erl-docgen
amd64 1:20.2.2+dfsg-1ubuntu2 [118 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic/main amd64 erlang-eunit
amd64 1:20.2.2+dfsg-1ubuntu2 [136 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic/main amd64 erlang-ic amd64
1:20.2.2+dfsg-1ubuntu2 [817 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic/main amd64 libltdl7 amd64
2.4.6-2 [38.8 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic/main amd64 libodbc1 amd64
2.3.4-1.1ubuntu3 [183 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic/main amd64 erlang-odbc amd64
1:20.2.2+dfsg-1ubuntu2 [47.5 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic/main amd64 erlang-snmp amd64
1:20.2.2+dfsg-1ubuntu2 [1531 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic/main amd64 erlang-os-mon
amd64 1:20.2.2+dfsg-1ubuntu2 [90.4 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic/main amd64 erlang-parsetools
amd64 1:20.2.2+dfsg-1ubuntu2 [153 kB]
Get:25 http://archive.ubuntu.com/ubuntu bionic/main amd64 erlang-ssh amd64
1:20.2.2+dfsg-1ubuntu2 [508 kB]
Get:26 http://archive.ubuntu.com/ubuntu bionic/main amd64 erlang-tools
amd64 1:20.2.2+dfsg-1ubuntu2 [503 kB]
Get:27 http://archive.ubuntu.com/ubuntu bionic/main amd64 erlang-nox all
1:20.2.2+dfsg-1ubuntu2 [13.4 kB]
Get:28 http://archive.ubuntu.com/ubuntu bionic/main amd64 libsctp1 amd64
1.0.17+dfsg-2 [8008 B]
Get:29