instedd / verboice

Open source toolkit for voice services; with special focus to the needs of medium- and low-income countries, scalable services, and interacting with vulnerable populations
http://verboice.instedd.org/
GNU General Public License v3.0
44 stars 18 forks source link

504 error when deleting a channel #868

Open mmuller opened 4 years ago

mmuller commented 4 years ago

Found in version: d9a0609

Preconditions:

Steps to reproduce:

  1. Navigate the Ch1 overview.
  2. Click on Delete this channel.

Obtained result:

matiasgarciaisaia commented 4 years ago

We believe one of the preconditions is to have a great number of CallLogs, either associated with this particular channel or in the system at all (we have to check which of both is true).

The :dependent => :nullify or :dependent => :destroy must be taking long enough that Rancher's proxy returns a 504 instead while Verboice keeps destroying stuff. We should probably move the channel deletion to a asynchronous job.