Bug 6843 - tor service doesn't start under systemd
Summary: tor service doesn't start under systemd
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 2
Hardware: All Linux
Priority: Normal minor
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: Triaged
Depends on:
Blocks:
 
Reported: 2012-07-21 20:59 CEST by Anderson Carvalho
Modified: 2012-09-09 14:20 CEST (History)
3 users (show)

See Also:
Source RPM: tor-0.2.2.35-5.mga2
CVE:
Status comment:


Attachments

Description Anderson Carvalho 2012-07-21 20:59:51 CEST
Description of problem:
I installed TOR and the first time I clicked stop in drakxservices it disappeared from the list of services.

Suppose that the bug is on the TOR, but perhaps the drakxservices or even systemd.

Version-Release number of selected component (if applicable):
tor-0.2.2.35-5.mga2

How reproducible:
Once installed TOR run drakxservices and click Stop TOR. TOR will disappear from the list of services.


Steps to Reproduce:
1. Run drakxservices and click Stop TOR
2.
3.
Anderson Carvalho 2012-07-21 21:09:21 CEST

Source RPM: tor-0.2.2.35-5.mga2.src.rpm => tor-0.2.2.35-5.mga2.x86_64.rpm

Comment 1 Manuel Hiebel 2012-07-23 21:07:21 CEST
And you can start it in command line ?
(systemctl start tor.service)

Severity: normal => minor

Comment 2 Anderson Carvalho 2012-07-23 22:50:12 CEST
This command does not start tor ! 

When I wore Mageia 1 I configured tor by drakxservices. Start in boot. Start or stop TOR.
Comment 3 Manuel Hiebel 2012-07-24 16:17:27 CEST
>This command does not start tor ! 
that is the output then ?

Keywords: (none) => NEEDINFO

Comment 4 Anderson Carvalho 2012-07-24 22:43:36 CEST
[root@ervamate chimarrao]# systemctl start tor.service
[root@ervamate chimarrao]# 

NULL output and I went on ksysguar tor is not running!

Developers have adopted Systemd being that he still is not fully integrated into Mageia and tools MCC. I ask then and now?
Comment 5 Manuel Hiebel 2012-07-24 23:17:20 CEST
here it's a tor bug (or in the service file provide by fedora), see the same bug on redhat https://bugzilla.redhat.com/show_bug.cgi?id=744005

Keywords: NEEDINFO => UPSTREAM
See Also: (none) => https://bugzilla.redhat.com/show_bug.cgi?id=744005
Summary: TOR disappeared from the list of services in drakxservices => tor service does'nt start ( was tor disappear in drakxservice)

Comment 6 Anderson Carvalho 2012-07-24 23:31:14 CEST
Honestly don't see advantages in having replaced sysvinit by systemd seen several problems, bugs, so the Alt + SysRq: REISUB does not work with it.

Can I safely replace sysvinit by systemd in Mageia 2?
Comment 7 Anderson Carvalho 2012-07-25 12:28:27 CEST
Now that I went back to sysvinit-legacy everything works on drakxservice and I
can configure the services that will go up on boot.

Summary: tor service does'nt start ( was tor disappear in drakxservice) => systemd bug: tor service does'nt start ( was tor disappear in drakxservice)

Anderson Carvalho 2012-07-25 12:31:02 CEST

Source RPM: tor-0.2.2.35-5.mga2.x86_64.rpm => systemd-44-13.mga2.src.rpm

Comment 8 Colin Guthrie 2012-07-25 14:00:12 CEST
This is just a bug in the systemd unit in the tor package.

Please do not use the bug tracker as a system for discussing various systemd vs. sysvinit systems. sysvinit is much less tested than systemd on MGA2 and is thus likely to have more bugs.

That's not to say there are not problems in various packages, including tor which is the case here. And for the record, Alt+SysRq works fine under systemd as it did under sysvinit.

I'll take a look at the tor issue specifically.

Keywords: UPSTREAM => Triaged
CC: (none) => mageia
Summary: systemd bug: tor service does'nt start ( was tor disappear in drakxservice) => tor service doesn't start under systemd
Source RPM: systemd-44-13.mga2.src.rpm => tor-0.2.2.35-5.mga2

Comment 9 Anderson Carvalho 2012-07-25 14:08:58 CEST
See more details about REISUB in systemd here and test and see the loop (bug) with X (DM):

https://bugs.mageia.org/show_bug.cgi?id=6843
Comment 10 Frank Griffin 2012-07-25 14:16:27 CEST
(In reply to comment #9)
> See more details about REISUB in systemd here and test and see the loop (bug)
> with X (DM):
> 
> https://bugs.mageia.org/show_bug.cgi?id=6843

Umm, that's *this* bug.  

And while I have seen problems with systemd (including this one), I verify that systemd has no effect on Alt SysRq RSEIUB.  There have been system freeze bugs recently where lockups don't respond to the magic keys, but they have nothing to do with systemd.

CC: (none) => ftg

Comment 11 Colin Guthrie 2012-07-25 14:30:32 CEST
I've fixed the systemd unit in the tor package and submitted it to core/updates_testing for mga2.

Please test and provide feedback such that we can issue an official update.
Comment 12 Anderson Carvalho 2012-07-25 17:15:15 CEST
Below correct link to REISUB broken with SystemD in Mageia 2:

https://bugs.mageia.org/show_bug.cgi?id=6842
Comment 13 Anderson Carvalho 2012-07-25 22:58:46 CEST
Reinstalled again systemd as default. Updated TOR by media core/updates_testing for mga2. TOR continues not listed in drakxservices. Image below:
http://img713.imageshack.us/img713/5402/tory.png
Comment 14 Colin Guthrie 2012-07-26 10:29:25 CEST
OK, so there are two problems here! The first is that the tor systemd unit was completely wrong (blind copy+paste it seems) which is now fixed. This means the tor service can be started and stopped happily (systemctl start tor.service).

However there is still a problem with drakxservices not showing disabled units (which tor is by default).

One way to make tor show up in drakxservices is to run "systemctl enable tor.service". This will then allow it to be reported properly.

So, problem 1 is now fixed. problem 2 is outstanding although with a work around. I'll ensure I go and patch drakxservices code to cope with this and get an update ready.


FYI, the problem is just that drakxservices internally uses "systemctl list-units --all" to list all the available services. Sadly this does not show disabled services. So I will have to augment this with "systemctl list-unit-files" output. There is a call to make this behaviour different: https://bugzilla.redhat.com/show_bug.cgi?id=748512 Anyway I can easily work around this and will do so shortly.
Comment 15 Colin Guthrie 2012-07-26 11:16:57 CEST
OK, so I've submitted a new build of tor to fix a bug in my bugfix :) Please update to that.

Also I've just submitted a new build of drakxtools which should address the problem of drakxservices not listing disabled (but enablable) services.

Please update when it hits your mirror. I think this should address both the tor-specific problem and the issue of drakxservices not listing some services that it should have.
Comment 16 Anderson Carvalho 2012-07-26 11:30:04 CEST
Problem 1: I tested the command and it worked:

# systemctl enable tor.service
ln -s '/lib/systemd/system/tor.service' '/etc/systemd/system/multi-user.target.wants/tor.service'
# systemctl start tor.service
# systemctl stop tor.service
# systemctl disable tor.service
rm '/etc/systemd/system/multi-user.target.wants/tor.service'

Problem 2: So this is the reason because with sysvinit shows services that does not show with systemd. I wait then release the fix.
Comment 17 Anderson Carvalho 2012-07-26 12:26:11 CEST
Already updated TOR for 0.2.2.35-5.2.mga2
Not found update for drakxtools, drakxtools-backend and drakxtools-curses :-(
After a few hours I will try again!
Comment 18 Anderson Carvalho 2012-07-26 13:41:03 CEST
Problem 2: I updated drakxtools-14.21-1.1.mga2 too. Many services that do not appear in drakxsevices now appears. Is very good now be integrated systemd with drakxservices and work.

Thank you for your personal efforts and by making increasingly mageia best!!!
Comment 19 Samuel Verschelde 2012-08-26 17:00:33 CEST
Colin, what's the status of this update candidate?

SRPMs:
drakxtools-14.21-1.1.mga2
tor-0.2.2.35-5.2.mga2
Comment 20 Anderson Carvalho 2012-08-26 21:20:55 CEST
In my Mageia 2 x86_64 is working perfectly!
Comment 21 Colin Guthrie 2012-08-30 01:32:01 CEST
I've issued an official update request for tor now: bug #7250.

As for drakxtools, myself and TV discussed this the other day. It think he'll be pushing an update, but I'll double check with him about it.
Comment 22 Thomas Backlund 2012-09-09 14:20:41 CEST
drakxtools update pushed:
https://wiki.mageia.org/en/Support/Advisories/MGAA-2012-0188

Status: NEW => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.