How can I configure notifications sent by email

For the first post, please answer the questions below!

Describe your issue in detail

Hello friends, I have successfully configured SMTP and I have tested sending email to my account. But I am not receiving any notifications on my email, is there any additional configuration I must do?

What version of Cells are you using?

4.4.4

What is the server OS? Database name/version? Browser name or mobile device description (if issue appears client-side)?

Fedora 39
MariaDB: 10.5.25

What steps have you taken to resolve this issue already?

Restarted cells and sometimes I receive multiple notifications in one email.

Hi.

This is not very clear. You say:

So the user digest works, doesn’t it ?
Have you tried to send a test email when you configure the mailer ? Is it landing as expected in your mail box?

Hello
I have tried to send a test email and it works fine, but on normal days I don’t receive any notification on my email, such as shared files or any changes made on Cells.

This is an example of test email I have received

Hello username,
test
Click to open the frontend
Open Cells
Pydio File Sharing platform is used by teams to efficiently collaborate on documents.
Sincerely,
Pydio

If the Open Cells-button is not working for you, just copy and paste the URL below into your web browser.
https://0.0.0.0:8080
File Sharing platform proudly powered by Pydio 

lately, I have been having a problem with Cells, and someone supported me here on the forum after I restarted Cells, I just received an email listing some notifications starting from last month. Here is the sample

Hello USER,

Below is a summary of all the notifications your received on Pydio
Cell ANNUAL LEAVES

    Alelgn Debre Elias has shared cell ANNUAL LEAVES with you - 2024-08-28 10:32

Cell D.M LOAN RESCADULING PHASE 4.pdf

    kefyale Debre Markos has shared cell D.M LOAN RESCADULING PHASE 4.pdf with you - 2024-08-16 10:55

Cell SAVING ACCOUNT ISSUE

    kefyale Debre Markos has shared cell SAVING ACCOUNT ISSUE with you - 2024-08-27 11:27

Cell letter of muluken.jpg

    Alelgn Debre Elias has shared cell letter of muluken.jpg with you - 2024-08-27 14:50

Workspace Liyu Shared Document

    Document All Branch July Operation Report Format was moved by Administrator - 2024-08-02 15:23
    Document Sholla 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Woliso 2024-25 Operation Report Format -.xlsx was created by Administrator - 2024-08-02 15:22
    Document Welkite 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Sheno 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Sendafa 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Muketuri 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Lideta 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Merkato 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Kotebe 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Kolfe 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Kirkos 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Jemo 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Hayahulet 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Holeta 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Gimbichu 2024-25 Operation Report Format -.xlsx was created by Administrator - 2024-08-02 15:22
    Document Dukem 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Geresu Duki 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Fiche 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Debre Markos 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Debre Birhan 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Debre Eliyas 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Chancho 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Bishoftu 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Alemgena 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Alembank 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Akaki 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Butajira 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Adea 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Adulala 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Document Adama 2024-25 Operation Report Format.xlsx was created by Administrator - 2024-08-02 15:22
    Folder All Branch July Operation Report Format was created by Administrator - 2024-08-02 15:22
    Document Kotebe Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document kolfe Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document Lideta Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document Sholla Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document Merkato Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document Hayahulet Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document Kirkos Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document D-Markos Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document Jemo Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document Alembank Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document Akaki Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document D-Brehan Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document D-Elias Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document Woliso Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document Sendafa Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document Gimbichu Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document Holeta Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document Sheno Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document Muketuri Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document Dukem Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document Fitche Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document Bishoftu Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document Chancho Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document Geresu duki Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document Adea Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document AlemGena Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document Adulala Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document Adama Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document Wolkite Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Document Butajira Branch Office.doc was created by Andualem ICT - 2024-07-31 14:44
    Folder Oromia was created by Andualem ICT - 2024-07-31 14:44
    Folder SNNPR was created by Andualem ICT - 2024-07-31 14:44
    Folder Amhara was created by Andualem ICT - 2024-07-31 14:44
    Folder Letter format was created by Andualem ICT - 2024-07-31 14:44
    Folder Addis Ababa was created by Andualem ICT - 2024-07-31 14:44
    Folder Letter was created by Andualem ICT - 2024-07-31 14:44

Cell ICT

    Document Information System Policy.pdf was created by Berhane ICT - 2024-08-27 08:30
    Folder IT Policy-Manual-Procedure was created by Berhane ICT - 2024-08-27 08:29
    Document 09-2024 Aug 19-2024 Role manual finalize minue.pdf was created by Berhane ICT - 2024-08-22 12:30
    Document support 4th QR.docx was created by Berhane ICT - 2024-07-25 14:07
    Document andualem 4th QR.docx was created by Berhane ICT - 2024-07-25 14:07
    Document aman Quarter Report for Database and System Admin [June].docx was created by Berhane ICT - 2024-07-25 14:07
    Document kid 4th Qurter Report.docx was created by Berhane ICT - 2024-07-25 14:06
    Document 4th Quarter Report final.pdf was created by Berhane ICT - 2024-07-25 14:06

Cell DEBRE ELIAS IFRS DATA COLLECTION SHEET.xlsx

    Alelgn Debre Elias has shared cell DEBRE ELIAS IFRS DATA COLLECTION SHEET.xlsx with you - 2024-08-15 11:09

Cell TELER.jpg

    Alelgn Debre Elias has shared cell TELER.jpg with you - 2024-08-27 14:51

Cell work experience

    Alelgn Debre Elias has shared cell work experience with you - 2024-08-28 10:33

Cell INSURANCE CLAIM D.BM

    kefyale Debre Markos has shared cell INSURANCE CLAIM D.BM with you - 2024-08-15 16:30

Cell INSURANCE CLAIM D.BM

    kefyale Debre Markos has shared cell INSURANCE CLAIM D.BM with you - 2024-08-20 08:59

Cell TIJAGOTER SUB BRANCH

    Alelgn Debre Elias has shared cell TIJAGOTER SUB BRANCH with you - 2024-08-20 15:06

Cell Tipist Tilahune.pdf

    kefyale Debre Markos has shared cell Tipist Tilahune.pdf with you - 2024-08-30 15:03

Cell yenesew's cash indementy.jpg

    Alelgn Debre Elias has shared cell yenesew's cash indementy.jpg with you - 2024-08-31 10:28

Sincerely,
Pydio

File Sharing platform proudly powered by Pydio 

@bsinou
any updates? I can still restart cells and receive a bunch of notifications on email but I am not receiving them daily.

Weird indeed.

Did you check in the Scheduler ( Admin Console >> Show Advanced Parameters >> Backend >> Scheduler ) if the job Users Activities Digest seems to run correctly ?

Anything strange in the logs ?

By the way, it seems you did not define the External URL so all links in the mails will be broken.

I have checked the scheduler and it seems to be running

I am using a self-signed certificate with Caddy, and I am only accessing Cells from LAN not publicly accessible maybe that is the cause of why I am not receiving notifications?

@bsinou any suggestions, please? I wanted to check if users get notified through email when someone shares a file with them, for now, they need to log in and check for a notification bell.

It seems that the job run, indeed.

Could you check its log ? (each job run produces a bunch of messages, and this one tells what it sends)
Does the test email still work ? How is your mailer configured ?

Does the test email still work? How is your mailer configured?

Yes



This is a log I found while sending test mail

OK.

Now, you might:

  1. logged in as “User A”:
  • insure that it as a valid email
  • create a cell
  • share it with admin (RW permission)
  • register for notification when accessed and modified
  1. as admin
  • open the cells
  • upload a file
  • go to cells console
  • force launch the Activity digest
  1. Questions
  • does user received a mail ?
  • what says the task log when you go to admin console >> scheduler >> activity digest you have the individual log for each job, you can see the detail by clicking on a job

Hello @bsinou
I followed the steps you shared and didn’t receive the email.

can you “open” the last line ? so that we can see the logs of the last job ?

Ok before that, I just checked logs and found this,

can you “open” the last line ? so that we can see the logs of the last job ?

Ok before that, I just checked logs and found this,

That’s confusing: the timestamps don’t match.

  • Did this error happen at the time when you where trying to test activities ?
  • Did the test email work between this error and your activity tests ?

if the answers are respectively “no” and “yes”, let’s focus on the other problem first.

About this, when I follow the steps i’ve listed above on a fresh (kind of empty) system, I got these lines in the job’s log:

What about you:

  • Do you see this line: “digest sent to user XXX” on your system ?
  • have you configured email for the various user (in my case admin and bruno) ?
  • If you see no line, can you try again a few minutes later ?

If you have still no clue, there is a (very dangerous - don’t use it on prod it might exhaust machine resources) flag to get more logs for the asynchronous jobs:

export CELLS_JOBS_LOG_LEVEL=debug

Can you please:

  • relaunch the server after defining this env variable
  • trigger a few events (by e.g. browsing the newly created cell)
  • relaunch the flow.

You can see see more lines by clicking on the {} button in the header of the job instance line (on the same line as Task Activity) ?

What does it say ?

Note: don’t forget to remove the debug flag after your tests.

That’s confusing: the timestamps don’t match.
Did this error happen at the time when you where trying to test activities ?
Did the test email work between this error and your activity tests ?
if the answers are respectively “no” and “yes”, let’s focus on the other problem first.

Ow, sorry. Yeah, that was the time the server was booting, and at that moment, the network devices were not started yet. That could be the reason.

About this, when I follow the steps i’ve listed above on a fresh (kind of empty) system, I got these lines in the job’s log:

This is what the logs looks like when I tested sending an email to my account from the admin

Do you see this line: “digest sent to user XXX” on your system ?
have you configured email for the various user (in my case admin and bruno) ?
If you see no line, can you try again a few minutes later ?

I am not sure about that, I am checking from backend → logs, I have already filled an email address on my account to test and the test works fine, from admin to my account, but I am not getting an email on events.

The odd thing is if I restart cells, I will receive an email with a bunch of old notifications,

The odd thing is if I restart cells, I will receive an email with a bunch of old notifications,

  • Could you show the log of the job that triggered this email ?
  • After restart, and receving the digest with old events, what happens if you:
    • generate some new actions / events
    • wait for 2 mn
    • manually launch the digest job
  • And last, If you re-start again ? Are the same emails send again ?

Hello @bsinou thank you for taking time and giving me support.
I tried the following steps and here is the result

I restarted cells to check if an old notification was sent to my email, but this time I didn’t receive any. and here is the log after I restarted the cells service

I waited for a while and didn’t receive an email, after that, I tried to create a new cell from (Amanuel ICT) user to (Admin) following the steps you suggested. Still, I didn’t receive an email when I accessed the cell from admin. But I manually started the Users Activitivity Digest and saw this:

After restarting I received an email notification with the earlier event and an old notification.

Hi,

I forgot one thing, when you manually trigger the digest, you have to manually launch:

  • User actiivity digest
  • Flush Mail queues

Both are jobs that happen regularly and that you can manually trigger to speed up the process.

Can you please try again without restarting the server in between and let us know?

Hello,
Ok, I retried the step but manually launched both jobs you suggested without restarting cells.service and I have received the notification in my email.

OK.
so until there, it works, nice :slight_smile:

Could you then trigger some new events and wait for the normal flows to be automatically launched.
Does it work?
What does the job logs say ?