This repository has been archived by the owner on Nov 12, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
无法开始评测:RequestError: Error: connect ECONNREFUSED 127.0.0.1:5284 #5
Comments
感觉本地的配置中syzoj-judge2好像并没有提到它会挂到127.0.0.1:5284。。。但是syzoj2的配置文件中就有提到,然后就找不到。。。 附上配置文件设置情况: 这是syzoj2的config.json {
"title": "XXXX Online Judge",
"hostname": "127.0.0.1",
"port": "5283",
"db": {
"database": null,
"username": null,
"password": null,
"host": null,
"dialect": "sqlite",
"storage": "syzoj.db"
},
"register_mail": false,
"email": {
"method": "aliyundm",
"options": {
"AccessKeyId": "xxxx",
"AccessKeySecret": "xxxx",
"AccountName": "xxxx"
}
},
"upload_dir": "uploads",
"default": {
"problem": {
"time_limit": 1000,
"memory_limit": 256
},
"user": {
"show": true,
"rating": 1500
}
},
"sorting": {
"ranklist": {
"field": "rating",
"order": "desc"
},
"problem": {
"field": "id",
"order": "asc"
}
},
"limit": {
"time_limit": 10000,
"memory_limit": 2048,
"data_size": 209715200,
"testdata": 209715200,
"submit_code": 102400,
"submit_answer": 10485760,
"custom_test_input": 20971520,
"testdata_filecount": 5
},
"page": {
"problem": 100,
"problem_statistics": 10,
"judge_state": 30,
"ranklist": 100,
"discussion": 10,
"article_comment": 10,
"contest": 10,
"edit_contest_problem_list": 10,
"edit_problem_tag_list": 10
},
"languages": {
"cpp": {
"show": "C++",
"highlight": "cpp",
"version": "GCC 5.4.0",
"editor": "c_cpp"
},
"cpp11": {
"show": "C++11",
"highlight": "cpp",
"version": "GCC 5.4.0",
"editor": "c_cpp"
},
"csharp": {
"show": "C#",
"highlight": "csharp",
"version": "MCS 4.8.0.0, Mono 4.8.0",
"editor": "csharp"
},
"c": {
"show": "C",
"highlight": "c",
"version": "GCC 5.4.0",
"editor": "c_cpp"
},
"vala": {
"show": "Vala",
"highlight": "vala",
"version": "Vala 0.30.1, GCC 5.4.0",
"editor": "vala"
},
"java": {
"show": "Java",
"highlight": "java",
"version": "GCC 5.4.0",
"editor": "java"
},
"pascal": {
"show": "Pascal",
"highlight": "pascal",
"version": "FPC 3.0.0",
"editor": "pascal"
},
"lua": {
"show": "Lua",
"highlight": "lua",
"version": "Lua 5.2.4",
"editor": "lua"
},
"luajit": {
"show": "LuaJIT",
"highlight": "lua",
"version": "LuaJIT 2.0.4",
"editor": "lua"
},
"python2": {
"show": "Python 2",
"highlight": "python",
"version": "CPython 2.7.12",
"editor": "python"
},
"python3": {
"show": "Python 3",
"highlight": "python",
"version": "CPython 3.5.2",
"editor": "python"
},
"nodejs": {
"show": "Node.js",
"highlight": "js",
"version": "7.7.3",
"editor": "javascript"
},
"ruby": {
"show": "Ruby",
"highlight": "ruby",
"version": "2.3.1",
"editor": "ruby"
},
"haskell": {
"show": "Haskell",
"highlight": "haskell",
"version": "GHC 7.10.3",
"editor": "haskell"
},
"ocaml": {
"show": "OCaml",
"highlight": "ocaml",
"version": "Ocamlbuild 4.02.3",
"editor": "ocaml"
},
"vbnet": {
"show": "Visual Basic",
"highlight": "vbnet",
"version": "VBNC 0.0.0.5943, Mono 4.8.0",
"editor": "vbscript"
}
},
"links": [],
"session_secret": "233",
"judge_server_addr": "http://127.0.0.1:5284",
"judge_token": "233",
"email_jwt_secret": "test"
} 这是syzoj-judge2的shared-config.json: {
"webUrl": "http://127.0.0.1:5283",
"webToken": "233",
"dataDirectory": "/home/XXXXXX/Desktop/syzoj-master/uploads/testdata",
"delay": 1000,
"outputLimit": 104857600,
"stderrDisplayLimit": 5120,
"dataDisplayLimit": 128,
"compilerMessageLimit": 50000,
"spjTimeLimit": 1500,
"spjMemoryLimit": 256,
"fullScore": 100,
"sandboxEnvironments": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"HOME=/tmp"
],
"sandboxUser": "nobody",
"sandboxRoot": ""//这个不知道怎么搞,没有sandbox-rootfs这个东西(下载链接失效了)
} 这是syzoj-judge2的instance-config.json: {
"workingDirectory": "/sandbox",
"sandboxCgroup": "syzoj-1"
} 然后运行 node lib/index.js -s shared-config.json -i instance-config.json 没有"please check your system configuation"这条,就是说系统方面没什么问题,用的64bit-Ubuntu17.04(因为在另外的一台32bit的Ubuntu14.04(其实就是noilinux)上运行有这条,并且好像难以解决,所以特殊说一下) |
请使用 judge-v3。
2017年9月12日 上午7:02,GQH123 <[email protected]>写道:
感觉本地的配置中syzoj-judge2好像并没有提到它会挂到127.0.0.1:5284。。。但是syzoj2的配置文件中就有提到,然后就找不到。。。
附上配置文件设置情况:
这是syzoj2的config.json
{
"title": "XXXX Online Judge",
"hostname": "127.0.0.1",
"port": "5283",
"db": {
"database": null,
"username": null,
"password": null,
"host": null,
"dialect": "sqlite",
"storage": "syzoj.db"
},
"register_mail": false,
"email": {
"method": "aliyundm",
"options": {
"AccessKeyId": "xxxx",
"AccessKeySecret": "xxxx",
"AccountName": "xxxx"
}
},
"upload_dir": "uploads",
"default": {
"problem": {
"time_limit": 1000,
"memory_limit": 256
},
"user": {
"show": true,
"rating": 1500
}
},
"sorting": {
"ranklist": {
"field": "rating",
"order": "desc"
},
"problem": {
"field": "id",
"order": "asc"
}
},
"limit": {
"time_limit": 10000,
"memory_limit": 2048,
"data_size": 209715200,
"testdata": 209715200,
"submit_code": 102400,
"submit_answer": 10485760,
"custom_test_input": 20971520,
"testdata_filecount": 5
},
"page": {
"problem": 100,
"problem_statistics": 10,
"judge_state": 30,
"ranklist": 100,
"discussion": 10,
"article_comment": 10,
"contest": 10,
"edit_contest_problem_list": 10,
"edit_problem_tag_list": 10
},
"languages": {
"cpp": {
"show": "C++",
"highlight": "cpp",
"version": "GCC 5.4.0",
"editor": "c_cpp"
},
"cpp11": {
"show": "C++11",
"highlight": "cpp",
"version": "GCC 5.4.0",
"editor": "c_cpp"
},
"csharp": {
"show": "C#",
"highlight": "csharp",
"version": "MCS 4.8.0.0, Mono 4.8.0",
"editor": "csharp"
},
"c": {
"show": "C",
"highlight": "c",
"version": "GCC 5.4.0",
"editor": "c_cpp"
},
"vala": {
"show": "Vala",
"highlight": "vala",
"version": "Vala 0.30.1, GCC 5.4.0",
"editor": "vala"
},
"java": {
"show": "Java",
"highlight": "java",
"version": "GCC 5.4.0",
"editor": "java"
},
"pascal": {
"show": "Pascal",
"highlight": "pascal",
"version": "FPC 3.0.0",
"editor": "pascal"
},
"lua": {
"show": "Lua",
"highlight": "lua",
"version": "Lua 5.2.4",
"editor": "lua"
},
"luajit": {
"show": "LuaJIT",
"highlight": "lua",
"version": "LuaJIT 2.0.4",
"editor": "lua"
},
"python2": {
"show": "Python 2",
"highlight": "python",
"version": "CPython 2.7.12",
"editor": "python"
},
"python3": {
"show": "Python 3",
"highlight": "python",
"version": "CPython 3.5.2",
"editor": "python"
},
"nodejs": {
"show": "Node.js",
"highlight": "js",
"version": "7.7.3",
"editor": "javascript"
},
"ruby": {
"show": "Ruby",
"highlight": "ruby",
"version": "2.3.1",
"editor": "ruby"
},
"haskell": {
"show": "Haskell",
"highlight": "haskell",
"version": "GHC 7.10.3",
"editor": "haskell"
},
"ocaml": {
"show": "OCaml",
"highlight": "ocaml",
"version": "Ocamlbuild 4.02.3",
"editor": "ocaml"
},
"vbnet": {
"show": "Visual Basic",
"highlight": "vbnet",
"version": "VBNC 0.0.0.5943, Mono 4.8.0",
"editor": "vbscript"
}
},
"links": [],
"session_secret": "233",
"judge_server_addr": "http://127.0.0.1:5284",
"judge_token": "233",
"email_jwt_secret": "test"
}
这是syzoj-judge2的shared-config.json:
{
"webUrl": "http://127.0.0.1:5283",
"webToken": "233",
"dataDirectory": "/home/XXXXXX/Desktop/syzoj-master/uploads/testdata",
"delay": 1000,
"outputLimit": 104857600,
"stderrDisplayLimit": 5120,
"dataDisplayLimit": 128,
"compilerMessageLimit": 50000,
"spjTimeLimit": 1500,
"spjMemoryLimit": 256,
"fullScore": 100,
"sandboxEnvironments": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"HOME=/tmp"
],
"sandboxUser": "nobody",
"sandboxRoot": ""//这个不知道怎么搞,没有sandbox-rootfs这个东西(下载链接失效了)
}
这是syzoj-judge2的instance-config.json:
{
"workingDirectory": "/sandbox",
"sandboxCgroup": "syzoj-1"
}
然后运行
node lib/index.js -s shared-config.json -i instance-config.json
没有"please check your system configuation"这条,就是说系统方面没什么问题,用的64bit-Ubuntu17.04(因为在另外的一台32bit的Ubuntu14.04(其实就是noilinux)上运行有这条,并且好像难以解决,所以特殊说一下)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#5 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AIjpCF7lA6RP5h4jIi8mw9KAZ2R-sV2Nks5shbwTgaJpZM4PTB9R>.
|
啊对,又发现一个新的细节:在npm start syzoj2以后,并且运行了syzoj-judge2后在syzoj2的终端里面出现了许多at,然后上面有一个error:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
RT,这个是怎么回事???
The text was updated successfully, but these errors were encountered: