Emails and notificacions stop sending after days working ok

Vjrune
Community Novice

After installing and configuring Canvas on an Ubuntu 22.04 server, everything worked correctly.
However, after several days in which I have done nothing on the server, only using the platform (creating subjects, inviting users...) the emails have stopped being sent. There is no error in the logs and the configuration of the email account has not been modified.

I have put some traces in the code, for example in forgot_password. In the file pseudonyms_controller.rb

At the beginning ccs contains values of the user who is going to remember the password.


cc
{
  "communication_channel":{
    "id":2,
    "path":"somename@hotmail.com",
    "path_type":"email",
    "position":1,
    "user_id":2,
    "pseudonym_id":null,
    "bounce_count":0,
    "workflow_state":"active",
    "created_at":"2023-09-30T10:56:22+02:00",
    "updated_at":"2023-10-24T13:19:56+02:00",
    "build_pseudonym_on_confirm":null,
    "last_bounce_at":null,
    "last_bounce_details":null,
    "last_suppression_bounce_at":null,
    "last_transient_bounce_at":null,
    "last_transient_bounce_details":null,
    "confirmation_code_expires_at":"2023-10-24T15:19:56+02:00",
    "confirmation_sent_count":1,
    "root_account_ids":[1],
    "confirmation_redirect":null
  }
}
user
{
  "user":{
    "id":2,
    "name":"somename",
    "sortable_name":"somename",
    "workflow_state":"registered",
    "time_zone":"Europe/Madrid",
    "created_at":"2023-09-30T10:56:22+02:00",
    "updated_at":"2023-10-22T22:41:22+02:00",
    "avatar_image_url":null,
    "avatar_image_source":null,
    "avatar_image_updated_at":null,
    "school_name":null,
    "school_position":null,
    "short_name":"somename",
    "deleted_at":null,
    "show_user_services":true,
    "page_views_count":0,
    "reminder_time_for_due_dates":172800,
    "reminder_time_for_grading":0,
    "storage_quota":null,
    "visible_inbox_types":null,
    "last_user_note":null,
    "subscribe_to_emails":false,
    "preferences":{
      "custom_colors":"external"
    },
    "avatar_state":"none",
    "locale":null,
    "browser_locale":"es-ES",
    "unread_conversations_count":43,
    "stuck_sis_fields":[
      "name",
      "sortable_name"
    ],
    "public":null,
    "initial_enrollment_type":null,
    "crocodoc_id":null,
    "last_logged_out":null,
    "lti_context_id":"41649344ce52b942a119ab20d21fbc949c7184cf",
    "turnitin_id":null,
    "lti_id":"22cd74af-850c-4e5f-89ee-8e2ba57532ae",
    "pronouns":null,
    "root_account_ids":[1],
    "merged_into_user_id":null
  }
}
associated
[{
  "shard":{
    "id":1,
    "name":"public",
    "database_server_id":null,
    "default":true,
    "settings":{
    },
    "delayed_jobs_shard_id":null,
    "created_at":"2023-09-29T12:10:37+02:00",
    "updated_at":"2023-09-29T12:10:37+02:00",
    "block_stranded":false,
    "jobs_held":false
  }
}]
shard
{
  "shard":{
    "id":1,
    "name":"public",
    "database_server_id":null,
    "default":true,
    "settings":{
    },
    "delayed_jobs_shard_id":null,
    "created_at":"2023-09-29T12:10:37+02:00",
    "updated_at":"2023-09-29T12:10:37+02:00",
    "block_stranded":false,
    "jobs_held":false
  }
}

 

But after "ccs.flatten.compact.uniq.select" it is empty and I don't understand why. What can make ccs lose the content? Why it was working before and now suddenly it doesn't work anymore?

0 Likes