Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulated IOCs fail on macOS (outside Docker) #128

Open
hyperrealist opened this issue Jan 30, 2023 · 0 comments
Open

Simulated IOCs fail on macOS (outside Docker) #128

hyperrealist opened this issue Jan 30, 2023 · 0 comments

Comments

@hyperrealist
Copy link

After following the installation instructions on macOS, running supervisor/start_supervisor.sh status shows the following output:

decay                            BACKOFF   Exited too quickly (process log may have details)
mini_beamline                    BACKOFF   Exited too quickly (process log may have details)
random_walk                      BACKOFF   Exited too quickly (process log may have details)
random_walk_horiz                BACKOFF   Exited too quickly (process log may have details)
random_walk_vert                 BACKOFF   Exited too quickly (process log may have details)
simple                           BACKOFF   Exited too quickly (process log may have details)
thermo_sim                       BACKOFF   Exited too quickly (process log may have details)
trigger_with_pc                  BACKOFF   Exited too quickly (process log may have details)

Attempting to restart IOCs using supervisor/start_supervisor.sh restart all generate the following error message.

decay: ERROR (spawn error)
random_walk: ERROR (spawn error)
random_walk_vert: ERROR (spawn error)
mini_beamline: ERROR (spawn error)
random_walk_horiz: ERROR (spawn error)
simple: ERROR (spawn error)
thermo_sim: ERROR (spawn error)
trigger_with_pc: ERROR (spawn error)

Apparent Cause
macOS loopback interface only configures address 127.0.0.1 by default. But the supervisor script attempts to bind to udp ports on other local addresses, e.g: in decay.conf,

command = /usr/bin/env python3 -m caproto.ioc_examples.decay -v --interfaces=127.0.0.5

Possible Solution
Add temporary aliases to macOS loopback interface, e.g:

sudo ifconfig lo0 alias 127.0.0.5
hyperrealist added a commit to hyperrealist/tutorials that referenced this issue Jan 30, 2023
hyperrealist added a commit to hyperrealist/tutorials that referenced this issue Feb 4, 2023
Adds extra instructions related to issue bluesky#128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant