#1
|
||||
|
||||
Invalid Download Directory
https://i.imgur.com/C8Uvobq.png
I am using Google Drive folder. JD2 keeps showing "Invalid Download Directory" message. I have to resume download manual everytime I get the error message. The problem hadn't happened before JD2 got an update. 01.06.18 18.28.34 <--> 02.06.18 01.33.46 jdlog://7580954433151/ 01.06.18 18.28.34 <--> 02.06.18 12.19.08 jdlog://1011954433151/ 01.06.18 18.28.34 <--> 03.06.18 14.34.33 jdlog://0271954433151/ Last edited by HieuDo; 03.06.2018 at 21:20. |
#2
|
||||
|
||||
Your destination drive/folder has IO error
java.io.IOException: Input/output error This is caused by local system and has nothing to do with JDownloader.
__________________
JD-Dev & Server-Admin |
#3
|
||||
|
||||
You can google for it,
for example, github.com/astrada/google-drive-ocamlfuse/issues/304 looke like issues with google drive
__________________
JD-Dev & Server-Admin |
#4
|
|||
|
|||
I have an identical situation. Invalid Download Directory
04.06.18 16.31.07 <--> 04.06.18 16.40.00 jdlog://0991954433151/ **External links are only visible to Support Staff****External links are only visible to Support Staff** Caused by: java.io.FileNotFoundException: Z:\jd_accessCheck_1528123115422 (Odmowa dostêpu) at java.io.RandomAccessFile.open0(Native Method) at java.io.RandomAccessFile.open(Unknown Source) at java.io.RandomAccessFile.<init>(Unknown Source) at org.appwork.utils.IO.open(IO.java:330) at jd.controlling.downloadcontroller.DownloadWatchDog$38.check(DownloadWatchDog.java:3925) ... 3 more |
#5
|
||||
|
||||
@djmakinera: different issue. Your windows blocks write access to root of drive
Z:\jd_accessCheck_1528123115422 (Odmowa dostêpu)
__________________
JD-Dev & Server-Admin |
#6
|
|||
|
|||
Because the path requires special administrator rights (save and delete), and JDownloader is running with normal permissions.
So what to do in this case? |
#7
|
||||
|
||||
Solution: Fix permissions on that drive and allow your owner to write to that location or create a subfolder and download into that.
I'm sorry but we're not here to help you with your permission issues in your setup
__________________
JD-Dev & Server-Admin |
#8
|
|||
|
|||
This is an error in JD2 because in every manager it downloads the file correctly.
Last edited by Jiaz; 04.06.2018 at 17:30. |
#9
|
||||
|
||||
I'm sorry but JDownloader is unable to create that file because windows blocks access to it. No error in JDownloader. It can be permission issue, may be caused by firewall/av, I can't tell. But the error comes directly from your OS and is as clear as it can be. Either fix permissions or use subfolder or do whatever you want.
__________________
JD-Dev & Server-Admin |
#10
|
|||
|
|||
My settings are correct and I even tried to automatically repair all permissions with a repair tool permission.
I sent the log to the website sysnative expert and said that everything is OK. You should check the problems with JDownloader because nothing more can be done. JDownloader must automatically detect permissions, which in case you need to raise them and save as administrator (if UAC enabled) https://s15.postimg.cc/u3y4h8i0b/Scr...t_05.53_PM.jpg |
#11
|
|||
|
|||
In JD2, no file can be directly stored on the partition.
Example: [C-Z]:\\ You can only save in a folder, folders, subfolder, or subfolders. The same problem occurs on other computers (Laptop) In other managers (not based on JAVA) it is possible directly on the partition (no folder) |
#12
|
||||
|
||||
You cannot *raise permission* and UAC requires restart of application and you should NOT run JDownloader as administrator. If you want to save to admin locations, then either start JDownloader as administrator or proper setup permissions.
I don't know what you *repair tool* does, but permission setup is nothing I would let do a *repair tool*. I gave you 3 options to solve this. 1.) setup correct permissions so that your normal user may write into root of drive 2.) use a subfolder for your files 3.) run as administrator.
__________________
JD-Dev & Server-Admin |
#13
|
||||
|
||||
I just tested with notepad. Not able to store on root of device if not allowed by permission set
__________________
JD-Dev & Server-Admin |
#14
|
|||
|
|||
Of course, if you run JDownloader as an administrator, you can download files directly to the letter of the partition.
But this will cause a different problem, if I want to overwrite the file, I'll get more errors with privileges and the circle closes. I can not change the privileges I currently have because I expose myself to other security problems. I checked the permissions of JD2 and another manager are identical permissions, so the problem is somewhere else. If disable UAC JDownloader can download without any errors, but UAC is an important security that can not be turned off to help in the fight against unwanted viruses or ramsoware. |
#15
|
||||
|
||||
You don't have to disable UAC and you don't have to run JDownloader as administrator. But if you want to download to the root of a drive, you have to give your user permission to do so. This has nothing to do with JDownloader. It's simple permission model of windows. Either you setup as you need it or you use one of the given solutions.
I wonder why we have to explain such stuff again and again.
__________________
JD-Dev & Server-Admin |
#16
|
|||
|
|||
I have full permission, but it does not change anything!
https://s15.postimg.cc/n4t99scdn/Scr...t_06.41_PM.jpg |
#17
|
||||
|
||||
That screenshot is the wrong one. you need the *expanded* one, click on the button below. And the screenshot shows that the administrator has permisson. There should also be an entry for the user itself
__________________
JD-Dev & Server-Admin |
#18
|
|||
|
|||
User ? Full Control
https://s15.postimg.cc/4gb7ma5zf/Scr...t_06.53_PM.jpg |
#19
|
|||
|
|||
works, but now I have a data inconsistency (Warning).
Now I do not know how to restore the inconsistency of given files on the partition ??? |
#20
|
||||
|
||||
I'm sorry but I don't know what you mean by *inconsistency (Warning)*
In case you're talking about filesystem, then you should run the filesystem checker tool of windows.
__________________
JD-Dev & Server-Admin |
#21
|
|||
|
|||
I changed the permissions as you asked, but now I have a serious problem because of this, I damaged some data :(
--------------------------- Windows security --------------------------- Stop propagating permission settings leads to an inconsistency state in which some objects have settings and others do not. If the change was made in error, you must immediately apply the correct change to achieve a consistent state. --------------------------- OKAY --------------------------- |
#22
|
||||
|
||||
I don't know what you did or how you did that As I said, it's not our job to support permission settings of your system/windows.
The most easiest solutino would be to download into a subfolder but it seems you simply don't want that and WANT to download into root.
__________________
JD-Dev & Server-Admin |
#23
|
|||
|
|||
Solution, use the script:
Step by Step: 1. PATH: C:\JD\JDownloader.jar <=== Take Ownership (UAC) 2. Windows Registry Editor Version 5.00 [-HKEY_CLASSES_ROOT\*\shell\runas] [HKEY_CLASSES_ROOT\*\shell\runas] @="Take Ownership" "HasLUAShield"="" "NoWorkingDirectory"="" "Position"="middle" [HKEY_CLASSES_ROOT\*\shell\runas\command] @="cmd.exe /c takeown /f "%1" && icacls "%1" /grant *S-1-3-4:F /c /l" "IsolatedCommand"="cmd.exe /c takeown /f "%1" && icacls "%1" /grant *S-1-3-4:F /c /l" [-HKEY_CLASSES_ROOT\Directory\shell\runas] [HKEY_CLASSES_ROOT\Directory\shell\runas] @="Take Ownership" "AppliesTo"="NOT (System.ItemPathDisplay:="C:\\Users" OR System.ItemPathDisplay:="C:\\ProgramData" OR System.ItemPathDisplay:="C:\\Windows" OR System.ItemPathDisplay:="C:\\Windows\\System32" OR System.ItemPathDisplay:="C:\\Program Files" OR System.ItemPathDisplay:="C:\\Program Files (x86)")" "HasLUAShield"="" "NoWorkingDirectory"="" "Position"="middle" [HKEY_CLASSES_ROOT\Directory\shell\runas\command] @="cmd.exe /c takeown /f "%1" /r /d y && icacls "%1" /grant *S-1-3-4:F /t /c /l /q" "IsolatedCommand"="cmd.exe /c takeown /f "%1" /r /d y && icacls "%1" /grant *S-1-3-4:F /t /c /l /q" [-HKEY_CLASSES_ROOT\dllfile\shell\runas] [HKEY_CLASSES_ROOT\dllfile\shell\runas] @="Take Ownership" "HasLUAShield"="" "NoWorkingDirectory"="" "Position"="middle" [HKEY_CLASSES_ROOT\dllfile\shell\runas\command] @="cmd.exe /c takeown /f "%1" && icacls "%1" /grant *S-1-3-4:F /c /l" "IsolatedCommand"="cmd.exe /c takeown /f "%1" && icacls "%1" /grant *S-1-3-4:F /c /l" [-HKEY_CLASSES_ROOT\Drive\shell\runas] [HKEY_CLASSES_ROOT\Drive\shell\runas] @="Take Ownership" "AppliesTo"="NOT C:" "HasLUAShield"="" "NoWorkingDirectory"="" "Position"="middle" [HKEY_CLASSES_ROOT\Drive\shell\runas\command] @="cmd.exe /c takeown /f "%1" /r /d y && icacls "%1" /grant *S-1-5-32-544:F /t /c /l /q" "IsolatedCommand"="cmd.exe /c takeown /f "%1" /r /d y && icacls "%1" /grant *S-1-3-4:F /t /c /l /q" [-HKEY_CLASSES_ROOT\exefile\shell\runas] [HKEY_CLASSES_ROOT\exefile\shell\runas] "HasLUAShield"="" [HKEY_CLASSES_ROOT\exefile\shell\runas\command] @=""%1" %*" "IsolatedCommand"=""%1" %*" |
#24
|
||||
|
||||
Solution would be to simply follow the guidelines as intended by Microsoft and not write into the root of a device that is protected by permissions that normal users cannot do that.
__________________
JD-Dev & Server-Admin |
#25
|
|||
|
|||
You're wrong. Of course, for an ordinary user, manual ownership of JDownloader can be cumbersome and incomprehensible.
You could say that the JDownloader.jar file should be take overnership, and not change anything on the partition because it was pointless! Now I can write to any partition without any problem. The script does not belong to Microsoft only to another author, it has been improved because there is another script that does not work properly with UAC enabled. Save to: Z:\ |
#26
|
|||
|
|||
|
#27
|
||||
|
||||
It's your computer, your choice. We're done here
__________________
JD-Dev & Server-Admin |
#28
|
||||
|
||||
Quote:
Quote:
Yeah it is Google Drive issue. Anyway, can JD2 bypass the error automatically? Right now, I have to click the Resume function on the error links in JD2 manually for solving the problem. Screen Capture: **External links are only visible to Support Staff****External links are only visible to Support Staff** Last edited by HieuDo; 12.06.2018 at 08:13. |
#29
|
||||
|
||||
I will try to workaround/fix this as soon as I find time
Maybe it helps to reduce the number of downloads? Or there is some setting in GoogleDrive to avoid upload when the file is opened? To avoid sync problems?
__________________
JD-Dev & Server-Admin |
#30
|
||||
|
||||
19.06.18 17.51.48 <--> 20.06.18 06.51.14 jdlog://4178954433151/ Last edited by HieuDo; 20.06.2018 at 12:49. |
#31
|
||||
|
||||
Thanks for the feedback. I guess it's a os limitation that google drive can't stop sync of open files
__________________
JD-Dev & Server-Admin |
|
|