squid only partially working WHY ?
Bo Berglund
bo.berglund at gmail.com
Mon May 30 15:02:39 UTC 2022
Do you *REALLY* *REALLY* *REALLY* need to top post and make the message
unreadable?
You are separating your own comment from what you commenting on by the entire
text of the quoted message......
This is top posted because I think you will not find it otherwise...
On Mon, 30 May 2022 14:51:55 +0100, Ian A Taylor via ubuntu-users
<ubuntu-users at lists.ubuntu.com> wrote:
>Oli
>
>Thank you for your reply
>
>on compute-0-2
>initially
>sudo snap get system proxy.http & sudo snap get system proxy.https were
>blank
>
>So I set them with
>sudo snap set system proxy.http=http://10.1.1.1:3128
>sudo snap set system proxy.https=http://10.1.1.1:3128
>
>
>sudo snap get system proxy.http
>http://10.1.1.1:3128
>
>sudo snap get system proxy.https
>http://10.1.1.1:3128
>
>
>I restarted snapd on compute-0-2
>
>sudo systemctl status snapd
>? snapd.service - Snap Daemon
> Loaded: loaded (/lib/systemd/system/snapd.service; enabled; vendor
>preset: enabled)
> Drop-In: /etc/systemd/system/snapd.service.d
> ??http-proxy.conf, https-proxy.conf
> Active: active (running) since Mon 2022-05-30 13:42:44 UTC; 9s ago
>TriggeredBy: ? snapd.socket
> Main PID: 5570 (snapd)
> Tasks: 16 (limit: 617445)
> Memory: 16.3M
> CPU: 139ms
> CGroup: /system.slice/snapd.service
> ??5570 /usr/lib/snapd/snapd
>
>May 30 13:42:44 compute-0-2 systemd[1]: Starting Snap Daemon...
>May 30 13:42:44 compute-0-2 snapd[5570]: AppArmor status: apparmor is
>enabled and all features are available
>May 30 13:42:44 compute-0-2 snapd[5570]: AppArmor status: apparmor is
>enabled and all features are available
>May 30 13:42:44 compute-0-2 snapd[5570]: overlord.go:263: Acquiring
>state lock file
>May 30 13:42:44 compute-0-2 snapd[5570]: overlord.go:268: Acquired state
>lock file
>May 30 13:42:44 compute-0-2 snapd[5570]: daemon.go:247: started
>snapd/2.55.5 (series 16; classic) ubuntu/22.04 (amd64)
>linux/5.15.0-33-generic.
>May 30 13:42:44 compute-0-2 snapd[5570]: daemon.go:340: adjusting
>startup timeout by 35s (pessimistic estimate of 30s plus 5s per snap)
>May 30 13:42:44 compute-0-2 systemd[1]: Started Snap Daemon.
>
>
>Then I run
>snap find test
>
>which resulted in
>
>error: cannot search: got unexpected HTTP status code 500 via GET to
>"http://snaps.spark.internal/v2/snaps/find?architecture=amd64&confinement=strict%2Cclassic&fields=base%2Cconfinement%2Ccontact%2Cdescription%2Cdownload%2Clicense%2Cprices%2Cprivate%2Cpublisher%2Crevision%2Csummary%2Ctitle%2Ctype%2Cversion%2Cwebsite%2Cstore-url%2Cmedia%2Ccommon-ids%2Cchannel&q=test"
>
>
>On spark:/var/log/squid/access.log I see
>1653918686.995 1 10.1.1.252 TCP_MISS/500 5582 GET
>http://snaps.spark.internal/v2/snaps/find? - HIER_NONE/- text/html
>1653918687.495 0 10.1.1.252 TCP_MISS/500 5582 GET
>http://snaps.spark.internal/v2/snaps/find? - HIER_NONE/- text/html
>1653918688.745 0 10.1.1.252 TCP_MISS/500 5582 GET
>http://snaps.spark.internal/v2/snaps/find? - HIER_NONE/- text/html
>1653918691.870 0 10.1.1.252 TCP_MISS/500 5582 GET
>http://snaps.spark.internal/v2/snaps/find? - HIER_NONE/- text/html
>1653918699.683 0 10.1.1.252 TCP_MISS/500 5582 GET
>http://snaps.spark.internal/v2/snaps/find? - HIER_NONE/- text/html
>1653918719.214 0 10.1.1.252 TCP_MISS/500 5582 GET
>http://snaps.spark.internal/v2/snaps/find? - HIER_NONE/- text/html
>
>FYI 10.1.1.252 is compute-0-2
>
>so whatever is wrong, that didn't solve it
>
>
>On 5/30/22 12:21, Oliver Grawert wrote:
>> hi,
>> Am Montag, dem 30.05.2022 um 10:49 +0100 schrieb Ian A Taylor via
>> ubuntu-users:
>>> Good day
>>>
>>> I have install ubuntu 22.04 server on 4 machines
>>>
>>> The machines are
>>>
>>> spark
>>>
>>> compute-0-[0,1,2]
>>>
>>> spark has an internet connect plus a connection to a restricted
>>> (10.1.1.0/24) network
>>>
>>> compute-0-[0,1,2] are on the restricted network
>>>
>>> 2 of the three compute-0-[0,1,2] machines install with snap ok
>>>
>>> but the third fails
>>>
>>> I cannot see why
>>>
>> how did you set the proxy settings in teh first place (note, you shuld
>> always use the "snap set system ..." and "snap get system ...."
>> commands, nevr edit systemd units or some such (they are typically
>> generated on the fly) ...
>>
>> cio
>> oli
>>
>--
>Ian Taylor
>University of St.Andrews,
>School of Physics & Astronomy,
>North Haugh,
>St.Andrews,
>Fife KY16 9SS,
>Scotland.
>
>e-Mail :- iat at st-and.ac.uk
>Tel :- (0)1334-463141
>Fax :- (0)1334-463104
>
>The University of St Andrews
>is a charity registered in
>Scotland : No SC013532.
--
Bo Berglund
Developer in Sweden
More information about the ubuntu-users
mailing list