Hi, i am try install the domjudge, domserver and judgehost in the same machine, but when i execute the judgedaemon "./judgedaemon" in the path ~/domjudge/judgehost/bin give me the next error:
[Apr 18 13:22:11] judgedaemon[5016]: Judge started on dom-judge [DOMjudge/5.1.3] [Apr 18 13:22:11] judgedaemon[5016]: Not using cgroups. Using cgroups is highly recommended. See the manual for details. [Apr 18 13:22:11] judgedaemon[5016]: Registering judgehost on endpoint http://localhost/domjudge/api [Apr 18 13:22:12] judgedaemon[5016]: error: Error while executing curl POST to url http://localhost/domjudge/api/judgehosts: http status code: 403, response: <!DOCTYPE html> <html lang="en" xml:lang="en"> <head> <!-- DOMjudge version 5.1.3 --> <meta charset="utf-8"/> <title>Login failed</title> <link rel="icon" href="../images/favicon.png" type="image/png" /> <link rel="stylesheet" href="../style.css" type="text/css" /> <link rel="stylesheet" href="style_jury.css" type="text/css" /> <script type="text/javascript" src="../js/jquery.min.js"></script> <script type="text/javascript" src="../js/jury.js"></script> <script type="text/javascript" src="../js/sorttable.js"></script> <script type="text/javascript" src="../js/domjudge.js"></script> </head> <body onload="setInterval('updateMenu(0, 0, 0)', 20000); updateMenu(0,0,0)"> <h1>Not Authenticated</h1>
<p>Invalid username or password supplied. Please try again or contact a staff member.</p>
</body> </html>
I appreciate all the help you can give me.
Hi Fredy,
First, could you subscribe to the mailinglist so that your emails are automatically approved?
Response below.
On 18-04-17 15:57, Fredy Vanegas wrote:
Hi, i am try install the domjudge, domserver and judgehost in the same machine, but when i execute the judgedaemon "./judgedaemon" in the path ~/domjudge/judgehost/bin give me the next error:
[Apr 18 13:22:11] judgedaemon[5016]: Judge started on dom-judge [DOMjudge/5.1.3] [Apr 18 13:22:11] judgedaemon[5016]: Not using cgroups. Using cgroups is highly recommended. See the manual for details. [Apr 18 13:22:11] judgedaemon[5016]: Registering judgehost on endpoint http://localhost/domjudge/api [Apr 18 13:22:12] judgedaemon[5016]: error: Error while executing curl POST to url http://localhost/domjudge/api/judgehosts: http status code: 403, response: <!DOCTYPE html>
<html lang="en" xml:lang="en"> <head> <!-- DOMjudge version 5.1.3 --> <meta charset="utf-8"/> <title>Login failed</title> <link rel="icon" href="../images/favicon.png" type="image/png" /> <link rel="stylesheet" href="../style.css" type="text/css" /> <link rel="stylesheet" href="style_jury.css" type="text/css" /> <script type="text/javascript" src="../js/jquery.min.js"></script> <script type="text/javascript" src="../js/jury.js"></script> <script type="text/javascript" src="../js/sorttable.js"></script> <script type="text/javascript" src="../js/domjudge.js"></script> </head> <body onload="setInterval('updateMenu(0, 0, 0)', 20000); updateMenu(0,0,0)"> <h1>Not Authenticated</h1>
<p>Invalid username or password supplied. Please try again or contact a staff member.</p>
</body> </html>
I appreciate all the help you can give me.
This indicates that the credentials that the judgedaemon is using (it reads these from ~/domjudge/judgehost/etc/restapi.secret) don't work.
First check that that file is present. If not, it can probably be copied from ~/domjudge/domserver/etc/restapi.secret, which should have been created when installing. (We should probably also install it at ~/domjudge/judgehost/etc/restapi.secret.)
Secondly, if you still cannot login, it might be that the credentials were not properly installed when loading the SQL data. (Normally this should work.) In this case, in the admin web interface, edit the 'judgehost' user and (re)set the password to what's in the restapi.secret file.
Hope this helps.
Jaap