Skip to content
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

ErrorException thrown with message: Directory not empty #151

Closed
fsesterh opened this issue Mar 8, 2023 · 9 comments
Closed

ErrorException thrown with message: Directory not empty #151

fsesterh opened this issue Mar 8, 2023 · 9 comments
Labels
bug Something isn't working Priority: Medium Needs to be fixed/taken care of in the next few month

Comments

@fsesterh
Copy link

fsesterh commented Mar 8, 2023

Describe the bug
When uploading a video we always get the following error:

Whoops\Exception\ErrorException thrown with message "rmdir(/data/ilias/data/thkilu/temp/opencast/c4a323d8-2af3-4d17-93d4-5ce3f1e83919): Directory not empty"

Things to note:

  • the upload does not fail, the video is uploaded but this error is thrown
  • the folder is empty after the upload

To Reproduce
Steps to reproduce the behavior:

  1. Create an OpenCast Object
  2. Select a video file to upload
  3. Fill out all mandatory fields
  4. Save

Expected behavior
No such error should be thrown.

Screenshots
If applicable, add screenshots to help explain your problem.

Log
If you have it please attach the relevant log.

Environment (please complete the following information):

  • ILIAS version: 7.16
  • PHP version: 7.3
  • Plugin version: 5.1.0
  • Opencast version: ?
  • Browser: Firefox

Stacktrace:
Stacktrace:
#17 Whoops\Exception\ErrorException in /data/html/webroot/ilu_7/libs/composer/vendor/league/flysystem/src/Adapter/Local.php:420
#16 rmdir in /data/html/webroot/ilu_7/libs/composer/vendor/league/flysystem/src/Adapter/Local.php:420
#15 League\Flysystem\Adapter\Local:deleteDir in /data/html/webroot/ilu_7/libs/composer/vendor/league/flysystem/src/Filesystem.php:252
#14 League\Flysystem\Filesystem:deleteDir in /data/html/webroot/ilu_7/src/Filesystem/Provider/FlySystem/FlySystemDirectoryAccess.php:206
#13 ILIAS\Filesystem\Provider\FlySystem\FlySystemDirectoryAccess:deleteDir in /data/html/webroot/ilu_7/src/Filesystem/FilesystemFacade.php:102
#12 ILIAS\Filesystem\FilesystemFacade:deleteDir in /data/html/webroot/ilu_7/src/Filesystem/Decorator/FilesystemWhitelistDecorator.php:110
#11 ILIAS\Filesystem\Decorator\FilesystemWhitelistDecorator:deleteDir in /data/html/webroot/ilu_7/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/src/Util/FileTransfer/UploadStorageService.php:72
#10 srag\Plugins\Opencast\Util\FileTransfer\UploadStorageService:delete in /data/html/webroot/ilu_7/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/classes/Event/class.xoctEventGUI.php:601
#9 xoctEventGUI:create in /data/html/webroot/ilu_7/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/classes/class.xoctGUI.php:46
#8 xoctGUI:performCommand in /data/html/webroot/ilu_7/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/classes/Event/class.xoctEventGUI.php:228
#7 xoctEventGUI:performCommand in /data/html/webroot/ilu_7/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/classes/Event/class.xoctEventGUI.php:200
#6 xoctEventGUI:executeCommand in /data/html/webroot/ilu_7/Services/UICore/classes/class.ilCtrl.php:217
#5 ilCtrl:forwardCommand in /data/html/webroot/ilu_7/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/classes/class.ilObjOpenCastGUI.php:176
#4 ilObjOpenCastGUI:executeCommand in /data/html/webroot/ilu_7/Services/UICore/classes/class.ilCtrl.php:217
#3 ilCtrl:forwardCommand in /data/html/webroot/ilu_7/Services/Repository/classes/class.ilObjPluginDispatchGUI.php:45
#2 ilObjPluginDispatchGUI:executeCommand in /data/html/webroot/ilu_7/Services/UICore/classes/class.ilCtrl.php:217
#1 ilCtrl:forwardCommand in /data/html/webroot/ilu_7/Services/UICore/classes/class.ilCtrl.php:178
#0 ilCtrl:callBaseClass in /data/html/webroot/ilu_7/ilias.php:23

@fsesterh fsesterh added the bug Something isn't working label Mar 8, 2023
@okaufman
Copy link
Contributor

I could not recreate this issue.
Deleting the content of the directory should happen in the same method deleteDir in League\Flysystem\Adapter\Local that shows up in the Stacktrace.

Does this happen with every video? Small or big?

@fsesterh
Copy link
Author

fsesterh commented Apr 3, 2023

Size of the video does not matter. Tested with a weboptimized Big Buck Bunny test-file; around 21MB.

@dagraf
Copy link

dagraf commented Apr 19, 2023

@fsesterh Since we can not recreate this issue: Could you please test this fix (#155)? Thx!

@fsesterh
Copy link
Author

I'll add it to my pipeline and will try if I can get the PR to work for me. Will report back.

@dagraf
Copy link

dagraf commented Apr 19, 2023

There was a misstyping in the PR #155 (see comment #155 (comment)). Which means this issue is not fixed yet. Therefore @fsesterh, you can postpone the testing of the fix.

@dagraf
Copy link

dagraf commented May 2, 2023

Now this issue should be fixed. Therefore and since we can not reproduce this issue: @fsesterh, could you please test this fix (#158) and report your findings? Thx!

@dagraf dagraf added the Priority: Medium Needs to be fixed/taken care of in the next few month label May 2, 2023
@fsesterh
Copy link
Author

fsesterh commented May 3, 2023

@fsesterh fsesterh closed this as completed May 3, 2023
@fsesterh
Copy link
Author

fsesterh commented May 3, 2023

Still needs the merge though :)

@dagraf
Copy link

dagraf commented May 3, 2023

Thx for testing. Merging will be done after @ralede was able to test #152.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Priority: Medium Needs to be fixed/taken care of in the next few month
Projects
None yet
Development

No branches or pull requests

3 participants