Jackett reset after reboot (lost API, indexers) Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
shaft8472
Posts: 2
Joined: Sun Jul 26, 2020 8:11 pm

Re: Jackett reset after reboot (lost API, indexers)

Post by shaft8472 »

I have the same problem. Every reboot causes this as well.
Supersocks
Posts: 8
Joined: Fri Jul 24, 2020 4:17 pm

Re: Jackett reset after reboot (lost API, indexers)

Post by Supersocks »

So the workaround on git is to change the config location , however I'm not sure where exactly this is referenced in the service file, mine looks like :

Code: Select all

[Unit]
Description=Jackett (DietPi)
Wants=network-online.target
After=network-online.target dietpi-boot.service

[Service]
SyslogIdentifier=jackett
User=jackett
WorkingDirectory=/opt/jackett
Environment=XDG_CONFIG_HOME=/opt/jackett/
ExecStart=/bin/dash -c '/opt/jackett/jackett --NoRestart; while pgrep -u jackett JackettUpdater > /dev/null; do sleep 1; done'
Restart=always
RestartSec=5
TimeoutStopSec=30

# Hardening
ProtectSystem=strict
ProtectHome=true
PrivateDevices=true
PrivateTmp=true
ReadWritePaths=/opt/jackett

[Install]
WantedBy=multi-user.target
I created a jackett_config folder in /opt/jackett and changed the line:

Environment=XDG_CONFIG_HOME=/opt/jackett/

To

Environment=XDG_CONFIG_HOME=/opt/jackett/jackett_config

and then copied the config stuff over from /opt/jacket/Jackett and restarted but Jackett didnt run at all.
I'm guessing that I'm redirecting in the wrong config line, can anyone care to advise ?
Supersocks
Posts: 8
Joined: Fri Jul 24, 2020 4:17 pm

Re: Jackett reset after reboot (lost API, indexers)

Post by Supersocks »

Ok should have looked at the logs, just needed to change the permissions on the newly created folder. All good, surviving reboots now.
flyg
Posts: 12
Joined: Fri Oct 30, 2020 4:14 pm

Re: Jackett reset after reboot (lost API, indexers)

Post by flyg »

did your old config and keys survive?
User avatar
trendy
Posts: 340
Joined: Tue Feb 25, 2020 2:54 pm

Re: Jackett reset after reboot (lost API, indexers)

Post by trendy »

Maybe it would make more sense to move the config location to /mnt/dietpi_userdata/ to be alligned with the other *arr configs?
User avatar
trendy
Posts: 340
Joined: Tue Feb 25, 2020 2:54 pm

Re: Jackett reset after reboot (lost API, indexers)

Post by trendy »

I got it working:

Code: Select all

sudo mkdir -p /mnt/dietpi_userdata/Jackett ; sudo chown jackett:jackett /mnt/dietpi_userdata/Jackett
sudo nano /etc/systemd/system/jackett.service
Change Environment=XDG_CONFIG_HOME=/mnt/dietpi_userdata and ReadWritePaths=/opt/jackett /mnt /var/log/jackett /tmp
Then run

Code: Select all

sudo systemctl daemon-reload
Now it's a good time to restore from your dietpi-backup

Code: Select all

sudo cp -a /mnt/backup/dietpi-backup/data/opt/jackett/Jackett/* /mnt/dietpi_userdata/Jackett/
Finally cross fingers and start it sudo dietpi-services start jackett
The api key will still be the same.
Last edited by trendy on Sat Apr 03, 2021 7:41 pm, edited 1 time in total.
begbie
Posts: 17
Joined: Sat Apr 03, 2021 10:32 am

Re: Jackett reset after reboot (lost API, indexers)

Post by begbie »

First time post and registering because of the same issue, but found this through Google, so glad I'm not the only one that is having the same issues :(
trendy wrote: Fri Apr 02, 2021 10:56 pm I got it working:

Code: Select all

sudo mkdir -p /mnt/dietpi_userdata/Jackett ; sudo chown jackett:jackett /mnt/dietpi_userdata/Jackett
sudo nano /etc/systemd/system/jackett.service
Change Environment=XDG_CONFIG_HOME=/mnt/dietpi_userdata and ReadWritePaths=/opt/jackett /mnt /var/log/jackett /tmp
Then run

Code: Select all

sudo systemctl daemon-reload
Now it's a good time to restore from your dietpi-backup

Code: Select all

sudo cp -a /mnt/backup/dietpi-backup/data/opt/jackett/Jackett/* Jackett/
Finally cross fingers and start it sudo dietpi-services start jackett
The api key will still be the same.
I tried this and all I got within the dietpi-launcher > services was that Jackett was activating and didn't go much further. Uninstall & reinstall got back to it working, but still with the indexers & API key changing after a service restart.

I have noticed that the build number has changed on Jackett overnight though from v0.17.820 (I think) to v0.17.838 now, so guess this is being looked on from the various github comments.

I guess there will be a fix soon enough, but keep up the work guys and gals, it is hugely appreciated :D
User avatar
trendy
Posts: 340
Joined: Tue Feb 25, 2020 2:54 pm

Re: Jackett reset after reboot (lost API, indexers)

Post by trendy »

begbie wrote: Sat Apr 03, 2021 10:38 amI tried this and all I got within the dietpi-launcher > services was that Jackett was activating and didn't go much further.
What is the error? sudo journalctl -u jackett.service
User avatar
MichaIng
Site Admin
Posts: 3087
Joined: Sat Nov 18, 2017 6:21 pm

Re: Jackett reset after reboot (lost API, indexers)

Post by MichaIng »

flyg
Posts: 12
Joined: Fri Oct 30, 2020 4:14 pm

Re: Jackett reset after reboot (lost API, indexers)

Post by flyg »

ok learned lesson about the dietpi backup! I dont have one... since the jackett files only got deleted 2 days ago and ive done nothing with my pi since... how can i go about recovering the files?

I tried following a testdisk tutorial but it didnt really help - unsure of the location where the original files that are gone and meant to have stored.

Any help appreciated... really dont wanna set it all up again (all my indexers).

Also is it easy enough to cron the dietpi backup tool?
Post Reply