0

我在 ubuntu 16.04 上使用 lighttpd 运行 LUCI。我正在使用 lua5.1 和 luci-0.9

目录结构www/html/为:

root@toor-VirtualBox:/var/www/html# ls
cgi-bin  cgi-bin-nodes.html  cgi-bin-status.html  index.html  index.lighttpd.html  luci  luci-static

当我跑步时

Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
> require "luci.cacheloader"
> require "luci.sgi.cgi"
> 
> luci.dispatcher.indexcache = "/tmp/luci-indexcache"
> 
> luci.sgi.cgi.run()

我收到 500 内部服务器错误:

.../luci/host//usr/lib/lua/luci/statistics/datatree.lua:28: attempt to index upvalue 'sections' (a nil value)
stack traceback:
    .../luci/host//usr/lib/lua/luci/statistics/datatree.lua:28: in function '__init__'
    /home/luci/host//usr/lib/lua/luci/util.lua:70: in function 'Instance'
    .../luci/controller/luci_statistics/luci_statistics.lua:30: in function 'v'
    /home/luci/host//usr/lib/lua/luci/dispatcher.lua:496: in function 'createtree'
    /home/luci/host//usr/lib/lua/luci/dispatcher.lua:179: in function 'dispatch'
    /home/luci/host//usr/lib/lua/luci/dispatcher.lua:143: in function </home/luci/host//usr/lib/lua/luci/dispatcher.lua:142>
Status: 500 Internal Server Error
Content-Type: text/plain
Cache-Control: no-cache
Expires: 0

任何解决方案?

4

0 回答 0