lutt on lighttpd- 500内部服务器错误

时间:2019-07-30 02:59:11

标签: lua lighttpd luci

我正在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

任何解决方案?

0 个答案:

没有答案