question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to export on shared folder

See original GitHub issue

Observed behavior

Kolibri failed to export on shared folder.

gif-temp

Expected behavior

better feedback that permission is denied

User-facing consequences

hard-to-understand behavior

Errors and logs

INFO 2020-07-15 17:53:27,088 kolibri.core.content.management.commands.exportchannel Exporting channel database for channel id 95a52b386f2c485cb97dd60901674a98 to Z:\KOLIBRI_DATA
ERROR 2020-07-15 17:53:27,094 kolibri.core.tasks.worker Job bbca668bd06a431b8c0af214281fd26e raised an exception: Traceback (most recent call last):
  File "c:\python36\lib\site-packages\kolibri\core\tasks\worker.py", line 72, in handle_finished_future
    result = future.result()
  File "c:\python36\lib\concurrent\futures\_base.py", line 425, in result
    return self.__get_result()
  File "c:\python36\lib\concurrent\futures\_base.py", line 384, in __get_result
    raise self._exception
  File "c:\python36\lib\concurrent\futures\thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "c:\python36\lib\site-packages\kolibri\core\tasks\worker.py", line 218, in wrap
    return f(*args, **kwargs)
  File "c:\python36\lib\site-packages\kolibri\core\tasks\job.py", line 178, in y
    result = func(*args, **kwargs)
  File "c:\python36\lib\site-packages\kolibri\core\tasks\api.py", line 1178, in _localexport
    check_for_cancel=check_for_cancel,
  File "c:\python36\lib\site-packages\kolibri\dist\django\core\management\__init__.py", line 131, in call_command
    return command.execute(*args, **defaults)
  File "c:\python36\lib\site-packages\kolibri\dist\django\core\management\base.py", line 330, in execute
    output = self.handle(*args, **options)
  File "c:\python36\lib\site-packages\kolibri\core\tasks\management\commands\base.py", line 113, in handle
    return self.handle_async(*args, **options)
  File "c:\python36\lib\site-packages\kolibri\core\content\management\commands\exportchannel.py", line 31, in handle_async
    with transfer.FileCopy(src, dest, cancel_check=self.is_cancelled) as copy:
  File "c:\python36\lib\site-packages\kolibri\core\content\utils\transfer.py", line 63, in __init__
    os.makedirs(filedir)
  File "c:\python36\lib\os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "c:\python36\lib\os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "c:\python36\lib\os.py", line 220, in makedirs
    mkdir(name, mode)
PermissionError: [WinError 5] Access is denied: 'Z:\\KOLIBRI_DATA'

kolibri.txt

Steps to reproduce

  • Using vmware fusion with Windows 7 virtual machine

  • Follow this instructions to share add folder into vm This is my setup on shared folder Screen Shot 2020-07-16 at 6 29 03 PM

  • Install Kolibri Windows installer 0.14.0 beta11 and start the Kolibri server

  • log in as super admin user

  • Import a channel and try to export on shared folder

Context

Tell us about your environment, including:

  • Kolibri version: kolibri0.14.0b11
  • Operating system: Windows 7
  • Browser: Chrome

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
rtibblescommented, Apr 6, 2021

Closing, as the issue here seems to be “can’t write to unwriteable folder”.

0reactions
radinamaticcommented, Jul 16, 2020

This is no issue when testing on VirtualBox, as I’m able to export to shared folder without problems. It must be that VMware does not assign write permissions when it sets up shared folders for VMs. Agreed to deescalate this to be fixed in the future releases.

export-shared-folder

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error 0x80070005 when you export VM over Network
On the destination server, right-click on the shared folder and select Properties. · Select the Security tab. · Click Edit button and click...
Read more >
If you're unable to share an item in Final Cut Pro - Apple Support
Check the format of the storage device. In the Finder, click on the storage device to select it, then choose File > Get...
Read more >
Fixing the Hyper-V Export Error: "Failed to Create Export ...
Failed to create export directory with the name 'D:\Backup\OIT2003DEV2 (73) \Virtual Hard Disks' with error 'The system cannot find the path ...
Read more >
Hyper-V Export Error - Spiceworks Community
Failed to create export directory with error 'General access denied error' (0x80070005). I can see the file share location and write to it ......
Read more >
Export your organization's data - Google Workspace Admin Help
Each user folder contains a zip file of that user's data. Note: Some data, such as files in shared drives, is owned by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found