From jaap@jaapeldering.nl Tue Apr 18 21:13:05 2017 From: Jaap Eldering To: domjudge-devel@domjudge.org Subject: Re: error with judgedaemon Date: Tue, 18 Apr 2017 16:12:59 -0300 Message-ID: <4727f186-61e5-a6f7-f110-e7f261a20684@jaapeldering.nl> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0202166432228153907==" --===============0202166432228153907== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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: > > > > > Login failed > > > > > > > > > >

Not Authenticated

> >

Invalid username or password supplied. Please try again or contact a > staff member.

> > > > > > 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 --===============0202166432228153907==--