Closed jpbrunetsx closed 6 months ago
Hi,
Thank you for reporting the problem.
We encountered this problem several times recently. I restarted the service and it should be good now. However, you'll need to re-submit the submissions.
We are investigating the problem to avoid the requiring a restart in the future.
Now the server is down again? Again and again?
Now the server is down again? Again and again?
Do you guys still have bugs to generate? I've been participating in one contest on this for about a month, and the server has crashed at least twice, I've been unable to submit at least 10 times, the longest lasting three days. During this time it has all sorts of problems, including running for very long periods, getting stuck on submitted, submitting, scoring, etc., The site loads very jerky and has a huge delay in the display of the pages. It's not like there aren't ready-made website samples for you guys to refer to, including but not limited to kaggle, tianchi, etc., so please can you guys just create some more bugs and work it out together before pushing it online?
@zhangzhao219 Indeed, we have some infrastructure issues to solve at the moment.
By the way, Codabench is a free community project, currently maintained by a team of 5 people. Feel free to join us if you are able to help. It does not make sense to compare it with Kaggle, which is ran by more than 1,000 employees and has more than $10 millions of revenue.
By the way, the server is up again.
Last point, having your submission "stuck on submitted" is not necessarily a bug. If a competition organizer does not provide enough computing power to handle the demand of the competition, the submissions get queued. Competition organizers are independant from the platform developers and providers, so we cannot be blamed for the lack of resources provided by the competition you are participating in.
I have a similar/the same problem. In my own instance the the compute worker sometimes loses the connections so all submissions would get stuck on "Submitted". Simply up -d the compute worker fixes this. Actually, I have had this problem a few times and never checked the logs properly so I simply assume that it is always that same error. Also, if the logs reveal to you that the shutdown was not related to codabench/the connection loss then it might be an issue with the VM I use, because I have experienced something shutting down for no obvious reason on another VM in another project. In that case you can simply ignore this comment.
Maybe this log can help with the issue:
compute_worker-1 | [2024-03-08 14:45:30,977: INFO/ForkPoolWorker-1] *** PUT RESPONSE: ***
compute_worker-1 | [2024-03-08 14:45:30,977: INFO/ForkPoolWorker-1] response: <Response [200]>
compute_worker-1 | [2024-03-08 14:45:30,977: INFO/ForkPoolWorker-1] content: b''
compute_worker-1 | [2024-03-08 14:45:30,977: INFO/ForkPoolWorker-1] CODALAB_IGNORE_CLEANUP_STEP mode enabled, ignoring clean up of: /codabench/tmpotyaqnlb
compute_worker-1 | [2024-03-08 14:45:30,979: INFO/ForkPoolWorker-1] Task compute_worker_run[0fe5e637-8a1b-4edd-b69c-cfc1104ff103] succeeded in 3.672250556992367s: None
compute_worker-1 | [2024-03-09 01:04:53,190: WARNING/MainProcess] consumer: Connection to broker lost. Trying to re-establish the connection...
compute_worker-1 | Traceback (most recent call last):
compute_worker-1 | File "/usr/local/lib/python3.8/site-packages/celery/worker/consumer/consumer.py", line 318, in start
compute_worker-1 | blueprint.start(self)
compute_worker-1 | File "/usr/local/lib/python3.8/site-packages/celery/bootsteps.py", line 119, in start
compute_worker-1 | step.start(parent)
compute_worker-1 | File "/usr/local/lib/python3.8/site-packages/celery/worker/consumer/consumer.py", line 596, in start
compute_worker-1 | c.loop(*c.loop_args())
compute_worker-1 | File "/usr/local/lib/python3.8/site-packages/celery/worker/loops.py", line 83, in asynloop
compute_worker-1 | next(loop)
compute_worker-1 | File "/usr/local/lib/python3.8/site-packages/kombu/asynchronous/hub.py", line 364, in create_loop
compute_worker-1 | cb(*cbargs)
compute_worker-1 | File "/usr/local/lib/python3.8/site-packages/kombu/transport/base.py", line 238, in on_readable
compute_worker-1 | reader(loop)
compute_worker-1 | File "/usr/local/lib/python3.8/site-packages/kombu/transport/base.py", line 220, in _read
compute_worker-1 | drain_events(timeout=0)
compute_worker-1 | File "/usr/local/lib/python3.8/site-packages/amqp/connection.py", line 508, in drain_events
compute_worker-1 | while not self.blocking_read(timeout):
compute_worker-1 | File "/usr/local/lib/python3.8/site-packages/amqp/connection.py", line 514, in blocking_read
compute_worker-1 | return self.on_inbound_frame(frame)
compute_worker-1 | File "/usr/local/lib/python3.8/site-packages/amqp/method_framing.py", line 55, in on_frame
compute_worker-1 | callback(channel, method_sig, buf, None)
compute_worker-1 | File "/usr/local/lib/python3.8/site-packages/amqp/connection.py", line 520, in on_inbound_method
compute_worker-1 | return self.channels[channel_id].dispatch_method(
compute_worker-1 | File "/usr/local/lib/python3.8/site-packages/amqp/abstract_channel.py", line 145, in dispatch_method
compute_worker-1 | listener(*args)
compute_worker-1 | File "/usr/local/lib/python3.8/site-packages/amqp/connection.py", line 650, in _on_close
compute_worker-1 | raise error_for_code(reply_code, reply_text,
compute_worker-1 | amqp.exceptions.ConnectionForced: (0, 0): (320) CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'
compute_worker-1 |
compute_worker-1 | worker: Hitting Ctrl+C again will terminate all running tasks!
compute_worker-1 |
compute_worker-1 | worker: Warm shutdown (MainProcess)
@curious-broccoli To understand better your situation:
@curious-broccoli To understand better your situation:
* You have your own server? Accessible online by users? * The default queue runs on the compute worker service from the main VM (the VM of the instance)? Or do you have separated workers?
Yes I host our own instance on a server accessible online (not globally). Only the default queue is used and it all runs on the same VM which also runs the instance/webserver etc.
I have the feeling that the problem may comes from performance problem. If the VM is already using many resources to manage the web server, the queue may ends up congested.
Do you have many users and submissions?
It is recommended to have separate workers linked to the default queue of the platform.
See:
Hi,
We are running the following competition : https://www.codabench.org/competitions/1534/
Today the submission appear stuck in submitted phase. Checking on the worker logs, it seems they receive the submission well but cannot update them. I join the logs.
Maybe linked to #1302