Skip to content

Can not start on Debian 8/9 if dbus package is not presented. #2538

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

Closed
amdei opened this issue Jun 21, 2017 · 3 comments
Closed

Can not start on Debian 8/9 if dbus package is not presented. #2538

amdei opened this issue Jun 21, 2017 · 3 comments
Assignees
Labels
bug Something isn't working tarantoolctl
Milestone

Comments

@amdei
Copy link
Contributor

amdei commented Jun 21, 2017

Tarantool can not start on Debian 8/9 if package dbus is not presented.
In logs there is only the notorious

got signal 15 - Terminated

Issue is in a way tarantool determines if it runs under systemd:
It is done by parsing output of systemctl, run by trantool user , but it can't start under non-root.

# sudo -u tarantool systemctl
Failed to get D-Bus connection: No such file or directory

Issue is in absence of dbus socket - it is not presented if dbus service is not presented:

systemctl status --all dbus.socket

But if dbus package is installed - all start to work as a charm instantly.

Probably other way of determining if trantool run under systemd is required.

@rtsisyk rtsisyk added the bug Something isn't working label Jun 21, 2017
@rtsisyk rtsisyk added this to the 1.7.5 milestone Jun 22, 2017
@rtsisyk rtsisyk self-assigned this Jul 10, 2017
@rtsisyk
Copy link
Contributor

rtsisyk commented Jul 11, 2017

Confirmed

Probably we should add an option to tarantoolctl to avoid daemonization, e.g. tarantoolctl start example --foreground. Actually I plan to remove /usr/bin/tarantoolctl wrapper for systemd case, but it is complicated task.

@rtsisyk
Copy link
Contributor

rtsisyk commented Jul 11, 2017

I realized that --foreground will break tarantoolctl start INSTANCE -> systemctl start tarantool@INSTANCE redirect. Any better ideas how to detect systemd? Nothing from 1 is portable between all distros...

rtsisyk added a commit that referenced this issue Jul 20, 2017
Disable background and usermode when NOTIFY_SOCKET is set.

Closes #2538
@rtsisyk
Copy link
Contributor

rtsisyk commented Jul 20, 2017

1.7.4-319-g90a16b0e3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tarantoolctl
Projects
None yet
Development

No branches or pull requests

3 participants