-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alternate Flysystem drivers leave watchdog error, do not work #1166
Comments
Some initial debugging here by @ibrahimab is showing that resolving the realpath of the filesystem URIs is returning FALSE. |
@mjordan I can give it a go with zip and see what pops. |
Make sure zip is installed on the vagrant.
|
We tried it successfully with Amazon S3. I'll see if I can find our ticket to see what I did but If I remember correctly there were some underlying dependencies that needed to be installed. Not sure about the sftp or others but for S3 needed to do composer require league/flysystem-aws-s3-v3 |
@mjordan I can confirm
|
@dannylamb can you confirm that calling |
@ibrahimab yep vagrant@claw:/var/www/html/drupal/web$ drush php:cli
Psy Shell v0.9.9 (PHP 7.2.19-1+ubuntu16.04.1+deb.sury.org+1 — cli) by Justin Hileman
>>> \Drupal::service('file_system')->realpath('zip://');
=> false |
I have installed a fresh Drupal 8 project and installed flysystem. The same problem occurs, so it seems this has nothing to do with islandora, but the project itself. I also took a look at the flysystem repository and the last commit was 2 years ago. It would be wise to use another project. The other option would be taking over maintaining flysystem. |
The SFTP driver seems to work if you paste the contents of the key instead of a file path for the privateKey config and comment out the port (or change it to 22 unless ssh really is running on port 21 on your SFTP server, I also commented out the timeout and cache for our tests ). I tried this on a remote build not a vagrant virtualbox install (I'm not sure if networking would cause issues when using vagrant vm?). |
At iCamp_EU we've been trying to get the Dropbox, ZIp, and SFTP Flysystem drivers to work. None are, and they all appear to leave the same error in the watchdog:
Symfony\Component\HttpKernel\Exception\HttpException: The destination directory does not exist, could not be created, or is not writable in Drupal\islandora\MediaSource\MediaSourceService->putToNode() (line 297 of /var/www/html/drupal/web/modules/contrib/islandora/src/MediaSource/MediaSourceService.php).
Here are two of the configurations we're trying. They are from
settings.php
:Can anyone replicate this error?
The text was updated successfully, but these errors were encountered: