DyonR / docker-Jackettvpn

Docker container which runs a headless Jackett Server with an optional WireGuard or OpenVPN connection
https://hub.docker.com/r/dyonr/jackettvpn/
GNU General Public License v3.0
70 stars 31 forks source link

Can't start Docker image #6

Closed phatassdk closed 5 years ago

phatassdk commented 5 years ago

Hi DyonR,

Cool project - really glad I came across this as most of the torrent sites here in DK is locked by our ISPs. Anyway - I am really struggling to make it work. I get the error below and I cannot seem to figure out why. I have tested with and without VPN enabled - same result (error). Would appreciate it if you can point me in the right direction.

Thanks again!

/phatty

2018-11-12 11:52:38 | stdout | 2018-11-12 11:52:38.004455 [info] Jackett PID:
-- | -- | --
2018-11-12 11:52:36 | stdout | start-stop-daemon: user '1026' not found
2018-11-12 11:52:36 | stdout | Logging to /config/Jackett/log.txt.
2018-11-12 11:52:36 | stdout | 2018-11-12 11:52:36.930612 [info] Starting Jackett daemon...
2018-11-12 11:52:36 | stdout | 2018-11-12 11:52:36.850541 [info] VPN_ENABLED defined as 'No'

Here are my settings (Synology NAS):

image image image image

DyonR commented 5 years ago

Good to hear that you want to use this! What you said about ISPs blocking trackers is exactly the reason I ported docker-qBittorrentvpn to docker-Jackettvpn 👍

Looking at your configuration I do not see anything that seems incorrect. Can you try adding the following environment variables?

PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

DEBIAN_FRONTEND noninteractive

XDG_DATA_HOME /config

XDG_CONFIG_HOME /config

I use Portainers myself and that are some variables that get added automatically to my deployment. Please let me know if it works or not!

phatassdk commented 5 years ago

Hi DyonR, Yeah, makes great sense - would be amazing if I get this to work. It kinda the final piece to the fully automated meadidownload setup. :)

Anyway - I added the above but without many changes: image

Here is the output: image

The config folder also seems a little strange. Fist of all the log text is empty which I dont uderstand.

The .json also seems a little thin. :)

image

Appreciate your help mate!

DyonR commented 5 years ago

Weird. That .json file look good tho, upon the first initial start up of Jackett more info will be filled in (only APIKey, actually).

Below are the environment variables that I use: image

Since the message also contains something about an unknown user, it could be that the PUID and PGID values are incorrect. Try adding these environment variables to set the PUID and PGID (as seen in my config): PUID 99 PGID 100

(just for your information this was actually a little personal project, and I not a pro-programmer but I like to help out :))

phatassdk commented 5 years ago

The PUID: 99 did the trick.. Always the simplest things. My god! Can't believe how cool this is. :) Thanks a ton mate. :)

phatassdk commented 5 years ago

Gah, the VPN won't start for some reason - when checking with "curl 'https://api.ipify.org?format=json'" it just returns my home IP. Have PIA VPN and have added the "Sweden.ovpn" file in the openvpn folder in the config folder. Anything else I need to do? Have double checked the credentials of course. :)

DyonR commented 5 years ago

Do you see in the log that OpenVPN is trying to connect to the VPN? Handshaking etc, pretty long messages and can take a bit of time. Also, make sure that ENABLED_VPN is 'yes' not 'Yes', think it is case-sensitive too.

phatassdk commented 5 years ago

Hi @DyonR Finally got home to test the change. It did the trick. I am now fully up and running:

image

Can't believe how great this is. :) The docker page states Yes with a capital Y in the setting table. The example shows with a regular Y. Perhaps it would be smart to update that part so other complete UNIX/Linux rookies such as myself don't have to waste your time. :)

Have a great evening. :)