Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not receiving reminders #5681

Open
adamleerosenfeld opened this issue Nov 4, 2021 · 16 comments
Open

Not receiving reminders #5681

adamleerosenfeld opened this issue Nov 4, 2021 · 16 comments
Labels

Comments

@adamleerosenfeld
Copy link

adamleerosenfeld commented Nov 4, 2021

Hi,

This is a support request.

(I am not a developer, just a user.)

I set reminders to keep in touch with my contacts.

I rely on them.

But I'm not getting any of the reminders.

Any idea why that is?

Thanks,

Adam

@asbiin asbiin added the support label Nov 4, 2021
@JonTheNiceGuy
Copy link

This is because you need to have some process that sends the reminders. If you're using the docker-compose file, add a stanza similar to the one below, but with your details in, to add a Cron container:

cron:
    image: monica:fpm
    restart: always
    command: cron.sh
    depends_on:
      - db
    environment: <as per main app container>
    volumes: <as per main app container>

@adamleerosenfeld
Copy link
Author

adamleerosenfeld commented Nov 28, 2021 via email

@JonTheNiceGuy
Copy link

Hi @adamleerosenfeld are you running the Monica server yourself, is a friend or similar running it for you, are you using the paid service from monicahq.com (or similar), or are you doing something different?

Essentially, if you're hosting it yourself, you'd need to let me know how you set it up. If someone else is hosting it for you, then they need to look at the notes I put above. If it's a paid service, then you'll need to contact their support team. Something else? Um, drop a note in to give me more details :)

@adamleerosenfeld
Copy link
Author

adamleerosenfeld commented Dec 3, 2021 via email

@b3nd1k
Copy link

b3nd1k commented Dec 19, 2021

You're not alone, I'm not receiving any email notifications on my self hosted instance either. I have tested email using: php artisan monica:test-email and that works, but besides that I get no emails.

I've tried adding CRON_LEGACY=true as a docker variable, as I've seen someone else have had luck with it , but it did not resolve my issue.

@Tabularasah
Copy link

Notifications also not working here on a self-hosted instance. Email is working but Monica is not sending out reminders or notifications for keeping in contact.

@sasimpson
Copy link

sasimpson commented Jan 3, 2022

I am having a similar issue with reminders. The dashboard will not update unless i go into a contact and save the contact again. Once i do that, they show up in the dashboard. Self hosted, docker-compose.

edit - i added the cron entry above to my docker-compose config and there is no update to the reminders table when it runs. only when i edit a contact (not actually edit it) and save. then there is an entry created in the reminders table.

@b3nd1k
Copy link

b3nd1k commented Feb 11, 2022

It's been a few more months since my last post and email reminders are still not working. The email service is working and I do get password reset emails, just not email reminders. Seems like this is an issue that the developers need to address.

@hwrdtm
Copy link

hwrdtm commented Feb 24, 2022

+1 having issues too

@luca-sambuca
Copy link

+1 same here...

@starlord998
Copy link

Has anyone found a solution to receiving email reminders? I am running Monica in a docker container?

@JonTheNiceGuy
Copy link

@starlord998 If you're using Docker Compose to start your container, then I've got a stanza (from up there) you can add which will solve it.

cron:
    image: monica:fpm
    restart: always
    command: cron.sh
    depends_on:
      - db
    environment: <as per main app container>
    volumes: <as per main app container>

If you're just running docker commands on your CLI, then you'll need to run something like:

docker run --restart=always monica:fpm cron.sh

I've not included any --env/-e or --volume/-v switches, because that will depend on what you've already got configured. I also can't see how to have a "depends on" statement in the docker run cli switches.

@luca-sambuca
Copy link

For me, setting "APP_ENV=production" in the .env file did the trick.

@Ian2020
Copy link

Ian2020 commented Jan 30, 2023

I am also selfhosting and despite running the cron jobs and the other fixes suggested I have never seen reminders work reliably. Perhaps there are just some fundamental issues with the code as suggested in bug #1638. Maybe the rewrite will address this in time.

I really need this to work now however so I have written a workaround BASH script that takes over the reminders for Monica and works whether you're running it in a container/VM/bare metal. It has some limitations but it works for me and maybe it can help someone else. It's at https://github.com/Ian2020/monica_reminder. Please raise any issues with it in its own repo not here though.

mww added a commit to mww/portainer-compose that referenced this issue Feb 14, 2023
This should make it send reminders and do other maintenance jobs
according to a comment on github.
monicahq/monica#5681 (comment)
@bbrendon
Copy link

bbrendon commented Mar 5, 2023

A few weeks ago I updated from 3.7.0 to 4.0.0. Now today I realize email reminders are broken. Anyone else experience that?

I found this error in the larvel log file. I'm not sure what changed.

[2023-03-02 15:00:01] production.ERROR: Unable to connect with STARTTLS: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed {"exception":"[object] (Symfony\\Component\\Mailer\\Exception\\TransportException(code: 0): Unable to connect with STARTTLS: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed at /var/www/html/vendor/symfony/mailer/Transport/Smtp/Stream/SocketStream.php:171)
[stacktrace]

@bbrendon
Copy link

bbrendon commented Mar 8, 2023

Fixed the problem mentioned here. #6608

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests