Solved PKG_PROXY stopped to work as expected

Hi guys,

I can't download at the same speed as before using the USB tethering:

Code:
Proceed with this action? [y/N]: y
[1/1] Fetching librewolf-151.0.3:  51%    44 MiB  49.9 kB/s    09:51 ETA

Usually is around 1.5/2 mB/s; it might had some changes and I missed them.

My pkg.conf has this rule:

Code:
pkg_env : {
    ALL_PROXY: socks5h://localhost:12000
}

It has been working fine so far, not sure what is happening today, my ssh tunnel connection is up and running and my internet speed is solid fast.

Any suggestion? 🙏
 
Last edited:
From time to time, I see pkg download speeds like this. I wait a little and run pkg anew. Sometimes it works better, sometimes not. In which case, some hours latter, it's ok. What I'm saying is the problem can be on the servers side.
 
Last edited:
Incidentally it happened when I was fiddling with the environment to get fetch and libfetch using the proxy, but when I restored the condition the issues was still there... Maybe is only today... 🙏
 
I confirm the issue persists, PKG is not reading/applying this directive:

File: /usr/local/etc/pkg.conf

Code:
pkg_env : {
    ALL_PROXY: socks5h://localhost:12000
}

It used to work; has it changed anything and I missed it?
 
My pkg.conf has this rule:

Code:
pkg_env : {
      ALL_PROXY: socks5h://localhost:12000
}
It has been working fine so far,
Are you sure ALL_PROXY used to work? Because there is no such environment variable. grep(1)ing through the man pages (or source code of 14.4,15.0, 15.1, main) returns empty.

There is SOCKS5_PROXY, though:

pkg.conf(5)
Rich (BB code):
     PKG_ENV: Key/Value list
                  This tells pkg(8) to set key/values to be passed in the
                  environment.  This allow setting variables to configure the
                  http(s) fetcher.  Which accepts environment variables
                  compatible with fetch(3), e.g., HTTP_PROXY.  Default: not
                  set.

fetch(3)
Code:
     SOCKS5_PROXY        Uses SOCKS version 5 to make connection.  The format
                         must be the IP or hostname followed by a colon for
                         the port.  IPv6 addresses must enclose the address in
                         brackets.  If no port is specified, the default is
                         1080.  This setting will supercede a connection to an
                         HTTP_PROXY.
 
This setting is no longer working:

Code:
pkg_env : {
ALL_PROXY: socks5h://localhost:12000
}

This instead is working now:
Code:
pkg_env : {
    SOCKS5_PROXY=localhost:12000
}
 
Back
Top