Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3986286
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:59:36+00:00 2026-05-20T05:59:36+00:00

I can start my event framework just fine when I register it locally: gen_event:start_link({local,

  • 0

I can start my event framework just fine when I register it locally:

gen_event:start_link({local, foo_event_container}).
gen_event:add_handler(foo_event_container, foo_event_handler, []).

Calling registered() shows foo_event_container, and when I send messages to it, they show up in the handler.

However, when I restart the node and try

gen_event:start_link({global, foo_event_container}).

registered() does NOT show the container, and when I try to add a handler to it
I get

** exception exit: noproc
     in function  gen:call/4
     in call from gen_event:rpc/2

Sasl doesn’t provide any additional info, and googling this issue produces a guess that the shell running the container has been killed, which is not the case here since I’m trying to access it from the same node!

1) Any ideas what’s going on here?
2) Is having a remote container the best design, or would it be better to have each server use local containers that all send out messages to a remote process?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T05:59:37+00:00Added an answer on May 20, 2026 at 5:59 am

    Local registration and global registration are separate namespaces. Items registered locally don’t show up as global registrations and vice-versa. (Also, local registration names must be atoms, while global names can be terms)

    Your global registration should show up in global:registered_names/0 and you can send to globally registered processes either with global:send/2 or by looking up the pid with global:whereis_name/1 and sending messages to that pid as usual.

    You should be able to add a handler by doing something like gen_event:add_handler({global, Name}, Handler, Args). Most gen_* modules contain code to cope with process names like {global, Name} to do the global lookup for you.

    Lastly, if you start_link a process from the shell and then evaluate an expression that causes the shell to crash, that process will be terminated – it was just killed by the shell error via the link. Start it without a link, or start_link it under a supervisor if you want to avoid this. It’s usually a bad idea to link something to the shell process as typos will then shut down the processes you’re working with.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just installed the latest SDK from Apple so I can start learning iPhone
I can't find a good place to start. It is such a large framework
I can start the service correctly if the service's Log on account has a
I noticed that I can start a program with it's associated handler by writing
I use a routine that can start and stop services via Delphi but I
All, Is there a jQuery timer which can start a timer for 20 minutes
I have the following problem: I have an Activity where a user can start
i'm trying to communicate with my filesystem driver. I can start the driver with
How can I start an interactive console for Perl, similar to the irb command
Wizards can kick-start features. They can also obfuscate your code, and are anti-YAGNI. On

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.