I try to invite users using app search/Users Invite user using the standard authentification mode. The invitation is shown as pending, and I tried to resend mail many times. Email is never received, I checked of course spam, and different destination addresses.
I have a self host config with a working elasticsearch and enterpise-search installation on centos 8
What I set in my /config/enterprise-search.yml to enable email is:
ent_search.auth.default.source: standard
email.account:
enabled: true
smtp:
auth: login
starttls.enable: true
host: https://smtp-mail.outlook.com
port: 587
user:xxxx@xxxxx.xxx
password: xxxxxxx
email_defaults:
from: xxx@xxxxxx.xxx
I also try with a gmail account, and also with a smtp server related to documentation.
I set the logs in debug mode and I can see the email in it, with at the end a message "block in start_queue_manager"
Do you have any ideas ? Thanks a lot !
debug log :
[2021-03-21T19:54:53.817+00:00][788962][2306][app-server][INFO]: [ActiveJob] [Work::TogoMailer] [66047d10-e0cb-4b4e-9df4-8f84180db4d0]
Sent mail to xxxx@xxxxx.xxx (104.3ms)
[2021-03-21T19:54:53.817+00:00][788962][2306][app-server][DEBUG]: [ActiveJob] [Work::TogoMailer] [66047d10-e0cb-4b4e-9df4-8f84180db4d0] Date: Sun, 21 Mar 2021 19:54:53 +0000
From: xxxx@xxxxx.xxx
To: xxxx@xxxxx.xxx
Message-ID: <63d5ec0d72441f839ada3c4bcec240bb220da99a319c23ed4dce6768a894464b-xxxx@xxxxx.xxx
Subject: enterprise_search has invited you to join App Search!
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_6057a48da81bc_c09e2902-4ce";
charset=UTF-8
Content-Transfer-Encoding: 7bit
(I removed the html email content here)
[2021-03-21T19:54:53.819+00:00][788962][2306][active_job][INFO]: [ActiveJob] [Work::TogoMailer] [66047d10-e0cb-4b4e-9df4-8f84180db4d0] Completed Work::TogoMailer job (66047d10-e0cb-4b4e-9df4-8f84180db4d0) on `mailer`
[2021-03-21T19:54:53.821+00:00][788962][2306][active_job][INFO]: [ActiveJob] [Work::TogoMailer] [66047d10-e0cb-4b4e-9df4-8f84180db4d0] Performed Work::TogoMailer from EsqueuesMe(mailer) in 227.09ms
[2021-03-21T19:54:53.835+00:00][788962][2336][es][DEBUG]: {
"request": {
"url": "http://127.0.0.1:9200/.ent-search-actastic-crawler_crawl_requests_v3/_search?request_cache=true",
"method": "get",
"headers": {
"Authorization": "[FILTERED]",
"Content-Type": "application/json",
"User-Agent": "Faraday v0.17.3"
},
"params": null,
"body": "{\"query\":{\"bool\":{\"filter\":[{\"terms\":{\"status\":[\"pending\"]}}]}},\"sort\":[{\"created_at\":\"desc\"},\"_doc\"],\"size\":100,\"from\":0,\"seq_no_primary_term\":true}"
},
"response": {
"status": 200,
"headers": {
"content-type": "application/json; charset=UTF-8"
},
"body": "{\"took\":1,\"timed_out\":false,\"_shards\":{\"total\":1,\"successful\":1,\"skipped\":0,\"failed\":0},\"hits\":{\"total\":{\"value\":0,\"relation\":\"eq\"},\"max_score\":null,\"hits\":[]}}"
},
"duration": 14.8,
"stack": [
"lib/actastic/schema.class:22:in `search'",
"lib/actastic/relation.class:488:in `search'",
"lib/actastic/relation.class:216:in `find_each'",
"lib/actastic/relation.class:287:in `to_a'",
"lib/actastic/relation.class:287:in `load'",
"lib/actastic/relation.class:282:in `to_a'",
"lib/actastic/relation.class:303:in `empty?'",
"shared_togo/lib/shared_togo/crawler/queue_manager.class:155:in `perform_queue_polling'",
"shared_togo/lib/shared_togo/crawler/queue_manager.class:95:in `block in start!'",
"shared_togo/lib/shared_togo/crawler/queue_manager.class:86:in `loop'",
"shared_togo/lib/shared_togo/crawler/queue_manager.class:86:in `start!'",
"shared_togo/lib/shared_togo/crawler.class:16:in `block in start_queue_manager!'"
]
}