Message boards : Theory Application : Feedback on the Theory docker app
Message board moderation

To post messages, you must log in.

Previous · 1 · 2 · 3 · 4 · 5

AuthorMessage
Toby Broom
Volunteer moderator

Send message
Joined: 27 Sep 08
Posts: 946
Credit: 783,716,460
RAC: 162,699
Message 53470 - Posted: 23 Apr 2026, 7:25:59 UTC

I see that the squid proxy does not work to localhost

stderr from container:
Environment proxy 'http://192.168.1.179:3128' set but can't be connected
Could not find a local HTTP proxy

CMS and other apps can use this path.
ID: 53470 · Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 15 Jun 08
Posts: 2753
Credit: 303,738,168
RAC: 109,574
Message 53471 - Posted: 23 Apr 2026, 7:38:25 UTC - in response to Message 53470.  

To me it's not clear what exactly does not work.

The local CVMFS doesn't use the Squid?
Then check your CVMFS configuration.

The Theory docker app doesn't use the Squid?
Then ensure the proxy is set in the [engine] section of containers.conf, like:
[engine]
env = [
     "http_proxy=http://192.168.1.179:3128",
   ]


Anything else?
ID: 53471 · Report as offensive     Reply Quote
Toby Broom
Volunteer moderator

Send message
Joined: 27 Sep 08
Posts: 946
Credit: 783,716,460
RAC: 162,699
Message 53477 - Posted: 23 Apr 2026, 16:04:37 UTC - in response to Message 53471.  
Last modified: 23 Apr 2026, 16:07:37 UTC

It seems like the docker is not using Squid.

I have in my /etc/cvmfs/default.local

CVMFS_HTTP_PROXY="http://192.168.1.179:3128;DIRECT"


I put the proxy info in [containers] and its working fine on all other computers, I try moving to [engine] amd see if the error goes.

It only only the computer that has squid that I see an issue.
ID: 53477 · Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 15 Jun 08
Posts: 2753
Credit: 303,738,168
RAC: 109,574
Message 53478 - Posted: 23 Apr 2026, 19:58:54 UTC - in response to Message 53477.  

Do you run a CVMFS and a Squid on the same computer?
Is this the computer with IP 192.168.1.179?
Can you confirm that CVMFS uses the Squid?

If so, Squid is correctly configured.
=> You need to look into the container config.
ID: 53478 · Report as offensive     Reply Quote
maeax

Send message
Joined: 2 May 07
Posts: 2304
Credit: 179,722,395
RAC: 27,537
Message 53480 - Posted: 24 Apr 2026, 6:10:32 UTC - in response to Message 53477.  

In Copilot Troubleshooting checklist:
double {{ and NOT one { string.
Is this the correct Reason for podman defining ?
ID: 53480 · Report as offensive     Reply Quote
Toby Broom
Volunteer moderator

Send message
Joined: 27 Sep 08
Posts: 946
Credit: 783,716,460
RAC: 162,699
Message 53481 - Posted: 24 Apr 2026, 7:06:50 UTC - in response to Message 53478.  

Yes, I have CVMFS and squid on the same computer 192.168.1.179.

I don't think CVMFS is using the proxy either:


Environment proxy 'http://192.168.1.179:3128' set but can't be connected
Could not find a local HTTP proxy
CVMFS and Frontier will have to use DIRECT connections
ID: 53481 · Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 15 Jun 08
Posts: 2753
Credit: 303,738,168
RAC: 109,574
Message 53482 - Posted: 24 Apr 2026, 8:52:49 UTC - in response to Message 53481.  

In reply to Toby Broom's message of 24 Apr 2026:
Yes, I have CVMFS and squid on the same computer 192.168.1.179.

I don't think CVMFS is using the proxy either:


Environment proxy 'http://192.168.1.179:3128' set but can't be connected
Could not find a local HTTP proxy
CVMFS and Frontier will have to use DIRECT connections

This message tells you that the proxy setting is passed to the container.
Please post a link to a task log from that computer.

You have to ensure your Squid allows requests from it's own host.
Run some tests and in parallel monitor if Squid's access.log reports corresponding lines with TCP_DENIED.

Check if 192.168.1.179 is included in the output or in a range from the output:
sudo squid -f /your/squid.conf -k parse 2>&1 |grep '192\.168'


Check if CVMFS on the host gets data via Squid.
cvmfs_config stat sft.cern.ch

The output should look like this:
ERSION PID UPTIME(M) MEM(K) REVISION EXPIRES(M) NOCATALOGS CACHEUSE(K) CACHEMAX(K) NOFDUSE NOFDMAX NOIOERR NOOPEN HITRATE(%) RX(K) SPEED(K/S) HOST PROXY ONLINE
2.12.3.3 21333 6544 373436 34975 0 3778 6626347 8388609 287 130560 0 910455 99.915 175515 785 http://s1cern-cvmfs.openhtc.io/cvmfs/sft.cern.ch http://192.168.1.179:3128 1


Ensure the netcat package (optional ncat) is installed to run some basic network test.
Post the output of all tests:
nc -zvw 3 192.168.1.179 3128
your result:
nc -zvw 3 localhost 3128
your result:
nc -zvw 3 -s 127.0.0.1 192.168.1.179 3128
your result:
nc -zvw 3 -s 127.0.0.1 localhost 3128
your result:


If all previous tests didn't report an error, continue with some container tests.
Temporarily set '<dont_check_file_sizes>1</dont_check_file_sizes>' in BOINC's cc_config.xml.
Modify projects/lhcathome.cern.ch_lhcathome/job_2025_04_15.toml like this:
create_args = "--cap-add=SYS_ADMIN --env=http_proxy=http://192.168.1.179:3128 --device /dev/fuse -v /cvmfs:/cvmfs:shared"
create_args = "--cap-add=SYS_ADMIN --network pasta:-4 --device /dev/fuse -v /cvmfs:/cvmfs:shared"
create_args = "--cap-add=SYS_ADMIN --network pasta:-4 --env=http_proxy=http://192.168.1.179:3128 --device /dev/fuse -v /cvmfs:/cvmfs:shared"

For each setting run a Theory task.
Which (if any) container gets data via Squid?
ID: 53482 · Report as offensive     Reply Quote
Toby Broom
Volunteer moderator

Send message
Joined: 27 Sep 08
Posts: 946
Credit: 783,716,460
RAC: 162,699
Message 53484 - Posted: 24 Apr 2026, 19:29:00 UTC - in response to Message 53482.  
Last modified: 24 Apr 2026, 20:00:58 UTC

This is the host:

https://lhcathome.cern.ch/lhcathome/results.php?hostid=10840239

acl crunchers src 192.168.1.179 is in the squid config.

no TCP_DENIED in the squid logs

I grepped for the hostname and I have plenty of items like:

Oxygen 3128 - - [24/Apr/2026:21:05:53 +0200] "GET http://s1cern-cvmfs.openhtc.io/cvmfs/cms-ib.cern.ch/.cvmfspublished HTTP/1.1" 200 1963 "-" "cvmfs Fuse 2.7.2 cbeefb35-e2f9-46d3-92c2-980508de09da" TCP_MEM_HIT:HIER_NONE

cvmfs_config stat sft.cern.ch
VERSION PID UPTIME(M) MEM(K) REVISION EXPIRES(M) NOCATALOGS CACHEUSE(K) CACHEMAX(K) NOFDUSE NOFDMAX NOIOERR NOOPEN HITRATE(%) RX(K) SPEED(K/S) HOST PROXY ONLINE
2.13.3.0 20433 1517 190508 34978 3 3259 2543840 4096001 285 130560 0 47870 99.973 27174 1840 http://s1cern-cvmfs.openhtc.io/cvmfs/sft.cern.ch http://192.168.1.179:3128 1

nc -zvw 3 192.168.1.179 3128
Connection to 192.168.1.179 3128 port [tcp/*] succeeded!
nc -zvw 3 localhost 3128
Connection to localhost (127.0.0.1) 3128 port [tcp/*] succeeded!
nc -zvw 3 -s 127.0.0.1 192.168.1.179 3128
Connection to 192.168.1.179 3128 port [tcp/*] succeeded!
nc -zvw 3 -s 127.0.0.1 localhost 3128
Connection to localhost (127.0.0.1) 3128 port [tcp/*] succeeded!

I updated the toml, I didn't comment out the orginal
create_args = "--cap-add=SYS_ADMIN --device /dev/fuse -v /cvmfs:/cvmfs:shared"

So it crashed out with TOML error: Error: line 5: Multiple same key: create_args

Let see how it goes with the 3 lines you gave
ID: 53484 · Report as offensive     Reply Quote
Toby Broom
Volunteer moderator

Send message
Joined: 27 Sep 08
Posts: 946
Credit: 783,716,460
RAC: 162,699
Message 53485 - Posted: 24 Apr 2026, 22:24:01 UTC
Last modified: 24 Apr 2026, 23:11:39 UTC

Doing some reading it seems like pasta networking does funkyness on localhost.

I tried to do something like:

podman exec -it d8561a1c654e curl --head http://s1cern-cvmfs.openhtc.io/cvmfs/cms-ib.cern.ch/.cvmfspublished

But there was connection refused.

So from the container, the loopback address is host.containers.internal

Setting the containers.conf to host.containers.internal now allows networking between the container and the proxy on localhost.

HTTP/1.1 200 OK
Via: 1.1 front-lcg-pdc-01.cern.ch (squid/frontier-squid-6.14-1.3), 1.1 Oxygen (squid/6.14)

I'm not sure how the CVMFS proxy config is passed to the container?

Seems like it works:

stderr from container:
Got a proxy from the local environment
Will use it for CVMFS and Frontier
VERSION HOST PROXY
2.13.3.0 http://s1cern-cvmfs.openhtc.io http://192.168.1.179:3128
Environment HTTP proxy: http://host.containers.internal:3128
ID: 53485 · Report as offensive     Reply Quote
maeax

Send message
Joined: 2 May 07
Posts: 2304
Credit: 179,722,395
RAC: 27,537
Message 53486 - Posted: 25 Apr 2026, 6:01:33 UTC - in response to Message 53485.  

sudo systemctl status squid

squid.service - Squid caching proxy.

Squid is working now inside of the VM!
Thank you Toby.
ID: 53486 · Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 15 Jun 08
Posts: 2753
Credit: 303,738,168
RAC: 109,574
Message 53487 - Posted: 25 Apr 2026, 6:29:26 UTC - in response to Message 53485.  

In reply to Toby Broom's message of 24 Apr 2026:
...
Seems like it works:

stderr from container:
Got a proxy from the local environment
Will use it for CVMFS and Frontier
VERSION HOST PROXY
2.13.3.0 http://s1cern-cvmfs.openhtc.io http://192.168.1.179:3128
Environment HTTP proxy: http://host.containers.internal:3128

That's good news.
We should keep it in mind.


Another good news is that even your older Theory (docker) tasks were using cached data since they reported:
Using CVMFS on the host.
.
.
.
VERSION HOST PROXY
2.13.3.0 http://s1cern-cvmfs.openhtc.io http://192.168.1.179:3128

Your host CVMFS in turn uses the local Squid.
Your tasks for Theory (vbox) and CMS are also using it.
ID: 53487 · Report as offensive     Reply Quote
Toby Broom
Volunteer moderator

Send message
Joined: 27 Sep 08
Posts: 946
Credit: 783,716,460
RAC: 162,699
Message 53488 - Posted: 25 Apr 2026, 9:04:01 UTC - in response to Message 53487.  

Theory (vbox) looks al little confusing in the logs:

2026-04-21 14:56:35 (583501): Guest Log: Got a proxy from the local BOINC client
2026-04-21 14:56:35 (583501): Guest Log: Will use it for CVMFS and Frontier
.
.
.
2026-04-21 14:56:38 (583501): Guest Log: VERSION HOST PROXY
2026-04-21 14:56:38 (583501): Guest Log: 2.13.1.0 http://s1cern-cvmfs.openhtc.io http://192.168.1.179:3128
2026-04-21 14:56:38 (583501): Guest Log: Environment HTTP proxy: not set

But its the same on all my hosts so I assume its working
ID: 53488 · Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 15 Jun 08
Posts: 2753
Credit: 303,738,168
RAC: 109,574
Message 53489 - Posted: 25 Apr 2026, 11:54:41 UTC - in response to Message 53488.  

It's working fine.

The environment proxy is nice to have for CMS (only) since CMS requests many objects from a distinct CERN webserver (but by far the most from CVMFS!). Theory does not use any data not provided via CVMFS.

Since the scripts were developed for CMS but are now also used for Theory you get that message about the missing environment proxy.
The reason is not the script but a missing tool at Theory (VM as well as podman image).
So far it makes no sense to install that tool on Theory.
Just focus on CVMFS and ignore the message.
ID: 53489 · Report as offensive     Reply Quote
Previous · 1 · 2 · 3 · 4 · 5

Message boards : Theory Application : Feedback on the Theory docker app


©2026 CERN