bugGNU Octave - Bugs: bug #52369, proxy settings do not work at...

 
 

bug #52369: proxy settings do not work at Windows 10

Submitter:  Elvira D. Antal <antale>
Submitted:  Wed 08 Nov 2017 03:53:22 PM UTC
   
 
Category:  Configuration and Build System Severity:  2 - Minor
Priority:  3 - Low Item Group:  Unexpected Error or Warning
Status:  Need Info Assigned to:  None
Originator Name:  antale Open/Closed:  * Closed
Release:  * 4.4.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Thu 05 Dec 2019 12:47:25 AM UTC, comment #15: 

This is a very old bug.  Why don't you file a new report and explain the steps you are using and what you are seeing.  You can reference this bug as possibly being related.

Rik <rik5>
Group administrator
Wed 04 Dec 2019 10:26:09 AM UTC, comment #14: 

I'm using 5.1.0-w64 and I also have this issue. Re-open or new issue?

comment #13:

> No response, asumming this has been fixed in the latest release.  Closing report.

Richard Fontaine <rfontaine>
Sun 10 Mar 2019 06:57:31 PM UTC, comment #13: 

No response, asumming this has been fixed in the latest release.  Closing report.

Rik <rik5>
Group administrator
Sun 03 Mar 2019 05:35:41 AM UTC, comment #12: 

Version 4.4.0 is deprecated and no longer supported.  Please try with the latest stable release which is 5.1.0.  The problem is likely to have been fixed.

Rik <rik5>
Group administrator
Thu 19 Jul 2018 03:45:33 PM UTC, comment #11: 

You can put the command to set the proxy server in to your .octaverc file which is executed at startup.  At least that way you won't have to type it in every time.

For the Community News, I don't see what more can be done.  For whatever reason, the combination of operating system, network settings, and Octave cannot be made to work.  On the positive side, there is not much reported on Community News besides the release of new versions.

Rik <rik5>
Group administrator
Thu 19 Jul 2018 12:47:11 PM UTC, comment #10: 


pkg -forge list

works with IP address, and also with the URL of the proxy server.
(But I need to set the proxy by the putenv/setenv command at every restart of Octave, as I wrote below.)
News/Community News does not ("Octave's community news source seems to be unavailable."), even if I use the menus.

Elvira D. Antal <antale>
Wed 18 Jul 2018 04:14:24 PM UTC, comment #9: 

This may not be resolvable.  The finaly thing to try would be to use the URL, rather than the IP address of it, in the environment variable https_proxy.

The code should be


setenv ('https_proxy', 'https://THE_URL_OF_YOUR_PROXY:PORT_NUMBER')


For example, if the proxy was called "proxy_A" and the port was 5000 then the full command would be


setenv ('https_proxy', 'https://proxy_A:5000')


To test, start with


pkg -forge list


If that starts to return data then you can interrupt it with Ctrl+C.  The next step would be to use the menus and try News/Community News and see if it returns anything.



Rik <rik5>
Group administrator
Wed 18 Jul 2018 07:59:41 AM UTC, comment #8: 

Manual proxy configuration works in Firefox and Chrome also. I can reach both

https://octave.org/community-news.html

and

https://www.gnu.org/software/octave/community-news.html

.
Remark, that I use the URL of the proxy server instead of the IP address of it. I have just figured out, that Chrome truncates automatically the "http://" part of the given URL, while Firefox does not, and it works only if I leave out this part of the URL.
I checked in Octave also, whether it helps if I include or not the "http://" part, but it does not matter. Community news does not work inside Octave.

Elvira D. Antal <antale>
Tue 17 Jul 2018 04:56:55 AM UTC, comment #7: 

It's possible that your proxy is filtering out results.  If you use a regular web browser, and configure https proxy manually to be 123.12.123.1 port 8080, can you reach


https://octave.org/community-news.html


What about


https://www.gnu.org/software/octave/community-news.html



Rik <rik5>
Group administrator
Mon 16 Jul 2018 10:13:20 AM UTC, comment #6: 

I have tried without the slash, with setenv and putenv also, but the Community News could not load in.

Elvira D. Antal <antale>
Thu 12 Jul 2018 05:11:56 PM UTC, comment #5: 

The proxy set in Edit/Preferences/Network in the GUI does not seem to be used which is a bug.

Can you try starting a new session of Octave and immediately executing


setenv ('https_proxy', '123.12.123.1:8080')


and then using the menu for News/Community News?

Note that the change from your previous code in comment #4 was to drop the slash '/' at the end of the proxy.  I don't think that is a valid character.

Rik <rik5>
Group administrator
Thu 12 Jul 2018 12:45:50 PM UTC, comment #4: 

I have installed Octave 4.4.0 and the issue is modified, but still exists. After executing

 putenv ('https_proxy', '123.12.123.1:8080/');


I could execute

 pkg install -forge symbolic


but the Octave community news does not work in any way.
I have "Use proxy server" checked, HttpProxy chosen and the hostname and port filled at Edit/Preferences/Network after executing the above putenv command.
However, after Octave restart, Edit/Preferences/Network settings remains the same, but I need to reexecute the putenv command to get network connection.

Elvira D. Antal <antale>
Wed 11 Jul 2018 11:54:28 PM UTC, comment #3: 

Version 4.2.1 of Octave is deprecated.  Could you download the latest stable version 4.4.0 and try to replicate the issue?

Otherwise we can close this report as being on an unsupported version.

Rik <rik5>
Group administrator
Thu 09 Nov 2017 08:51:07 AM UTC, comment #2: 

Mike, I have tried what you had suggested, and it does not help.

Elvira D. Antal <antale>
Wed 08 Nov 2017 08:53:07 PM UTC, comment #1: 

Thanks for the bug report. I don't have access to Windows or to a proxy set up to test with, but can you try setting "https_proxy" instead of "http_proxy"? Octave Forge packages are installed over HTTPS, and the library used by Octave uses distinct environment variables for each protocol.

Mike Miller <mtmiller>
Group Member
Wed 08 Nov 2017 03:53:22 PM UTC, original submission:  

I am using Octave 4.2.1 configured for "x86_64-w64-mingw32" at Windows 10, and behind a proxy server. I cannot connect the package manager nor Octave Community News, however I set the proxy server (hostname URL) and port as my system administrator suggested. I have set these settings in the GUI at Edit/Preferences/Network, and also tried from the Octave command line with

putenv ('http_proxy', '123.12.123.1');
putenv('http_port', '8080');

and

putenv ('http_proxy', 'http://something.myinstitute.org:8080');

as suggested at
 http://octave.1599824.n4.nabble.com/Connecting-to-internet-td4659960.html
and
 http://octave.1599824.n4.nabble.com/problem-with-curl-installation-td4656082.html#a4656246

I still get
"error: get_forge_pkg: could not read URL, please verify internet connection
error: called from
    get_forge_pkg at line 66 column 7
    get_forge_download at line 26 column 12
    pkg at line 382 column 29"
for

pkg install -forge symbolic

for example.

(I hope I post this in the right category, this is my first bug report at this site.)

Elvira D. Antal <antale>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rfontaine (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by antale (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-10 rik5 Open/ClosedOpen Closed
    2019-03-03 mtmiller Carbon-CopyRemoved 80942 -
    2018-07-19 rik5 Severity3 - Normal 2 - Minor
        Priority5 - Normal 3 - Low
    2018-07-19 rik5 Release4.2.1 4.4.0
    2017-11-08 mtmiller StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code