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

Create path to local sockets if it doesn't exist #21

Open
brendonj opened this issue Jul 31, 2018 · 0 comments
Open

Create path to local sockets if it doesn't exist #21

brendonj opened this issue Jul 31, 2018 · 0 comments

Comments

@brendonj
Copy link
Contributor

The client tries to create a few files (unix domain sockets etc) in the AMP_RUN_DIR which is only created by the init script. If you don't use the init script then the directory doesn't get created and the client fails to create the files:

DEBUG: Creating local socket at '/var/run/amplet2/localhost.sock'
WARNING: Failed to bind local socket: No such file or directory
ALERT: Failed to initialise local resolver, aborting

The client should probably ensure that the directory exists before trying to create files inside it. Is it better to create the AMP_RUN_DIR once at startup, or check the path exists in initialise_local_socket() each time in case it is called with unusual directories at some point in the future?

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