Rtorrent cant start second user


#1

So i’ve installed quickbox and everything went fine, using debian 8.
Well then i would like to add a second user, and as simple as that there is the command createSeedboxUser.

So then there is 2 errors/fail messages what i can see.

Job for [email protected] failed. See ‘systemctl status [email protected]’ and ‘journalctl -xn’ for details.
Job for [email protected] failed. See ‘systemctl status [email protected]’ and ‘journalctl -xn’ for details.

Else everything went fine, there is a new user created and able to login to dashboard.
But no rtorrent or irssi running.

so the systemctl status [email protected] says:

[email protected] - rTorrent
Loaded: loaded (/etc/systemd/system/[email protected]; enabled)
Active: failed (Result: exit-code) since Tue 2016-10-04 20:12:02 CEST; 31s ago
Process: 3127 ExecStart=/usr/bin/screen -d -m -fa -S rtorrent /usr/bin/rtorrent (code=exited, status=217/USER)
Process: 3124 ExecStartPre=/bin/rm -f /home/%I/.sessions/rtorrent.lock (code=exited, status=217/USER)

Oct 04 20:12:02 DZGD1444 systemd[1]: [email protected]: control process exited, code=exited status=217
Oct 04 20:12:02 DZGD1444 systemd[1]: Failed to start rTorrent.
Oct 04 20:12:02 DZGD1444 systemd[1]: Unit [email protected] entered failed state.

and the journalctl -xn command

  • Logs begin at Tue 2016-10-04 20:00:19 CEST, end at Tue 2016-10-04 20:13:01 CEST. –
    Oct 04 20:12:01 DZGD1444 CRON[3114]: pam_unix(cron:session): session closed for user root
    Oct 04 20:12:02 DZGD1444 systemd[1]: Starting rTorrent…
  • Subject: Unit [email protected] has begun with start-up
  • Defined-By: systemd
  • Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
  • Unit [email protected] has begun starting up.
    Oct 04 20:12:02 DZGD1444 systemd[3124]: Failed at step USER spawning /bin/rm: No such process
  • Subject: Process /bin/rm could not be executed
  • Defined-By: systemd
  • Support:
  • The process /bin/rm could not be executed and failed.
  • The error number returned while executing this process is 3.
    Oct 04 20:12:02 DZGD1444 systemd[3127]: Failed at step USER spawning /usr/bin/screen: No such process
  • Subject: Process /usr/bin/screen could not be executed
  • Defined-By: systemd
  • The process /usr/bin/screen could not be executed and failed.
  • The error number returned while executing this process is 3.
    Oct 04 20:12:02 DZGD1444 systemd[1]: [email protected]: control process exited, code=exited status=217
    Oct 04 20:12:02 DZGD1444 systemd[1]: Failed to start rTorrent.
  • Subject: Unit [email protected] has failed
  • Defined-By: systemd
  • Unit [email protected] has failed.
    lines 1-31…skipping…
  • Logs begin at Tue 2016-10-04 20:00:19 CEST, end at Tue 2016-10-04 20:13:01 CEST. –
    Oct 04 20:12:01 DZGD1444 CRON[3114]: pam_unix(cron:session): session closed for user root
    Oct 04 20:12:02 DZGD1444 systemd[1]: Starting rTorrent…
  • Subject: Unit [email protected] has begun with start-up
  • Defined-By: systemd
  • Unit [email protected] has begun starting up.
    Oct 04 20:12:02 DZGD1444 systemd[3124]: Failed at step USER spawning /bin/rm: No such process
  • Subject: Process /bin/rm could not be executed
  • Defined-By: systemd
  • The process /bin/rm could not be executed and failed.
  • The error number returned while executing this process is 3.
    Oct 04 20:12:02 DZGD1444 systemd[3127]: Failed at step USER spawning /usr/bin/screen: No such process
  • Subject: Process /usr/bin/screen could not be executed
  • Defined-By: systemd
  • The process /usr/bin/screen could not be executed and failed.
  • The error number returned while executing this process is 3.
    Oct 04 20:12:02 DZGD1444 systemd[1]: [email protected]: control process exited, code=exited status=217
    Oct 04 20:12:02 DZGD1444 systemd[1]: Failed to start rTorrent.
  • Subject: Unit [email protected] has failed
  • Defined-By: systemd
  • Unit [email protected] has failed.
  • The result is failed.
    Oct 04 20:12:02 DZGD1444 systemd[1]: Unit [email protected] entered failed state.
    Oct 04 20:13:01 DZGD1444 CRON[3173]: pam_unix(cron:session): session opened for user root by (uid=0)
    lines 1-35…skipping…
  • Logs begin at Tue 2016-10-04 20:00:19 CEST, end at Tue 2016-10-04 20:13:01 CEST. –
    Oct 04 20:12:01 DZGD1444 CRON[3114]: pam_unix(cron:session): session closed for user root
    Oct 04 20:12:02 DZGD1444 systemd[1]: Starting rTorrent…
  • Subject: Unit [email protected] has begun with start-up
  • Defined-By: systemd

  • Unit [email protected] has begun starting up.
    Oct 04 20:12:02 DZGD1444 systemd[3124]: Failed at step USER spawning /bin/rm: No such process
  • Subject: Process /bin/rm could not be executed
  • Defined-By: systemd
  • The process /bin/rm could not be executed and failed.
  • The error number returned while executing this process is 3.
    Oct 04 20:12:02 DZGD1444 systemd[3127]: Failed at step USER spawning /usr/bin/screen: No such process
  • Subject: Process /usr/bin/screen could not be executed
  • Defined-By: systemd
  • The process /usr/bin/screen could not be executed and failed.
  • The error number returned while executing this process is 3.
    Oct 04 20:12:02 DZGD1444 systemd[1]: [email protected]: control process exited, code=exited status=217
    Oct 04 20:12:02 DZGD1444 systemd[1]: Failed to start rTorrent.
  • Subject: Unit [email protected] has failed
  • Defined-By: systemd
  • Unit [email protected] has failed.
  • The result is failed.
    Oct 04 20:12:02 DZGD1444 systemd[1]: Unit [email protected] entered failed state.
    Oct 04 20:13:01 DZGD1444 CRON[3173]: pam_unix(cron:session): session opened for user root by (uid=0)
    Oct 04 20:13:01 DZGD1444 CRON[3174]: (root) CMD (bash /usr/local/bin/quickbox/system/set_interface)
    Oct 04 20:13:01 DZGD1444 CRON[3173]: pam_unix(cron:session): session closed for user root

So there it is, im not sure but seems like second user cant start rtorrent or irssi. First master user have no issues, but master user have access to everything so thats not so strange why ut works there.

So this might be a bug or am i missing something?
Thanks

OS: Debian 8 64bit
Installed on a fresh new server.

Feel free to ask if there is any other information you would like to have


#2

It doesnt like your hyphen in the username

1:502)# createSeedboxUser my-user

!important! When creating a user, only use lowercase for the username

Username: my-user
Password: (hit enter to generate a password)
setting password to CqOHGjplGiz6UWkp
writing my-user to vsftpd.chroot_list…[OK]
writing my-user .rtorrent.rc using port-range (3190-4690)…[OK]
setting permissions … [OK]
writing my-user rutorrent config.php … [OK]
Setting up autodl-irssi for my-user … [OK]
Setting up Deluge for my-user … [OK]
Job for [email protected] failed because the control process exited with error code. See “systemctl status [email protected]” and “journalctl -xe” for details.
Created symlink from /etc/systemd/system/multi-user.target.wants/[email protected] to /etc/systemd/system/[email protected]
Job for [email protected] failed because the control process exited with error code. See “systemctl status [email protected]” and “journalctl -xe” for details.
Created symlink from /etc/systemd/system/multi-user.target.wants/[email protected] to /etc/systemd/system/[email protected]
Created symlink from /etc/systemd/system/multi-user.target.wants/[email protected] to /etc/systemd/system/[email protected]
Created symlink from /etc/systemd/system/multi-user.target.wants/[email protected] to /etc/systemd/system/[email protected]
10557/32129MB 0.03 0.05 0.06 1/492 32695
[32664:32552 0:503] 02:04:52 Tue Oct 04 [[email protected]] ~
(1:503)# createSeedboxUser my-user

!important! When creating a user, only use lowercase for the username

Username: john
Password: (hit enter to generate a password)
setting password to C2wHhH9okD4JVYHU
writing john to vsftpd.chroot_list…[OK]
writing john .rtorrent.rc using port-range (8356-9856)…[OK]
setting permissions … [OK]
writing john rutorrent config.php … [OK]
Setting up autodl-irssi for john … [OK]
Setting up Deluge for john … [OK]
Created symlink from /etc/systemd/system/multi-user.target.wants/[email protected] to /etc/systemd/system/[email protected]
Created symlink from /etc/systemd/system/multi-user.target.wants/[email protected] to /etc/systemd/system/[email protected]
Created symlink from /etc/systemd/system/multi-user.target.wants/[email protected] to /etc/systemd/system/[email protected]
Created symlink from /etc/systemd/system/multi-user.target.wants/[email protected] to /etc/systemd/system/[email protected]


#3

oh damn… thats right. Yea it worked like you said, so stupid of me, omg…

Thanks for that anyway RXWatcher! Everything is like it should now hehe