Jorman / Scripts

Some script, forked and not to make me crazy!
MIT License
226 stars 28 forks source link

How can I get AddqBittorrentTrackers.sh to work with docker? #5

Closed azumukupoe closed 3 years ago

azumukupoe commented 3 years ago

I can run the script within Radarr/Sonarr's containers but it doesn't work as a custom script in both applications

Jorman commented 3 years ago

Hi, I don't use containers, so for me is not so easy do a fix, but if you can post some logs I can try to understand what block the script. My first idea is that script can't write the files that it needs to work, but I need to see some log to help.

azumukupoe commented 3 years ago

Sure

2021-3-7 02:43:15.3|Error|AddqBittorrentTrackers.sh|/downloads/AddqBittorrentTrackers.sh: line 45: /root/TorrentTrackersList: Permission denied
2021-3-7 02:43:15.3|Error|AddqBittorrentTrackers.sh|sed: can't read /root/TorrentTrackersList: Permission denied
2021-3-7 02:43:15.3|Error|AddqBittorrentTrackers.sh|cat: /root/TorrentTrackersList: Permission denied
2021-3-7 02:43:15.3|Error|AddqBittorrentTrackers.sh|grep: /root/TorrentTrackersList: Permission denied
Jorman commented 3 years ago

Okay, good first guess. I'll try some

Jorman commented 3 years ago

Can you try the commit push and tell me if is working? If not please post the log files

J

kingzleshe commented 3 years ago

same here use docker. I have tried new commit, no luck :(

azumukupoe commented 3 years ago

Same

2021-3-7 09:14:34.2|Error|AddqBittorrentTrackers.sh|/downloads/AddqBittorrentTrackers.sh: line 18: /root/TorrentTrackersList: Permission denied
2021-3-7 09:14:44.8|Error|AddqBittorrentTrackers.sh|/downloads/AddqBittorrentTrackers.sh: line 50: /downloads: Is a directory
2021-3-7 09:14:44.8|Error|AddqBittorrentTrackers.sh|sed: couldn't edit /downloads: not a regular file
2021-3-7 09:14:44.8|Error|AddqBittorrentTrackers.sh|cat: /downloads: Is a directory
2021-3-7 09:14:44.8|Error|AddqBittorrentTrackers.sh|grep: /downloads: Is a directory
kingzleshe commented 3 years ago

sorry I just found out my script file did not store at $HOME path After I sort that out, It worked.

kingzleshe commented 3 years ago

Same

2021-3-7 09:14:34.2|Error|AddqBittorrentTrackers.sh|/downloads/AddqBittorrentTrackers.sh: line 18: /root/TorrentTrackersList: Permission denied
2021-3-7 09:14:44.8|Error|AddqBittorrentTrackers.sh|/downloads/AddqBittorrentTrackers.sh: line 50: /downloads: Is a directory
2021-3-7 09:14:44.8|Error|AddqBittorrentTrackers.sh|sed: couldn't edit /downloads: not a regular file
2021-3-7 09:14:44.8|Error|AddqBittorrentTrackers.sh|cat: /downloads: Is a directory
2021-3-7 09:14:44.8|Error|AddqBittorrentTrackers.sh|grep: /downloads: Is a directory

try to use an absolute path I used "/media/download/TorrentTrackersList" instead of "$HOME/TorrentTrackersList"

/media is my docker volume mount point

Jorman commented 3 years ago

Okay, the easiest thing to do is to specify a custom path. I added an option in the configuration -> custom_save_path If set the file will be saved on that location, otherwise on home directory.

Let me know if this can bypass this problem

azumukupoe commented 3 years ago

It works! Thank you!