ocdownloader
ocdownloader copied to clipboard
Http downloader creates empty /Downloads file if /Downloads/ directory does not exist
Hi,
Ran across an issue on a new install where the (default) /Downloads directory did not exist in the user folder. Upon running Ocdownloader using aria2 (with debug logging), the log showed the following error:
2017-09-25 23:05:01.629799 [ERROR] [AbstractCommand.cc:350] CUID#23 - Download aborted. URI={URL HERE}
Exception: [AbstractCommand.cc:350] errorCode=18 URI={URL HERE}
-> [util.cc:1453] errNum=17 errorCode=18 Failed to make the directory /var/ncdata/james/files/Downloads, cause: File exists
My home directory possessed a zero byte /Downloads file. I deleted the file and reran the download request, and I received the same error with the /Downloads file having been recreated.
Steps to reproduce:
- Delete user's default downloads folder.
- Add new download
- inspect log file and home folder for an empty file titled the same as {Default Download Folder}.
Thanks,
James
Just had the same thing happen on my machine... Shouldn't it create the Downloads folder instead? Also, is it possible to choose another target folder?
look in your user-settings in the last extended configurations , there can you tell a folder.. you can create a folder like /0-downloader and use this in you're extended User configuration. the folder must in any case exist.. i don't know if it's should exist, i have ever created a folder.. therewith be i go out of the way of some problems
@blackcrack Thank you so much for getting back to me so quickly! Although, I cannot find the extended settings you are talking about! I looked everywhere. The only place I found settings for ocDownloader is in the "Administration" section of the settings (I suppose only admins can see this). There it is in the very last category "Additional Settings". There is an ocDownloader section, which has 4 sub-sections. One for the youtube-dl binary, and then one each for "Proxy", "General...", and "Protocols...". I cannot find an extended configurations setting. There is also no way to set anything in the "normal" user settings (non-admin), and I do not find any settings when I activate the ocDownloader by clicking the icon of the app. Is this a setting in configuration file? Or is this a bug that the settings do not show up in all cases?
Just after the installation (and selection of "curl" in Administration / Additional settings), the zero byte "/Downloads" file is created in user's "Files" after the first attempt of a download, and this and following downloads can't be completed, as described by jpfox156
But if delete this file, go to Personal / Additional settings, press "Save" on "Default Downloads Folder" with the default "/Downloads" value in it - the "/Downloads" folder will be created and downloads will work.
ocDownload 1.7.2 and Nextcloud 16.0.3
ocDownloader even creates the Downloads folder in nextcloud, when running in a seperate docker container and saving files there... Very confusing.