JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 24.06.2019, 04:23
flash82
Guest
 
Posts: n/a
Default Folderwatch & Linkcollector in My.JDownloader

Hey guys.

I've long used JD2 happily and successfully, but now that I've set up my own Linux server, I'm trying to run a headless instance of the client. For that purpose I've set up a Samba share to where I'll download all *.dlc files, which are then grabbed by the Folderwatch plugin/extension.

So far so good. I've had no problems setting it up, because that part is actually idiot proof. But I've run into a few issues anyway and hope you can help me.

1) Once I fill the Linkcollector with packages - import of the *.dlc files works just fine without the need for any extra configuration - the web app keeps updating the information frequently. In the process it deselects anything I've marked before. This is a real hassle, because it's almost impossible to select multiple files in a package and then download only those. In contrast this does not happen on the Downloads tab, where I can easily select packages or single files without losing the selection. It's also not browser dependent, I tested on the latest Firefox and Opera browsers with the same result.
2) I've noticed that the Linkcollector works differently on My.JDownloader than in the desktop client, because it keeps the packages in the Linkcollector even after they have been added to the Downloads tab.
3) Maybe due to the same issue as in 1), I've also noticed that it's difficult to delete packages from the Linkcollector. It frequently tells me "Selection removed successfully" only for the package(s) to reappear with the next data update.
4) Does Watchfolder not clean up after itself? I noticed that it doesn't remove the downloaded *.dlc container files in the designated watch folder after they have been read completely into the Linkcollector, not even after the contents finished downloading. Is there an extra setting I'm missing or do I have to do that myself?

Thanks in advance for any help or suggestions.
Reply With Quote
  #2  
Old 24.06.2019, 16:44
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,235
Default

Quote:
Originally Posted by flash82 View Post
2) I've noticed that the Linkcollector works differently on My.JDownloader than in the desktop client, because it keeps the packages in the Linkcollector even after they have been added to the Downloads tab.
That's not the case. When you add links from Linkcollector to DownloadList, then those packages/files are moved. There is no support at all to keep the files in Linkcollector.
There are three possible causes I can think of
1.) you hit the play button and think that it will move the links to DownloadList. This ONLY works in the GUI version. In headless/MyJDownloader you have to move the links manually via rightclick context menu
2.) The moving is still in progress and once a package/links got moved, then they will be removed from linkcollector. Maybe slower hardware and that's why you might experience it
3.) the client/MyJDownloader is not refreshed yet and thinks the items are still in list. a switch to downloadlist and back to linkcollector should get it back into sync
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 24.06.2019, 16:46
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,235
Default

Can you try to create screenshots for 1 and 3 ? Sounds like JDownloader is unable to move away the dlc files from your shared folder and imports it again and again. That would also explain your 2.)

After parsing the folderwatch job or container file , JDownloader moves the parsed file to a subfolder 'added'. Does this subfolder exist for you? If not, then this might be the cause for all the issues you encounter Because JDownloader parses again and again and again....
If that folder doesn't exists, this is a sign for wrong ownership/permissions and JDownloader is unable to create/move files in that folder
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4  
Old 24.06.2019, 18:06
flash82
Guest
 
Posts: n/a
Default

Thanks for your replies. It was so simple (and embarrassing) an error.

Jiaz is correct, it all started with a mistake in setting the permissions on the watchfolder. I use a permissions system based on a shared group because the server runs multiple services (torrent, usenet, web downloads) and I didn't want to create separate watchfolders and download targets for each user, plus there's the fact that I do web streaming so the unpacked files have to be accessed by a DLNA client or webserver as well.

The only reason I didn't notice is that it works for the other clients I use, but none of those create a directory in that path. This is all stored in a separate path on the SSD, the download progress and target directories are on a HDD and their permissions were correct from the beginning.

In case it can help anyone else with this or similar problems who finds the thread, I looked up my bash history and found the following commands that were executed as root. They create a directory that allows every user in the mediashare group to have read+write access to the directory but not access to create a directory.

mkdir watchfolder && chown -R :mediashare watchfolder && chmod -R 660 watchfolder && chmod g+s watchfolder && setfacl -d -m u::rw,g::rw,o::- watchfolder

After changing the chmod flag to 770 (and u::rwx,g::rwx,o::- to inherit file group ownership) the permissions are sufficient and it works fine. For some strange reason I had set it correctly for the download progress and target directories but not the watchfolder.

Thanks for the quick help

Last edited by flash82; 24.06.2019 at 18:08.
Reply With Quote
  #5  
Old 24.06.2019, 18:17
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,235
Default

Thanks for the very detailed feedback and your shell commands
Sometimes 4 eyes see more than 2 Glad that I could be of help to you
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 11:15.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.