Cant access Jackett

Hi,

I installed Sonarr (following tutorial) and I could not add indexer Rarbg, test goes through, on save “Unable to connect to indexer, check the log for more details”.
Found out about Jackett, but after install I try to access IP:9117, but cant reach the page: This site can’t be reached
IP refused to connect.

Other services (Plex, qBittorrent, Sonarr) works just fine.
I rebooted the server, uninstall/install Jackett, sudo dietpi-software reinstall 147 - still not working.

reboot the systems and share following once system is back online

systemctl status jackett.service
journalctl -u jackett.service

After server reboot:
status:


● jackett.service - Jackett (DietPi)
     Loaded: loaded (/etc/systemd/system/jackett.service; disabled; vendor preset: enabled)
     Active: activating (auto-restart) since Mon 2022-12-26 00:02:38 GMT; 4s ago
    Process: 1671 ExecStart=/bin/dash -c /opt/jackett/jackett --NoRestart; while pgrep -u jackett JackettUpdater > /dev/null; do sleep 1; done (code=exited, status=0/SUCCESS)
   Main PID: 1671 (code=exited, status=0/SUCCESS)
        CPU: 528ms

Journal:

-- Journal begins at Mon 2022-12-26 00:01:08 GMT, ends at Mon 2022-12-26 00:03:01 GMT. --
Dec 26 00:01:17 DietPi systemd[1]: Started Jackett (DietPi).
Dec 26 00:01:22 DietPi Jackett[532]: Segmentation fault
Dec 26 00:01:23 DietPi systemd[1]: jackett.service: Succeeded.
Dec 26 00:01:28 DietPi systemd[1]: jackett.service: Scheduled restart job, restart counter is at 1.
Dec 26 00:01:28 DietPi systemd[1]: Stopped Jackett (DietPi).
Dec 26 00:01:28 DietPi systemd[1]: Started Jackett (DietPi).
Dec 26 00:01:28 DietPi Jackett[617]: Segmentation fault
Dec 26 00:01:28 DietPi systemd[1]: jackett.service: Succeeded.
Dec 26 00:01:34 DietPi systemd[1]: jackett.service: Scheduled restart job, restart counter is at 2.
Dec 26 00:01:34 DietPi systemd[1]: Stopped Jackett (DietPi).
Dec 26 00:01:34 DietPi systemd[1]: Started Jackett (DietPi).
Dec 26 00:01:34 DietPi Jackett[638]: Segmentation fault
Dec 26 00:01:34 DietPi systemd[1]: jackett.service: Succeeded.
Dec 26 00:01:40 DietPi systemd[1]: jackett.service: Scheduled restart job, restart counter is at 3.
Dec 26 00:01:40 DietPi systemd[1]: Stopped Jackett (DietPi).
Dec 26 00:01:40 DietPi systemd[1]: Started Jackett (DietPi).
Dec 26 00:01:40 DietPi Jackett[653]: Segmentation fault
Dec 26 00:01:40 DietPi systemd[1]: jackett.service: Succeeded.
Dec 26 00:01:45 DietPi systemd[1]: jackett.service: Scheduled restart job, restart counter is at 4.
Dec 26 00:01:45 DietPi systemd[1]: Stopped Jackett (DietPi).
Dec 26 00:01:45 DietPi systemd[1]: Started Jackett (DietPi).
Dec 26 00:02:01 DietPi Jackett[722]: Segmentation fault
Dec 26 00:02:01 DietPi systemd[1]: jackett.service: Succeeded.
Dec 26 00:02:06 DietPi systemd[1]: jackett.service: Scheduled restart job, restart counter is at 5.
Dec 26 00:02:06 DietPi systemd[1]: Stopped Jackett (DietPi).
Dec 26 00:02:06 DietPi systemd[1]: Started Jackett (DietPi).
Dec 26 00:02:07 DietPi Jackett[806]: Segmentation fault
Dec 26 00:02:07 DietPi systemd[1]: jackett.service: Succeeded.
Dec 26 00:02:12 DietPi systemd[1]: jackett.service: Scheduled restart job, restart counter is at 6.
Dec 26 00:02:12 DietPi systemd[1]: Stopped Jackett (DietPi).
Dec 26 00:02:12 DietPi systemd[1]: Started Jackett (DietPi).
Dec 26 00:02:12 DietPi Jackett[1573]: Segmentation fault
Dec 26 00:02:12 DietPi systemd[1]: jackett.service: Succeeded.
Dec 26 00:02:17 DietPi systemd[1]: jackett.service: Scheduled restart job, restart counter is at 7.
Dec 26 00:02:17 DietPi systemd[1]: Stopped Jackett (DietPi).
Dec 26 00:02:20 DietPi systemd[1]: Started Jackett (DietPi).
Dec 26 00:02:21 DietPi Jackett[1625]: Segmentation fault
Dec 26 00:02:21 DietPi systemd[1]: jackett.service: Succeeded.
Dec 26 00:02:26 DietPi systemd[1]: jackett.service: Scheduled restart job, restart counter is at 8.
Dec 26 00:02:26 DietPi systemd[1]: Stopped Jackett (DietPi).
Dec 26 00:02:26 DietPi systemd[1]: Started Jackett (DietPi).
Dec 26 00:02:26 DietPi Jackett[1648]: Segmentation fault
Dec 26 00:02:26 DietPi systemd[1]: jackett.service: Succeeded.
Dec 26 00:02:31 DietPi systemd[1]: jackett.service: Scheduled restart job, restart counter is at 9.
Dec 26 00:02:31 DietPi systemd[1]: Stopped Jackett (DietPi).
Dec 26 00:02:31 DietPi systemd[1]: Started Jackett (DietPi).
Dec 26 00:02:32 DietPi Jackett[1659]: Segmentation fault
Dec 26 00:02:32 DietPi systemd[1]: jackett.service: Succeeded.
Dec 26 00:02:37 DietPi systemd[1]: jackett.service: Scheduled restart job, restart counter is at 10.
Dec 26 00:02:37 DietPi systemd[1]: Stopped Jackett (DietPi).
Dec 26 00:02:37 DietPi systemd[1]: Started Jackett (DietPi).
Dec 26 00:02:38 DietPi Jackett[1671]: Segmentation fault
Dec 26 00:02:38 DietPi systemd[1]: jackett.service: Succeeded.
Dec 26 00:02:43 DietPi systemd[1]: jackett.service: Scheduled restart job, restart counter is at 11.
Dec 26 00:02:43 DietPi systemd[1]: Stopped Jackett (DietPi).
Dec 26 00:02:43 DietPi systemd[1]: Started Jackett (DietPi).
Dec 26 00:02:43 DietPi Jackett[1685]: Segmentation fault
Dec 26 00:02:43 DietPi systemd[1]: jackett.service: Succeeded.
Dec 26 00:02:49 DietPi systemd[1]: jackett.service: Scheduled restart job, restart counter is at 12.
Dec 26 00:02:49 DietPi systemd[1]: Stopped Jackett (DietPi).
Dec 26 00:02:49 DietPi systemd[1]: Started Jackett (DietPi).
Dec 26 00:02:49 DietPi Jackett[1697]: Segmentation fault
Dec 26 00:02:49 DietPi systemd[1]: jackett.service: Succeeded.
Dec 26 00:02:54 DietPi systemd[1]: jackett.service: Scheduled restart job, restart counter is at 13.
Dec 26 00:02:54 DietPi systemd[1]: Stopped Jackett (DietPi).
Dec 26 00:02:54 DietPi systemd[1]: Started Jackett (DietPi).
Dec 26 00:02:55 DietPi Jackett[1708]: Segmentation fault
Dec 26 00:02:55 DietPi systemd[1]: jackett.service: Succeeded.
Dec 26 00:03:00 DietPi systemd[1]: jackett.service: Scheduled restart job, restart counter is at 14.
Dec 26 00:03:00 DietPi systemd[1]: Stopped Jackett (DietPi).
Dec 26 00:03:00 DietPi systemd[1]: Started Jackett (DietPi).
Dec 26 00:03:01 DietPi Jackett[1719]: Segmentation fault
Dec 26 00:03:01 DietPi systemd[1]: jackett.service: Succeeded.

A segmentation fault: Either corrupted (though you tried reinstall already) or wrong binary. Which SBC do you use? If RPi, the ARMv6, ARMv7 or ARMv8 image? Basically filling the bug report template would help us to try replicating the issue correctly.

DietPi version:
G_DIETPI_VERSION_CORE=8 G_DIETPI_VERSION_SUB=12 G_DIETPI_VERSION_RC=1 G_GITBRANCH='master' G_GITOWNER='MichaIng' G_LIVE_PATCH_STATUS[0]='applied'

Distro version: bullseye 0

Kernel version | Linux DietPi 5.15.76-v8+ #1597 SMP PREEMPT Fri Nov 4 12:16:41 GMT 2022 aarch64 GNU/Linux

SBC model: RPi 3 Model B (aarch64)

Power supply used | 5V 1A
SD card used | Kingston 16GB

Software title | Jackett

Was the software title installed freshly or updated/migrated? Just installed freshly

just tested on RPi4B 64bit without issues. Pls can you remove Jackett

dietpi-software uninstall 147

and install it again. Pls share the entire output of the install log

dietpi-software install 147

Here it is:

[  OK  ] DietPi-Software | Initialised database
[  OK  ] DietPi-Software | Reading database

 DietPi-Software
─────────────────────────────────────────────────────
 Mode: Automated install

[  OK  ] DietPi-Software | Installing Jackett: API support for your torrent trackers
[  OK  ] DietPi-Software | DietPi-Userdata validation: /mnt/dietpi_userdata

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Checking for conflicts and missing inputs


 DietPi-Software
─────────────────────────────────────────────────────
 Step: Checking for prerequisite software

[  OK  ] DietPi-Software | Checking IPv4 network connectivity
[  OK  ] DietPi-Software | Checking DNS resolver
[  OK  ] DietPi-Software | mkdir -p /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads /var/www /opt /usr/local/bin
[  OK  ] DietPi-Software | chown dietpi:dietpi /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads
[  OK  ] DietPi-Software | chmod 0775 /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads
[ SUB1 ] DietPi-Services > unmask
[  OK  ] DietPi-Services | unmask : qbittorrent
[  OK  ] DietPi-Services | unmask : plexmediaserver
[  OK  ] DietPi-Services | unmask : cron
[ SUB1 ] DietPi-Services > stop
[  OK  ] DietPi-Services | stop : cron
[  OK  ] DietPi-Services | stop : plexmediaserver
[  OK  ] DietPi-Services | stop : qbittorrent
[ INFO ] DietPi-Software | APT update, please wait...
Hit:1 https://download.mono-project.com/repo/debian buster InRelease
Hit:2 https://downloads.plex.tv/repo/deb public InRelease
Hit:3 https://deb.debian.org/debian bullseye InRelease
Hit:4 https://archive.raspberrypi.org/debian bullseye InRelease
Get:5 https://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Hit:6 https://deb.debian.org/debian-security bullseye-security InRelease
Get:7 https://deb.debian.org/debian bullseye-backports InRelease [49.0 kB]
Fetched 93.0 kB in 5s (18.2 kB/s)
Reading package lists...
[  OK  ] DietPi-Software | APT update

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Installing Jackett: API support for your torrent trackers

[  OK  ] DietPi-Software | cd /tmp/DietPi-Software
[  OK  ] DietPi-Software | Checking URL: https://github.com/Jackett/Jackett/releases/download/v0.20.2444/Jackett.Binaries.LinuxARM64.tar.gz
[ INFO ] DietPi-Software | G_THREAD_START_0 | curl -sSfL https://github.com/Jackett/Jackett/releases/download/v0.20.2444/Jackett.Binaries.LinuxARM64.tar.gz -o Jackett.Binaries.LinuxARM64.tar.gz
[ INFO ] DietPi-Software | APT install for: libicu67, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
libicu67 is already the newest version (67.1-7).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[  OK  ] DietPi-Software | APT install for: libicu67
[  OK  ] DietPi-Software | G_THREAD: All threads finished
[  OK  ] DietPi-Software | tar xf Jackett.Binaries.LinuxARM64.tar.gz
[  OK  ] DietPi-Software | rm Jackett.Binaries.LinuxARM64.tar.gz
[  OK  ] DietPi-Software | mv Jackett /opt/jackett
[  OK  ] DietPi-Software | Verifying user "jackett" to run Jackett
[  OK  ] DietPi-Software | useradd -rMU -d /opt/jackett -s /usr/sbin/nologin jackett
[  OK  ] DietPi-Software | chown -R jackett:jackett /opt/jackett

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Finalising install

[  OK  ] DietPi-Software | systemctl daemon-reload
2022-12-27 06:06:41 [ INFO ] DietPi-RAMlog | Storing /var/log to /var/tmp/dietpi/logs/dietpi-ramlog_store...
2022-12-27 06:07:14 [  OK  ] DietPi-RAMlog | Stored /var/log to /var/tmp/dietpi/logs/dietpi-ramlog_store.
[ SUB1 ] DietPi-Services > dietpi_controlled
[  OK  ] DietPi-Services | dietpi_controlled : qbittorrent
[  OK  ] DietPi-Services | dietpi_controlled : plexmediaserver
[  OK  ] DietPi-Services | dietpi_controlled : jackett
[  OK  ] DietPi-Services | dietpi_controlled : cron

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Install completed

[  OK  ] DietPi-Survey | Sending survey data
[ SUB1 ] DietPi-Services > restart
[  OK  ] DietPi-Services | restart : qbittorrent
[  OK  ] DietPi-Services | restart : plexmediaserver
[  OK  ] DietPi-Services | restart : jackett
[  OK  ] DietPi-Services | restart : cron

That looks all fine, also correct archive is downloaded, no errors. But the service is still failing?

journalctl -u jackett

Self-reminder: Adjust ExecStart so that the service exits with error when Jackett fails.

Yes, still can’t access it (http://IP:9117/).
The command returns too many rows (restart counter till 3040), but the last 3 counters looks like this:

Dec 27 11:05:20 DietPi systemd[1]: jackett.service: Scheduled restart job, restart counter is at 3038.
Dec 27 11:05:20 DietPi systemd[1]: Stopped Jackett (DietPi).
Dec 27 11:05:20 DietPi systemd[1]: Started Jackett (DietPi).
Dec 27 11:05:21 DietPi Jackett[225353]: Segmentation fault
Dec 27 11:05:21 DietPi systemd[1]: jackett.service: Succeeded.
Dec 27 11:05:26 DietPi systemd[1]: jackett.service: Scheduled restart job, restart counter is at 3039.
Dec 27 11:05:26 DietPi systemd[1]: Stopped Jackett (DietPi).
Dec 27 11:05:26 DietPi systemd[1]: Started Jackett (DietPi).
Dec 27 11:05:26 DietPi Jackett[225364]: Segmentation fault
Dec 27 11:05:26 DietPi systemd[1]: jackett.service: Succeeded.
Dec 27 11:05:32 DietPi systemd[1]: jackett.service: Scheduled restart job, restart counter is at 3040.
Dec 27 11:05:32 DietPi systemd[1]: Stopped Jackett (DietPi).
Dec 27 11:05:32 DietPi systemd[1]: Started Jackett (DietPi).
Dec 27 11:05:32 DietPi Jackett[225376]: Segmentation fault
Dec 27 11:05:32 DietPi systemd[1]: jackett.service: Succeeded.

Does this help?

apt install --reinstall libicu67

No, still cant access the link.

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 8467 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://deb.debian.org/debian bullseye/main arm64 libicu67 arm64 67.1-7 [8467 kB]
Fetched 8467 kB in 4s (2075 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 31017 files and directories currently installed.)
Preparing to unpack .../libicu67_67.1-7_arm64.deb ...
Unpacking libicu67:arm64 (67.1-7) over (67.1-7) ...
Setting up libicu67:arm64 (67.1-7) ...
Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u5) ...

Still the problem is an incorrect executable. Or some data corruption. Can you have a look for kernel error messages

dmesg -l err,crit,alert,emerg

dmesg -l err,crit,alert,emerg

This dosen’t return anything

It is not the wrapping dash which fails, is it?

/bin/dash -c 'echo works'
/opt/jackett/jackett --version

Else let’s try to reinstall some other dependency libraries:

apt install --reinstall libstdc++6 libgcc-s1

Last resort is to find out where exactly the SEGFAULT happens:

apt install strace
strace /opt/jackett/jackett --version

works

/opt/jackett/jackett --version

Segmentation fault

apt install --reinstall libstdc++6 libgcc-s1

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 0 not upgraded.
Need to get 485 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://deb.debian.org/debian bullseye/main arm64 libgcc-s1 arm64 10.2.1-6 [34.6 kB]
Get:2 https://deb.debian.org/debian bullseye/main arm64 libstdc++6 arm64 10.2.1-6 [451 kB]
Fetched 485 kB in 1s (452 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 31017 files and directories currently installed.)
Preparing to unpack .../libgcc-s1_10.2.1-6_arm64.deb ...
Unpacking libgcc-s1:arm64 (10.2.1-6) over (10.2.1-6) ...
Setting up libgcc-s1:arm64 (10.2.1-6) ...
(Reading database ... 31017 files and directories currently installed.)
Preparing to unpack .../libstdc++6_10.2.1-6_arm64.deb ...
Unpacking libstdc++6:arm64 (10.2.1-6) over (10.2.1-6) ...
Setting up libstdc++6:arm64 (10.2.1-6) ...
Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u5) ...

apt install strace

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  strace
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 994 kB of archives.
After this operation, 2096 kB of additional disk space will be used.
Get:1 https://deb.debian.org/debian bullseye/main arm64 strace arm64 5.10-1 [994 kB]
Fetched 994 kB in 1s (1890 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package strace.
(Reading database ... 31017 files and directories currently installed.)
Preparing to unpack .../strace_5.10-1_arm64.deb ...
Unpacking strace (5.10-1) ...
Setting up strace (5.10-1) ...

strace /opt/jackett/jackett --version

strace.txt (152.7 KB)

If I interpret it right, it fails when processing /opt/jackett/System.Linq.dll:

ls -l /opt/jackett/System.Linq.dll
stat /opt/jackett/System.Linq.dll

But I do not believe the file was and remained corrupted after a reinstall, so it looks more like a Jackett bug to me. Just strange that it occurs (so far) on your system only. Just to rule it out, since there are some /tmp references at the end of the strace as well:

df /tmp

The tmpfs has sufficient free space?

ls -l /opt/jackett/System.Linq.dll

-rw-r--r-- 1 jackett jackett 617088 Dec 27 03:22 /opt/jackett/System.Linq.dll

stat /opt/jackett/System.Linq.dll

  File: /opt/jackett/System.Linq.dll
  Size: 617088          Blocks: 1208       IO Block: 4096   regular file
Device: b302h/45826d    Inode: 272636      Links: 1
Access: (0644/-rw-r--r--)  Uid: (  996/ jackett)   Gid: (  994/ jackett)
Access: 2022-12-27 06:05:00.811390693 +0000
Modify: 2022-12-27 03:22:11.000000000 +0000
Change: 2022-12-27 06:06:36.887390656 +0000
 Birth: 2022-12-27 06:05:12.795390688 +0000

df /tmp

Filesystem     1K-blocks  Used Available Use% Mounted on
tmpfs            1048576     0   1048576   0% /tmp

Looks like 0% use for tmpfs…

I’m out of ideas to be honest. The file looks all fine, it was freshly reinstalled anyway, tmpfs is empty and sufficiently large with 1 GiB, all loaded runtime libraries have been reinstalled, no kernel errors, not related to any permissions issue (fails with root as well).

I’m not good in interpreting the strace. Probably the Jackett developers have a clue what reason a segmentation fault at this stage could have: Issues · Jackett/Jackett · GitHub

@MichaIng Thanks, I made the issue.

They sad:
Try installing v0.20.2369 and see if it works. If so, try updating and see if it fails.

If so, we have a duplicate of #13806, and you should have a look at the steps we went through there.

How I can install/update specific Jackett version via terminal?

Here is another comment:
I had a similar issue. Jackett was working perfectly this morning, then after the update to v0.20.2451 from v0.20.2447 the dashboard wasn’t finding my jackett .config file. There was no API string in the API field and no settings in any other field. Uninstalling and reinstalling v0.20.2447 solved this issue for me.

I just cant figure out how to install older version and I guess I need to turn of automatic update…