Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Mar 2021 15:11:14 +0900
From:      Hiroki Tagato <tagattie@FreeBSD.org>
To:        Henrik Rosenke <rosenke@dssgmbh.de>
Cc:        FreeBSD <freebsd-ports@freebsd.org>
Subject:   Re: devel/electron11 fetching behind a proxy
Message-ID:  <2ed25db9-0563-aaa1-43bf-bc36e313ccfd@FreeBSD.org>
In-Reply-To: <55f00e3f-5699-25bb-5c3a-72bba90aed5b@dssgmbh.de>
References:  <55f00e3f-5699-25bb-5c3a-72bba90aed5b@dssgmbh.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Henrik,

Maybe you need to set proxy like this?

export HTTP_PROXY=http://squid:3128
export HTTPS_PROXY=http://squid:3128

Hope this helps.

Hiroki

On 2021/03/16 5:10, Henrik Rosenke wrote:
> Hello,
> 
> i try to build editors/vscode, this needs devel/electron11. 
> Unfortunately electron cant fetch its files:
> 
> [00:00:27] [1/4] Resolving packages...
> [00:00:27] [2/4] Fetching packages...
> [00:01:42] info There appears to be trouble with your network 
> connection. Retrying...
> [00:03:00] info There appears to be trouble with your network 
> connection. Retrying...
> [00:04:18] info There appears to be trouble with your network 
> connection. Retrying...
> 
> It tries to reach an address 0.0.12.56:
> 
>    131 123.954021073 192.168.0.116 ? 0.0.12.56    TCP 74 [TCP 
> Retransmission] 13171 ? 80 [SYN] Seq=0 Win=65535 Len=0 MSS=1460 WS=64 
> SACK_PERM=1 TSval=808821751 TSecr=0
>    132 123.954026785 192.168.0.116 ? 0.0.12.56    TCP 74 [TCP 
> Retransmission] 57156 ? 80 [SYN] Seq=0 Win=65535 Len=0 MSS=1460 WS=64 
> SACK_PERM=1 TSval=725678000 TSecr=0
>    133 123.954032590 192.168.0.116 ? 0.0.12.56    TCP 74 [TCP 
> Retransmission] 39187 ? 80 [SYN] Seq=0 Win=65535 Len=0 MSS=1460 WS=64 
> SACK_PERM=1 TSval=826552890 TSecr=0
>    134 123.954038148 192.168.0.116 ? 0.0.12.56    TCP 74 [TCP 
> Retransmission] 44263 ? 80 [SYN] Seq=0 Win=65535 Len=0 MSS=1460 WS=64 
> SACK_PERM=1 TSval=1959712912 TSecr=0
> 
> And my yarn error log:
> 
> Trace:
>    Error: https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz: 
> tunneling socket could not be established, cause=connect ETIMEDOUT 
> 0.0.12.56:80
>        at ClientRequest.onError 
> (/usr/local/lib/node_modules/yarn/lib/cli.js:152220:17)
>        at Object.onceWrapper (events.js:421:26)
>        at ClientRequest.emit (events.js:314:20)
>        at Socket.socketErrorListener (_http_client.js:427:9)
>        at Socket.emit (events.js:314:20)
>        at emitErrorNT (internal/streams/destroy.js:92:8)
>        at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
>        at processTicksAndRejections (internal/process/task_queues.js:84:21)
> 
> 
> Do i need to set the right proxy in npm? if yes how i am going to do 
> this? Fetching via our proxy works for other ports, this is defined in 
> my poudriere.conf:
> 
> # If you are using a proxy define it here:
> export HTTP_PROXY=squid:3128
> 
> This is my env in the jail after running testport:
> 
> Edit /etc/motd to change this login announcement.
> root@j12p64-default-desktop:~ # env
> USER=root
> LOGNAME=root
> HOME=/root
> SHELL=/bin/csh
> OSVERSION=1202505
> UNAME_v=FreeBSD 12.2-STABLE 1202505
> UNAME_r=12.2-STABLE
> BLOCKSIZE=K
> MAIL=/var/mail/root
> PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
> TERM=xterm-256color
> HOSTTYPE=FreeBSD
> VENDOR=amd
> OSTYPE=FreeBSD
> MACHTYPE=x86_64
> SHLVL=1
> PWD=/root
> GROUP=wheel
> HOST=j12p64-default-desktop
> EDITOR=vi
> PAGER=less
> 
> Maybe anybody got a hint where to look at.
> 
> Kind regards,
> 
> Henrik Rosenke
> 
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2ed25db9-0563-aaa1-43bf-bc36e313ccfd>