加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

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:

         [C]: in function 'assert'

         /usr/lib/lua/luci/dispatcher.lua:480: in function 'dispatch'

         /usr/lib/lua/luci/dispatcher.lua:197: in function /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: [C]: in function 'assert' /usr/lib/lua/luci/dispatcher.lua:480: in function 'dispatch' /usr/lib/lua/luci/dispatcher.lua:197: in function 

 

根据错误信息

Error while parsing template '/usr/lib/lua/luci/view/themes/openwrtcn/footer.htm'.

发现对应的文件是存在的,但属性是

-rwx------    1 root     root          1161 Jul 19 11:49 /usr/lib/lua/luci/view/themes/openwrtcn/footer.htm

原因是新增或者修改的文件通过samba访问,使用root用户权限,

导致新增或者修改的文件普通用户无法访问。

将新增或者修改的文件增加普通用户可读权限可以访问,但是有些页面还是有类似的问题
发现
/usr/lib/lua/luci/view/themes/openwrtcn目录非root用户无执行属性,

drwxr--r--    2 root     root          1024 Jul 20 21:53 openwrtcn


修改后,问题解决。

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有