Skip to content
This repository has been archived by the owner on May 3, 2019. It is now read-only.

Corporate Proxy variable is not being respected by the CLI #93

Open
AlieGG opened this issue Jun 1, 2017 · 8 comments
Open

Corporate Proxy variable is not being respected by the CLI #93

AlieGG opened this issue Jun 1, 2017 · 8 comments
Assignees
Labels

Comments

@AlieGG
Copy link

AlieGG commented Jun 1, 2017

The CLI is not respecting the http_proxy env variable

Error:


Upgrade Check Error:  { [Error: getaddrinfo ENOTFOUND raw.githubusercontent.com raw.githubusercontent.com:443]
  code: 'ENOTFOUND',
  errno: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'raw.githubusercontent.com',
  host: 'raw.githubusercontent.com',
  port: 443 }

@eighteyes
Copy link
Contributor

This was an issue with the version checks, which we've removed, since auto-upgrade turned out to be be one of those clever ideas that programmers come up with that turns out horrific in practice. These changes were made in the cli-modules, so your best bet would be to reinstall matrix-cli at this time and try again. Thanks!

@AlieGG
Copy link
Author

AlieGG commented Jun 1, 2017

Just a note, we don't have a proxy handy so we were not able to test this. Please let us know how it works.

@trybius
Copy link

trybius commented Jun 1, 2017

Hi,
The updated patch has removed the errors regarding the auto update, but now the matrix command seems to just hang for 10 - 45 seconds without doing anything, no matter what I pass into it.

I've tried with the debug var, and this is what I'm getting :

xxx@xxx:~$ DEBUG=* matrix register
  cli Env:  rc +0ms
xxx@xxx:~$

@eighteyes
Copy link
Contributor

Great, so it doesn't work. Let me give it another shot. You're specifically trying the register command?

@trybius
Copy link

trybius commented Jun 1, 2017

No matter what command I use (no command, register, use, login) it does the same thing, but with the delay changing from instant, to 60 seconds depending on the command.

@eighteyes
Copy link
Contributor

Shoot, it seems like request normally handles HTTP_PROXY fine so I'm not sure where this is going amiss.

Aha! Firebase! firebase/firebase-tools#36

We definitely want to support proxies, so we'll keep this in our bug-tracker, but I hesitate to say this will get resolved quickly.

@trybius
Copy link

trybius commented Jun 2, 2017

Ah, that is a pity. I imagine some of your users like myself will be stuck behind a proxy.

Can you tell me what addresses / ports are accessed in and out of matrix? I can try to ask our IT guys to add rules based on that.

Could you also tell me if there is an alternative to using the matrix program? Is there a different way to upload programs to the device directly on the Pi, without needing the host CLI?

@trybius
Copy link

trybius commented Jun 2, 2017

FYI - I have been able to go through our proxy using a program called proxychains4 (https://github.com/rofl0r/proxychains-ng) in case any other users need to go through a proxy.

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

No branches or pull requests

3 participants