LUCI增加新主题遇到的问题
(2012-07-20 20:28:13)
标签:
杂谈 |
分类: openwrt |
500 Internal Server Error
Sorry, the server encountered an unexpected error.
/usr/lib/lua/luci/dispatcher.lua:480: Failed to execute function dispatcher target for entry '/'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:480: Failed to execute function dispatcher target for entry '/freifunk'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:480: Failed to execute template dispatcher target for entry '/freifunk/index'.
The called action terminated with an exception:
/usr/lib/lua/luci/template.lua:109: Failed to execute template 'freifunk/index'.
A runtime error occured: /usr/lib/lua/luci/template.lua:109: Failed to execute template 'footer'.
A runtime error occured: /usr/lib/lua/luci/template.lua:84: Failed to load template 'themes/openwrtcn/footer'.
Error while parsing template '/usr/lib/lua/luci/view/themes/openwrtcn/footer.htm'.
A syntax error occured near 'No such file or directory'.
stack traceback:
根据错误信息
Error while parsing template '/usr/lib/lua/luci/view/themes/openwrtcn/footer.htm'.
发现对应的文件是存在的,但属性是
-rwx------
原因是新增或者修改的文件通过samba访问,使用root用户权限,
导致新增或者修改的文件普通用户无法访问。
将新增或者修改的文件增加普通用户可读权限可以访问,但是有些页面还是有类似的问题发现/usr/lib/lua/luci/view/themes/openwrtcn目录非root用户无执行属性,
drwxr--r--