Jackett / Jackett

API Support for your favorite torrent trackers
GNU General Public License v2.0
12.36k stars 1.31k forks source link

[FreeBSD] Crash on startup #3541

Closed jemus42 closed 6 years ago

jemus42 commented 6 years ago

Jackett version: v0.10.12 (also tried previous releases) Mono version (if not using Windows):

mono --version
Mono JIT compiler version 5.10.1.47 (5.10.1.47 Tue Jul 17 01:34:36 UTC 2018)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notification:  kqueue
        Architecture:  amd64
        Disabled:      none
        Misc:          softdebug
        Interpreter:   yes
        LLVM:          supported, not enabled.
        GC:            sgen (concurrent by default)

Log file: https://paste.xinu.at/zAAJT9/bash

I created a new FreeBSD jail, installed sonarr, went to install jackett but I can't get it to start. I have tried running it as its user (jackett, which I manually created) or as root via mono --debug JackettConsole.exe, but no matter what I do it crashes on startup. I made sure I have the correct permisisons on both the jackett installation folder and the jacket_data folder.

I don't understand what I'm doing wrong here, as just last week I migrated jackett into a new jail with no issues.

Please advise.

jemus42 commented 6 years ago

I have since managed to get it working, but only under conditions I don't understand.

The init script at https://github.com/Jackett/Jackett/wiki/FreeBSD-Start-Script did not work. I don't know why, but it complained PERMISSION DENIED for /var/db/jackett, which was chowned to jackett, which I triple checked to be the user definied in the init script. (This error also occured after I chmod 777'd the folder, or after I changed the jackett user in the init script to root)

What works for now is the following:

Am confused.

kaso17 commented 6 years ago

I'm not an expert on FreeBSD but you might want to check the permissions of /var and /var/db too. The Mandatory Access Control Framework might also cause the permission error.

jemus42 commented 6 years ago

Sigh… The issue was a linebreak in the init script at

command_args="-f ${procname} /usr/local/share/Jackett/JackettConsole.exe -d ${jackett_data_dir}"

A linebreak right after the -d results in the issue.
Posting here as a reminder of my own stupidity and in case anyone else has the same issue for some reason.

Copy&paste wisely, folks.

jemus42 commented 6 years ago

Oh boy, nevermind, that permission thing was a derp on my part, but the original post still stands: the current version of jackett crashes on startup with the log in OP still valid.

Tested v0.10.12, but reverting back to v0.9.41 helps and it runs fine.

2fst4u commented 5 years ago

Did you ever figure this out? I'm having the same problem. Does reverting the mono version make it more stable?

jemus42 commented 5 years ago

I vaguely remember rolling back the jackett version, have it working then, and not touching it since (I think). Or a subsequent version fixed the issue.