代码之家  ›  专栏  ›  技术社区  ›  cegprakash

Django+PyOrient:db_create socket.timeout异常在EC2中

  •  0
  • cegprakash  · 技术社区  · 7 年前

    我正在使用 orientDB 社区版 2.2.35 pyorient 1.5.5 .

    client.db_create(db_name, pyorient.DB_TYPE_GRAPH, pyorient.STORAGE_TYPE_PLOCAL)
    

    但是当我在一台计算机上运行相同的代码时 ec2 机器,它抛出 socket.timeout exception .

    CORS 问题,但不是。还有什么问题?

    1 回复  |  直到 7 年前
        1
  •  1
  •   cegprakash    7 年前

    使用运行orientDB服务器 sudo命令修复了这个问题。

    db_create()尝试修改OSystem/dirty.fl文件,我在服务器日志上遇到权限被拒绝的异常。

    FileNotFoundException: /home/ubuntu/orientdb-community-2.2.35/databases/OSystem/dirty.fl (Permission denied)
    
    推荐文章