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.

kolibri start command errors with options.ini incorrect values

See original GitHub issue

Observed behavior

This issue was reported at the community and I was able to reproduced it on Windows 7.

The errors will display only when you run the kolibri start command at the command prompt.

Expected behavior

Maybe we can handle these errors and append it on the log files.

User-facing consequences

Errors and logs

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\IEUser>cd /

C:\>cd Python34

C:\Python34>cd Scripts

C:\Python34\Scripts>kolibri start
Traceback (most recent call last):
  File "C:\Python34\lib\runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Python34\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Python34\Scripts\kolibri.exe\__main__.py", line 5, in <module>
  File "C:\Python34\lib\site-packages\kolibri\utils\cli.py", line 28, in <module
>
    from . import server
  File "C:\Python34\lib\site-packages\kolibri\utils\server.py", line 17, in <mod
ule>
    from kolibri.core.deviceadmin.utils import schedule_vacuum
  File "C:\Python34\lib\site-packages\kolibri\core\deviceadmin\utils.py", line 1
3, in <module>
    from kolibri.core.tasks.main import scheduler
  File "C:\Python34\lib\site-packages\kolibri\core\tasks\main.py", line 9, in <m
odule>
    from kolibri.core.tasks.queue import Queue
  File "C:\Python34\lib\site-packages\kolibri\core\tasks\queue.py", line 1, in <
module>
    from kolibri.core.tasks.job import Job
  File "C:\Python34\lib\site-packages\kolibri\core\tasks\job.py", line 7, in <mo
dule>
    from kolibri.core.tasks.utils import current_state_tracker
  File "C:\Python34\lib\site-packages\kolibri\core\tasks\utils.py", line 9, in <
module>
    from kolibri.deployment.default.cache import diskcache_cache
  File "C:\Python34\lib\site-packages\kolibri\deployment\default\cache.py", line
 10, in <module>
    cache_options = OPTIONS["Cache"]
  File "C:\Python34\lib\site-packages\kolibri\dist\django\utils\functional.py",
line 238, in inner
    self._setup()
  File "C:\Python34\lib\site-packages\kolibri\dist\django\utils\functional.py",
line 386, in _setup
    self._wrapped = self._setupfunc()
  File "C:\Python34\lib\site-packages\kolibri\utils\conf.py", line 54, in __init
ialize_options
    return read_options_file(KOLIBRI_HOME)
  File "C:\Python34\lib\site-packages\kolibri\utils\options.py", line 240, in re
ad_options_file
    conf = ConfigObj(ini_path, configspec=get_configspec())
  File "C:\Python34\lib\site-packages\kolibri\dist\configobj.py", line 1229, in
__init__
    self._load(infile, configspec)
  File "C:\Python34\lib\site-packages\kolibri\dist\configobj.py", line 1318, in
_load
    raise error
configobj.DuplicateError: Duplicate section name at line 8.

C:\Python34\Scripts>

Steps to reproduce

Copy these values at the options.ini file and run the kolibri start command

[Urls]
[Debug]
[Server]
[Paths]
CONTENT_DIR = D:\KolibriContent
[Deployment]
URL_PATH_PREFIX = /
[Cache]
[Database]

Context

Tell us about your environment, including:

  • Kolibri version: 0.13
  • Operating system: Windows 7
  • Browser

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
mrpau-richardcommented, Feb 14, 2020

Hi @mrpau-richard , thank you for testing! I notice that there are two sections [Deployment] in the options.ini file. Do you mind combining them into one and trying it again?

When I combined those two sections the error will gone and I confirmed that’s the cause of configobj.DuplicateError: Duplicate section name at line 8.. I did not notice it during filling this issue, that I have these two [Deployment] sections on my options.ini 😟

1reaction
mrpau-richardcommented, Feb 10, 2020

Is this a windows 7 specific issue?

I think it is @lyw07 I tested it on Windows 10 and I can’t reproduce this configobj.DuplicateError: Duplicate section name at line 8. error. But when I tried to modify the options.ini with invalid drive path (sample K:\KolibriContent) there is another error saying the path does not exist and the Kolibri Windows alert message shows up.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Customize Kolibri settings with the options.ini file
Installing Kolibri generates a default options.ini file with all the sections and values commented out with the # character at the beginning ......
Read more >
Kolibri User Guide - Read the Docs
sudo apt-get install kolibri. 1.3.2.1 Uninstall. From the command line: sudo apt-get remove kolibri. Tip: To remove all the user data and the...
Read more >
Connection issue: Kolibri port - Learning Equality Community
We currently have another software that uses port 8080. I am able to connect to Kolibri on the server it was downloaded to...
Read more >
ERR wrong number of arguments for 'unlink' · Issue #63 - GitHub
During installation on top of an unclean system. Suspecting something related to the only occurrence of unlink: kolibri_server_setup.py 99: ...
Read more >
Manage Kolibri — Kolibri 0.11.0.dev documentation - overtag.dk
Create/Edit/Delete Lessons and assign them to users; View/Edit Facility configuration settings; Export Detail and Summary logs usage data ...
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