lantern icon indicating copy to clipboard operation
lantern copied to clipboard

Can't set PAC on newer Windows 10 versions

Open orbancanon opened this issue 10 years ago • 29 comments

Reported by user at https://github.com/getlantern/forum/issues/1465#issuecomment-252542781. Manually toggling "Set system proxy" doesn't work.

User's WIN10 version is 14942. Some user reported 14936 didn't work either, though the reason can potentially be different.

orbancanon avatar Oct 10 '16 07:10 orbancanon

Bumping up to P0 and adding to backlog, as users experiencing this issue just can't use Lantern, and Windows 10 forces auto-update.

joesis avatar Oct 10 '16 08:10 joesis

Many windows 10 complaints here https://github.com/getlantern/forum/issues/1418#issuecomment-252549809

ghost avatar Oct 10 '16 08:10 ghost

Checked that Lantern works fine on Windows 10 version 1607 (OS Build 14936.0) VM. From https://technet.microsoft.com/en-us/windows/release-info.aspx, it's the current production version. I'm trying to install all updates to see if one of them causes the issue.

The OS version in https://github.com/getlantern/forum/issues/1465 is OS Build 14942, which is for technical review. Lower to P1.

joesis avatar Oct 10 '16 12:10 joesis

It still works on build 14926.222

joesis avatar Oct 10 '16 12:10 joesis

So it may not directly relate to Windows version. As per @orbancanon 's confirmation with the user at https://github.com/getlantern/forum/issues/1465#issuecomment-253126709 , standalone pac-cmd can set PAC correctly, while Lantern can't.

joesis avatar Oct 12 '16 09:10 joesis

A few relevant logs: https://github.com/getlantern/forum/files/518858/lantern.zip https://github.com/getlantern/forum/files/521538/lantern.zip https://github.com/getlantern/forum/files/518928/logs.zip https://github.com/getlantern/forum/files/517439/logs.zip

joesis avatar Oct 13 '16 12:10 joesis

I think this might be the result of the random port change and this ticket:

https://github.com/getlantern/lantern-internal/issues/255

Is it only failing on Edge/IE for these users?

myleshorton avatar Oct 13 '16 19:10 myleshorton

@myleshorton From the forum, users only started experiencing this after auto-updated their Windows 10. The Lantern PAC URL just can't be set to OS. Should be a new issue.

joesis avatar Oct 13 '16 22:10 joesis

Oh interesting @joesis. You don't have an updated win10 by chance do you? It's working fine on my version.

myleshorton avatar Oct 14 '16 03:10 myleshorton

The hard part is, I couldn't reproduce it either. However, several users reported the very same issue recently. From limited info at https://github.com/getlantern/forum/issues/1466#issuecomment-252803712, Lantern worked again after reverted from build 14936 back to build 14931.

joesis avatar Oct 14 '16 06:10 joesis

OK thanks @joesis. I might be able to reproduce it on another win10 machine at home, but I can't test that again until tonight. Added to TODO along with #5354.

myleshorton avatar Oct 14 '16 14:10 myleshorton

I'm on 1607 as well @joesis, and it's generally working for me although the auto-launch after install looks like it might be failing -- checking that.

myleshorton avatar Oct 14 '16 16:10 myleshorton

hmmn, no that's working fine actually (it's running automatically after install).

myleshorton avatar Oct 14 '16 16:10 myleshorton

A special Windows binary @joesis built based on devel but with a different pac-cmd does work for one user, though the intention was to collect more detailed log. Waiting for user's log. The cause is yet clear.

orbancanon avatar Oct 17 '16 14:10 orbancanon

User reported problem with Windows 10 Pro Insider Preview Build 14936.rs_prerelease.160932-1700

https://github.com/getlantern/lantern/issues/5342#issuecomment-254033104

ghost avatar Oct 17 '16 17:10 ghost

I wonder if a build from here fixes the issue?

oxtoacart avatar Oct 17 '16 21:10 oxtoacart

I added a feature to pac-cmd to show existing PAC setting and modified pac.go to verify the PAC is actually set.

The cause for https://github.com/getlantern/forum/issues/1465 is quite interesting. A 64bit pac-cmd executable works normally on user's PC. A 32bit pac-cmd executable can also set and show the PAC setting, but the setting doesn't show up in the control panel dialog! It doesn't take effect either. It must be something with the Windows 10 version.

Below are two screenshots uses different Lantern test binaries. The only difference is embedding 32bit or 64bit pac-cmd (note the Lantern version showing on the UI).

image

image

One immediate solution would be to embed both 32bit and 64bit Windows executable, like what we do for Linux.

orbancanon avatar Oct 18 '16 11:10 orbancanon

@orbancanon Awesome troubleshooting!

oxtoacart avatar Oct 18 '16 11:10 oxtoacart

@orbancanon We've been thinking about switching away from using a PAC file to just setting the HTTP and HTTPS proxies. This binary does that - https://github.com/getlantern/sysproxy-cmd/tree/issue3039/binaries/windows

It's only 32 bit, but I'm curious if it works with your Windows 10?

The syntax is sysproxy on localhost 14235

oxtoacart avatar Oct 18 '16 11:10 oxtoacart

@oxtoacart The 32bit binary works on my Windows 10 VM, however, it doesn't work on the specific user's PC, and presumably other users experiencing the very same symptom. That's why I had to build a test Lantern binary for them to test.

I guess we need to do the same for sysproxy because it uses the same set of syscall as pac.

Maybe postpone switching to sysproxy until next version? More testing would be required.

orbancanon avatar Oct 18 '16 12:10 orbancanon