ocdownloader
ocdownloader copied to clipboard
Exception: Argument 4 passed to OC\Files\Utils\Scanner::__construct() must implement interface Psr\Log\LoggerInterface
Steps to reproduce
- Install ocdownloader 1.8.1 on Nextcloud 24.0.5 using Apps in browser.
- "YouTube DL Binary Path" points to custom youtube-dl install directory.
- "Which downloader do you want to use?" select cURL.
- Confirm cURL is installed on system.
- Confirm php extension cURL is installed. Not sure if this is different from php-curl.
- Make SERVER/fallback.* executable.
- Browse to domain/index.php/apps/ocdownloader/add
Expected behaviour
Access the ocdownloader landing page
Actual behaviour
Page with:
Internal Server Error The server was unable to complete your request.
If this happens again, please send the technical details below to the server administrator.
More details can be found in the server log.
Technical details Remote Address: 120.17.79.217 Request ID: YzZgRe1xP2FGa1RuZbwv@AAAABM
Server configuration
Operating system: Ubuntu 18.04.4 LTS
Web server: Apache
Database: mysql 8.0.28
PHP version: 7.4.25
Nextcloud version: 24.0.5
Updated from an older Nextcloud/ownCloud or fresh install: Has been updated, but never installed ocDownloader before.
Where did you install Nextcloud from: Installed on shared host. Not in container.
index.php/settings/integrity/failed: No errors have been found.
List of activated apps:
Nextcloud configuration:
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"{MYDOMAIN}"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "24.0.5.1",
"overwrite.cli.url": "https:\/\/{MYDOMAIN}",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"maintenance": false,
"loglevel": 2,
"theme": "",
"mail_smtpmode": "smtp",
"mail_smtpsecure": "ssl",
"mail_sendmailmode": "smtp",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"mail_smtpauth": 1,
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"updater.release.channel": "stable",
"filesystem_check_changes": 0,
"updater.secret": "***REMOVED SENSITIVE VALUE***"
}
}
Are you using external storage, if yes which one (currently not supported by ocDownloader): Local only
Are you using encryption (currently not supported by ocDownloader): No
Are you using an external user-backend, if yes which one: No
ocDownloader configuration:
Which downloader are you using: Curl
Do you use a proxy: No
Which protocols do you allow: FTP/HTTP/Youtube
Nextcloud log (data/nextcloud.log)
Nextcloud formatted log
[index] Error: Exception: Argument 4 passed to OC\Files\Utils\Scanner::__construct() must implement interface Psr\Log\LoggerInterface, instance of OC\Log given, called in /home/{USER}/{DOMAINDIR}/apps/ocdownloader/controller/index.php on line 249 in file '/home/{USER}/{DOMAINDIR}/lib/private/Files/Utils/Scanner.php' line 95 at >- /home/{USER}/{DOMAINDIR}/lib/private/AppFramework/App.php line 172 OC\AppFramework\Http\Dispatcher->dispatch(OCA\ocDownloader\Controller\Index {}, "Add")
- /home/{USER}/{DOMAINDIR}/lib/private/Route/Router.php line 298 OC\AppFramework\App::main("IndexController", "Add", OC\AppFramework\ ... {}, ["ocdownloader.Index.Add"])
- /home/{USER}/{DOMAINDIR}/lib/base.php line 1030 OC\Route\Router->match("/apps/ocdownloader/add")
- /home/{USER}/{DOMAINDIR}/index.php line 36 OC::handleRequest()
GET /index.php/apps/ocdownloader/add from 120.17.79.217 by superuser at 2022-09-30T03:19:33+00:00
Thanks
Same error on Nextcloud 25 (Ubuntu 22) and nginx
Same error on Nextcloud image v24.0.6 with added aria2 and youtube-dl, though spotted when trying to go to index.php/apps/ocdownloader/add
It seems to be duplicate of: https://github.com/e-alfred/ocdownloader/issues/248 Which effectively is: https://github.com/e-alfred/ocdownloader/pull/247 and: https://github.com/e-alfred/ocdownloader/issues/245
Hope that could be merged into mainline for v24 as it seems like it breaks pre v24 though is required on v24.
Seems like it's pending @e-alfred PR approval.