Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pac4cli getting errors on 22.04 even with DynamicUser=true #80

Open
rbeldin opened this issue Dec 8, 2023 · 2 comments
Open

pac4cli getting errors on 22.04 even with DynamicUser=true #80

rbeldin opened this issue Dec 8, 2023 · 2 comments

Comments

@rbeldin
Copy link

rbeldin commented Dec 8, 2023

Hi...

I thought I had the same issue in Ubuntu 22.04 as seen in the issue:

Pac4cli recently broke on Ubuntu 20.04
#78

But I have made the change to DynamicUseer=True and am seeing stack traces on startup:

Dec 08 15:05:25 rbeldin-HP-ZBook-15-G3 systemd[1]: Started PAC autoconfigured proxy for use through http_proxy= environment variables.
Dec 08 15:05:25 rbeldin-HP-ZBook-15-G3 /usr/lib/python3/dist-packages/pac4cli/main.py[14353]: WARNING [14353]: pac4cli: Problem reading configuration file /etc/pac4cli/pac4cli.config
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pac4cli/wpad.py", line 136, in getUrls
wpad_url = self.get_config_wpad_url(self.config_file)
File "/usr/lib/python3/dist-packages/pac4cli/wpad.py", line 125, in get_config_wpad_url
url = config.get('wpad', 'url')
File "/usr/lib/python3.10/configparser.py", line 783, in get
d = self._unify_values(section, vars)
File "/usr/lib/python3.10/configparser.py", line 1154, in _unify_values
raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'wpad'

My config file is a single line:

url=http://autocache.acme.corp/

It seems to 'mostly' work with the errors above, but it seems it is complaining about the format.

Do I have the format incorrect?

Thanks

@kdehairy
Copy link
Collaborator

kdehairy commented Dec 9, 2023

It seems that your config file is missing the section wpad. It should look like so:

[wpad]
url=http://autocache.acme.corp/

@rbeldin
Copy link
Author

rbeldin commented Dec 12, 2023

Indeed, I was missing that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants