Hi,
Some of us work for companies with incredibly restrictive environments. while there is the whole HTTP_PROXY, it doesnt work for us some of us as the proxy server redirects to login and unity doesnt handle it. Oddly unity hub can check for itself, find new updates and download them (as it just updated to 2.1.3), but unity cannot, nor does the asset store or package manager. With the movement of more things to packages, this makes it harder for those of us who find ourselves effectively offline to use unity. The start time is slow because its trying to check packages. But it also means using dots, or whatever other packages is out the question. Why is it then hub can check, why is the same mechanism not used for the rest of the web calls
1 Like
Hi,
I was told that proxy configuration for Unity and Asset Store are controlled by the UNITY_PROXYSERVER variable and not HTTP_PROXY. Have you tried setting that environment variable in addition to HTTP_PROXY?
It appears that HTTP_PROXY is used for Hub and UPM, which may possibly explain why Hub works for you but not Unity. I will confirm that with an expert on Hub though, and hopefully find out under what other circumstances Hub would work but not Unity.
In the meantime, could you try setting the UNITY_PROXYSERVER variable and see if Unity/Package Manager/Asset Store work after that? If not, please provide any errors that are logged in the editor console when you try to open Unity/Package Manager.
Hi @IsopodInAnEscapePod_unity - actually unity hub just picks up the proxy used by my browser, having the HTTP_PROXY and HTTPS_PROXY set seemed to make it worse as maybe it did make contact but because it needed to login using a webform and you cant pass details to it, it seemed to take even longer to say no.
Hub with no settings, wont find new versions of unity to install but can find new versions of itself.
I will try the UNITY_PROXYSERVER however, as our proxy is set by a pac file, and can change without our knowledge, this is more complex … When I get a few moments I shall try
Package Manager says: [com.unity.rendering.hybrid@0.0.01-preview.13] Cannot connect to download.packages.unity.com:443 (error code: ENOTFOUND). Verify your environment firewall policies allow connection to this host name. If your system is behind a proxy, verify your proxy environement variables (HTTP_PROXY and HTTPS_PROXY) are properly set.
even when it is set…
For the asset store it just says you are offline, no messages anywhere are listed
Hi @bugfinders , thank you for the additional detail. I would like to make sure I understand this correctly, are you unable to make Hub/Unity use your proxy server via HTTP_PROXY because the proxy requires login credentials from a webform and there is no way to pass that info along when launching Unity?
It may be worth opening a bug in the hub bug reporter if so, and someone from Hub can assist you with that issue. You can access that from the system tray menu for Hub. If for some reason you cannot report a bug through Hub due to internet issues, reply in this thread and someone else can follow up.
You can also try looking at Unity - Manual: Diagnose network issues , but I am unsure of how up to date that info is.
Regarding the inconsistency in offline experience between Hub and Unity, we are still working on consolidating offline user experience for different areas. For Package Manager in particular, we are reworking the offline experience; I don’t have a more detailed answer on what those changes will entail or how similar it will be to the Hub experience right now, but if there are specific features you would like to see I can certainly make note of it.
For now though, yes try setting the UNITY_PROXYSERVER variable. Let us know if you run into the same issue with login credentials and we will assist you further.
Could you also share which version of Unity you have installed?
Hi @IsopodInAnEscapePod_unity its currently 2019.2.10, but Ive tried the beta and alpha for a laugh. PS those tests (above) were done with all 3 set… and no, they specifically insist you have to be present to type a password so that if you do bad stuff you cant pretend it wasnt you…
PS no it doesnt let me use the bug tool from work…
Even if it semi look promising eg the asset store says its online, hub and the asset store dont let me login, no error just no logged in after valid name and password
PS - was looking in the 2020 alpha today and I noticed that when trying to pull in a package (yeah I keep trying like a dufus) I noticed it was trying to connect to our proxy (http://proxy) as port 1080, not 80… and getting connection refused, rightly so, 1080 is not the proxy port…
Hi @bugfinders ,
I am wondering if you followed this document for using Unity behind the proxy server: Unity - Manual: Diagnose network issues
Hi @afshinity
I havent done the cert, as a) wouldnt know how b) the log files are showing connection refused, its not that it didnt like the answer so a cert wouldnt change that. But as indicated above, I have been setting the proxy variables. I cannot white list on the firewall as they just wouldnt even entertain it. If it involves installing software … cant do that.
As per earlier it ant even log the bug either.
@afshinity i don’t seem to be able to do anything. Can you help?
Having the same issues. Super restrictive CORP environment. Using Unity OFFLINE, but this is getting old as it was to be a temporary solution to work. Using other Apps that require PROXY and it takes all of about 5 minutes to setup and work.
Same as @bugfinders - I mentioned White list and was shutdown in seconds on even suggesting this.
1 Like
what is frustrating me is that
a) hub can see new versions, download new versions, even install them, when for unity itself cant do the same, it cant install unit from hub as I need to run it as admin, and its not just admin we have to right click and run it with a tool.
b) nothing can login, it just silently doesnt do anything, so login to hub, asset store through unity doesnt work or logging in, package manager doesnt work