Comments (5)
看看日志呀:/home/minos/minos.log
里面什么内容?
from minos.
python: can't open file '/home/minos/mian.py': [Errno 2] No such file or directory
python: can't open file '/home/minos/mian.py': [Errno 2] No such file or directory
python: can't open file '/home/minos/mian.py': [Errno 2] No such file or directory
python: can't open file '/home/minos/mian.py': [Errno 2] No such file or directory
python: can't open file '/home/minos/mian.py': [Errno 2] No such file or directory
main.py写错了。。
from minos.
不好意识这两天考试没什么空,supervisor 提示
cannot found config.yaml file
这个但yaml是存在的,该如何人解决?
尝试指定绝对路径但网页会返回500错误。
在command=python /home/minos/mian.py --port=8765
添加--url=http://minos.ioplus.cn
500 error
[I 150620 02:15:10 web:1908] 302 GET / (127.0.0.1) 64.92ms
[E 150620 02:15:10 web:1496] Uncaught exception GET / (127.0.0.1)
HTTPServerRequest(protocol='http', host='minos.ioplus.cn', method='GET', uri='/', version='HTTP/1.0', remote_ip='127.0.0.1', headers={'Accept-Language': 'zh-CN,zh;q=0.8,en;q=0.6,zh-TW;q=0.4', 'Accept-Encoding': 'gzip, deflate, sdch', 'Host': 'minos.ioplus.cn', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/43.0.2357.81 Chrome/43.0.2357.81 Safari/537.36', 'Dnt': '1', 'Connection': 'close', 'X-Real-Ip': 'My IP'})
Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/tornado/web.py", line 1390, in _execute
result = self.prepare()
File "/home/minos/controller/base.py", line 28, in prepare
self.check_login()
File "/home/minos/controller/base.py", line 76, in check_login
self.redirect("/public/list/")
File "/home/minos/controller/base.py", line 92, in redirect
super(BaseHandler, self).redirect(url, permanent, status)
File "/usr/lib64/python2.6/site-packages/tornado/web.py", line 671, in redirect
self.finish()
File "/usr/lib64/python2.6/site-packages/tornado/web.py", line 938, in finish
self.on_finish()
File "/home/minos/extends/torndsession/sessionhandler.py", line 26, in on_finish
self.session.flush() # try to save session
File "/home/minos/extends/torndsession/session.py", line 188, in flush
self.driver.save(self._id, self.session, self._expires)
File "/home/minos/extends/torndsession/redissession.py", line 35, in save
delta_seconds = int((expires - datetime.utcnow()).total_seconds())
AttributeError: 'datetime.timedelta' object has no attribute 'total_seconds'
[E 150620 02:15:10 web:1496] Uncaught exception GET /public/list/ (127.0.0.1)
from minos.
第一个问题,我之后添加一个配置项,来手工指定config文件绝对路径。
第二个问题,是py2.6不支持total_seconds属性,我之后做一下修改,感谢提出!
from minos.
thank,期待~
from minos.
Related Issues (16)
- user.htm bug HOT 1
- 非debug用途的assert使用
- 部分 bug HOT 3
- 项目不跟新了吗? HOT 1
- 作业再用mongo数据库的时候 没有涉及到认证库吗?
- 请问统计handler时间的log是怎么输出的 HOT 1
- requirements 优化 HOT 1
- ReadMe增加图片 HOT 1
- 程序运行后,管理员帐号没有自动创建 HOT 4
- 用户头像上传错误 HOT 4
- 最新版本文章查看bug HOT 3
- captcha.png 404 HOT 4
- 能否增加金币支付模块? HOT 2
- requirement.txt指定的豆瓣源路径有误 HOT 1
- Debian/Ubuntu下还需要安装openssl库 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minos.