Giter Club home page Giter Club logo

Comments (5)

phith0n avatar phith0n commented on August 14, 2024

看看日志呀:/home/minos/minos.log
里面什么内容?

from minos.

Seevil avatar Seevil commented on August 14, 2024
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.

Seevil avatar Seevil commented on August 14, 2024

不好意识这两天考试没什么空,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.

phith0n avatar phith0n commented on August 14, 2024

第一个问题,我之后添加一个配置项,来手工指定config文件绝对路径。
第二个问题,是py2.6不支持total_seconds属性,我之后做一下修改,感谢提出!

from minos.

Seevil avatar Seevil commented on August 14, 2024

thank,期待~

from minos.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.