mimir ~ # systemctl start http-replicator mimir ~ # systemctl status http-replicator http-replicator.service - http-replicator daemon Loaded: loaded (/usr/lib64/systemd/system/http-replicator.service; enabled) Drop-In: /etc/systemd/system/http-replicator.service.d └─00gentoo.conf Active: failed (Result: exit-code) since Wed 2014-02-26 16:57:10 CST; 34s ago Process: 11109 ExecStart=/usr/bin/http-replicator -s -f --dir /var/cache/http-replicator --user portage --log /var/log/http-replicator.log $DAEMON_OPTS (code=exited, status=2) Main PID: 11109 (code=exited, status=2) Feb 26 16:57:10 mimir systemd[1]: Started http-replicator daemon. Feb 26 16:57:10 mimir http-replicator[11109]: Usage: http-replicator [options] Feb 26 16:57:10 mimir http-replicator[11109]: http-replicator: error: invalid directory '/var/cache/http-replicator' Feb 26 16:57:10 mimir systemd[1]: http-replicator.service: main process exited, code=exited, status=2/INVALIDARGUMENT Feb 26 16:57:10 mimir systemd[1]: Unit http-replicator.service entered failed state. The directory /var/cache/http-replicator is hard-coded in the systemd unit file deployed by the ebuild, but it isn't created automatically by either the ebuild or the application. Creating the directory by hand causes the program to work mimir ~ # mkdir /var/cache/http-replicator mimir ~ # systemctl start http-replicator mimir ~ # systemctl status http-replicator http-replicator.service - http-replicator daemon Loaded: loaded (/usr/lib64/systemd/system/http-replicator.service; enabled) Drop-In: /etc/systemd/system/http-replicator.service.d └─00gentoo.conf Active: active (running) since Wed 2014-02-26 17:04:35 CST; 3s ago Main PID: 3578 (http-replicator) CGroup: /system.slice/http-replicator.service └─3578 /usr/bin/python2.7 /usr/bin/http-replicator -s -f --dir /var/cache/http-replicator --user portage --log /var/log/http-replicator.log --alias /usr/portage/packages:packages --ip 192.168.*.* --ip 10.*.*.* --port 8080 Feb 26 17:04:35 mimir systemd[1]: Started http-replicator daemon. Feb 26 17:04:35 mimir http-replicator[3578]: INFO: HttpReplicator started Reproducible: Always
You probably didn't notice the instructions printed out when you emerged http-replicator, which include: " * - run /usr/bin/repcacheman to set up the cache" Although admittedly the startup scripts probably ought check for the directory and suggest the same thing...
Created attachment 394200 [details, diff] patch for hr-v3.0 to suggest running repcacheman Here's a patch so it suggests running repcacheman if the cache directory doesn't exist. I'll probably upload an updated ebuild (with some other enhancements) to bug 442874 soon.
My improved error message is included in version 3.0-r5 from bug 442874.
Do you want to proxy maintain this? https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers
fixed in -r5