Jackett reset after reboot (lost API, indexers) Topic is solved
Re: Jackett reset after reboot (lost API, indexers)
I have the same problem. Every reboot causes this as well.
-
- Posts: 8
- Joined: Fri Jul 24, 2020 4:17 pm
Re: Jackett reset after reboot (lost API, indexers)
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 :
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 ?
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
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 ?
-
- Posts: 8
- Joined: Fri Jul 24, 2020 4:17 pm
Re: Jackett reset after reboot (lost API, indexers)
Ok should have looked at the logs, just needed to change the permissions on the newly created folder. All good, surviving reboots now.
Re: Jackett reset after reboot (lost API, indexers)
did your old config and keys survive?
Re: Jackett reset after reboot (lost API, indexers)
Maybe it would make more sense to move the config location to
/mnt/dietpi_userdata/
to be alligned with the other *arr configs?Re: Jackett reset after reboot (lost API, indexers)
I got it working:
Change
Then run
Now it's a good time to restore from your dietpi-backup
Finally cross fingers and start it
The api key will still be the same.
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
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
Code: Select all
sudo cp -a /mnt/backup/dietpi-backup/data/opt/jackett/Jackett/* /mnt/dietpi_userdata/Jackett/
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.
Re: Jackett reset after reboot (lost API, indexers)
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 
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

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.trendy wrote: ↑Fri Apr 02, 2021 10:56 pm I got it working:
ChangeCode: Select all
sudo mkdir -p /mnt/dietpi_userdata/Jackett ; sudo chown jackett:jackett /mnt/dietpi_userdata/Jackett sudo nano /etc/systemd/system/jackett.service
Environment=XDG_CONFIG_HOME=/mnt/dietpi_userdata
andReadWritePaths=/opt/jackett /mnt /var/log/jackett /tmp
Then runNow it's a good time to restore from your dietpi-backupCode: Select all
sudo systemctl daemon-reload
Finally cross fingers and start itCode: Select all
sudo cp -a /mnt/backup/dietpi-backup/data/opt/jackett/Jackett/* Jackett/
sudo dietpi-services start jackett
The api key will still be the same.
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

Re: Jackett reset after reboot (lost API, indexers)
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?
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?