Can't set PAC on newer Windows 10 versions
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.
Bumping up to P0 and adding to backlog, as users experiencing this issue just can't use Lantern, and Windows 10 forces auto-update.
Many windows 10 complaints here https://github.com/getlantern/forum/issues/1418#issuecomment-252549809
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.
It still works on build 14926.222
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.
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
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 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.
Oh interesting @joesis. You don't have an updated win10 by chance do you? It's working fine on my version.
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.
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.
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.
hmmn, no that's working fine actually (it's running automatically after install).
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.
User reported problem with Windows 10 Pro Insider Preview Build 14936.rs_prerelease.160932-1700
https://github.com/getlantern/lantern/issues/5342#issuecomment-254033104
I wonder if a build from here fixes the issue?
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).


One immediate solution would be to embed both 32bit and 64bit Windows executable, like what we do for Linux.
@orbancanon Awesome troubleshooting!
@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 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.