Hi, I cannot log in with the default data admin/admin
http://isc.unsaac.edu.pe/cuscontest/public/login.php
but when I do this through curl it seems to be working fine: curl --data "login=admin&passwd=admin&cmd=login" http://isc.unsaac.edu.pe/cuscontest/public/login.php
what could be the reason for this behaviour, hope you can help me.
BTW it was working fine before, I cannot realize why it suddenly took this behaviour, the domjudge version is 4.0.5 and I'm using this version of ubuntu. ubuntu@ip-172-31-28-85:~/domjudge-4.0.5$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.2 LTS Release: 14.04 Codename: trusty ubuntu@ip-172-31-28-85:~/domjudge-4.0.5$
On Mon, December 7, 2015 09:31, Dennis Huillca Portilla wrote:
Hi, I cannot log in with the default data admin/admin
http://isc.unsaac.edu.pe/cuscontest/public/login.php
but when I do this through curl it seems to be working fine: curl --data "login=admin&passwd=admin&cmd=login" http://isc.unsaac.edu.pe/cuscontest/public/login.php
what could be the reason for this behaviour, hope you can help me.
I just get 404's on those URL's. What do you see when you log in with admin/admin? Just an error about incorrect password?
Cheers, Thijs
Sorry, I've stopped the apache server for a while, but I'm not getting incorrect password, it keeps loading till I get this message at google chrome: this web page is not available ERR_CONNECTION_RESET like if it were trying to connect to some place (it takes about 30 seconds before I get that error message on the browser)
*and on the error log I'm getting this:*
[Tue Dec 08 01:34:41.971502 2015] [mpm_prefork:notice] [pid 3065] AH00169: caught SIGTERM, shutting down [Tue Dec 08 01:34:43.070374 2015] [mpm_prefork:notice] [pid 3146] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.14 configured -- resuming normal operations [Tue Dec 08 01:34:43.070436 2015] [core:notice] [pid 3146] AH00094: Command line: '/usr/sbin/apache2' dennisbot@DOMJUDGE:/var/log/apache2$ ls -l total 140 -rw-r----- 1 root adm 128189 dic 8 01:35 access.log -rw-r----- 1 root adm 4414 dic 8 01:34 error.log
i think the timeout of php make restart apache but I'm wondering why it's not posting the admin/admin credential, hope you can help me.
PD: the URL on question is this: http://isc.unsaac.edu.pe/cuscontest/public/login.php
Dennis
On Tue, December 8, 2015 07:39, Dennis Huillca Portilla wrote:
Sorry, I've stopped the apache server for a while, but I'm not getting incorrect password, it keeps loading till I get this message at google chrome: this web page is not available ERR_CONNECTION_RESET like if it were trying to connect to some place (it takes about 30 seconds before I get that error message on the browser)
It's strange that it only happens in an interactive browser and not with cURL. I really have no idea what could cause this but I doubt that it's something in DOMjudge since DOMjudge really doesn't care whether you use cURL or something else. Perhaps it helps to find the cause though to debug it a bit by adding output statements in the DOMjudge code to find out at what point it's hanging specifically.
And just a wild guess: there's not some 'smart/'next-generation' firewalling equipment active that messes with the requests?
Cheers, Thijs
I did it, and the post request never reach the server again, maybe it's the firewall but I have another form with post request that works ( http://isc.unsaac.edu.pe/academico/login), that's a strange thing, could firewalls block specific segments of my domain?, I've changed the name from mydomain.com/domjudge to mydomain.com/cuscontest but it stills doesn't work, any suggestions I would appreciate.
Cheers, Dennis
On Tue, Dec 8, 2015 at 2:08 AM, Thijs Kinkhorst thijs@kinkhorst.com wrote:
On Tue, December 8, 2015 07:39, Dennis Huillca Portilla wrote:
Sorry, I've stopped the apache server for a while, but I'm not getting incorrect password, it keeps loading till I get this message at google chrome: this web page is not available ERR_CONNECTION_RESET like if it were trying to connect to some place (it takes about 30
seconds
before I get that error message on the browser)
It's strange that it only happens in an interactive browser and not with cURL. I really have no idea what could cause this but I doubt that it's something in DOMjudge since DOMjudge really doesn't care whether you use cURL or something else. Perhaps it helps to find the cause though to debug it a bit by adding output statements in the DOMjudge code to find out at what point it's hanging specifically.
And just a wild guess: there's not some 'smart/'next-generation' firewalling equipment active that messes with the requests?
Cheers, Thijs
I've already realized something, looks like someone/something (I imagine a firewall I'm not an expert on networks), is preventing requests made with a hidden input field with *cmd* as a name (as the field with the value equal to *login* in the login form), I've created another form with that input hidden and the same name and the same problem is happening, but when I change the name instead of *cmd* it works fine, how can I make this to work?. you can test it here: http://isc.unsaac.edu.pe/cuscontest/public/test.php you can (in chrome) press F12 key to inspect document and change the name of the hidden input field to whatever not being *cmd *and it will post fine, but if you left *cmd *it won't do post. hope you can give me some suggestions, maybe contact the network administrator (I think they are very strong headed), in that case I should replace all occurences with the name *cmd *in project files?. Cheers, Dennis
On Tue, Dec 8, 2015 at 12:18 PM, Dennis Huillca Portilla < dennisbot@gmail.com> wrote:
I did it, and the post request never reach the server again, maybe it's the firewall but I have another form with post request that works ( http://isc.unsaac.edu.pe/academico/login), that's a strange thing, could firewalls block specific segments of my domain?, I've changed the name from mydomain.com/domjudge to mydomain.com/cuscontest but it stills doesn't work, any suggestions I would appreciate.
Cheers, Dennis
On Tue, Dec 8, 2015 at 2:08 AM, Thijs Kinkhorst thijs@kinkhorst.com wrote:
On Tue, December 8, 2015 07:39, Dennis Huillca Portilla wrote:
Sorry, I've stopped the apache server for a while, but I'm not getting incorrect password, it keeps loading till I get this message at google chrome: this web page is not available ERR_CONNECTION_RESET like if it were trying to connect to some place (it takes about 30
seconds
before I get that error message on the browser)
It's strange that it only happens in an interactive browser and not with cURL. I really have no idea what could cause this but I doubt that it's something in DOMjudge since DOMjudge really doesn't care whether you use cURL or something else. Perhaps it helps to find the cause though to debug it a bit by adding output statements in the DOMjudge code to find out at what point it's hanging specifically.
And just a wild guess: there's not some 'smart/'next-generation' firewalling equipment active that messes with the requests?
Cheers, Thijs
--
Best Regards. Dennis Huillca Portilla http://about.me/dennisbot
On Tue, December 8, 2015 22:22, Dennis Huillca Portilla wrote:
I've already realized something, looks like someone/something (I imagine a firewall I'm not an expert on networks), is preventing requests made with a hidden input field with *cmd* as a name (as the field with the value equal to *login* in the login form), I've created another form with that input hidden and the same name and the same problem is happening, but when I change the name instead of *cmd* it works fine, how can I make this to work?. you can test it here: http://isc.unsaac.edu.pe/cuscontest/public/test.php you can (in chrome) press F12 key to inspect document and change the name of the hidden input field to whatever not being *cmd *and it will post fine, but if you left *cmd *it won't do post. hope you can give me some suggestions, maybe contact the network administrator (I think they are very strong headed), in that case I should replace all occurences with the name *cmd *in project files?.
That definitely points to some kind of DPI device messing with the network traffic (presuming that you didn't install anything that could do this on the webserver itself). Your network administrator should indeed know more about it. I would say that such a device is likely to break lots of other stuff aswell.
If it isn't fixable on the network level, a well aimed sed command in the php files could indeed work around the problem for you. But maybe an even better workaround is to run DOMjudge over https. Any DPI stuff then won't be able to mess with it, and your DOMjudge install gets more secure at the same time.
Cheers, Thijs
Program error output Invalid maximum heap size: -Xmx-983040k Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
Judging system output (info/debug/errors) Non-zero exitcode 1 runtime: 0.000s cpu, 0.008s wall memory used: 1277952 bytes
Hi Anand,
On 12/09/15 14:49, Br. Anand Shenoi wrote:
Program error output Invalid maximum heap size: -Xmx-983040k Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
Judging system output (info/debug/errors) Non-zero exitcode 1 runtime: 0.000s cpu, 0.008s wall memory used: 1277952 bytes
It looks like you changed either the memory limit in the configuration settings or the MEMRESERVED value in the java compile script, so that the difference is negative. You have to increase the global memory limit or to decrease the MEMRESERVED value.
Cheers, Tobi
PS: Please don't "hijack" other mail threads but create your own.
Tobias, the current value for Memory limit is: 3145728
Subject: Re: how to resolve this error? To: domjudge-devel@domjudge.org From: werth@cs.fau.de Date: Wed, 9 Dec 2015 14:53:27 +0100
Hi Anand,
On 12/09/15 14:49, Br. Anand Shenoi wrote:
Program error output Invalid maximum heap size: -Xmx-983040k Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
Judging system output (info/debug/errors) Non-zero exitcode 1 runtime: 0.000s cpu, 0.008s wall memory used: 1277952 bytes
It looks like you changed either the memory limit in the configuration settings or the MEMRESERVED value in the java compile script, so that the difference is negative. You have to increase the global memory limit or to decrease the MEMRESERVED value.
Cheers, Tobi
PS: Please don't "hijack" other mail threads but create your own.
_______________________________________________ DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
Hi,
On 12/09/15 15:04, Br. Anand Shenoi wrote:
Tobias, the current value for Memory limit is: 3145728
as I wrote below, you have to check the MEMRESERVED value as well.
The compile script computes the difference here: https://github.com/DOMjudge/domjudge/blob/master/sql/files/defaultdata/java_...
Given that the difference is negative, MEMRESERVED is probably too high.
Cheers, Tobi
Subject: Re: how to resolve this error? To: domjudge-devel@domjudge.org From: werth@cs.fau.de Date: Wed, 9 Dec 2015 14:53:27 +0100
Hi Anand,
On 12/09/15 14:49, Br. Anand Shenoi wrote:
Program error output Invalid maximum heap size: -Xmx-983040k Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
Judging system output (info/debug/errors) Non-zero exitcode 1 runtime: 0.000s cpu, 0.008s wall memory used: 1277952 bytes
It looks like you changed either the memory limit in the configuration settings or the MEMRESERVED value in the java compile script, so that the difference is negative. You have to increase the global memory limit or to decrease the MEMRESERVED value.
Cheers, Tobi
PS: Please don't "hijack" other mail threads but create your own.
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
MEMRESERVED=300000Memory limit is: 3145728
Subject: Re: how to resolve this error? To: domjudge-devel@domjudge.org From: werth@cs.fau.de Date: Wed, 9 Dec 2015 15:12:52 +0100
Hi,
On 12/09/15 15:04, Br. Anand Shenoi wrote:
Tobias, the current value for Memory limit is: 3145728
as I wrote below, you have to check the MEMRESERVED value as well.
The compile script computes the difference here: https://github.com/DOMjudge/domjudge/blob/master/sql/files/defaultdata/java_...
Given that the difference is negative, MEMRESERVED is probably too high.
Cheers, Tobi
Subject: Re: how to resolve this error? To: domjudge-devel@domjudge.org From: werth@cs.fau.de Date: Wed, 9 Dec 2015 14:53:27 +0100
Hi Anand,
On 12/09/15 14:49, Br. Anand Shenoi wrote:
Program error output Invalid maximum heap size: -Xmx-983040k Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
Judging system output (info/debug/errors) Non-zero exitcode 1 runtime: 0.000s cpu, 0.008s wall memory used: 1277952 bytes
It looks like you changed either the memory limit in the configuration settings or the MEMRESERVED value in the java compile script, so that the difference is negative. You have to increase the global memory limit or to decrease the MEMRESERVED value.
Cheers, Tobi
PS: Please don't "hijack" other mail threads but create your own.
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
_______________________________________________ DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
Hi,
strange. That would be ok. Are you sure that this java compile script is active? Check the language settings.
To do further debugging, you may want to edit the compile script and add echo statements to print MEMRESERVED and MEMLIMIT before taking the difference.
Cheers, Tobi
On 12/09/15 15:18, Br. Anand Shenoi wrote:
MEMRESERVED=300000Memory limit is: 3145728
Subject: Re: how to resolve this error? To: domjudge-devel@domjudge.org From: werth@cs.fau.de Date: Wed, 9 Dec 2015 15:12:52 +0100
Hi,
On 12/09/15 15:04, Br. Anand Shenoi wrote:
Tobias, the current value for Memory limit is: 3145728
as I wrote below, you have to check the MEMRESERVED value as well.
The compile script computes the difference here: https://github.com/DOMjudge/domjudge/blob/master/sql/files/defaultdata/java_...
Given that the difference is negative, MEMRESERVED is probably too high.
Cheers, Tobi
Subject: Re: how to resolve this error? To: domjudge-devel@domjudge.org From: werth@cs.fau.de Date: Wed, 9 Dec 2015 14:53:27 +0100
Hi Anand,
On 12/09/15 14:49, Br. Anand Shenoi wrote:
Program error output Invalid maximum heap size: -Xmx-983040k Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
Judging system output (info/debug/errors) Non-zero exitcode 1 runtime: 0.000s cpu, 0.008s wall memory used: 1277952 bytes
It looks like you changed either the memory limit in the configuration settings or the MEMRESERVED value in the java compile script, so that the difference is negative. You have to increase the global memory limit or to decrease the MEMRESERVED value.
Cheers, Tobi
PS: Please don't "hijack" other mail threads but create your own.
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
Hi Anand,
Did you maybe set a problem specific memory limit?
Jaap
On 9 December 2015 11:18:12 GMT-03:00, "Br. Anand Shenoi" anandam@outlook.com wrote:
MEMRESERVED=300000Memory limit is: 3145728
Subject: Re: how to resolve this error? To: domjudge-devel@domjudge.org From: werth@cs.fau.de Date: Wed, 9 Dec 2015 15:12:52 +0100
Hi,
On 12/09/15 15:04, Br. Anand Shenoi wrote:
Tobias, the current value for Memory limit is: 3145728
as I wrote below, you have to check the MEMRESERVED value as well.
The compile script computes the difference here: https://github.com/DOMjudge/domjudge/blob/master/sql/files/defaultdata/java_...
Given that the difference is negative, MEMRESERVED is probably too high.
Cheers, Tobi
Subject: Re: how to resolve this error? To: domjudge-devel@domjudge.org From: werth@cs.fau.de Date: Wed, 9 Dec 2015 14:53:27 +0100
Hi Anand,
On 12/09/15 14:49, Br. Anand Shenoi wrote:
Program error output Invalid maximum heap size: -Xmx-983040k Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
Judging system output (info/debug/errors) Non-zero exitcode 1 runtime: 0.000s cpu, 0.008s wall memory used: 1277952 bytes
It looks like you changed either the memory limit in the
configuration
settings or the MEMRESERVED value in the java compile script, so that the difference is negative. You have to increase the global memory
limit
or to decrease the MEMRESERVED value.
Cheers, Tobi
PS: Please don't "hijack" other mail threads but create your own.
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
Yes, Jaap. We did that. It is 65535
Subject: RE: how to resolve this error? From: jaap@jaapeldering.nl Date: Wed, 9 Dec 2015 11:33:40 -0300 To: anandam@outlook.com; domjudge-devel@domjudge.org
Hi Anand,
Did you maybe set a problem specific memory limit?
Jaap
On 9 December 2015 11:18:12 GMT-03:00, "Br. Anand Shenoi" anandam@outlook.com wrote:
MEMRESERVED=300000Memory limit is: 3145728
Subject: Re: how to resolve this error? To: domjudge-devel@domjudge.org From: werth@cs.fau.de Date: Wed, 9 Dec 2015 15:12:52 +0100
Hi,
On 12/09/15 15:04, Br. Anand Shenoi wrote:
Tobias, the current value for Memory limit is: 3145728
as I wrote below, you have to check the MEMRESERVED value as well.
The compile script computes the difference here: https://github.com/DOMjudge/domjudge/blob/master/sql/files/defaultdata/java_...
Given that the difference is negative, MEMRESERVED is probably too high.
Cheers, Tobi
Subject: Re: how to resolve this error? To: domjudge-devel@domjudge.org From: werth@cs.fau.de Date: Wed, 9 Dec 2015 14:53:27 +0100
Hi Anand,
On 12/09/15 14:49, Br. Anand Shenoi wrote:
Program error output Invalid maximum heap size: -Xmx-983040k Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
Judging system output (info/debug/errors) Non-zero exitcode 1 runtime: 0.000s cpu, 0.008s wall memory used: 1277952 bytes
It looks like you changed either the memory limit in the configuration settings or the MEMRESERVED value in the java compile script, so that the difference is negative. You have to increase the global memory limit or to decrease the
MEMRESERVED value.
Cheers, Tobi
PS: Please don't "hijack" other mail threads but create your own.
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
_______________________________________________ DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
Thanks, Jaap. It is now resolved. It was because of the problem specific setting.
From: anandam@outlook.com To: jaap@jaapeldering.nl; domjudge-devel@domjudge.org Subject: RE: how to resolve this error? Date: Wed, 9 Dec 2015 20:05:24 +0530
Yes, Jaap. We did that. It is 65535
Subject: RE: how to resolve this error? From: jaap@jaapeldering.nl Date: Wed, 9 Dec 2015 11:33:40 -0300 To: anandam@outlook.com; domjudge-devel@domjudge.org
Hi Anand,
Did you maybe set a problem specific memory limit?
Jaap
On 9 December 2015 11:18:12 GMT-03:00, "Br. Anand Shenoi" anandam@outlook.com wrote:
MEMRESERVED=300000Memory limit is: 3145728
Subject: Re: how to resolve this error? To: domjudge-devel@domjudge.org From: werth@cs.fau.de Date: Wed, 9 Dec 2015 15:12:52 +0100
Hi,
On 12/09/15 15:04, Br. Anand Shenoi wrote:
Tobias, the current value for Memory limit is: 3145728
as I wrote below, you have to check the MEMRESERVED value as well.
The compile script computes the difference here: https://github.com/DOMjudge/domjudge/blob/master/sql/files/defaultdata/java_...
Given that the difference is negative, MEMRESERVED is probably too high.
Cheers, Tobi
Subject: Re: how to resolve this error? To: domjudge-devel@domjudge.org From: werth@cs.fau.de Date: Wed, 9 Dec 2015 14:53:27 +0100
Hi Anand,
On 12/09/15 14:49, Br. Anand Shenoi wrote:
Program error output Invalid maximum heap size: -Xmx-983040k Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
Judging system output (info/debug/errors) Non-zero exitcode 1 runtime: 0.000s cpu, 0.008s wall memory used: 1277952 bytes
It looks like you changed either the memory limit in the configuration settings or the MEMRESERVED value in the java compile script, so that the difference is negative. You have to increase the global memory limit or to decrease the
MEMRESERVED value.
Cheers, Tobi
PS: Please don't "hijack" other mail threads but create your own.
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
_______________________________________________ DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
Hi All,In in contest with 300+ users, how can we ensure that java heap / memory problem doesn't arise? When we say 64 MB for one problem, then does it mean the 64 MB includes the size of test cases to be loaded for that problem, for one user? And what all issues related with Java can we expect?
Hi Anand,
On 10-12-15 04:51, Br. Anand Shenoi wrote:
Hi All,
In in contest with 300+ users, how can we ensure that java heap / memory problem doesn't arise? When we say 64 MB for one problem, then does it mean the 64 MB includes the size of test cases to be loaded for that problem, for one user?
This is a difficult issue for Java. First, the memory limit is enforced onto the whole running program, which means for Java (and any other interpreted/byte-code language) that the memory use of the interpreter is included. This means that it is impossible to enforce the same memory limits on underlying contestant code when one is in C/C++ and the other in Java. Hence, when using both, you should always keep some overhead for Java and thus very strict memory limits are impossible I would say.
Secondly, within Java, it is clear what the memory limit is: this is the one calculated inside the Java compile script.
Whether this includes the size of the test cases, depends entirely on the way that the contestants' solution reads these: if they read the whole input into memory, then, yes. But if they read and process, say, line after line, then they would require only that much. In other words: there is no part in DOMjudge itself that reads the test case data and counts towards the memory limit.
And what all issues related with Java can we expect?
That's a very broad and difficult question to answer.
First of all, the default Java script already detects (public) class/file name issues, which takes care of quite a few beginners' problems.
Secondly, you should be aware that some Java I/O methods can be *really* slow, so contestants should use the right ones. I don't know these details by heart, but at least one should use buffered readers/writers on large in/output files, see the team manual code example.
Best, Jaap