Kolibri: Available drives not showing on import local channel contents

Created on 26 Jun 2020  Â·  8Comments  Â·  Source: learningequality/kolibri

Observed behavior

Available drives not showing on import local channel contents. But I tried on export one drive show.

Expected behavior

…

User-facing consequences

…

Errors and logs

This is on export content there is one drive available
c1

At the import no drives are available
temp

Steps to reproduce

…

Context

Tell us about your environment, including:

  • Kolibri version: release-v0.14.0b5
  • Operating system: Windows 7
  • Browser: IE11 Firefox 77 Chrome 83
backend P0 - critical bug

Most helpful comment

Leave it for me until October 💥

All 8 comments

I also had issues locating external drives on Ubuntu, but was 100% sure it wasn't the USB drive :confused:
Will retest with other USBs and confirm!

@mrpau-richard @radinamatic Could you try to get some logs when you see this? I just reproduced it and got a pretty informative server log here pointing to the recent addition of the tagline field on the channelmetadata model.

The channels that are likely on the USB were exported awhile ago, before we added that tagline field

ERROR Internal Server Error: /api/tasks/tasks/localdrive/ Traceback (most recent call last): File "/Users/jon/.local/share/virtualenvs/kolibri-UH8N_Uf0/lib/python3.7/site-packages/django/core/handlers/exception.py", line 41, in inner response = get_response(request) File "/Users/jon/.local/share/virtualenvs/kolibri-UH8N_Uf0/lib/python3.7/site-packages/django/core/handlers/base.py", line 187, in _get_response response = self.process_exception_by_middleware(e, request) File "/Users/jon/.local/share/virtualenvs/kolibri-UH8N_Uf0/lib/python3.7/site-packages/django/core/handlers/base.py", line 185, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Users/jon/.local/share/virtualenvs/kolibri-UH8N_Uf0/lib/python3.7/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view return view_func(*args, **kwargs) File "/Users/jon/.local/share/virtualenvs/kolibri-UH8N_Uf0/lib/python3.7/site-packages/rest_framework/viewsets.py", line 116, in view return self.dispatch(request, *args, **kwargs) File "/Users/jon/.local/share/virtualenvs/kolibri-UH8N_Uf0/lib/python3.7/site-packages/rest_framework/views.py", line 495, in dispatch response = self.handle_exception(exc) File "/Users/jon/.local/share/virtualenvs/kolibri-UH8N_Uf0/lib/python3.7/site-packages/rest_framework/views.py", line 455, in handle_exception self.raise_uncaught_exception(exc) File "/Users/jon/.local/share/virtualenvs/kolibri-UH8N_Uf0/lib/python3.7/site-packages/rest_framework/views.py", line 492, in dispatch response = handler(request, *args, **kwargs) File "/Users/jon/Github/kolibri/kolibri/core/tasks/api.py", line 589, in localdrive drives = get_mounted_drives_with_channel_info() File "/Users/jon/Github/kolibri/kolibri/core/content/utils/channels.py", line 148, in get_mounted_drives_with_channel_info get_channels_for_data_folder(drive.datafolder) if drive.datafolder else [] File "/Users/jon/Github/kolibri/kolibri/core/content/utils/channels.py", line 126, in get_channels_for_data_folder "tagline": channel.tagline, AttributeError: 'content_channelmetadata' object has no attribute 'tagline' ERROR "GET /api/tasks/tasks/localdrive/?1593638668124=1593638668124 HTTP/1.1" 500 33728

Yeah, fixing the offending line in utils.channel got the Select Drive modal working for me again.

@radinamatic @mrpau-richard Would you mind seeing if this has been fixed for you in 0.14.0beta8?

I'm able to see and import from local USB drives with 0.14.0beta8 on Windows 10! :+1:

Seeing some weirdness in modal height when displayed on large screens first, but then re-scales well screen is made smaller :confused:

local-import

Will re-test on Win 7 & Ubuntu to confirm!

Yeah, the modal issue has been with us for awhile (cc @ralphiee22) 😄

Import from USB drives with 0.14.0beta9 on Windows 7: :heavy_check_mark:

Selection_781

Modal issue is there too, goes away with resizing :woman_shrugging:

Leave it for me until October 💥

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jtamiace picture jtamiace  Â·  4Comments

jonboiser picture jonboiser  Â·  5Comments

cpauya picture cpauya  Â·  5Comments

radinamatic picture radinamatic  Â·  6Comments

indirectlylit picture indirectlylit  Â·  5Comments