From apolo.itm@gmail.com Tue Apr 18 20:57:53 2017 From: Fredy Vanegas To: domjudge-devel@domjudge.org Subject: error with judgedaemon Date: Tue, 18 Apr 2017 13:57:25 -0500 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6694545708255581321==" --===============6694545708255581321== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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. --===============6694545708255581321== Content-Type: text/html Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="attachment.html" MIME-Version: 1.0 PGRpdiBkaXI9Imx0ciI+SGksIGkgYW0gdHJ5IGluc3RhbGwgdGhlIGRvbWp1ZGdlLCBkb21zZXJ2 ZXIgYW5kIGp1ZGdlaG9zdCBpbiB0aGUgc2FtZSBtYWNoaW5lLCBidXQgd2hlbiBpIGV4ZWN1dGUg dGhlIGp1ZGdlZGFlbW9uICZxdW90Oy4vanVkZ2VkYWVtb24mcXVvdDsgaW4gdGhlIHBhdGggfi9k b21qdWRnZS9qdWRnZWhvc3QvYmluIGdpdmUgbWUgdGhlIG5leHQgZXJyb3I6IDxicj48YnI+W0Fw ciAxOCAxMzoyMjoxMV0ganVkZ2VkYWVtb25bNTAxNl06IEp1ZGdlIHN0YXJ0ZWQgb24gZG9tLWp1 ZGdlIFtET01qdWRnZS81LjEuM108YnI+W0FwciAxOCAxMzoyMjoxMV0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toMSZndDtOb3QgQXV0aGVudGlj YXRlZCZsdDsvaDEmZ3Q7PGJyPjxicj4mbHQ7cCZndDtJbnZhbGlkIHVzZXJuYW1lIG9yIHBhc3N3 b3JkIHN1cHBsaWVkLiBQbGVhc2UgdHJ5IGFnYWluIG9yIGNvbnRhY3QgYSBzdGFmZiBtZW1iZXIu Jmx0Oy9wJmd0Ozxicj48YnI+PGJyPiZsdDsvYm9keSZndDs8YnI+Jmx0Oy9odG1sJmd0Ozxicj48 YnI+PHNwYW4gaWQ9ImdtYWlsLXJlc3VsdF9ib3giIGNsYXNzPSJnbWFpbC0iIGxhbmc9ImVuIj48 c3BhbiBjbGFzcz0iZ21haWwtIj5JIGFwcHJlY2lhdGUgYWxsIHRoZSBoZWxwIHlvdSBjYW4gZ2l2 ZSBtZS48L3NwYW4+PC9zcGFuPjxicj48L2Rpdj4K --===============6694545708255581321==-- 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="===============2043809927385078030==" --===============2043809927385078030== 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 --===============2043809927385078030==--