FS#40123 - [tracd] do not start with systemctl script

Attached to Project: Community Packages
Opened by Ferllings (ferllings) - Monday, 28 April 2014, 09:31 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 15 August 2016, 11:42 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I can launch trac using the command line, but the same command line does not work on the systemctl file. But no error in the status

$ sudo systemctl start tracd
$ sudo systemctl status tracd
● tracd.service - Trac service
Loaded: loaded (/usr/lib/systemd/system/tracd.service; enabled)
Active: inactive (dead) since Mon 2014-04-28 12:27:51 CEST; 21s ago
Process: 27636 ExecStart=/usr/bin/tracd -d -b localhost -p 3050 --protocol=http --basic-auth="bug-bash,/srv/http/bug-bash/.htpasswd,Login" -s /var/opt/trac/projects/bug-bash (code=exited, status=0/SUCCESS)
Main PID: 27637 (code=exited, status=0/SUCCESS)

Apr 28 12:27:51 xxxxx systemd[1]: Started Trac service.

Additional info:
* package version(s): 1.0.1-7
* config and/or log files etc.
/etc/systemd/system/multi-user.target.wants/tracd.service
[Unit]
Description=Trac service
After=network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
# Example: copy it into /etc/systemd/ and edit.
ExecStart=/usr/bin/tracd -d -b localhost -p 3050 --protocol=http --basic-auth="bug-bash,/srv/http/bug-bash/.htpasswd,Login" -s /var/opt/t$

[Install]
WantedBy=multi-user.target


Steps to reproduce:
This task depends upon

Closed by  Sergej Pupykin (sergej)
Monday, 15 August 2016, 11:42 GMT
Reason for closing:  Fixed
Comment by Xan (xan) - Thursday, 26 February 2015, 11:38 GMT
This happens to me too.
Comment by Sergej Pupykin (sergej) - Tuesday, 03 March 2015, 18:00 GMT
works for me now:

# pacman -S trac
# htpasswd /tmp/passwd user
# systemctl start tracd
# ps fax | grep trac
17431 ? S 0:00 /usr/bin/python2 /usr/bin/tracd -d -b localhost -p 8080 --auth /tmp,/tmp/passwd,realm /tmp
Comment by Xan (xan) - Wednesday, 04 March 2015, 14:53 GMT
  • Field changed: Percent Complete (100% → 0%)
It does not work for me even though I updated trac:
[root@negre xane]# systemctl status tracd
● tracd.service - Trac service
Loaded: loaded (/usr/lib/systemd/system/tracd.service; enabled; vendor preset: disabled)
Active: inactive (dead) since dc 2015-03-04 11:14:05 CET; 1s ago
Process: 24907 ExecStart=/usr/bin/tracd -d -p 8000 /mnt/magatzem/docencia/trac-docencia/tasques (code=exited, status=0/SUCCESS)
Main PID: 24910 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/tracd.service

mar 04 11:14:05 negre systemd[1]: Started Trac service.
[root@negre xane]# ps fax | grep trac
24915 pts/1 S+ 0:00 \_ grep trac
Comment by Sergej Pupykin (sergej) - Wednesday, 04 March 2015, 15:15 GMT
does it work if you run it manually?

tracd -d -p 8000 /mnt/magatzem/docencia/trac-docencia/tasques
Comment by Xan (xan) - Thursday, 05 March 2015, 08:13 GMT
Yes, it works manually. I'm a bit clueless with that...
Comment by Sergej Pupykin (sergej) - Thursday, 05 March 2015, 10:17 GMT
Please try .service from 1.0.4-2. I switched type to simple. Even if it does not start systemctl status should give more messages about the reason.
Comment by Xan (xan) - Thursday, 05 March 2015, 14:19 GMT
It does not work:

[root@negre xane]# cat /etc/systemd/system/multi-user.target.wants/tracd.service
[Unit]
Description=Trac service
After=network.target remote-fs.target nss-lookup.target

[Service]
Type=simple
# Example: copy it into /etc/systemd/ and edit.
ExecStart=/usr/bin/tracd -d -p 8000 --basic-auth="*,/mnt/magatzem/docencia/trac-docencia/contrasenyes.txt,tasques" /mnt/magatzem/docencia/trac-docencia/tasques
# was /usr/bin/tracd -b localhost -p 8080 --auth /tmp,/tmp/passwd,realm /tmp

[Install]
WantedBy=multi-user.target
[root@negre xane]# systemctl start tracd
[root@negre xane]# systemctl start tracd.service
[root@negre xane]# systemctl enable tracd.service
[root@negre xane]# systemctl status tracd.service
● tracd.service - Trac service
Loaded: loaded (/usr/lib/systemd/system/tracd.service; enabled; vendor preset: disabled)
Active: inactive (dead) since dj 2015-03-05 15:18:47 CET; 11s ago
Main PID: 1820 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/tracd.service

mar 05 15:18:46 negre systemd[1]: Started Trac service.
[root@negre xane]# systemctl | grep trac
[root@negre xane]#
Comment by Sergej Pupykin (sergej) - Monday, 15 August 2016, 11:42 GMT
Should work with 1.0.12

Steps to reproduce:

$ trac-admin /tmp/trac-test initenv
few <enter>s

$ systemctl edit tracd

[Service]
User=sergej
ExecStart=
ExecStart=/usr/bin/tracd -b localhost -p 8080 /tmp/trac-test/

$ systemctl start tracd

Open http://127.0.0.1:8080/trac-test in browser

Loading...