Systemctl can't create listen socket: permission denied
Lstu works as expected when manually launched with carton exec hypnotoad script/lstu
.
However, I’m unable to create a SystemCtl service (see journalctl -xn
below). I’m not familiar with Systemd, but... may it be related to the fact that root user failed to su over www-data (set to /sbin/nologin
)? Or, should I give an extra permission to www-data
somewhere else?
Note: “everyting” is owned by www-data under /var/www/lstu
.
Feb 26 14:43:01 shortener systemd[1]: Starting Shortened URLs service...
-- Subject: Unit lstu.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit lstu.service has begun starting up.
Feb 26 14:43:02 shortener carton[27667]: Can't create listen socket: Permission denied at /var/www/lstu/local/lib/perl5/Mojo/IOLoop.pm line 124.
Feb 26 14:43:02 shortener systemd[1]: lstu.service: control process exited, code=exited status=13
Feb 26 14:43:02 shortener systemd[1]: Failed to start Shortened URLs service.
-- Subject: Unit lstu.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit lstu.service has failed.
--
-- The result is failed.
Feb 26 14:43:02 shortener systemd[1]: Unit lstu.service entered failed state.