kolibri start command errors with options.ini incorrect values
See original GitHub issueObserved 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:
- Created 4 years ago
- Comments:11 (11 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 myoptions.ini
😟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 (sampleK:\KolibriContent
) there is another error saying the path does not exist and the Kolibri Windows alert message shows up.