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

Binary listening socket is not shorten #918

Open
Totktonada opened this issue Aug 2, 2024 · 0 comments
Open

Binary listening socket is not shorten #918

Totktonada opened this issue Aug 2, 2024 · 0 comments
Labels
1sp bug Something isn't working

Comments

@Totktonada
Copy link
Member

Since #574 tt sets the TT_IPROTO_LISTEN_DEFAULT environment variable. If it is too long, tarantool can't start with a message like the following:

F> can't initialize storage: bind, called on fd 19, aka unix/:(socket): Address already in use

This logic is present for a console socket. I propose to add it for the iproto socket too.

consoleSocket, err := shortenSocketPath(inst.consoleSocket, inst.appDir)
if err != nil {
return err
}
cmd.Env = append(cmd.Env, "TT_CONSOLE_SOCKET_DEFAULT="+consoleSocket)
cmd.Env = append(cmd.Env, "TT_IPROTO_LISTEN_DEFAULT="+"[{\"uri\":\""+inst.binaryPort+"\"}]")

The problem is reported by @andreyaksenov.

@Totktonada Totktonada added the bug Something isn't working label Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1sp bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants