Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No extractable files found: Linux with all apps on one server/file system #48

Closed
SimonSR opened this issue Sep 7, 2020 · 9 comments
Closed
Labels
good first issue Good for newcomers

Comments

@SimonSR
Copy link

SimonSR commented Sep 7, 2020

Hi,
I am having an issue, can't figure out what I'm doing wrong :)

I am getting the error below:

Sep  7 13:31:16 debian-transmission unpackerr[4196]: 2020/09/07 13:31:16 [Sonarr] Updated (http://localhost:8989): 1 Items Queued
Sep  7 13:31:16 debian-transmission unpackerr[4196]: 2020/09/07 13:31:16 [Radarr] Updated (http://localhost:7878): 0 Items Queued
Sep  7 13:31:16 debian-transmission unpackerr[4196]: 2020/09/07 13:31:16 [Sonarr] Completed item still waiting: (edited out), no extractable files found at: /media/debian-transmission/Storage/Downloads/Completed/(edited out)
Sep  7 13:31:16 debian-transmission unpackerr[4196]: 2020/09/07 13:31:16 [Unpackerr] Queue: [1 waiting] [0 queued] [0 extracting] [0 extracted] [0 imported] [0 failed] [0 deleted], Totals: [0 restarts] [0 finished]

My settings for unpackerr sonarr/radarr are:

[[sonarr]]
   url = "http://localhost:8989"
   api_key = "myapikey"
   path = "/media/debian-transmission/Storage/Downloads/Completed"

[[radarr]]
  url = "http://localhost:7878"
  api_key = "myapikey"
  path = "/media/debian-transmission/Storage/Downloads/Completed"

Please advice as to why I am an idiot :)
Thanks

@davidnewhall
Copy link
Collaborator

Is there a .rar file in /media/debian-transmission/Storage/Downloads/Completed/(edited out) ?

@SimonSR
Copy link
Author

SimonSR commented Sep 7, 2020

Yes

@davidnewhall
Copy link
Collaborator

davidnewhall commented Sep 7, 2020

Is this running in a jail? a chroot? a docker container?
What version is it? How did you install it?
Running on the same host as transmission and radarr/sonarr?

I can't really say what it is for sure. Maybe the answers to these questions will help, but I'm a bit stumped. If there's arar file in that folder, it should find it and extract it. Perhaps the app is running as a user without privileges to read that folder?

More:

ps aux | grep unpack < what user is it running as?

See if that user can read the folder:

sudo -u <username> ls "/media/debian-transmission/Storage/Downloads/Completed/(edited out)"

@SimonSR
Copy link
Author

SimonSR commented Sep 7, 2020

Installed this file: unpackerr_0.7.0-82_amd64.deb In ubuntu 20.04.
All apps running running on same host.

ps aux | grep unpack
nobody 5889 0.0 0.2 1000136 8624 ? Ssl 13:43 0:00 /usr/bin/unpackerr
debian-+ 6384 0.0 0.0 20200 728 pts/0 S+ 13:49 0:00 grep --color=auto unpack

@davidnewhall
Copy link
Collaborator

what user and group owns the files in /media/debian-transmission/Storage/Downloads/Completed/ ?

@SimonSR
Copy link
Author

SimonSR commented Sep 7, 2020

debian-transmission owns as both user and group

@davidnewhall
Copy link
Collaborator

davidnewhall commented Sep 7, 2020

Okay, try this.. edit /lib/systemd/system/unpacker.service and change the User= line to User=debian-transmission. You can also add Group=debian-transmission if you want. Then run:

sudo systemctl daemon-reload
sudo systemctl restart unpackerr

This will make the app run as thedebian-transmission user; giving it access to all those files. I'm not real sure if there's a better way to handle this at the moment, but hoping this works!

EDIT: I just combined/cleaned up comments for readability. Thank you for the report, and good luck!

@SimonSR
Copy link
Author

SimonSR commented Sep 7, 2020

It worked, thank you :) Looking forward to it

@davidnewhall davidnewhall added the good first issue Good for newcomers label Sep 7, 2020
@davidnewhall davidnewhall changed the title No extractable files found No extractable files found: Linux with all apps on one server/file system Sep 7, 2020
@Unpackerr Unpackerr deleted a comment from SimonSR Sep 7, 2020
@Unpackerr Unpackerr deleted a comment from SimonSR Sep 7, 2020
@davidnewhall
Copy link
Collaborator

UPDATED: Unpackerr now uses a dedicated user in the systemd unit file and linux packages. The correct fix now days is to add the unpackerr user to the debian-transmission group and set the umask so the group can write.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Development

No branches or pull requests

2 participants