Closed EastEriq closed 2 years ago
Note that no_proxy=10.23.1.0/22
is simpler and better (doesn't cause trouble to matlab's webread):
ocs@last08e:~$ export no_proxy=10.23.1.0/22
ocs@last08e:~$ echo $no_proxy
10.23.1.0/22
ocs@last08e:~$ matlab -nosplash -nodesktop
< M A T L A B (R) >
Copyright 1984-2020 The MathWorks, Inc.
R2020b (9.9.0.1467703) 64-bit (glnxa64)
August 26, 2020
To get started, type doc.
For product information, visit www.mathworks.com.
AstroPack startup addpath count: 25
AstroPack startup done: /home/ocs/matlab/AstroPack/matlab/startup/startup
>> t=inst.tinycontrolIPpowerSocket('01_2')
t =
tinycontrolIPpowerSocket with properties:
Outputs: [0 0 1 1 0 0]
>>
(assuming that 10.23.1.0/22
is really a legal syntax; maybe matlab just works because that form has no side effect)
No it is not valid syntax, that's why I have to use the whole list.
The environment variable is used by wget and set by pam, that's what constrains the syntax.
The list was botced, fixed by commit 72512a9
On the syntax, I agree. I've educated myself a bit on the net too, and I've learned that ranges in syntax are not allowed (that is, neither *, nor 1-255, nor /24, etc.)
As for matlab and inst.tinycontrolIPpowerSocket
(present implementation, using webread
; the discussion whether to migrate it to matlab.net.http
is still relevant): I made some more tests, and it turns out that what crashed matlab were not the illegal IPs in the list, but the fact that the blotched list ended with a comma. Idiotic as it is. I note it here for the record, though solved by https://github.com/blumzi/LAST_tools/commit/72512a9121778f1c571018419551a2c22ee29c8c.
I thus suggest we use matlab.net.http in inst.tinycontrolIPpowerSocket with Credentials.UseProxy = false, to isolate it from the environment, which itself is needed by Eran's use of webread.
On Mon, Oct 24, 2022 at 7:22 AM EastEriq @.***> wrote:
On the syntax, I agree. I've educated myself a bit on the net too, and I've learned that ranges in syntax are not allowed (that is, neither *, nor 1-255, nor /24, etc.)
As for matlab and inst.tinycontrolIPpowerSocket (present implementation, using webread; the discussion whether to migrate it to matlab.net.http is still relevant): I made some more tests, and it turns out that what crashed matlab were not the illegal IPs in the list, but the fact that the blotched list ended with a comma. Idiotic as it is. I note it here for the record, though solved by 72512a9 https://github.com/blumzi/LAST_tools/commit/72512a9121778f1c571018419551a2c22ee29c8c .
— Reply to this email directly, view it on GitHub https://github.com/blumzi/LAST_tools/issues/10#issuecomment-1288534218, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFHQOOK7BCO3XZWLDW3KSTWEY2LRANCNFSM6AAAAAARMAR324 . You are receiving this because you modified the open/close state.Message ID: @.***>
We have a few questions here:
$no_proxy
for webread? (since it crashes when it is blotched - probably)$http_proxy
for webread? We have concluded yes.$no_proxy
for tcp, udp, modbus? (we have uses of all of them to local hosts)I'd suggest that we run some sniff tests for all four protocols, to make an informed decision. In principle I'd rather see as desirable that an environment variable rules consistently all processes, if it really does so.
All the code that talks to equipment at the observatory MUST NOT use proxy
On Mon, Oct 24, 2022 at 9:22 AM EastEriq @.***> wrote:
We have a few questions here:
- is matlab honoring at all $no_proxy for webread? (since it crashes when it is blotched - probably)
- is matlab honoring $http_proxy for webread? We have concluded yes.
- is it honoring $no_proxy for tcp, udp, modbus? (we have uses of all of them to local hosts)
I'd suggest that we run some sniff tests for all four protocols, to make an informed decision. In principle I'd rather see as desirable that an environment variable rules consistently all processes, if it really does so.
— Reply to this email directly, view it on GitHub https://github.com/blumzi/LAST_tools/issues/10#issuecomment-1288716740, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFHQOLMJECJFT4ED23NYQTWEZIMZANCNFSM6AAAAAARMAR324 . You are receiving this because you modified the open/close state.Message ID: @.***>
This line https://github.com/blumzi/LAST_tools/blob/a1f9e8dcee2cdcf0684731a6bee40fe1c8b9872c/sections/profile.sh#L93 seems to be doing something wrong:
A consequence of this appears to be that matlab is no more capable to read the power switches via ReST (addressing the switches by IP), and crashes in the attempt of (unsetting
no_proxy
, the capability is restored)