12/12/2012 21:38 +0100, David Sommerseth wrote:
> On 12/12/12 17:28, Evan Sather wrote:
> > Hi Oleg,
> >
> > Here is what repeats in my luci.log:
> >
> > Traceback (most recent call last):
> > File "/usr/bin/paster", line 9, in <module>
> > load_entry_point('PasteScript==1.7.3', 'console_scripts',
> > 'paster')()
> > File "/usr/lib/python2.6/site-packages/paste/script/command.py",
> > line 84, in run
> > invoke(command, command_name, options, args[1:])
> > File "/usr/lib/python2.6/site-packages/paste/script/command.py",
> > line 123, in invoke
> > exit_code = runner.run(args)
> > File "/usr/lib/python2.6/site-packages/paste/script/command.py",
> > line 218, in run
> > result = self.command()
> > File "/usr/lib/python2.6/site-packages/paste/script/serve.py",
> > line 274, in command
> > relative_to=base, global_conf=vars)
> > File "/usr/lib/python2.6/site-packages/paste/script/serve.py",
> > line 308, in loadserver
> > relative_to=relative_to, **kw)
> > File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py",
> > line 210, in loadserver
> > return loadobj(SERVER, uri, name=name, **kw)
> > File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py",
> > line 224, in loadobj
> > global_conf=global_conf)
> > File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py",
> > line 248, in loadcontext
> > global_conf=global_conf)
> > File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py",
> > line 278, in _loadconfig
> > return loader.get_context(object_type, name, global_conf)
> > File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py",
> > line 363, in get_context
> > object_type, name=name)
> > File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py",
> > line 528, in find_config_section
> > self.filename))
> > LookupError: No section 'init' (prefixed by 'server') found in
> > config /var/lib/luci/etc/luci.ini
> > Removing PID file /var/run/luci/luci.pid
> >
> > When I installed luci, I had to do a "touch /var/lib/luci/etc/luci.ini"
> > because I couldn't get past this start failure message:
> >
> > -bash-4.1$ sudo service luci start
> > Unable to create the luci base configuration file
> > (`/var/lib/luci/etc/luci.ini').
> > Start luci... [FAILED]
> >
> > Did I miss a step after installing luci that I should have done before
> > trying to start it?
>
> Yes, you missed reading the error message:
>
> No section 'init' (prefixed by 'server') found in config
> /var/lib/luci/etc/luci.ini
>
> I'm no luci user so can't help you much there. But looks like you need
> to get a proper configuration file set up, not just use "touch" and hope
> it works ;-)
>
>
> kind regards,
>
> David Sommerseth
You may try recreate configuration file by command:
/usr/bin/paster make-config luci /var/lib/luci/etc/luci.ini --no-default-sysconfig --no-install
|