VPN tunnel and changing service user

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
undershot
Posts: 3
Joined: Wed May 22, 2019 10:38 am

VPN tunnel and changing service user

Post by undershot »

Hi,

I've managed to set up a VPN tunnel using this guide, but adding the vpn user to the groups dietpi,nzbget,debian-deluged, and users root,nzbget,debian-deluged to the group vpn...
hyperlink=https://www.htpcguides.com/force-torren ... ntu-16-04/

I've setup and used the user 'vpn', and changed my nzbget user to vpn via dietpi-services, and editing the drop in file to...

Code: Select all

[Unit]
#Description=NZBget (DietPi)

[Service]
#Type=forking
User=vpn
#Group=dietpi
#WorkingDirectory=/mnt/dietpi_userdata/nzbget
#ExecStart=/mnt/dietpi_userdata/nzbget/nzbget -D

[Install]
#WantedBy=multi-user.target
NZBget works great!

I then try the same with deluged! And this is where I have problems.

I do exactly the same as what I did for nzbget for both the deluged and deluged-web services, but both services fail to initiate, and I get the below in the dietpi-services Status entry (same in both more or less, this is for deluged):

│ ● deluged.service - Deluge Daemon (DietPi)
│ Loaded: loaded (/etc/systemd/system/deluged.service; disabled; vendor preset: enabled)
│ Drop-In: /etc/systemd/system/deluged.service.d
│ └─dietpi-services_edit.conf
│ Active: failed (Result: exit-code) since Mon 2019-07-08 13:21:06 CEST; 15s ago
│ Docs: man:deluged
│ Process: 7227 ExecStart=/usr/bin/deluged -d -l /var/log/deluged/daemon.log -L warning (code=exited,
│ status=1/FAILURE)
│ Main PID: 7227 (code=exited, status=1/FAILURE)
│ CPU: 1.419s

│ Jul 08 13:21:06 DietPi systemd[1]: deluged.service: Failed with result 'exit-code'.
│ Jul 08 13:21:06 DietPi systemd[1]: deluged.service: Service hold-off time over, scheduling restart.
│ Jul 08 13:21:06 DietPi systemd[1]: Stopped Deluge Daemon (DietPi).
│ Jul 08 13:21:06 DietPi systemd[1]: deluged.service: Start request repeated too quickly.
│ Jul 08 13:21:06 DietPi systemd[1]: Failed to start Deluge Daemon (DietPi).
│ Jul 08 13:21:06 DietPi systemd[1]: deluged.service: Unit entered failed state.
│ Jul 08 13:21:06 DietPi systemd[1]: deluged.service: Failed with result 'exit-code'.


What can I do to get the server working as the vpn user?
undershot
Posts: 3
Joined: Wed May 22, 2019 10:38 am

Re: VPN tunnel and changing service user

Post by undershot »

Hi,

Does anyone have a suggestion for this?
ShannonRalphie
Posts: 1
Joined: Mon Jul 22, 2019 4:52 pm

Re: VPN tunnel and changing service user

Post by ShannonRalphie »

Currently, I am using PureVPN on ditpi the best Linux and pi distribution. I have set up the VPN protocol by using these guides, check it out if you find something useful from it.

https://www.purevpn.com/download/linux-vpn
https://support.purevpn.com/linux-setup-guide
Post Reply