Page MenuHomeVyOS Platform

Webproxy not functional in 1.2.8 update
Closed, ResolvedPublicBUG

Description

[email protected]# set service webproxy listen-address 0.0.0.0 disable-transparent
[edit]
[email protected]# commit
[ service webproxy ]
df: โ€˜/var/spool/squid3โ€™: No such file or directory
Can't touch /var/log/squid3/access.log: No such file or directory at /opt/vyatta/share/perl5/Vyatta/File.pm line 36.

[[service webproxy]] failed
Commit failed
[edit]

Details

Difficulty level
Unknown (require assessment)
Version
1.2.8
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

Viacheslav changed the task status from Open to Confirmed.EditedJul 8 2021, 10:52 PM
Viacheslav added a subscriber: Viacheslav.

It seems there were changes in squid , but not in our code.

[email protected]:~$ ls -la /var/log/squid3/
ls: cannot access /var/log/squid3/: No such file or directory     <== No more such directory by default
[email protected]:~$ 
[email protected]:~$ ls -la /var/log/squi
squid/      squidguard/ 
[email protected]:~$ ls -la /var/log/squid
total 28
drwxr-xr-x 1 proxy proxy 4096 Jul  9 00:17 .
drwxr-xr-x 1 root  root  4096 Jul  7 21:51 ..
-rw-r----- 1 proxy proxy    0 Jul  9 00:17 access.log
-rw-r----- 1 proxy proxy    0 Jul  8 00:17 access.log.1
-rw-r----- 1 proxy proxy   20 Jul  7 21:39 access.log.2.gz
-rw-r----- 1 proxy proxy 2152 Jul  9 01:08 cache.log
-rw-r----- 1 proxy proxy 6279 Jul  9 00:17 cache.log.1
-rw-r----- 1 proxy proxy 1712 Jul  8 00:17 cache.log.2.gz
-rw-r----- 1 proxy proxy    0 Jul  7 22:31 netdb.state

https://github.com/vyos/vyatta-webproxy/blob/360343120ebcf50737f6914aac5c3efbad771ca9/scripts/vyatta-update-webproxy.pl#L44

Can be related with another bug T3674

@trystan Can you download this pkg to vyos /tmp and install it? It should fix this issue

dpkg -i vyatta-webproxy_1.2.8_all.deb

Success!

[email protected]# commit
[ service webproxy ]
Restarting squid (via systemctl): squid.service.

[edit]

passes traffic as expected

The latest .deb with fixed in pr above

Viacheslav claimed this task.
Viacheslav moved this task from Needs Triage to Finished on the VyOS 1.2 Crux (VyOS 1.2.9) board.